An adaptive decision-making method, system and storage medium based on a large language model
Through adaptive decision-making methods and multi-disciplinary team collaboration, the problem of knowledge limitations and insufficient reasoning capabilities of a single large language model in complex problem processing is solved, and cross-domain knowledge fusion and efficient decision-making of complex problems are achieved.
Patent Information
- Application Number
- CN202410953959.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-17
AI Technical Summary
A single large-scale language model has knowledge limitations and insufficient reasoning capabilities when dealing with complex and cross-domain problems, making it difficult to generate reliable results.
Through the adaptive decision-making method based on the large language model, the expert model collaboration strategy is automatically selected based on the complexity assessment results of the input problem, a multi-disciplinary team is formed for reasoning and discussion, and opinions are integrated to generate the final decision, and through multi-round dialogue mechanisms and integrated technologies Optimize decisions.
It significantly improves the reasoning ability and decision-making accuracy when dealing with complex problems, makes up for the knowledge limitations of a single model, and achieves cross-domain knowledge fusion and collaborative reasoning.
Smart Images

Figure CN118503394B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to natural language processing technology, and in particular to an adaptive decision-making method, system and storage medium based on a large language model. Background Art
[0002] As an important breakthrough in the field of artificial intelligence, Large Language Models (LLMs) have received extensive attention and application in recent years. LLMs can learn rich language knowledge and world knowledge by pre-training on massive text data, and have achieved remarkable results in natural language processing tasks such as text classification, named entity recognition, and question-answering systems.
[0003] Although LLMs perform well in dealing with relatively simple and common tasks, when faced with highly complex, cross-domain problems that require in-depth analysis, a single model often fails to provide satisfactory answers. The main problems are as follows:
[0004] (1) Knowledge limitations: Due to its inherent architecture and training method, the traditional single LLM has limited in-depth knowledge in specific fields and is unable to meet the needs of complex interdisciplinary problems.
[0005] (2) Insufficient reasoning ability: LLMs have limited ability to perform multi-step logical reasoning. For tasks that require complex reasoning and decision-making, a single model often has difficulty generating reliable results. Summary of the invention
[0006] In order to solve the technical problems existing in the above-mentioned background technology, the present invention provides an adaptive decision-making method, system and storage medium based on a large language model, which can flexibly call and combine in-depth knowledge in various fields, help to make up for the knowledge limitations of a single model and realize cross-domain knowledge fusion and collaborative reasoning, thereby helping to greatly improve the reasoning ability when dealing with complex problems.
[0007] In order to implement the above technical solution, in a first aspect, the present invention provides an adaptive decision method based on a large language model, comprising the following steps:
[0008] Step 1: Evaluate the complexity of the input problem and generate a complexity evaluation result; wherein the complexity evaluation result includes: low complexity level, medium complexity level and high complexity level;
[0009] Step 2: Automatically select an expert model collaboration strategy based on the complexity assessment results; the expert model strategy includes selecting a single expert model, forming a multi-science team including multiple expert models, and forming a comprehensive nursing team including multiple expert models;
[0010] Step 3: Based on the selected expert model collaboration strategy, reason or discuss the input question to generate reasoning opinions and discussion opinions;
[0011] Step 4: Integrate the generated reasoning opinions or discussion opinions to generate the final decision.
[0012] Furthermore, the step 1 comprises:
[0013] Pre-train the language model based on the Transformer architecture through transfer learning and multi-task learning.
[0014] A pre-trained language model based on the Transformer architecture is used to understand the semantics of the question to extract question features, and the question features are encoded to generate feature representations;
[0015] The feature representation is analyzed and evaluated through the classification layer based on factors such as semantic complexity, breadth and depth of required domain knowledge to generate complexity assessment results.
[0016] Furthermore, the step 2 comprises:
[0017] For low complexity levels, an expert model most relevant to the problem domain is automatically selected for reasoning;
[0018] For medium complexity level, a multidisciplinary team is formed to reason and discuss, where the multidisciplinary team includes multiple expert models from different but related fields;
[0019] For high complexity levels, the specialist recruitment module further expands the specialist model to form an integrated care team (ICT) covering a wider range of disciplines and deeper expertise.
[0020] Furthermore, the step three comprises:
[0021] For low complexity levels, the reasoning strategy is adaptively selected for different problems, so that the expert model performs reasoning according to the adaptively selected reasoning strategy to generate reasoning opinions;
[0022] For medium or high complexity levels, the expert models are guided to express their opinions on different aspects of the problem, and information exchange and discussion between expert models are promoted through multiple rounds of dialogue.
[0023] Furthermore, the multi-round dialogue method includes:
[0024] Generate discussion topics based on the current discussion status;
[0025] Each expert model generates its own response based on the generated discussion topic;
[0026] Summarize the responses from each expert model and update the discussion status;
[0027] The responses of each expert model are vectorized, and the similarity of the vectorized responses is calculated. If the similarity exceeds the preset threshold, a consensus is reached; if the similarity does not exceed the preset threshold, the next round of dialogue is entered.
[0028] Furthermore, the method further comprises:
[0029] Collect data during the decision-making process and continuously optimize the system based on the collected data.
[0030] Furthermore, the method also includes: smoothly fusing the outputs of the expert modules at different complexity levels to ensure the consistency of the final decision.
[0031] On the other hand, the present invention provides an adaptive decision-making system based on a large language model, comprising:
[0032] A complexity checking module, used for performing complexity evaluation on an input problem to generate a complexity evaluation result, wherein the complexity evaluation result includes: a low complexity level, a medium complexity level, and a high complexity level;
[0033] an expert recruitment module, for automatically selecting an expert model collaboration strategy according to a complexity assessment result, the expert model collaboration strategy comprising selecting a single expert model, forming a multi-science team including multiple expert models, and forming a comprehensive care team including multiple expert models;
[0034] A collaborative reasoning module, used to reason or discuss the input question based on the selected expert model collaborative strategy to generate reasoning opinions and discussion opinions;
[0035] The decision generation module is used to integrate the generated reasoning opinions or discussion opinions to generate the final decision.
[0036] Furthermore, the system further comprises:
[0037] Feedback mechanism module, which is used to collect data in the decision-making process and continuously optimize each module based on the collected data;
[0038] An integration technology module is used to smoothly merge the outputs of expert modules at different complexity levels to ensure the coherence of the final decision;
[0039] On the other hand, the present invention also provides a computer-readable storage medium, which includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned adaptive decision-making method based on the large language model.
[0040] The beneficial effects of the present invention are:
[0041] (1) The present invention forms expert model teams in different fields according to the complexity of the input tasks, making it possible to flexibly call and combine in-depth knowledge in various fields, thus making up for the knowledge limitations of a single model and achieving the goal of optimizing decision-making efficiency and accuracy.
[0042] (2) The present invention optimizes decision making through discussion mechanism and strategy integration, significantly improving the overall performance of LLMs in dealing with complex tasks, thereby greatly improving the reasoning ability when dealing with complex problems.
[0043] (3) The present invention can automatically select collaborative strategies according to the complexity of the task, has strong adaptability, and can efficiently handle tasks of different difficulty levels and fields. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0045] Figure 1 The present invention is a flowchart of an adaptive decision-making method based on a large language model.
[0046] Figure 2 This is a flow chart for evaluating the complexity of input problems of the present invention.
[0047] Figure 3 A flow chart of the automatic selection of expert model collaboration strategy for the present invention.
[0048] Figure 4 This is a flow chart of the multi-round dialogue method of the present invention.
[0049] Figure 5 FIG. 4 is a flow chart of the process of generating the final decision in the case of MDT or ICT according to the present invention.
[0050] Figure 6 It is a continuous optimization flow chart of the present invention. DETAILED DESCRIPTION
[0051] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0052] It should be noted that the following detailed descriptions are all illustrative and are intended to provide further explanation of the present invention. Unless otherwise specified, each technical and scientific term used in this embodiment has the same meaning as commonly understood by those skilled in the art to which the present invention belongs.
[0053] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0054] In the present invention, terms such as "upper", "lower", "left", "right", "front", "back", "vertical", "horizontal", "side", "bottom", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings. They are relational words determined only for the convenience of describing the structural relationships of the various parts or elements of the present invention, and do not specifically refer to any part or element in the present invention and should not be understood as limitations on the present invention.
[0055] In the present invention, terms such as "fixed connection", "connected", "connection", etc. should be understood in a broad sense, indicating that it can be fixedly connected, integrally connected or detachably connected; it can be directly connected or indirectly connected through an intermediate medium. Relevant scientific research or technical personnel in this field can determine the specific meanings of the above terms in the present invention according to specific circumstances, and they should not be understood as limiting the present invention.
[0056] It should be noted that the expert model of the present invention is obtained by training and fine-tuning the LLM model.
[0057] Embodiment 1:
[0058] like Figure 1 As shown, this embodiment provides an adaptive decision method based on a large language model, comprising the following steps:
[0059] S1: Perform complexity evaluation on the input problem and generate complexity evaluation results.
[0060] Specifically, Figure 2 As shown, the following steps are included:
[0061] S11: Perform transfer learning and multi-task learning training on the language model based on the Transformer architecture in advance.
[0062] S12: Use a pre-trained language model based on the Transformer architecture to understand the question semantics to extract question features, and encode the question features to generate feature representations.
[0063] S13: The classification layer analyzes and evaluates the semantic complexity, breadth and depth of the required domain knowledge, and other factors of the feature representation to generate a complexity assessment result.
[0064] Among them, the complexity assessment results include: low complexity level, medium complexity level and high complexity level.
[0065] S2: Automatically select the expert model collaboration strategy based on the complexity evaluation results.
[0066] Specifically, Figure 3 As shown, the following steps are included:
[0067] S21: For low complexity levels, automatically select an expert model most relevant to the problem domain for reasoning.
[0068] S22: For medium complexity levels, a multidisciplinary team (MDT) is formed for reasoning and discussion, where the MDT includes multiple expert models from different but related fields.
[0069] S23: For problems with a high level of complexity, the expert recruitment module further expands the expert model to form an integrated care team (ICT) covering a wider range of disciplines and deeper expertise.
[0070] Among them, the comprehensive care team also includes multiple expert models, which are selected based on their pre-training and fine-tuning in specific fields to ensure their professionalism.
[0071] Expert models are pre-trained and fine-tuned models in a specific field, such as BERT.
[0072] S3: Based on the selected expert model collaboration strategy, reason or discuss the input question to generate reasoning opinions and discussion opinions.
[0073] Specifically, S31: For low complexity level, the reasoning process is as follows:
[0074] The reasoning technology collection module adaptively selects reasoning strategies for different problems, so that an expert model that is most relevant to the problem domain performs reasoning according to the adaptively selected reasoning strategy to generate reasoning opinions.
[0075] Among them, the reasoning policy includes:
[0076] a) Chain-of-Thought (COT) reasoning strategy: By generating a series of chained intermediate reasoning steps, the expert LLM model is guided to perform logical reasoning to reach the final decision, which is particularly effective when dealing with problems that require logical reasoning.
[0077] b) Self-Consistency (SC) reasoning strategy: Generates multiple different reasoning chains and then selects the most consistent result as the final output, which helps improve the reliability of the output.
[0078] c) Graph-based reasoning strategy: The problem is constructed as a knowledge graph, and messages are propagated between nodes through graph neural networks to achieve graph-based reasoning.
[0079] S32: For medium or high complexity levels, a collaborative discussion engine module facilitates interaction and discussion between expert models in MDT or ICT to reach consensus.
[0080] Specifically, the expert models are guided to express their opinions on different aspects of the problem, and information exchange and discussion between expert models are promoted through multi-round dialogues. During the dialogue process, a Transformer-based sequence-to-sequence model is used to generate and understand the dialogue, and a role-based dialogue strategy is also combined, so that each expert model can give full play to its expertise in a specific field.
[0081] Among them, Figure 4 As shown, the multi-round dialogue method includes the following steps:
[0082] S32-1: Generate a discussion topic according to the current discussion state, wherein the current discussion state includes an initialization discussion state.
[0083] Specifically, a Transformer-based sequence-to-sequence model is used to generate and understand dialogues (i.e., input questions), determine the current discussion status, and generate discussion topics based on the current discussion status.
[0084] S32-2: Each expert model generates its own response based on the generated discussion topic.
[0085] Specifically, each expert model in MDT or ICT generates corresponding responses based on the discussion topic and the role it plays (such as questioner, supporter, opponent, etc.), which not only enriches the discussion content but also enables each expert model to exert its expertise in a specific field.
[0086] S32-3: Summarize the responses from each expert model and update the discussion status.
[0087] S32-4: Calculate the similarity of the responses of each expert model.
[0088] Specifically, the cosine similarity indicator is used to vectorize the responses of each expert model, and the similarity of the vectorized responses is calculated. If the similarity exceeds the preset threshold, a consensus is reached; if the similarity does not exceed the preset threshold, the next round of dialogue is entered.
[0089] S4: Integrate the generated reasoning opinions or discussion opinions to generate the final decision.
[0090] Specifically, in the case of a single expert model, the decision generation module generates a final decision based on the generated reasoning opinions.
[0091] In the case of MDT or ICT, the final decision is generated by reaching a consensus through the opinions of each expert model in MDT or ICT, and automatically selecting a decision strategy based on the characteristics of the input problem, such as Figure 5 As shown, the following steps are included:
[0092] S41: The strategy selection unit automatically selects a suitable decision strategy according to the characteristics of the input problem and the MDT or ICT composition.
[0093] The decision-making strategies include:
[0094] a) Majority voting strategy: The opinion supported by the most expert models is selected as the final decision.
[0095] b) Weighted voting strategy: According to the authority of each expert model in its field, different weights are given to its opinions and then voting is performed.
[0096] c) Evidence-based decision-making: Extract evidence supporting different opinions from the discussion process and make decisions based on the reliability of the evidence. Evidence extraction can be based on natural language processing technologies such as named entity recognition.
[0097] S42: The decision-making unit generates a final decision according to the generated discussion opinions and based on the decision-making strategy selected by the strategy selection unit.
[0098] Among them, the decision-making unit can adopt traditional machine learning models such as logistic regression and random forest, or deep neural networks.
[0099] S5: The outputs of expert modules at different complexity levels are smoothly integrated to ensure the consistency of the final decision.
[0100] Ensemble techniques are used to smoothly combine the outputs of models at different complexity levels, allowing for smooth transitions between complexity levels without abrupt changes.
[0101] More specifically, by collecting the output data of each expert model at different complexity levels from the complexity detection module and performing necessary preprocessing, one or more integration techniques are adaptively selected according to the characteristics of the input problem and the performance of each expert model, including temperature integration technology, Bayesian integration technology, and integration technology based on knowledge distillation.
[0102] The temperature integration technology is used. Specifically, different temperature values are used to sample the output of the expert model in a diversified manner to enhance the robustness of the integrated system. By integrating the sampled outputs at different temperature values, the integrated decision space is further enriched. Among them, the sampled outputs at different temperature values specifically include combining the outputs of multiple expert models using weighted average, Maxout and other mechanisms.
[0103] The Bayesian integration technology is used. Specifically, Bayesian reasoning is used to treat the outputs of different expert models as priors, and the posterior probability is calculated in combination with the likelihood estimate of the current task to integrate the expert opinions. The decision plan with the highest posterior probability is selected as the final integrated decision output. At the same time, the confidence of each alternative decision plan is obtained based on the results of Bayesian integration.
[0104] The integration technology based on knowledge distillation uses the knowledge of high-complexity expert models (such as teacher models) to guide the decision-making of low-complexity expert models (such as student models), realize knowledge transfer between models, and improve the overall decision-making level.
[0105] S6: Collect data during the decision-making process and continuously optimize the system based on the collected data.
[0106] Specifically, Figure 6 As shown, the following steps are included:
[0107] S61: Collect data from the entire decision-making process, including input problem features, problem characteristics, expert model composition, discussion process and final decision, and feed them back to relevant modules (e.g., complexity checking module, expert recruitment module, collaborative reasoning module and decision generation, etc.) as input for feedback learning.
[0108] S62: Analyze the collected data and adaptively select a suitable reinforcement learning algorithm based on the current system status and the characteristics of the decision-making task.
[0109] Among them, reinforcement learning algorithms include policy gradient-based methods, actor-critic-based methods, and counterfactual inference-based methods.
[0110] Specifically, if a policy gradient-based algorithm is selected, the policy network is used to directly learn and optimize the strategy for generating expert opinions, and the output of the policy network is used as the basis for decision-making.
[0111] If an actor-critic algorithm is chosen, a critic network is introduced to evaluate the pros and cons of the current strategy, and then the actor network is used to improve the strategy based on the critic’s feedback. The two networks learn collaboratively and jointly output an optimized expert opinion generation strategy.
[0112] If an algorithm based on counterfactual inference is chosen, the contribution of each expert opinion to the final decision is calculated, and the participation of different experts and the opinion generation strategy are adjusted accordingly.
[0113] S63: The expert opinion generation strategy output by the reinforcement learning algorithm is further fed into a large language model to generate corresponding expert opinion text.
[0114] S64: Perform necessary post-processing and optimization on the generated expert opinion text to form the final expert opinion generation strategy as the output of the feedback mechanism.
[0115] S65: Feedback the final expert opinion generation strategy to each functional module (such as complexity detection module, expert recruitment module, etc.) to guide the work of the corresponding modules and achieve closed-loop optimization of the entire system.
[0116] In this way, by introducing a variety of reinforcement learning algorithms and combining the generation capabilities of large language models, the feedback mechanism can continuously learn and optimize the generation strategy of expert opinions, so that the system can continuously improve itself according to the feedback of decision-making effects and adapt to more complex and changing task requirements. At the same time, the optimized strategy is fed back to other functional modules to achieve collaborative optimization between modules and further improve the overall intelligent decision-making level of the system.
[0117] The following are examples for this embodiment:
[0118] For example, suppose patient A has recently developed symptoms such as headache and fever. Patient A enters his symptom description and related examination reports into the intelligent medical system, hoping to get a diagnosis and treatment plan. The specific implementation steps are as follows:
[0119] Q1: The complexity examination module assesses patient A's condition.
[0120] Specifically, the pre-trained medical complexity classifier analyzes the symptom description and examination report, and comprehensively considers factors such as the diversity of symptoms, the complexity of the causes, and the uncertainty of the diagnosis, and the result is that the case of patient A is at a medium complexity level.
[0121] Q2: Based on the results of the medium complexity level, the expert recruitment module will form a multidisciplinary diagnostic team (MDT). After calculation, multiple medical expert models in the fields of internal medicine, neurology, and imaging were selected from the expert model library to build a diagnostic team for patient A.
[0122] Q3: The collaborative discussion engine starts coordinating MDT to perform diagnosis through multiple rounds of dialogue. The specific steps are as follows:
[0123] First, generate a discussion topic: "Headache, fever, accompanied by..., what is the most likely diagnosis?".
[0124] - Based on the symptom analysis, the internal medicine expert model makes a preliminary diagnosis: "It is likely to be a viral cold or flu."
[0125] - The neurologist model is based on headache symptoms and adds the following opinion: "Secondary headaches caused by intracranial infections, tumors, and other lesions need to be excluded."
[0126] - The model analysis report of the imaging expert provided evidence: "No obvious abnormalities were found in the head CT scan, which supports the exclusion of the possibility of intracranial lesions."
[0127] - The discussion engine summarizes the opinions of all parties and updates the discussion topic: "Further discuss differential diagnosis, what tests are needed to confirm the diagnosis?".
[0128] - After several rounds of discussion, the MDT reached a consensus: Patient A suffered from headache and fever caused by viral upper respiratory tract infection, and further nucleic acid testing and blood routine examination were required to identify the pathogen.
[0129] Q4: The decision-making strategy module uses a weighted voting method to integrate the opinions of MDT experts.
[0130] Specifically, the expert models have reached a consensus in the discussion, and the voting results are highly consistent. Therefore, the final diagnosis report is generated: "This case meets the symptoms of viral upper respiratory tract infection. It is recommended to complete nucleic acid and blood routine tests, and provide symptomatic supportive treatment."
[0131] Q5: The system will feed back the diagnosis report to the patient and collect complete data of this consultation for optimization of each module.
[0132] Q6: Patients who visit the hospital for follow-up treatment can have a full discussion with their attending physician based on the auxiliary opinions of the intelligent diagnostic system to develop a personalized examination and treatment plan.
[0133] Through the above workflow, this method can flexibly select and organize multiple LLM models to collaborate for tasks of different complexity, and optimize decision-making through discussion mechanisms and strategy integration, thereby significantly improving the overall performance of LLMs in dealing with complex tasks. This decision-making paradigm that simulates the collaboration of human expert teams has the advantages of flexible knowledge combination, enhanced reasoning ability, and strong adaptability, and represents an important development direction of LLMs technology.
[0134] Embodiment 2:
[0135] This embodiment provides an adaptive decision-making system based on a large language model, including:
[0136] (a) Complexity checking module, used to evaluate the complexity of the input problem.
[0137] The complexity checking module includes a complexity classifier, which uses a pre-trained language model based on the Transformer architecture (e.g., BERT) to understand the question semantics through the language model to extract question features, and encode the question features to generate feature representations. The feature representations are then analyzed and evaluated through classification layers (e.g., fully connected layers and Softmax activation) based on factors such as semantic complexity, the breadth and depth of required domain knowledge, to generate a generation complexity evaluation result for the input question, where the generation complexity evaluation results include low complexity level, medium complexity level, and high complexity level.
[0138] It should be noted that before using the language model based on the Transformer architecture, the language model needs to be trained for transfer learning and multi-task learning.
[0139] Transfer learning training: Train the language model to learn general language knowledge on a large-scale general corpus, and then fine-tune it on a specific task dataset to achieve knowledge transfer.
[0140] Multi-task learning training, training the language model's complexity classification and other auxiliary tasks (such as domain identification, etc.) to provide the generalization ability of the language model through multi-task learning.
[0141] (ii) An expert recruitment module, used to automatically select expert models for collaboration based on complexity assessment results.
[0142] Specifically, the expert recruitment module includes a gated graph neural network model unit for automatically determining the expert model selection strategy according to the different complexity levels evaluated by the complexity detection module, so that the expert recruitment module can dynamically recruit and assign expert models with specific professional knowledge from the expert model library according to the expert model selection strategy determined by the gated graph neural network model unit.
[0143] Among them, the expert model is a pre-trained and fine-tuned model in a specific field, such as the BERT model.
[0144] For low complexity levels, the expert recruitment module selects an expert model most relevant to the problem domain for processing to generate an answer.
[0145] For questions of medium complexity, the Expert Recruitment module forms a multidisciplinary team (MDT) to generate answers, which includes multiple expert models from different but related fields.
[0146] For problems with a high level of complexity, the expert recruitment module further expands the expert model to form an integrated care team (ICT) covering a wider range of disciplines and deeper expertise. The integrated care team also includes multiple expert models, which are selected based on their pre-training and fine-tuning in specific fields to ensure their professionalism.
[0147] It should be noted that model selection strategies include: rule-based strategies, learning-based strategies, and graph neural network-based strategies.
[0148] Rule-based strategy: Select expert models based on predefined rules (such as problem domain, model expertise, etc.) to achieve simplicity and efficiency.
[0149] Learning-based strategies: Expert combination strategies are learned through machine learning methods (such as reinforcement learning) to adapt to task characteristics.
[0150] Strategy based on graph neural network: The expert model is represented as a node in the graph, and the association between nodes (experts) is learned through GNN to help select the optimal expert combination.
[0151] (iii) A collaborative reasoning module, which is used to automatically select an expert model collaboration strategy based on the complexity assessment results; the expert model strategies include selecting a single expert model, forming a multi-science team including multiple expert models, and forming a comprehensive nursing team including multiple expert models.
[0152] The collaborative reasoning module includes: a reasoning technology collection module and a collaborative discussion engine module.
[0153] A. Reasoning technology collection module, which is used to enable a single expert model to adaptively select reasoning strategies to generate reasoning opinions for problems with low complexity levels according to different problems;
[0154] The collaborative discussion engine module is used to promote interaction and discussion between expert models in MDT or ICT for problems with medium or high complexity levels, so as to reach consensus and generate discussion opinions.
[0155] The reasoning technology collection module is used to adaptively select reasoning strategies to generate reasoning opinions for problems with low complexity levels according to different problems.
[0156] Among them, the reasoning strategies include:
[0157] a) Chain-of-Thought (COT) reasoning strategy: By generating a series of chained intermediate reasoning steps, the expert LLM model is guided to perform logical reasoning to reach the final decision, which is particularly effective when dealing with problems that require logical reasoning.
[0158] b) Self-Consistency (SC) reasoning strategy: Generates multiple different reasoning chains and then selects the most consistent result as the final output, which helps improve the reliability of the output.
[0159] c) Graph-based reasoning strategy: The problem is constructed as a knowledge graph, and messages are propagated between nodes through graph neural networks to achieve graph-based reasoning.
[0160] Specifically, for problems with a low complexity level, the reasoning technology collection module adaptively selects and combines reasoning strategies for different problems, so that a single expert model can reason according to the adaptively selected reasoning strategies, such as Chain-of-Thought reasoning strategy, Self-Consistency reasoning strategy, and graph-based reasoning strategy, to generate reasoning opinions.
[0161] The reasoning technology collection module can adaptively select and combine the above reasoning strategies according to the complexity of the problem. For example, for problems that require multi-step reasoning, the CoT reasoning strategy is used first; for problems with multiple possible results, the SC reasoning strategy is used to improve output consistency.
[0162] B. Collaborative discussion engine module, which is used to promote the interaction and discussion between expert models in MDT or ICT for problems with medium or high complexity levels, so as to reach consensus and generate discussion opinions.
[0163] The collaborative discussion engine module controls the discussion process. Specifically, it guides the expert model to express opinions on different aspects of the problem and promotes information exchange and discussion between expert models based on multi-round dialogues. In addition, during the dialogue process, a Transformer-based sequence-to-sequence model is used to generate and understand the dialogue and a role-based dialogue strategy is also combined, so that each expert model can play its expertise in a specific field.
[0164] The multi-round dialogue method includes the following steps:
[0165] a) Generate a discussion topic according to the current discussion state, wherein the current discussion state includes the initialization discussion state.
[0166] Specifically, a Transformer-based sequence-to-sequence model is used to generate and understand dialogues (i.e., input questions), determine the current discussion status, and generate discussion topics based on the current discussion status.
[0167] b) Each expert model generates its own response based on the generated discussion topics.
[0168] Specifically, each expert model in MDT or ICT generates corresponding responses based on the discussion topic and the role it plays (such as questioner, supporter, opponent, etc.), which not only enriches the discussion content but also enables each expert model to exert its expertise in a specific field.
[0169] c) Summarize the responses of each expert model and update the discussion status;
[0170] d) Determine whether the discussion has converged. If so, reach a consensus and generate discussion opinions. If not, enter the next round of dialogue.
[0171] In addition, the collaborative discussion engine module also has a feedback mechanism. Through reinforcement learning of feedback discussion opinions, each expert model can iteratively optimize its own views, making the dialogue process more efficient and targeted.
[0172] Each expert model can be implemented based on models such as BERT. The collaborative discussion engine module can use large-scale dialogue generation models such as ChatGLM and fine-tune them for multi-round expert discussion tasks.
[0173] (iv) A decision generation module, which is used to integrate the generated reasoning opinions or discussion opinions to generate the final decision.
[0174] Specifically, the decision generation module is used to generate the final decision based on the reasoning opinions in the case of a single expert model, and is used to integrate the opinions of each expert model in the MDT or ICT in the case of MDT and ICT, and automatically select a decision strategy to generate the final decision.
[0175] Specifically, the decision generation module includes: a strategy selection unit and a decision unit; the strategy selection unit is used to automatically select a suitable decision strategy according to the characteristics of the input problem and the MDT or ICT composition;
[0176] The decision unit is used to generate the final decision based on the decision strategy selected by the strategy selection unit, where the decision unit can adopt traditional machine learning models such as logistic regression and random forest, or deep neural network.
[0177] The decision-making strategies include:
[0178] a) Majority voting strategy: The opinion supported by the most expert models is selected as the final decision.
[0179] b) Weighted voting strategy: According to the authority of each expert model in its field, different weights are given to its opinions and then voting is performed.
[0180] c) Evidence-based decision-making: Extract evidence supporting different opinions from the discussion process and make decisions based on the reliability of the evidence. Evidence extraction can be based on natural language processing technologies such as named entity recognition.
[0181] (V) Integration technology module, which is used to smoothly integrate the outputs of expert modules at different complexity levels to ensure the consistency of the final decision.
[0182] Among them, the integrated technology modules include:
[0183] a) a sample processing unit, used to perform necessary preprocessing on the output data of each expert model at different complexity levels to obtain preprocessed data;
[0184] b) The integration technology selection unit is used to adaptively select one or more integration technologies according to the characteristics of the input problem and the performance of each expert model, including temperature integration technology, Bayesian integration technology and knowledge distillation-based integration technology.
[0185] Among them, the temperature integration technology uses different temperature values to collect diversified preprocessed data to enhance the robustness of the integrated system. Bayesian integration technology uses Bayesian reasoning to regard the output of different models as a priori, and combines the likelihood estimate of the current task to obtain the posterior probability, thereby integrating expert opinions. The integration technology based on knowledge distillation uses the knowledge of high-complexity expert models (such as teacher models) to guide the decision-making of low-complexity expert models (such as student models), realize knowledge transfer between models, and improve the overall decision-making level.
[0186] c) Output diversification unit, which further enriches the integrated decision space by integrating the sampled outputs at different temperature values.
[0187] d) The posterior probability calculation unit obtains the confidence of each alternative decision plan based on the results of Bayesian integration.
[0188] e) The integrated output unit selects the decision plan with the highest posterior probability as the final integrated decision output.
[0189] The above functional units work together to achieve seamless connection of decisions of different complexity levels, and make full use of the complementarity of different expert models to effectively improve the decision-making level of complex problems. The introduction of temperature parameters and Bayesian reasoning further enhances the system's adaptability and robustness in dealing with complex scenarios.
[0190] (VI) Feedback mechanism module, which collects data during the decision-making process and continuously optimizes each module based on the collected data.
[0191] The feedback mechanism module collects data from the entire decision-making process, including input problem features, problem characteristics, expert model composition, discussion process and final decision, and feeds them back to relevant modules (e.g., complexity checking module, expert recruitment module, collaborative reasoning module and decision generation, etc.) for continuous optimization.
[0192] More specifically, the feedback mechanism module uses reinforcement learning to take the discussion process and final decision as reward signals, enabling each expert model to adjust its own views based on the final decision, which improves the overall decision-making effect of the team.
[0193] Among them, reinforcement learning includes:
[0194] a) Policy gradient-based reinforcement learning: Based on the reward signal and Monte Carlo sampling, the policy gradient is estimated to guide the update of policy parameters.
[0195] b) Actor-critic based reinforcement learning: A critic network is introduced to evaluate the pros and cons of the current strategy and assist the actor network in improving the strategy.
[0196] c) Reinforcement learning for counterfactual inference: Evaluate the contribution of each expert opinion to the final decision and adjust its participation and generation strategy accordingly.
[0197] (8) Expert model library, used to store expert models.
[0198] Embodiment 3:
[0199] This embodiment provides a computer-readable storage medium, which includes a stored program. When the program is running, the device where the computer-readable storage medium is located is controlled to execute the adaptive decision-making method based on a large language model described in Example 1.
[0200] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
[0201] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.
[0202] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0203] In addition, it should be noted that the flowchart in the accompanying drawings shows the method of the embodiment of the present disclosure. In the corresponding description in the flowchart or block diagram in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be performed substantially in parallel, and they can sometimes be performed in the opposite order, which can depend on the functions involved. Each block in the block diagram and / or flow chart, and the combination of blocks in the block diagram and / or flow chart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0204] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An adaptive decision-making method based on a large language model, characterized in that: The following steps are involved: Step 1: Evaluate the complexity of the input problem and generate a complexity evaluation result; wherein the complexity evaluation result includes: low complexity level, medium complexity level and high complexity level; Step 2: Automatically select an expert model collaboration strategy based on the complexity assessment results; the expert model strategy includes selecting a single expert model, forming a multi-science team including multiple expert models, and forming a comprehensive nursing team including multiple expert models; Step 3: Based on the selected expert model collaboration strategy, reason or discuss the input question to generate reasoning opinions and discussion opinions; Step 4: Integrate the generated reasoning opinions or discussion opinions to generate the final decision; The step one comprises: Pre-train the language model based on the Transformer architecture through transfer learning and multi-task learning. A pre-trained language model based on the Transformer architecture is used to understand the semantics of the question to extract question features, and the question features are encoded to generate feature representations; The feature representation is analyzed and evaluated through the classification layer based on factors such as semantic complexity, breadth and depth of required domain knowledge, etc. to generate complexity evaluation results; The second step comprises: For low complexity levels, an expert model most relevant to the problem domain is automatically selected for reasoning; For medium complexity level, a multidisciplinary team is formed to reason and discuss, where the multidisciplinary team includes multiple expert models from different but related fields; For high complexity levels, the specialist recruitment module further expands the specialist model to form an integrated care team covering a wider range of disciplines and deeper expertise; The step three comprises: For low complexity levels, the reasoning strategy is adaptively selected for different problems, so that the expert model performs reasoning according to the adaptively selected reasoning strategy to generate reasoning opinions; For medium or high complexity levels, guide the expert models to express their opinions on different aspects of the problem and promote information exchange and discussion between expert models through multiple rounds of dialogue; The multi-round dialogue method includes: Generate discussion topics based on the current discussion status; Each expert model generates its own response based on the generated discussion topic; Summarize the responses from each expert model and update the discussion status; The responses of each expert model are vectorized, and the similarity of the vectorized responses is calculated. If the similarity exceeds the preset threshold, a consensus is reached; if the similarity does not exceed the preset threshold, the next round of dialogue is entered.
2. The adaptive decision-making method based on a large language model according to claim 1, characterized in that: The method further comprises: Collect data during the decision-making process and continuously optimize the system based on the collected data.
3. The adaptive decision-making method based on a large language model according to claim 1, characterized in that: The method further comprises: smoothly fusing the outputs of the expert modules at different complexity levels to ensure the consistency of the final decision.
4. An adaptive decision system based on a large language model using the method according to any one of claims 1 to 3, characterized in that: include: A complexity checking module, used for performing complexity evaluation on an input problem to generate a complexity evaluation result, wherein the complexity evaluation result includes: a low complexity level, a medium complexity level, and a high complexity level; an expert recruitment module, for automatically selecting an expert model collaboration strategy according to a complexity assessment result, the expert model collaboration strategy comprising selecting a single expert model, forming a multi-science team including multiple expert models, and forming a comprehensive care team including multiple expert models; A collaborative reasoning module, used to reason or discuss the input question based on the selected expert model collaborative strategy to generate reasoning opinions and discussion opinions; The decision generation module is used to integrate the generated reasoning opinions or discussion opinions to generate the final decision.
5. The adaptive decision-making system based on a large language model according to claim 4, characterized in that: The system further comprises: Feedback mechanism module, which is used to collect data in the decision-making process and continuously optimize each module based on the collected data; The integration technology module is used to smoothly merge the outputs of expert modules at different complexity levels to ensure the consistency of the final decision.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the adaptive decision-making method based on a large language model as described in any one of claims 1 to 3.
