Complex problem reasoning method based on dynamic collaboration of large language model and domain knowledge base

Through the dynamic collaboration of large language models and domain knowledge bases and the Monte Carlo tree search algorithm, the problem of insufficient understanding and reasoning capabilities of language models in complex scientific research knowledge processing is solved, multiple rounds of exploration and strategy optimization are achieved, and the accuracy of scientific research problems is improved. Treatment effectiveness and accuracy of knowledge acquisition.

CN118798368AInactive Publication Date: 2024-10-18INSPUR SOFTWARE TECH CO LTD

Patent Information

Application Number
CN202411273469.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing language models have difficulty accurately understanding professional terminology and complex logical relationships when processing complex scientific research knowledge. They lack the ability to think multiple rounds and comprehensively utilize information, and are unable to follow up on the latest scientific research knowledge in a timely manner. The reasoning process is linear and lacks flexibility.

Method used

Adopting a dynamic collaboration method based on a large language model and domain knowledge base, through multiple rounds of collaborative reasoning framework and reinforcement learning strategy optimization, it achieves deep collaboration between the language model and external knowledge base, dynamically acquires and integrates new knowledge, and adopts Monte Carlo tree search algorithm Conduct multiple rounds of interaction and strategy optimization.

Benefits of technology

It significantly improves the understanding and reasoning capabilities of complex scientific research problems, realizes multiple rounds of exploration and adaptive strategy adjustment of language models, and can handle complex problems like human experts, providing instant, accurate and comprehensive answers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798368A_ABST
    Figure CN118798368A_ABST
Patent Text Reader

Abstract

The invention provides a complex problem reasoning method based on dynamic collaboration of a large language model and a domain knowledge base, belongs to the field of natural language processing, and constructs a multi-round collaborative reasoning framework to seamlessly integrate a pre-trained large-scale language model and a specially constructed domain knowledge base. Wherein the language model is responsible for performing semantic understanding, task decomposition, knowledge extraction and the like on scientific research problems; the domain knowledge base is constructed by mass scientific research literatures through fine-grained semantic indexes, and can provide accurate and comprehensive external knowledge support for language model reasoning. In the reasoning process, the language model actively queries related literature data from the knowledge base in multiple rounds according to task requirements, and dynamically integrates the obtained new knowledge into the subsequent reasoning step, so that collaborative enhancement of cognitive reasoning and knowledge retrieval is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language processing and knowledge reasoning, and in particular to a complex problem reasoning method based on dynamic collaboration between a large language model and a domain knowledge base. Background Art

[0002] With the rapid development of natural language processing and artificial intelligence technologies, pre-trained large-scale language models have made breakthrough progress in tasks such as language understanding, question answering, dialogue, and text generation. These models have acquired rich language knowledge and semantic representation capabilities through pre-training on massive text data, and their performance continues to improve as the model size and training data grow.

[0003] However, existing language models still face the following specific challenges when processing complex scientific research knowledge: 1. Scientific research literature contains a large number of professional terms, complex concepts and their intricate logical relationships. Traditional language models find it difficult to accurately understand their semantic information and conceptual associations.

[0004] 2. Scientific research knowledge reasoning requires the ability to think, explore, and utilize information in multiple rounds, while existing language models mainly focus on single input and output tasks and perform poorly in tasks such as reasoning and planning that require multiple rounds of interaction and feedback.

[0005] 3. Answers to scientific research knowledge need to be timely, especially in cutting-edge fields such as artificial intelligence, where the technology iteration cycle is about half a year to a year. Traditional pre-training methods cannot keep up with the latest scientific research knowledge in a timely manner.

[0006] Specifically, although traditional language model reasoning methods, such as prompt learning based on thought chains, have endowed language models with reasoning capabilities to a certain extent, the reasoning process is linear and lacks exploration of different reasoning paths. In addition, existing methods mainly rely on internal knowledge of the model and rarely use external information and real-time feedback to optimize and improve the reasoning process. Although specially constructed scientific research literature retrieval systems can inject external knowledge into language models, how to achieve instant communication and supplementation with language models is still an urgent problem to be solved. From the perspective of cognitive science and psychology research, human experts often adopt a strategy of continuous thinking and dynamic planning when solving complex problems, envisioning multiple ideas, obtaining clues through external interactions, evaluating and selecting the optimal path, and adjusting strategies based on new cognition. However, existing language model reasoning methods still need to be strengthened in terms of flexibility, multi-round exploration and optimization, etc. Summary of the invention

[0007] In order to solve the above technical problems, the present invention provides a complex problem reasoning method based on the dynamic collaboration of a large language model and a domain knowledge base, aiming to build a new paradigm of scientific research knowledge reasoning that is intelligent, precise, and sustainably optimized, so as to significantly improve the understanding of complex scientific research problems and the ability to solve them in a step-by-step manner.

[0008] The technical solution of the present invention is: A complex problem reasoning method based on dynamic collaboration between a large language model and a domain knowledge base includes the following steps: (1) Pre-train a large-scale language model to master the background knowledge and complex concepts in the scientific research field and understand the professional terms, logical relationships, and prior knowledge in scientific research literature; (2) Build a professional search engine for scientific research literature, perform fine-grained semantic indexing on a large number of academic papers, patents, scientific reports, etc., and support multiple search methods based on keywords, semantics, citations, etc.; (3) Design a multi-round collaborative reasoning framework that allows the language model to proactively and multi-roundly request relevant information from the search engine based on the requirements of the reasoning task, and dynamically integrate the acquired new knowledge into the reasoning process; (4) In the collaborative reasoning framework, through key steps such as task relationship decomposition, targeted data search, data logic combing, question relationship analysis, and answer generation optimization, the language model and the search engine are deeply coordinated to generate accurate, complete, and reliable reasoning answers; (5) Introducing a strategy optimization mechanism based on reinforcement learning, so that the language model can adaptively adjust the reasoning strategy and retrieval strategy according to the question type and data characteristics; (6) Incorporating self-reflection and continuous learning modules enables the language model to summarize lessons learned in reasoning, dynamically update and improve its own domain knowledge graph, and continuously improve its reasoning ability for complex scientific research problems.

[0009] Furthermore, in the multi-round collaborative reasoning framework of step (3), the following sub-steps are further included: (3.1) Task relationship decomposition: The language model performs semantic analysis on the user's scientific research questions, extracts the core concepts, key terms, prior knowledge, etc., and forms a structured reasoning task spectrum; (3.2) Targeted data search: Based on the reasoning task spectrum, the language model actively submits targeted search requests to the search engine to collect scientific research literature data with corresponding concepts, terms, and backgrounds; (3.3) Logical sorting of data: The language model performs semantic understanding and logical relationship extraction on the searched data, constructs progressive, parallel, and transitional relationships between concepts, and forms a structured knowledge graph; (3.4) Question relationship analysis: deeply associate user questions with the data knowledge graph, explore the core concepts, pre-concepts, and extended concepts involved in the questions, and find the key clues to the questions; (3.5) Answer generation optimization: Based on a full understanding of the data, the language model uses a combination of reasoning strategies (such as induction, deduction, analogy, etc.) and dynamically organizes the answer structure based on the characteristics of the question to provide an answer that is rich in content and clear in logic.

[0010] Furthermore, in step (5), a language model reasoning and interactive learning method is adopted, including the following steps: (5.1) The pre-trained large-scale language model is regarded as an intelligent agent, which can explore and plan in the action space and state space based on the Monte Carlo Tree Search (MCTS) algorithm: (5.2) Define an action space that includes thought and actual operation, allowing the language model to flexibly switch between cognitive reasoning and actual operation, and realize multiple rounds of interaction with the external environment: (5.3) A node value evaluation function that integrates language model valuation and self-consistency score is introduced to guide the construction of the MCTS search tree and node selection, balancing the use of known high-value nodes and the exploration of new nodes: (5.4) Through real-time environmental feedback and language model-based strategy evaluation, the key steps of MCTS such as search tree node expansion, evaluation, simulation, and backtracking are realized to find the optimal problem-solving path: (5.5) Incorporating a reflection mechanism enables the language model to summarize and analyze the decision-making process after each round of interaction, extract lessons learned, and use them as prior knowledge to participate in subsequent decision-making, thereby achieving dynamic optimization and self-improvement of strategies: (5.6) Through continuous reasoning practice and environmental interaction, the language model can continuously learn and accumulate domain knowledge, forming a general intelligent agent paradigm with the capabilities of multi-round interaction, strategy optimization, and autonomous learning.

[0011] Specific implementation: For the above steps, take the specific formula as an example to explain: First, define the model variables required. Refers to the large language model. It is a node in the inference tree, representing a state, which contains the original question , Actions performed 、Feedback received . The specific actions included are: (perform a search), (Summarize), (fallback), (generate answers), (Reflection). It is the status The evaluation function of , here can be a separately trained reinforcement learning model or a fine-tuned large language model evaluation function Given. A fine-tuned scoring model can also be used. Design a Monte Carlo search tree for the above content .

[0012] The algorithm flow is as follows: Algorithm flow: 1. Initialization: Define the representation of states, including the original problem, the initial empty action sequence, and the initial observed result sequence. Formally, a state It is expressed as:

[0013] in is the original question, is the sequence of actions taken, is the observed result sequence. Initialization state , which means there is only the original question, without any actions and observations. Initialize the best answer .

[0014] 2. Search loop: From the initial state Start by repeating the following steps until the termination condition is met: a. Action generation: - Use prompt words to build functions , the current state Convert to prompt word : ; - The prompt word Input to language model Generate the next step : .

[0015] b. Action execution: - Execute an action , and obtain new observations ; - Update status is .

[0016] c. Evaluation: - For new status , using the evaluation function Estimate its value.

[0017] d. Select: - Use the selection function , according to the new state Select the next action to expand: ;

[0018] e. Termination of judgment: - If any of the following conditions are met, the search loop will be exited: - Find a satisfactory answer (according to the definition of the problem) - Maximum search depth reached

[0019] - No more actions can be performed - If the current state Contains an answer that is better than , then update For this answer.

[0020] f. Reflective judgment: - If the current state Satisfy the reflection trigger conditions , then perform the reflection operation: - Use prompt words to build functions , the current state Combined with a fixed error prompt to form a reflection prompt word ; - Reflection prompt words Input to language model Generate reflection text : ; - Add reflection text $r$ to state In, a new state is formed.

[0021] g. Backward Propagation: - If the current state is a terminal state, then perform the back propagation operation: - Calculate the actual value of the state For a satisfactory termination state, : For unsatisfactory termination status, ; - For each state on the search path , update its value estimate: ; - Update state-action pairs Number of visits: ; .

[0022] 3. Output results: - if , then the output As a solution to the problem; - Otherwise, output "No satisfactory solution found".

[0023] The core initialization model and parameter variables of the algorithm include the following: - Language Model ; - Prompt word construction function ; - Action Space ; - State evaluation function ; - Select function and the implementation UCB (Upper Confidence Bound) adopted in this patent; - Maximum search depth .

[0024] The functions of the three formulas are: Select Function , Among them, UCB (Upper Confidence Bound) implements the formula of the selection function: , in: - is in state Next, select the action;

[0025] - Indicates selecting the action that maximizes the expression in the square brackets. ;

[0026] - is a state-action pair Estimated value of;

[0027] - Yes Status Number of visits;

[0028] - is a state-action pair Number of visits;

[0029] - is a hyperparameter that controls the degree of exploration.

[0030] The core of this formula evaluation consists of two parts: 1. Value estimation : This item indicates the Take action The algorithm is encouraged to choose actions that have performed well in the past.

[0031] 2. Exploration Item$ $: The value of this item is consistent with the state-action pair The value of this term is inversely proportional to the number of times it is visited. The algorithm is encouraged to choose actions that are visited less frequently. When a state-action pair is visited frequently, the value of this term will decrease, thereby reducing the exploration of this action.

[0032] Hyperparameters The relative importance of these two items was controlled. The larger the value of , the more the algorithm tends to explore: The smaller the value of , the more the algorithm tends to exploit .

[0033] State evaluation function It consists of two parts: language model score and self-consistency score .

[0034] Formally, the state evaluation function is defined as:

[0035] in: - is the language model for the state The score reflects the status The language model considers the state of the language to be reasonable and natural. This score is obtained by asking the language model The confidence level of the answer is obtained;

[0036] - Yes Status The self-consistency score encourages the algorithm to choose actions that can be obtained by multiple samplings in the same state. This score can be obtained by statistically analyzing the state The sampling frequency of different actions is used for calculation;

[0037] - is a hyperparameter used to balance the importance of the language model score and the self-consistency score.

[0038] The state evaluation function attempts to balance two aspects: the rationality and naturalness of the state in the language model, and the language model score To measure the consistency and stability of action selection in the state, the self-consistency score is To measure.

[0039] 1. Language model score : Language model score Reflects the status In language model This score is calculated by asking the language model the state Specifically, given a state , you can build a , the state The information (such as the sequence of actions performed and the observed results) is presented to the language model, and then the language model is asked to generate the confidence or probability of a certain answer in the current state. This confidence or probability can be used as the language model score.

[0040] Formally, the language model score can be expressed as:

[0041] in is the language model, Is the answer of concern, According to the status Constructed . Indicates that the language model is Under the instructions Generate answers under conditions The confidence or probability.

[0042] Intuitively, if a state can lead the language model to generate an answer with high confidence, then this state seems reasonable and natural to the language model, and therefore should get a high language model score.

[0043] 2. Self-consistency score : Self-consistency score Measured in state The consistency and stability of action selection under the condition of Specifically, during the search process, each state will be visited multiple times, and each visit will be in the state Downsample an action. If an action is in state If it is sampled multiple times, then it can be considered that this action is in state The following is self-consistent and should therefore receive a high self-consistency score.

[0044] Formally, the self-consistency score can be expressed as:

[0045] in is the set of all actions sampled in state $s$, It's action In Status This formula calculates the second-order moment of the action sampling frequency and then divides it by the total number of samples to normalize. Intuitively, if in state In this case, some actions are repeatedly sampled very frequently, so the self-consistency score of this state will be very high.

[0046] The self-consistency score reflects the encouragement of the algorithm to make consistent and stable decisions in the same state. If the action selection in a state is random and inconsistent, then the self-consistency score of this state will be low. By introducing the self-consistency score, the model method attempts to find states that can guide the algorithm to make consistent and deterministic decisions.

[0047] Taken together, the language model score and the self-consistency score provide two different but complementary perspectives to evaluate the value of the state. The language model score focuses on the rationality of the state in terms of language understanding and generation, while the self-consistency score focuses on the stability of the state in terms of decision consistency. By balancing these two scoring state evaluation functions, we try to find states that are both consistent with language logic and can lead to consistent decisions. This comprehensive state evaluation mechanism is an important reason why LATS can achieve good performance in complex language reasoning and decision-making tasks.

[0048] Algorithm output: - The solution to the problem (if found) or the current best answer.

[0049] The present invention constructs a multi-round collaborative reasoning framework, which seamlessly integrates a pre-trained large-scale language model and a specially constructed domain knowledge base. Among them, the language model is responsible for semantic understanding, task decomposition and knowledge extraction of scientific research problems, etc. The domain knowledge base is constructed by a large amount of scientific research literature through fine-grained semantic indexing, which can provide accurate and comprehensive external knowledge support for language model reasoning. During the reasoning process, the language model actively and multi-roundly queries the knowledge base for relevant literature materials according to task requirements, and dynamically integrates the acquired new knowledge into subsequent reasoning steps to achieve synergistic enhancement of cognitive reasoning and knowledge retrieval.

[0050] The collaborative reasoning framework of the present invention includes five key technical steps: task relationship decomposition, directional data search, data logic combing, question relationship analysis and answer generation optimization. The language model uses a large language model to describe the complex semantic relationships such as progression, parallelism and transition between concepts through deep semantic understanding, and dynamically constructs a knowledge graph. It also uses induction, deduction, analogy and other reasoning strategies, and dynamically plans the answer structure based on the characteristics of the question to generate answers with rich content and clear logic.

[0051] In addition, the present invention introduces a dynamic optimization mechanism for reasoning strategies based on reinforcement learning. The reward mechanism guides the language model to learn to adaptively adjust the reasoning and knowledge use strategies according to the type of questions and data characteristics, and through self-reflection and continuous learning modules, it can continuously accumulate experience from reasoning practice, dynamically update and improve domain knowledge, and achieve continuous improvement of reasoning ability.

[0052] This invention innovatively integrates cutting-edge technologies in multiple fields such as natural language processing, information retrieval, and knowledge reasoning, creating a new paradigm for scientific research knowledge reasoning that is collaboratively enhanced by language models and knowledge bases. This method can deal with complex scientific research problems more intelligently, efficiently, and robustly, and provide important technical support for scientific research knowledge services and innovation.

[0053] The beneficial effects of the present invention are: 1. Significantly improve the reasoning and solving capabilities of complex scientific research problems: This invention integrates large-scale language models and domain knowledge bases to build a multi-round collaborative reasoning framework, which can deeply understand and systematically solve complex scientific research problems like human experts. This method has significant advantages in semantic understanding, knowledge capture, logical reasoning, etc., and greatly improves the processing effect of complex problems.

[0054] 2. Realize dynamic collaboration between language model and external knowledge: By introducing professional search engines and knowledge bases, and designing a mechanism for language models to interact with them, the present invention breaks through the bottleneck of traditional language models that are closed and cannot be dynamically expanded. The language model can actively acquire the external knowledge required for reasoning tasks and dynamically integrate it into the reasoning process, realizing the instant supplementation and updating of knowledge and improving the accuracy and comprehensiveness of reasoning.

[0055] 3. Give the language model the ability to perform multiple rounds of exploration, reasoning, and strategy optimization: This paper introduces an MCTS-based exploration mechanism and a reinforcement learning-based strategy optimization mechanism into the reasoning framework, so that the language model has the ability to perform multiple rounds of exploration, reasoning, and adaptive strategy adjustment. This method overcomes the limitations of the traditional language model reasoning process, which is single, linear, and lacks feedback optimization, and enables it to explore the problem solution space more flexibly and efficiently and find the optimal reasoning path.

[0056] 4. Realize metacognition and continuous learning, and continuously evolve reasoning ability: By integrating self-reflection and continuous learning modules, the present invention endows the language model with metacognition and self-optimization capabilities. The language model can summarize lessons learned from reasoning practice, adjust reasoning strategies, and transfer knowledge to new tasks. This allows the system's reasoning ability to continuously evolve and improve in continuous application practice, with the characteristics of self-improvement. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 It is a schematic diagram of the workflow of the present invention. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0059] The present invention proposes a new method of scientific research knowledge reasoning and question-answering based on the collaboration of a large-scale pre-trained language model and a professional field search engine, aiming to significantly improve the ability to understand and answer complex scientific research questions. In the field of natural language processing, the present invention uses a pre-trained language model for semantic understanding, knowledge extraction, and logical reasoning, etc.: in the field of knowledge reasoning, the present invention constructs a special scientific research knowledge base, and designs a multi-round reasoning framework for deep collaboration between the language model and the knowledge base. In addition, the present invention also innovatively introduces cutting-edge technologies in the field of artificial intelligence, including Monte Carlo tree search, action space expansion, etc., to guide language models to make autonomous decisions and continuous learning. Through the integrated application of technologies such as language model reasoning, interactive learning, and strategy optimization, the present invention constructs a continuously evolving and self-improving scientific research knowledge reasoning paradigm.

[0060] Suppose there is a question-answering dataset, where each sample contains a question, a relevant context text, and a reference answer. The goal is to train a LATS-based question-answering model that can generate the correct answer based on the given question and context.

[0061] 1. Define state representation: Each state Represented as a triple ,in: - It is an input question, such as "Where is the headquarters of Inspur Group? What branches does it have? Where are its main businesses concentrated?" - It is contextual text related to the question, such as a Wikipedia article containing information about Inspur Group;

[0062] - It is the sequence of actions performed to reach the current state, such as a series of retrieval and reasoning operations.

[0063] 2. Calculation of language model score: Given a state , construct the following : question:

[0064] Searched context:

[0065] Actions performed:

[0066] Based on current information, the answer is: Then put this Input to a pre-trained language model , and calculate the probability that the model will generate a specific word token (such as " "):

[0067] This probability reflects the language model's confidence that the current state can generate a complete answer.

[0068] 3. Calculation of self-consistency score: During the search process, each state is visited When sampling an action And update the action counter .

[0069] For example, if in the state Next, the action of "Where is the headquarters of Inspur" is repeatedly sampled, then the corresponding counter The value will increase.

[0070] When the self-consistency score needs to be calculated, it is calculated according to the following formula:

[0071] 4. Calculation of state evaluation function: Set a weight parameter , and then calculate the state evaluation function according to the following formula:

[0072] This means that 70% of the weight is assigned to the language model score and 30% of the weight is assigned to the self-consistency score.

[0073] 5. Application in the search process: During the search process, each time a new state is expanded , perform the following steps: a. Build prompt , formatting the question, context, and action sequence into a form that the language model can understand.

[0074] b. Input prompt into the language model and calculate The generation probability of the tag is obtained, and the language model score $LM(s)$ is obtained.

[0075] c. In state Downsampling a new action , and update the action counter .

[0076] d. Calculate the self-consistency score based on the updated action counter .

[0077] e. According to the preset weight parameters , calculate the state evaluation function .

[0078] f. Use the calculated state value To guide the selection of the next action, for example, in the UCB algorithm, those High and less explored actions.

[0079] By repeatedly executing the above steps, a high-quality question-answering path can be found in the search space. At each step, it comprehensively considers the value of the current state in terms of language understanding (through the language model score) and decision consistency (through the self-consistency score) to make wise action choices.

[0080] Eventually, when the search reaches a terminal state (e.g., a complete answer is generated), all the context along the search path can be combined to give the best final answer.

[0081] (Workflow for the second version) Algorithm flow: 1. Initialization: ` - Define how the state is represented , including the original question , Action sequence taken and the observed sequence of results ;

[0082] - Define the action space including , , , , and the longest exploration depth ;

[0083] - Define prompt word construction function , used to assist in the decision-making of transition actions (manual rule construction is adopted here);

[0084] - Define language model , used to generate actions or when the longest exploration depth is reached Then generate reflective text;

[0085] - Define search strategies, such as breadth-first, depth-first, heuristic search, etc.;

[0086] - Set termination conditions, such as finding the answer, reaching the maximum search depth, etc.

[0087] 2. Search loop: - From the initial state Start by repeating the following steps until the termination condition is met: a. Action generation: - Use prompt words to build functions , the current state Convert to prompt word ; - The prompt word Input to language model Generate the next step .

[0088] b. Action execution: - Execute an action , and obtain new observations ; - Update status is ,Will Add to the action sequence, Add to the observation sequence.

[0089] c. Termination judgment: - If the termination condition is met (such as finding the answer, reaching the maximum search depth, etc.), then exit the search loop.

[0090] d. Reflection and judgment: - If the current state is an undesirable terminal state (such as a wrong answer), perform reflection operations: - Use prompt words to build functions , the current state Combined with a fixed error prompt to form a reflection prompt word ; - Reflection prompt words Input to language model Generate reflection results ; - Reflect on the text Add to Status In, a new state is formed.

[0091] e. Search strategy: - Select the next state to expand based on a predefined search strategy (such as breadth-first, depth-first, heuristic search, etc.).

[0092] 3. Output results: - If a satisfactory answer is found, output the answer; - If the maximum search depth or other termination condition is reached, output the current best answer (if any).

[0093] In this process, the language model And the prompt word construction function Played a key role: Responsible for converting the state into prompt words that the language model can understand, It is responsible for generating the next action and reflection text based on the prompt words.

[0094] The present invention significantly improves the ability of the language model to understand the semantic information of scientific research literature and to depict the complex logical relationships between concepts, so that it can grasp the internal connections of scientific research knowledge more accurately and comprehensively; through dynamic collaboration with external scientific research literature knowledge bases, it realizes the instant supplement and expansion of language model knowledge, breaking through the bottleneck of its knowledge closure; it gives the language model the reasoning and decision-making capabilities of multiple rounds of thinking, exploration, and dynamic planning, so that it can simulate the problem-solving ideas of human experts and efficiently handle complex reasoning tasks; it expands the application boundaries of the language model, realizes the integration of multiple intelligent capabilities such as language understanding, knowledge reasoning, strategy planning, and interactive learning, and lays a technical foundation for its growth into a general intelligent entity; it innovates the intelligent model of scientific research knowledge services, provides scientific researchers with more accurate, efficient, and intelligent knowledge acquisition and problem-solving services, and promotes scientific research innovation.

[0095] The above description is only a preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, and is not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A complex problem reasoning method based on dynamic collaboration between a large language model and a domain knowledge base, It is characterized in that The steps include: (1) Pre-training large-scale language models to enable them to master the background knowledge and concepts in the scientific research field and understand the professional terms, logical relationships, and prior knowledge in scientific research literature; (2) Build a professional search engine for scientific research literature, perform fine-grained semantic indexing on massive academic papers, patents, and scientific reports, and support search methods based on keywords, semantics, and citations; (3) Design a multi-round collaborative reasoning framework that allows the language model to proactively and multi-roundly request relevant information from the search engine based on the requirements of the reasoning task, and dynamically integrate the acquired new knowledge into the reasoning process; (4) In the collaborative reasoning framework, the language model and the search engine are used to generate reasoning answers through the steps of task relationship decomposition, targeted data search, data logic combing, question relationship analysis, and answer generation optimization; (5) Introducing a strategy optimization mechanism based on reinforcement learning, so that the language model can adaptively adjust the reasoning strategy and retrieval strategy according to the question type and data characteristics; (6) Incorporating self-reflection and continuous learning modules enables the language model to summarize lessons learned in reasoning, dynamically update and improve its own domain knowledge graph, and continuously improve its reasoning ability for complex scientific research problems.

2. The method according to claim 1, It is characterized in that In the multi-round collaborative reasoning framework of step (3), the following steps are included: Task relationship decomposition: The language model performs semantic analysis on the user's scientific research questions, extracts the concepts, terms, and prior knowledge, and forms a structured reasoning task spectrum; Targeted data search: Based on the spectrum of reasoning tasks, the language model actively submits targeted search requests to the search engine to collect scientific research literature with corresponding concepts, terms, and backgrounds.

3. The method according to claim 2, It is characterized in that Also includes: Logical sorting of data: The language model performs semantic understanding and logical relationship extraction on the searched data, constructs progressive, parallel, and transitional relationships between concepts, and forms a structured knowledge graph; Question relationship analysis: Associate user questions with the data knowledge graph, explore the core concepts, pre-concepts, and extended concepts involved in the questions, and find clues to the problems.

4. The method according to claim 3, It is characterized in that It also includes answer generation optimization: based on the understanding of the data, the language model comprehensively uses reasoning strategies, dynamically organizes the answer structure based on the characteristics of the question, and gives the answer.

5. The method according to claim 1, It is characterized in that In step (5), the language model inference and interactive learning methods are adopted, including Treat the pre-trained large-scale language model as an intelligent agent, enabling it to explore and plan in action space and state space based on the Monte Carlo tree search algorithm; Define an action space that includes thinking and reasoning Thought and actual operation Action, allowing the language model to flexibly switch between cognitive reasoning and actual operation, and realize multiple rounds of interaction with the external environment.

6. The method according to claim 5, It is characterized in that A node value evaluation function that integrates language model valuation and self-consistency score is introduced to guide the construction of the MCTS search tree and node selection, balancing the use of known high-value nodes and the exploration of new nodes.

7. The method according to claim 6, It is characterized in that Through immediate environmental feedback and language model-based strategy evaluation, the key MCTS steps of expanding, evaluating, simulating, and backtracking the search tree nodes are implemented to find the optimal problem-solving path.

8. The method according to claim 7, It is characterized in that By incorporating a reflection mechanism, the language model can summarize and analyze the decision-making process after each round of interaction, extract lessons learned, and use the knowledge as prior knowledge to participate in subsequent decision-making, thus achieving dynamic optimization and self-improvement of the strategy.

9. The method according to claim 8, It is characterized in that Through continuous reasoning practice and environmental interaction, the language model can continuously learn and accumulate domain knowledge, forming a general intelligent agent paradigm with multi-round interaction, strategy optimization, and autonomous learning capabilities.

Citation Information

Patent Citations

  • Large model training method and system based on self-provincial inversion

    CN117851829A

  • Deep reading method and system based on knowledge graph

    CN118193748A

  • LLM Agent problem solving method and system based on reasoning, planning and reflection

    CN118260339A

  • Prompt game learning-based planning method during generation of large language model agent

    CN118468920A

  • Method for AI language self-improvement agent using language modeling and tree search techniques

    US11645479B1

Cited By

  • Construction method and system based on encephalopathy nursing knowledge base

    CN119129728A

  • Law supervision clue mining method and system based on full-text retrieval and large model

    CN119149569A

  • Abnormality processing method, exception processing model training method, electronic equipment, computer storage medium and program product

    CN119150035A

  • Multi-agent-based grid treatment knowledge graph construction method

    CN119150978A

  • Multi-agent reasoning framework construction method based on meta-cognitive thought

    CN119476492A