Text reasoning problem processing optimization method and system

By using thoughtless chain annotation and answer entropy filtering in text reasoning tasks, combined with twin-tower model retrieval and large language model pre-annotation, the problems of high cost and resource consumption in the existing technology are solved, and efficient and accurate text reasoning processing is achieved. .

CN118536593APending Publication Date: 2024-08-23GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410368750.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-28
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing technologies rely on high-quality annotated data sets and expensive model fine-tuning when processing text reasoning tasks, resulting in high computing costs and resource consumption, and reducing the general capabilities of large language models.

Method used

By obtaining the text reasoning question data set without thinking chain annotation, we perform thinking chain annotation, calculate the answer entropy and filter the noisy data, use the two-tower model to retrieve semantically related data, and combine with the large language model for pre-annotation and retrieval to reduce data collection. Cost and computational resource consumption.

Benefits of technology

It realizes the optimization of text reasoning problems when annotated data is scarce or unavailable, significantly reduces computing and resource consumption, improves processing efficiency and accuracy, is suitable for existing large language models, and provides immediate performance improvement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536593A
    Figure CN118536593A
Patent Text Reader

Abstract

The invention discloses a text reasoning problem processing optimization method and system, and the method comprises the steps: obtaining a text reasoning problem data set without thinking chain labeling, carrying out the thinking chain labeling of the text reasoning problem data set without thinking chain labeling through a large language model, and obtaining a first thinking chain data set; wherein each group of data in the first thinking chain data set comprises a question, a plurality of thinking chains and a plurality of answers; calculating the entropy of each answer in each group of data, and filtering the data of which the entropy is greater than a preset filtering value to obtain a second thinking chain data set; obtaining a test problem, and retrieving a plurality of pieces of data related to the semantics of the test problem from the second thinking chain data set through a double-tower model to serve as a candidate group; and obtaining a test question reference group through a large language model according to the test question and each candidate group, and obtaining an answer corresponding to the test question according to the test question reference group. According to the method, more efficient text reasoning problem processing is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of text reasoning problem processing, and in particular to a text reasoning problem processing optimization method and system. Background Art

[0002] Text reasoning is an important task in natural language processing, that is, being able to deduce a logical answer given the premise and background knowledge.

[0003] Existing technologies usually use large language models (LLMs) to handle text reasoning tasks. However, in order to optimize the text reasoning task processing process, it currently mainly relies on high-quality annotated datasets or expensive fine-tuning of LLMs. This not only requires a lot of computing resources, resulting in high computing costs, but also reduces the general ability of large language models to handle text reasoning problems. Therefore, a method for handling text reasoning problems that consumes less computing resources is needed. Summary of the invention

[0004] The present invention provides a text reasoning problem processing optimization method and system, which realizes more efficient text reasoning problem processing.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a text reasoning problem processing optimization method, including:

[0006] Obtain a text reasoning question dataset without thought chain annotations, and perform thought chain annotations on the text reasoning question dataset without thought chain annotations through a large language model to obtain a first thought chain dataset; wherein each set of data in the first thought chain dataset includes a question, a plurality of thought chains, and a plurality of answers;

[0007] Calculating the entropy of each answer in each set of data, and filtering the data whose entropy is greater than a preset filtering value to obtain a second thinking chain data set;

[0008] Obtaining a test question, and retrieving a number of pieces of data semantically related to the test question from the second thinking chain data set through the double tower model as a candidate group;

[0009] According to the test question and each of the candidate groups, a test question reference group is obtained through a large language model, and according to the test question reference group, an answer corresponding to the test question is obtained.

[0010] It can be understood that, compared with the prior art, the method provided by the present invention reduces the cost and difficulty of data collection by pre-labeling text reasoning data, and can optimize the processing of text reasoning problems when labeled data is scarce or completely unavailable. Data with high noise is filtered according to the entropy of the answer, so that the retained data is more accurate. By using a large language model to retrieve useful thought chain paths for itself from semantically related data, the answer to the test question can be obtained without updating the model parameters, which significantly reduces the calculation and resource consumption, and realizes more efficient processing of text reasoning problems.

[0011] Furthermore, the method of performing thought chain annotation on the text reasoning question dataset without thought chain annotation by using a large language model to obtain a first thought chain dataset specifically includes:

[0012] A data set of text reasoning problems without thought chain annotations is used as the input of a large language model. Through the large language model, a number of thought chains and a number of answers corresponding to each group of data in the data set of text reasoning problems without thought chain annotations are obtained to obtain a first thought chain data set; wherein the large language model is obtained by training based on a number of text reasoning problems with thought chain annotations.

[0013] It can be understood that the method provided by the present invention stimulates the ability of the large language model to annotate thought chains by passing a number of text reasoning problems with thought chain annotations to the large language model, thereby being able to generate a number of thought chains and a number of answers on a text reasoning problem data set without thought chain annotations, without the need for high-quality annotations. This not only reduces the cost and difficulty of data collection, but also allows optimization when annotated data is scarce or completely unavailable.

[0014] Furthermore, the step of calculating the entropy of each answer in each set of data and filtering the data with entropy greater than a preset filter value to obtain a second thinking chain data set specifically includes:

[0015] Count the frequency of each answer in each set of data, and use the frequency of each answer as the probability of each answer;

[0016] According to the entropy calculation formula, combined with the probability of each answer appearing, the entropy of each answer is obtained respectively;

[0017] The data with entropy greater than the preset filtering value is filtered to obtain the second thinking chain data set.

[0018] It is understandable that the method provided by the present invention proposes an answer entropy mechanism in order to evaluate the uncertainty of the thought chain corresponding to the question in each set of data. The thought chains and answers with large noise are filtered out through the entropy of the answer, so as to obtain more accurate thought chains and answers, reduce the burden of the subsequent retrieval process, and help to obtain candidate groups more accurately during retrieval.

[0019] Furthermore, the double-tower model is used to retrieve several pieces of data semantically related to the test question from the second thinking chain data set as a candidate group, specifically including:

[0020] According to the encoding similarity calculation formula of SentenceBERT, the similarity between each group of data in the second thinking chain data set and the test question is calculated, and the data corresponding to the first several similarities in the similarity numerical ranking are extracted as candidate groups.

[0021] It can be understood that in order to adapt to the maximum length limit of the large language model, the method provided by the present invention obtains several data with similarities to the test question in each group of data as candidate groups according to the encoding similarity calculation formula, and extracts multiple thought chains with similar similarities as candidate groups, thereby improving the generalization and accuracy of the large language model in processing text reasoning problems.

[0022] Further, obtaining a test question reference group through a large language model according to the test question and each of the candidate groups, and obtaining an answer corresponding to the test question according to the test question reference group specifically includes:

[0023] The test question and each candidate group are used as inputs of the large language model, and combined with instruction prompts, a test question reference group is selected from each candidate group through the large language model;

[0024] According to the test question reference group, answers corresponding to the test questions are obtained through a large language model.

[0025] It is understandable that the method provided by the present invention helps the large language model to answer given test questions by retrieving data related to the test questions for itself through the large language model, avoiding the large amount of computing resources required for fine-tuning the large language model, and improving the performance of text reasoning tasks through the "pre-labeling + retrieval" framework without compromising the performance of the model on other tasks. In addition, it can also be easily deployed on existing large language models to provide them with immediate performance improvements without the need for retraining or fine-tuning, making the text reasoning problem processing process more efficient.

[0026] Accordingly, an embodiment of the present invention provides a text reasoning problem processing optimization system, including:

[0027] A thought chain annotation module is used to obtain a text reasoning problem data set without thought chain annotations, and annotate the text reasoning problem data set without thought chain annotations with thought chains through a large language model to obtain a first thought chain data set; wherein each set of data in the first thought chain data set includes a question, a plurality of thought chains, and a plurality of answers;

[0028] An entropy filtering module, used to calculate the entropy of each answer in each set of data, and filter the data whose entropy is greater than a preset filtering value to obtain a second thinking chain data set;

[0029] A candidate group determination module is used to obtain a test question and retrieve a number of data semantically related to the test question from the second thinking chain data set through a double tower model as a candidate group;

[0030] The answer determination module is used to obtain a test question reference group based on the test question and each candidate group through a large language model, and obtain an answer corresponding to the test question based on the test question reference group.

[0031] It can be understood that, compared with the prior art, the system provided by the present invention improves the performance of text reasoning tasks through the "pre-annotation + retrieval" framework, while not compromising the performance of the large language model on other tasks. By pre-annotating text reasoning data, the cost and difficulty of data collection are reduced, and the optimization of text reasoning problem processing can be achieved when the annotated data is scarce or completely unavailable; by using the large language model to retrieve useful thought chain paths for itself from semantically related data, compared with the system that needs to update the model parameters, the system of the present invention can be applied to the current common language model reasoning API scenarios, which can significantly reduce computing and resource consumption, and achieve more efficient processing of text reasoning problems.

[0032] Furthermore, the thought chain annotation module specifically includes: taking a text reasoning problem data set without thought chain annotations as input of a large language model, and obtaining a number of thought chains and a number of answers corresponding to each group of data in the text reasoning problem data set without thought chain annotations through the large language model, to obtain a first thought chain data set; wherein, the large language model is obtained by training based on a number of text reasoning problems with thought chain annotations.

[0033] It can be understood that the system provided by the present invention can stimulate the ability of the large language model to annotate thought chains by passing a number of text reasoning problems with thought chain annotations to the large language model, thereby being able to generate a number of thought chains and a number of answers on a text reasoning problem data set without thought chain annotations, without the need for high-quality annotations. This not only reduces the cost and difficulty of data collection, but also allows optimization when annotated data is scarce or completely unavailable.

[0034] Furthermore, the entropy filtering module specifically includes:

[0035] The frequency statistics submodule is used to count the frequency of each answer in each group of data, and use the frequency of each answer as the probability of each answer;

[0036] An entropy calculation submodule, used to obtain the entropy of each answer according to the entropy calculation formula and the probability of occurrence of each answer;

[0037] The data filtering submodule is used to filter the data whose entropy is greater than a preset filtering value to obtain a second thinking chain data set.

[0038] It is understandable that the system provided by the present invention proposes an answer entropy mechanism in order to evaluate the uncertainty of the thought chain corresponding to the question in each set of data. The thought chains and answers with large noise are filtered out through the entropy of the answer, so as to obtain more accurate thought chains and answers, reduce the burden of the subsequent retrieval process, and help to obtain candidate groups more accurately during retrieval.

[0039] Furthermore, the candidate group determination module specifically includes: calculating the similarity between each group of data in the second thinking chain data set and the test question according to the encoding similarity calculation formula of SentenceBERT, and extracting the data corresponding to the first several similarities in the similarity numerical sorting as the candidate group.

[0040] It can be understood that in order to adapt to the maximum length limit of the large language model, the system provided by the present invention obtains several data with similarities to the test question in each group of data as candidate groups according to the encoding similarity calculation formula, and by extracting multiple thought chains with similar similarities as candidate groups, the generalization and accuracy of the large language model in processing text reasoning problems are improved.

[0041] Furthermore, the answer determination module specifically includes:

[0042] A reference group determination submodule is used to use the test question and each candidate group as input of the large language model, and select a test question reference group from each candidate group through the large language model in combination with the instruction prompt;

[0043] The answer extraction submodule is used to obtain the answer corresponding to the test question through the large language model according to the test question reference group.

[0044] It is understandable that the system provided by the present invention retrieves data related to the test questions for itself through the large language model, helps the large language model to answer given test questions, avoids the large amount of computing resources required for fine-tuning the large language model, and improves the performance of text reasoning tasks through the "pre-labeling + retrieval" framework without compromising the performance of the model on other tasks. In addition, it can also be easily deployed on existing large language models to provide them with immediate performance improvements without the need for retraining or fine-tuning. This makes the text reasoning problem processing process more efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1: A flowchart of a method for optimizing text reasoning problem processing provided by an embodiment of the present invention;

[0046] Figure 2 : A structural diagram of a text reasoning problem processing optimization system provided by an embodiment of the present invention;

[0047] Figure 3 : A schematic diagram of the internal structure of an entropy filtering module in a text reasoning problem processing optimization system provided by an embodiment of the present invention;

[0048] Figure 4 : A schematic diagram of the internal structure of an answer determination module in a text reasoning problem processing optimization system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] Most current text reasoning problem processing relies on high-quality data, which is expensive to collect for specific text reasoning problems. At the same time, fine-tuning large language models to enhance the ability of specific text reasoning problems is not only expensive and unfavorable to the environment, but also causes huge costs for model storage and deployment due to its large number of parameters. When given a frozen large language model and a dataset with a small number of thought chain examples, a more efficient way to optimize text reasoning problems is needed.

[0051] Embodiment 1

[0052] Please refer to Figure 1 , which is a step flow chart of a text reasoning problem processing optimization method provided by an embodiment of the present invention, including steps S101-S104, and each step is specifically as follows.

[0053] S101: Obtain a text reasoning question dataset without thought chain annotations, and annotate the text reasoning question dataset without thought chain annotations with thought chains through a large language model to obtain a first thought chain dataset; wherein each group of data in the first thought chain dataset includes a question, a plurality of thought chains, and a plurality of answers.

[0054] In this embodiment, the text reasoning problem data set without thought chain annotations is annotated with thought chains by a large language model to obtain a first thought chain data set, which specifically includes: taking the text reasoning problem data set without thought chain annotations as input of the large language model, and obtaining a number of thought chains and a number of answers corresponding to each group of data in the text reasoning problem data set without thought chain annotations by the large language model to obtain the first thought chain data set; wherein the large language model is obtained by training on a number of text reasoning problems with thought chain annotations.

[0055] s=LLM(d1,d2,…,q test )

[0056] a=Parse-Answer(s)

[0057] Wherein, LLM() is the large language model; d i is the i-th text reasoning question with thought chain annotation; q test is the text reasoning problem without thought annotation; s is the thought chain and answer generated by the large language model; parse-Answer() is the preset template answer extraction method; a is the formatted answer.

[0058] S102: Calculate the entropy of each answer in each set of data, and filter the data with entropy greater than a preset filter value to obtain a second thinking chain data set.

[0059] In this embodiment, the entropy of each answer in each group of data is calculated, and data with entropy greater than a preset filter value is filtered to obtain a second thinking chain data set, specifically including: counting the frequency of each answer in each group of data, and taking the frequency of each answer as the probability of each answer; according to the entropy calculation formula, combined with the probability of each answer, the entropy of each answer is obtained respectively; the data with entropy greater than the preset filter value is filtered to obtain the second thinking chain data set, and the specific formula is:

[0060]

[0061]

[0062]

[0063] Among them, a i is the answer in each set of data; n is the number of answers in each set of data; A * is the frequency of occurrence of each answer; p(a i * ) is the probability of each answer appearing; u(a i * ) is the entropy of each answer.

[0064] S103: Obtain a test question, and retrieve a number of data semantically related to the test question from the second thinking chain data set through the double tower model as a candidate group.

[0065] In this embodiment, the dual-tower model is used to retrieve several pieces of data semantically related to the test question from the second thinking chain data set as a candidate group, specifically including: calculating the similarity between each group of data in the second thinking chain data set and the test question according to the encoding similarity calculation formula of SentenceBERT, and extracting the data corresponding to the first several similarities in the similarity numerical sorting as a candidate group.

[0066] It should be noted that the encoding similarity calculation formula of SentenceBERT is specifically:

[0067] M c =top-k m∈M (sim(q test ,m))

[0068] Among them, M c is the candidate group; sim() is the encoding similarity calculation formula of SentenceBERT; M is each group of data in the second thinking chain data set; q test is the test problem; top-k() is the method for extracting the data corresponding to the top in the similarity value sorting.

[0069] S104: obtaining a test question reference group based on the test question and each of the candidate groups through a large language model, and obtaining an answer corresponding to the test question based on the test question reference group.

[0070] In this embodiment, a test question reference group is obtained through a large language model based on the test question and each candidate group, and an answer corresponding to the test question is obtained based on the test question reference group. Specifically, the method includes: taking the test question and each candidate group as input of the large language model, combining with instruction prompts, and selecting a test question reference group from each candidate group through the large language model; and obtaining the answer corresponding to the test question through a large language model based on the test question reference group.

[0071] m=LLM(q test ,M c ,P retrieval )

[0072] Wherein, LLM() is the large language model; q test For the test question; M c is the candidate group; retrievalis the prompt instruction; m is the test question reference group.

[0073] The method provided by the present invention reduces the cost and difficulty of data collection by pre-labeling text reasoning data, and can optimize the processing of text reasoning problems when labeled data is scarce or completely unavailable. Data with large noise is filtered according to the entropy of the answer, so that the retained data is more accurate. A large language model is used to retrieve useful thought chain paths for itself from semantically related data, and the answers to test questions can be obtained without updating model parameters, which significantly reduces calculation and resource consumption and realizes more efficient processing of text reasoning problems.

[0074] Embodiment 2

[0075] Please refer to Figure 2 , which is a structural diagram of a text reasoning problem processing optimization system provided by an embodiment of the present invention. The text reasoning problem processing optimization system specifically includes: a thought chain annotation module 201, an entropy filtering module 202, a candidate group determination module 203 and an answer determination module 204.

[0076] In this embodiment, the thought chain annotation module 201 is used to obtain a text reasoning problem data set without thought chain annotations, and annotate the text reasoning problem data set without thought chain annotations with thought chains through a large language model to obtain a first thought chain data set; wherein each group of data in the first thought chain data set includes a question, a number of thought chains and a number of answers, specifically including: taking the text reasoning problem data set without thought chain annotations as the input of the large language model, and obtaining a number of thought chains and a number of answers corresponding to each group of data in the text reasoning problem data set without thought chain annotations through the large language model, to obtain the first thought chain data set; wherein the large language model is obtained by training based on a number of text reasoning problems with thought chain annotations.

[0077] In this embodiment, please refer to Figure 3 , is a schematic diagram of the internal structure of an entropy filtering module in a text reasoning problem processing optimization system provided by an embodiment of the present invention. The entropy filtering module 202 is used to calculate the entropy of each answer in each set of data, and filter the data with entropy greater than a preset filter value to obtain a second thinking chain data set, specifically including: a frequency statistics submodule 301, an entropy calculation submodule 302 and a data filtering submodule 303.

[0078] The frequency statistics submodule 301 is used to count the frequency of occurrence of each answer in each set of data, and use the frequency of occurrence of each answer as the probability of occurrence of each answer.

[0079] The entropy calculation submodule 302 is used to obtain the entropy of each answer according to the entropy calculation formula and the probability of occurrence of each answer.

[0080] The data filtering submodule 303 is used to filter the data whose entropy is greater than a preset filtering value to obtain a second thinking chain data set.

[0081] The candidate group determination module 203 is used to obtain a test question, and retrieve a number of data semantically related to the test question from the second thinking chain data set through the double tower model as a candidate group, specifically including: calculating the similarity between each group of data in the second thinking chain data set and the test question according to the encoding similarity calculation formula of SentenceBERT, and extracting the data corresponding to the first several similarities in the similarity numerical sorting as the candidate group.

[0082] In this embodiment, please refer to Figure 4 , is a schematic diagram of the internal structure of an answer determination module in a text reasoning problem processing optimization system provided by an embodiment of the present invention. The answer determination module 204 is used to obtain a test question reference group through a large language model according to the test question and each candidate group, and obtain the answer corresponding to the test question according to the test question reference group, and specifically includes: a reference group determination submodule 401 and an answer extraction submodule 402.

[0083] The reference group determination submodule 401 is used to use the test question and each candidate group as input of the large language model, and select a test question reference group from each candidate group through the large language model in combination with the instruction prompt;

[0084] The answer extraction submodule 402 is used to obtain the answer corresponding to the test question through the large language model according to the test question reference group.

[0085] The system provided by the present invention improves the performance of text reasoning tasks through a "pre-annotation + retrieval" framework, while not compromising the performance of the large language model on other tasks. By pre-annotating text reasoning data, the cost and difficulty of data collection are reduced, and the optimization of text reasoning problem processing can be achieved when the annotated data is scarce or completely unavailable; by using the large language model to retrieve useful thought chain paths for itself from semantically related data, compared to the system that needs to update the model parameters, the system of the present invention can be applied to the current common language model reasoning application programming interface scenarios, which can significantly reduce computing and resource consumption, and achieve more efficient processing of text reasoning problems.

[0086] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A text reasoning problem processing optimization method, It is characterized in that include: Obtain a text reasoning question dataset without thought chain annotations, and perform thought chain annotations on the text reasoning question dataset without thought chain annotations through a large language model to obtain a first thought chain dataset; wherein each set of data in the first thought chain dataset includes a question, a plurality of thought chains, and a plurality of answers; Calculating the entropy of each answer in each set of data, and filtering the data whose entropy is greater than a preset filtering value to obtain a second thinking chain data set; Obtaining a test question, and retrieving a number of pieces of data semantically related to the test question from the second thinking chain data set through the double tower model as a candidate group; According to the test question and each of the candidate groups, a test question reference group is obtained through a large language model, and according to the test question reference group, an answer corresponding to the test question is obtained.

2. The text reasoning problem processing optimization method as claimed in claim 1, It is characterized in that The method of performing thought chain annotation on the text reasoning question dataset without thought chain annotation by using a large language model to obtain a first thought chain dataset specifically includes: A data set of text reasoning problems without thought chain annotations is used as the input of a large language model. Through the large language model, a number of thought chains and a number of answers corresponding to each group of data in the data set of text reasoning problems without thought chain annotations are obtained to obtain a first thought chain data set; wherein the large language model is obtained by training based on a number of text reasoning problems with thought chain annotations.

3. The text reasoning problem processing optimization method as claimed in claim 1, It is characterized in that The calculating the entropy of each answer in each set of data and filtering the data whose entropy is greater than a preset filtering value to obtain the second thinking chain data set specifically includes: Count the frequency of each answer in each set of data, and use the frequency of each answer as the probability of each answer; According to the entropy calculation formula, combined with the probability of each answer appearing, the entropy of each answer is obtained respectively; The data with entropy greater than the preset filtering value is filtered to obtain the second thinking chain data set.

4. The text reasoning problem processing optimization method as claimed in claim 1, It is characterized in that The method of retrieving a plurality of pieces of data semantically related to the test question from the second thinking chain data set through the double tower model as a candidate group specifically includes: According to the encoding similarity calculation formula of SentenceBERT, the similarity between each group of data in the second thinking chain data set and the test question is calculated, and the data corresponding to the first several similarities in the similarity numerical ranking are extracted as candidate groups.

5. The text reasoning problem processing optimization method as claimed in claim 1, It is characterized in that The step of obtaining a test question reference group based on the test question and each of the candidate groups through a large language model, and obtaining an answer corresponding to the test question based on the test question reference group, specifically includes: The test question and each candidate group are used as inputs of the large language model, and combined with instruction prompts, a test question reference group is selected from each candidate group through the large language model; According to the test question reference group, answers corresponding to the test questions are obtained through a large language model.

6. A text reasoning problem processing optimization system, It is characterized in that include: A thought chain annotation module is used to obtain a text reasoning problem data set without thought chain annotations, and annotate the text reasoning problem data set without thought chain annotations with thought chains through a large language model to obtain a first thought chain data set; wherein each set of data in the first thought chain data set includes a question, a plurality of thought chains, and a plurality of answers; An entropy filtering module, used to calculate the entropy of each answer in each set of data, and filter the data whose entropy is greater than a preset filtering value to obtain a second thinking chain data set; A candidate group determination module is used to obtain a test question and retrieve a number of data semantically related to the test question from the second thinking chain data set through a double tower model as a candidate group; The answer determination module is used to obtain a test question reference group based on the test question and each candidate group through a large language model, and obtain an answer corresponding to the test question based on the test question reference group.

7. The text reasoning problem processing optimization system as claimed in claim 6, It is characterized in that The thought chain annotation module specifically includes: A data set of text reasoning problems without thought chain annotations is used as the input of a large language model. Through the large language model, a number of thought chains and a number of answers corresponding to each group of data in the data set of text reasoning problems without thought chain annotations are obtained to obtain a first thought chain data set; wherein the large language model is obtained by training based on a number of text reasoning problems with thought chain annotations.

8. The text reasoning problem processing optimization system as claimed in claim 6, It is characterized in that The entropy filtering module specifically includes: The frequency statistics submodule is used to count the frequency of each answer in each group of data, and use the frequency of each answer as the probability of each answer; An entropy calculation submodule, used to obtain the entropy of each answer according to the entropy calculation formula and the probability of occurrence of each answer; The data filtering submodule is used to filter the data whose entropy is greater than a preset filtering value to obtain a second thinking chain data set.

9. The text reasoning problem processing optimization system as claimed in claim 6, It is characterized in that The candidate group determination module specifically includes: According to the encoding similarity calculation formula of SentenceBERT, the similarity between each group of data in the second thinking chain data set and the test question is calculated, and the data corresponding to the first several similarities in the similarity numerical ranking are extracted as candidate groups.

10. The text reasoning problem processing optimization system according to claim 6, It is characterized in that The answer determination module specifically includes: A reference group determination submodule is used to use the test question and each candidate group as input of the large language model, and select a test question reference group from each candidate group through the large language model in combination with the instruction prompt; The answer extraction submodule is used to obtain the answer corresponding to the test question through the large language model according to the test question reference group.

Citation Information

Cited By

  • Toxic thinking chain analysis and optimization method and device for large language model

    CN119476482A

  • Multi-modal large model self-reinforcement learning method based on thinking chain guidance

    CN119670878A

  • Chain-of-thought-pool-based method and system for implementing stable outputs of large models

    WO2026098618A1