Multi-agent cooperation corpus generation and conflict distillation method, device, medium and product

By generating role arrangement configuration data and verification arbitration mechanism, multi-agent collaborative corpus is identified and constructed, which solves the problem of lack of multi-role collaborative trajectory records in multi-agent training, realizes high-quality corpus generation and data support, and improves the training effect of multi-agent system's collaborative ability.

CN123180262APending Publication Date: 2026-11-27SHANG HAI JIE YUE XING CHEN ZHI NENG KE JI YOU XIAN GONG SI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611666146.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-27
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing multi-agent training corpora lack standardized multi-role collaborative trajectory records, and the filtering of disagreements during data synthesis leads to the loss of high-value conflict and consensus formation mechanisms, making it difficult to support the training of complex agent models for high-order collaborative capabilities.

Method used

By generating role arrangement and configuration data, multiple collaborative role agents are controlled to interact in a coordinated manner, conflicting segments are identified, and consensus conclusions are generated through verification and arbitration mechanisms. A structured candidate corpus sample is constructed, and a multi-dimensional quality evaluation system is introduced for screening.

Benefits of technology

It significantly improves the structural integrity and conflict feature richness of multi-agent training corpora, provides high information density data support, and enhances the policy evolution capability and data reuse efficiency of multi-agent systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180262A_ABST
    Figure CN123180262A_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a multi-agent collaboration corpus generation and conflict distillation method, device, medium and product; the method comprises: obtaining input task data, generating role arrangement configuration data, controlling the agents corresponding to the multiple collaboration roles to perform collaborative interaction according to the role arrangement configuration data, and determining conflict fragments according to the differences between the candidate conclusions output by the agents; calling the agents corresponding to the collaboration roles with verification responsibilities and arbitration responsibilities to perform evidence retrieval and consistency comparison on the candidate conclusions corresponding to the conflict fragments, score the candidate conclusions to generate consensus conclusions; structurally integrating the input task data, the role arrangement configuration data, the process trajectory of the collaborative interaction execution, the conflict fragments and the consensus conclusions to generate candidate corpus samples, and screening the candidate corpus samples based on preset quality evaluation indicators, and writing the candidate corpus samples meeting the conditions into a multi-agent role collaboration corpus library.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information technology, and in particular to a method, apparatus, medium and product for generating multi-agent collaborative corpus and conflict distillation. Background Technology

[0002] With the development of large-scale models and multi-agent collaborative systems, training data needs to cover not only the final answer but also the entire process of task decomposition, role responsibilities, shared context, and conflict resolution. Existing training data construction schemes primarily rely on single-turn instructions, question-and-answer formats, or simple multi-turn dialogues. While this result-centric corpus can support basic instruction following capabilities, it lacks effective documentation of role division, collaborative arrangement, and responsibility boundaries for complex tasks involving multi-role collaboration such as planning, execution, critique, verification, and arbitration. Currently, most systems have not yet formed a complete corpus structure for multi-role collaborative operation, making it impossible to standardize and reuse it across different training stages.

[0003] Furthermore, existing automatic data synthesis schemes, when faced with multi-agent collaboration, often tend to directly filter out disagreements or conflicting evidence between different roles, retaining only the seemingly optimal final answer. In fact, semantic differences, inconsistencies in evidence, procedural disputes, and security boundary controversies among roles are precisely the important sources of supervision for training complex agents to develop robust collaborative capabilities. Simply filtering out conflict processes leads to the loss of high-value processes such as dispute escalation, evidence verification, and arbitration decisions. As a result, existing corpora fail to accurately reflect the collaborative trajectory of multi-agent societies and are increasingly unable to meet the training requirements of high-order collaborative models. Summary of the Invention

[0004] One objective of this application is to provide a method, apparatus, medium, and product for generating multi-agent collaborative corpus and conflict distillation, at least to address the problem that in the prior art, multi-agent training corpus lacks standardized multi-role collaborative trajectory records, and that high-value conflict and consensus formation mechanisms are lost due to filtering discrepancies during data synthesis, making it difficult to support the training of complex agent models for high-order collaborative capabilities.

[0005] To achieve the above objectives, some embodiments of this application provide the following aspects: In a first aspect, some embodiments of this application provide a method for multi-agent collaborative corpus generation and conflict distillation, the method comprising: The system acquires input task data and generates role arrangement configuration data based on the input task data, which is used to define the division of responsibilities, scope of permissions and interaction order of intelligent agents corresponding to multiple collaborative roles. Based on the role arrangement configuration data, the agents corresponding to the multiple collaborative roles are controlled to perform collaborative interaction, obtain the candidate conclusions output by each agent, and determine the conflict fragments based on the differences between the candidate conclusions. Based on the conflict fragment, the agent corresponding to the collaborative role with verification and arbitration responsibilities is invoked to perform evidence retrieval and consistency comparison on the candidate conclusions corresponding to the conflict fragment, and the candidate conclusions are scored to generate a consensus conclusion. Candidate corpus samples are generated based on the input task data, the role arrangement and configuration data, the process trajectory of the collaborative interaction, the conflict segments, and the consensus conclusion. Candidate corpus samples that meet the conditions are then filtered based on preset quality evaluation indicators and written into the multi-agent role collaborative corpus.

[0006] Secondly, some embodiments of this application also provide an electronic device, the electronic device comprising: one or more processors; and a memory storing computer program instructions, which, when executed, cause the processor to perform the steps of the method described above.

[0007] Thirdly, some embodiments of this application also provide a computer-readable medium having computer program instructions stored thereon, which can be executed by a processor to implement the steps of the method described above.

[0008] Fourthly, some embodiments of this application also provide a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the method described above.

[0009] Compared with related technologies, the solution provided in this application integrates the stages of role arrangement, collaborative interaction, conflict discovery, and evidence verification into a structured unified object. This not only clearly depicts the interaction boundaries and collaborative trajectories of each role but also proactively discovers and measures high-value conflicts between roles. This mechanism avoids the shortcomings of traditional methods that directly discard disputed information, enabling the complete closed loop from conflict generation and evidence retrieval to the formation of final arbitration consensus to be extracted as a trainable supervision signal. This significantly improves the structural integrity and conflict feature richness of the multi-agent training corpus.

[0010] Furthermore, a multi-dimensional quality evaluation system, encompassing coverage, novelty, conflict richness, and dispute resolution completeness, is introduced to rigorously and systematically screen the generated collaborative corpora. The generated structured samples not only directly extract multi-granularity data containing process trajectories and conflict fragments, significantly improving data reuse efficiency, but also allow for high-information-density and high-reliability writing into the corpus. These high-quality corpora, with clear conflict handling procedures and consensus conclusions, effectively connect various training scenarios such as supervised fine-tuning and preference optimization, providing a unified data foundation with high traceability and policy evolution capabilities for high-order multi-agent systems. Attached Figure Description

[0011] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0012] Figure 1 An exemplary flowchart of a multi-agent collaborative corpus generation and conflict distillation method provided in some embodiments of this application; Figure 2 An exemplary structural diagram of the electronic device provided for some embodiments of this application. Detailed Implementation

[0013] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0014] Figure 1 An exemplary flowchart of a multi-agent cooperative corpus generation and conflict distillation method provided in some embodiments of this application, the method comprising: S101. Obtain input task data and generate role arrangement configuration data based on the input task data, which is used to define the division of responsibilities, permission scope and interaction order of the intelligent agents corresponding to multiple collaborative roles.

[0015] Specifically, the system first acquires input task data. This input task data can originate from various data sources, including but not limited to a preset task template library, abstract results from real multi-agent system operation logs, task descriptions generated based on rule scripts, and failed or abnormal cases retrieved during online operation. In this embodiment, the input task data may include a task seed, or a scenario description and related constraint information derived from the task seed. The input task data typically includes a task objective description, constraints, contextual information, and optional tool usage information.

[0016] After acquiring the input task data, the system parses the input task data, extracts key elements such as task type, task complexity, dependent resources, and constraint boundaries, and generates role orchestration configuration data based on these key elements. The role orchestration configuration data describes the organization of intelligent agents corresponding to multiple collaborative roles participating in the current task scenario, including but not limited to role sets, division of responsibilities, scope of permissions, interaction order, and the basic process structure of collaborative execution.

[0017] In one example, the collaborative roles may include agents with different functional responsibilities, such as planning agents for task breakdown and path planning, execution agents for performing specific operations or calling external tools, analysis agents for identifying problems or raising questions, verification agents for verifying information, and decision-making agents for making comprehensive judgments and outputting final conclusions. Different roles establish collaborative relationships through role orchestration configuration data, enabling each agent to participate in collaborative processing within a unified task context and according to preset responsibility boundaries.

[0018] In addition, the role arrangement configuration data may also include control information related to task execution, such as interaction round limits, resource usage constraints, or conditions that trigger the participation of specific roles, so that the multi-agent collaboration process is controllable and reproducible.

[0019] S102. Based on the role arrangement configuration data, control the intelligent agents corresponding to the multiple collaborative roles to perform collaborative interaction, obtain the candidate conclusions output by each intelligent agent, and determine the conflict fragments based on the differences between the candidate conclusions.

[0020] Specifically, based on the role orchestration configuration data, the system drives multiple agents corresponding to collaborative roles to perform collaborative interactive execution around the input task data. During the collaborative interaction, each agent generates intermediate results or candidate conclusions sequentially or in parallel according to its corresponding division of responsibilities, and transmits information through shared context or interactive message mechanisms.

[0021] In one example, the system can dynamically select the agents to participate in the interaction based on the current task status, allowing different roles to participate to varying degrees at different stages, thus forming a phased collaborative process. For instance, planning agents are prioritized in the initial task stage, execution agents are introduced in the execution stage, and analysis or verification agents are introduced when uncertainties or disagreements arise.

[0022] During collaborative interaction, the system continuously collects candidate conclusions output by each agent and performs unified representation and alignment processing on these candidate conclusions for discrepancy analysis. This discrepancy analysis identifies differences between different candidate conclusions in terms of content, source of information, or execution path, and constructs a conflict metric based on these differences to characterize the degree of conflict between the different candidate conclusions.

[0023] Furthermore, based on the conflict measurement results, the system locates the position where the conflict occurs in the collaborative interaction trajectory and extracts the corresponding interaction segments as conflict segments. The conflict segments may include different viewpoints, different execution results, or different reasoning paths generated by multiple agents around the same problem, thereby providing basic data for subsequent conflict processing and corpus construction.

[0024] S103. Based on the conflict fragment, invoke the intelligent agent corresponding to the collaborative role with verification and arbitration responsibilities to perform evidence retrieval and consistency comparison on the candidate conclusions corresponding to the conflict fragment, and score the candidate conclusions to generate a consensus conclusion.

[0025] Specifically, for the conflicting segments, the system invokes the intelligent agents corresponding to the collaborative roles with verification responsibilities to verify the candidate conclusions. The verification process may include retrieving relevant information from the candidate conclusions, querying external data sources, comparing rules or constraints, and performing consistency checks on the execution results, thereby determining the credibility of each candidate conclusion.

[0026] After completing the verification process, the system further invokes the intelligent agents corresponding to the collaborative roles with arbitration responsibilities to comprehensively analyze and process multiple candidate conclusions. The arbitration process is used to filter, sort, or merge different candidate conclusions in the event of disagreement, thereby generating a unified consensus conclusion.

[0027] In one example, the arbitration process can optimize or modify candidate conclusions based on the relationships between them, verification results, and task constraints. For instance, when a candidate conclusion is inconsistent with the verification result, its priority can be lowered; when multiple candidate conclusions are partially consistent, they can be integrated to generate a new conclusion.

[0028] Furthermore, the consensus conclusions can be associated with and stored with the corresponding verification basis, arbitration result identifier, or remaining uncertainty information for use in subsequent corpus analysis and model training.

[0029] S104. Based on the input task data, the role arrangement configuration data, the process trajectory of the collaborative interaction execution, the conflict fragments, and the consensus conclusion, candidate corpus samples are generated, and the samples that meet the conditions are screened based on preset quality evaluation indicators and written into the multi-agent role collaborative corpus.

[0030] Specifically, the system organizes various types of data generated during the collaborative interaction process in a unified manner, and integrates the input task data, the role arrangement and configuration data, the interaction trajectory during the collaborative interaction process, the conflict fragments, and the consensus conclusions to construct a structured candidate corpus sample.

[0031] The candidate corpus samples are preferably represented in the form of structured data objects, which are used to uniformly describe the task information, role behavior, conflict relationships and final conclusions in the multi-agent collaboration process, so that the corpus has good parsing and reusability.

[0032] After generating the candidate corpus samples, the system filters the candidate corpus samples based on a preset quality control strategy. The quality control strategy can comprehensively consider factors such as the validity, completeness, representativeness of conflict information, and degree of difference between the samples and existing corpora, thereby selecting corpus samples with high training value.

[0033] For candidate corpus samples that meet the criteria, the system writes them into a multi-agent role collaborative corpus and performs index registration or version management to support subsequent model training, evaluation, or data analysis.

[0034] In this embodiment, a multi-agent collaborative execution framework based on role orchestration is constructed. During the collaboration process, differences between candidate conclusions are analyzed and conflict fragments are extracted. Furthermore, a verification and arbitration mechanism is combined to generate a consensus conclusion, thereby achieving structured modeling of the multi-agent collaborative process and generating high-quality corpus. Compared to traditional data construction methods that only retain a single result or simple dialogue process, this embodiment can preserve the interaction relationships and disagreement information between multiple roles, improving the corpus's ability to express complex collaborative behaviors and providing richer and more structurally constrained data support for training the multi-agent model.

[0035] In one embodiment, determining conflicting segments based on the differences between the candidate conclusions specifically includes: The differences between candidate conclusions are characterized based on the conflict metric, and conflicting segments are determined based on the conflict metric. The conflict metric is determined based on at least one of the following: semantic difference, evidence inconsistency, planning execution deviation, and safety boundary violation: The semantic difference term is determined based on the semantic representation of the candidate conclusion; The inconsistency in the evidence is determined based on the evidence set corresponding to the candidate conclusion. The planning execution deviation item is determined based on the execution path generated during collaborative execution and the actual execution results. The security boundary violation is determined based on the compliance between the candidate conclusion and the preset constraints.

[0036] Specifically, during the collaborative interaction process, the system constructs a conflict metric to characterize the degree of difference between candidate conclusions output by agents corresponding to multiple collaborative roles. This conflict metric comprehensively reflects the differences between different candidate conclusions in terms of semantic expression, source of evidence, execution consistency, and constraint compliance, thereby providing a quantitative basis for identifying conflicting segments.

[0037] In one example, the conflict metric can be determined based on multi-dimensional difference information, including at least one or a combination of semantic difference items, evidence inconsistency items, planning execution deviation items, and security boundary violation items.

[0038] The semantic difference term is determined based on the semantic representation of the candidate conclusions. Specifically, the system performs semantic representation transformation on each candidate conclusion, for example, mapping the conclusion in natural language form to a unified semantic vector representation or structured semantic representation, and determines the degree of semantic difference based on the semantic distance or differences in key semantic elements between different candidate conclusions.

[0039] In one example, the key semantic elements may include task objects, execution actions, constraints, or result descriptions, thereby enabling the characterization of deviations of different candidate conclusions from the core semantics.

[0040] The inconsistency item is determined based on the evidence set corresponding to the candidate conclusion. Specifically, the system obtains the corresponding evidence set for each candidate conclusion, which can originate from external search results, tool call return information, or historical interaction context. The system performs consistency analysis on the evidence sets relied upon by different candidate conclusions, such as comparing the support or conflict relationships between different pieces of evidence, thereby determining the degree of inconsistency at the evidence level. In one example, when there are contradictions or significant differences in the strength of support among the evidence relied upon by different candidate conclusions, the corresponding inconsistency item value is higher.

[0041] The planned execution deviation term is determined based on the execution path generated during collaborative interaction and the actual execution results. Specifically, during collaborative interaction, the intelligent agents corresponding to some collaborative roles generate task plans or execution paths, and the system records the planning information and the actual execution results generated during subsequent execution. By comparing and analyzing the planned path with the actual execution process—for example, determining whether the execution steps are complete, whether the execution order is consistent, or whether the execution results meet expectations—the degree of deviation between the plan and the execution is determined. When the actual execution results deviate significantly from the original plan, the planned execution deviation term increases accordingly.

[0042] The security boundary violation item is determined based on the compliance of the candidate conclusion with preset constraints. Specifically, the system predefines task-related constraints, which may include access control rules, security policies, privacy protection requirements, or business logic constraints. The system performs constraint verification on the candidate conclusion to determine whether it violates the constraints. When a candidate conclusion involves unauthorized operation, violates security policies, or does not conform to business rules, the security boundary violation item is added accordingly.

[0043] In one example, the system can comprehensively process the above-mentioned differences to form a unified conflict metric, which is used to measure the overall degree of conflict between different candidate conclusions; or it can determine a conflict metric separately based on any one of the differences to adapt to the conflict identification needs in different task scenarios.

[0044] Furthermore, in one example, the conflict metric... It can be represented as: in,( , , , ) are non-negative weight parameters, and satisfy: The above items represent semantic differences. Inconsistent evidence Deviations in planning execution and security boundary violations Contribution to conflict metrics.

[0045] Furthermore, in one embodiment, the semantic difference item It can be represented as: in, and These represent candidate conclusions output by the agents corresponding to the i-th and j-th collaborative roles at the current collaborative interaction time t, respectively, and obtained through unified structured processing. i and j are indices of the collaborative roles or candidate conclusions. The candidate conclusions include claims, execution results, or interim conclusions formed by different collaborative roles for the same task sub-item. The semantic vector encoding function is represented by cos(·), and the vector similarity function is represented by cos(·). This indicates the critical slot variation ratio. These are the weighting coefficients.

[0046] The key slots may include task objects, execution actions, constraints, and time ranges, which are used to enhance the ability to characterize differences in the structural layers.

[0047] Furthermore, in one embodiment, the inconsistency of evidence... It can be represented as: in, , and All parameters are normalized to [0,1]. This indicates the strength of the evidence involved in the current conflict segment that supports the candidate conclusion for verification. This indicates the strength of the evidence's rebuttal to the candidate conclusion being examined. ε represents the weighted missing percentage of essential evidence items such as task constraints, planning steps, and key fact slots that lack valid supporting evidence. ε is a very small positive number to prevent the denominator from being zero.

[0048] Specifically, the system determines the degree of support or rebuttal of each piece of evidence based on the reliability of the evidence source, the relevance of the evidence to the candidate conclusion to be verified, and the verification result, and performs a weighted summary; it also determines the degree of missing key evidence based on the missing status and importance of each required evidence item. The reliability of the evidence source can be determined based on at least one of the following: data source level, timeliness, tool execution status, historical accuracy, and multi-source cross-consistency; when the verification result is a deterministic result, discrete values ​​can be used; when the verification result is a probabilistic result, a calibrated confidence level can be used.

[0049] Furthermore, in one embodiment, the planning execution deviation term It can be represented as: in, Indicates the coverage rate of planned steps. Indicates the degree of dependency order violation. Indicates the degree of mismatch between tools or parameters; all three can be normalized to [0,1]. These are non-negative weight parameters, preferably satisfying a sum of 1 for all three.

[0050] Specifically, the system parses the planning text into multiple atomic steps and records the prerequisite dependencies, target tools, and parameter constraints of each atomic step. Then, it aligns the execution log with the atomic steps based on step identifiers or semantic similarity. The plan step coverage is determined by the proportion or weighted proportion of completed atomic steps among all atomic steps; the degree of dependency order violation is determined by the number, proportion, or weighted proportion of violated prerequisite dependencies during execution; and the degree of tool or parameter mismatch is determined by at least one of the following: tool name mismatch, missing required parameters, parameter type or value not conforming to constraints, incompatible calling permissions, and incompatible return result structure.

[0051] Furthermore, in one embodiment, the security boundary violation item It can be represented as: in, Indicates the degree of rule conflict. Indicates the degree of permission violation. Indicates the level of privacy risk. The four terms represent the degree of potential unsafe behavior and can all be normalized to [0,1]. These are weight parameters, which can be determined based on the output results of the rule engine, permission verification module, and security detection model.

[0052] Specifically, the rule engine, permission verification module, and security detection model output the hit status, severity, and / or confidence level of the corresponding detection items. The system determines the degree of rule conflict based on the severity and confidence level of the hit rules, the degree of permission overreach based on whether the actions involved in the candidate conclusions exceed role permissions, resource permissions, or operation permissions, the degree of privacy risk based on the level of sensitive information and the possibility of its leakage or misuse, and the degree of potential unsafe behavior based on the category, severity, and detection confidence level of the unsafe behavior. For violations of hard rules, explicit unauthorized high-risk operations, or confirmed privacy leaks, the corresponding parameters can be set to the preset maximum risk value.

[0053] In this way, this embodiment can model the differences between candidate conclusions from multiple dimensions such as semantics, evidence, execution and constraints. Compared with the method of judging conflict based on only a single dimension, it can more comprehensively depict the disagreements generated in the process of multi-agent cooperation, thereby improving the accuracy and stability of conflict fragment identification.

[0054] In one embodiment, controlling the intelligent agents corresponding to the multiple collaborative roles to perform collaborative interaction includes: Generate task status features based on the input task data; The proportion of evidence gaps is determined based on the information to be verified and the information already verified during the current collaborative interaction process. Uncertainty indicators are determined based on the distribution of candidate conclusions or verification results; The remaining budget is determined based on the remaining interaction rounds or resource usage. Based on the task status characteristics, the evidence gap ratio, the uncertainty index, the remaining budget, and the historical activation status of the collaborative roles, the agents participating in subsequent collaborative interaction execution are determined.

[0055] Specifically, during the collaborative interaction process, the system constructs a multi-dimensional state representation to describe the current task execution state, and dynamically selects collaborative roles to participate in subsequent interactions based on the state representation, thereby achieving adaptive scheduling of multi-agent collaborative paths.

[0056] In one example, the task state features can be generated based on the input task data and are used to characterize the semantic content, complexity level, constraints, and contextual information of the current task. The task state features can be represented in vector form to support subsequent unified calculation and comparison.

[0057] Simultaneously, during the collaborative interaction process, the system continuously tracks the quantity or ratio of information to be verified and verified information, and determines the evidence gap ratio accordingly. The evidence gap ratio reflects the scale of information that has not yet been verified in the current task. When the evidence gap is large, it is preferable to introduce a collaborative role with verification or supplementary verification capabilities to participate in subsequent interactions.

[0058] Furthermore, the system determines an uncertainty index based on the distribution of candidate conclusions or verification results. This uncertainty index reflects the degree of consistency or confidence level among current candidate conclusions. For example, when different candidate conclusions differ significantly or verification results are unstable, the corresponding uncertainty index is higher, thereby triggering more roles to participate in discussion or review.

[0059] Furthermore, the system determines the remaining budget based on information such as the remaining interaction rounds, computational resource consumption, or tool call limits. This remaining budget is used to constrain the depth and complexity of subsequent collaborative interactions; for example, when the budget is low, it prioritizes collaborative paths that can converge quickly.

[0060] In one example, the system can also record the historical activation status of each collaborative role in the current task, such as the number of times they spoke, the stage of participation, or the degree of contribution, in order to avoid some roles being over-participated or not being called for a long time, thereby improving the overall collaboration efficiency and diversity.

[0061] After considering the above factors, the system determines the set of agents to participate in the next collaborative interaction based on the task status characteristics, evidence gap ratio, uncertainty index, remaining budget, and historical activation status.

[0062] In a preferred embodiment, the role selection process can be described as follows: For candidate roles At any moment The priority of selection can be represented as: in, Indicates at time Select candidate role The probability of participating in collaboration; It represents a joint representation of the current task status and historical interactions. A vector representation of the task data; The evidence gap ratio is calculated from the differences between the items to be verified and the items that have been verified. The current uncertainty indicator can be calculated from the distribution entropy of candidate conclusions, the inverse of verification confidence, or the evidence gap ratio. The remaining budget includes the remaining rounds, remaining token budget, and remaining tool usage quota; This shows the historical activation status of the characters in the current task. and For the role The corresponding scheduling parameters can be obtained from historical training or preset from rule templates.

[0063] In one example, the role scheduling function can be implemented using a linear weighted form, a rule-driven form, or a learning-based policy model. For instance, the activation of a particular collaborative role can be determined by weighting and summing the above factors and combining them with a threshold judgment; or the activation probability or priority ranking of each role can be directly output using a trained policy model.

[0064] Furthermore, the system can select one or more roles from the candidate role set to participate in the next round of collaborative interaction based on the priority or probability distribution, thereby forming a dynamically adjusted collaborative path.

[0065] In this way, this embodiment can adaptively adjust the combination and interaction order of participating agents according to the task status and dynamic information during the execution process. Compared with fixed process or static role arrangement, it can effectively improve the flexibility and resource utilization efficiency of multi-agent collaboration, and control the computing cost while ensuring the quality of task completion.

[0066] In one embodiment, the step of scoring the candidate conclusions to generate a consensus conclusion includes: The score for supporting evidence is determined based on the evidence supporting the candidate conclusion. The score for rebuttal evidence is determined based on evidence that conflicts with the candidate conclusions. The security risk score is determined based on the degree to which the candidate conclusions violate the constraints. The costs of supplementary verification and re-execution are determined based on the operational costs required to revise the candidate conclusions. The comprehensive score of the candidate conclusion is determined based on the supporting evidence score, the rebuttal evidence score, the security risk score, and the cost of supplementary evidence and re-execution.

[0067] Specifically, after the conflict fragments are determined, the arbitration agent performs a unified structured representation of the candidate conclusions output by different collaborative roles, mapping them into a structured representation that includes "claims - evidence - actions - constraints - risks", and comprehensively evaluates each candidate conclusion based on the evidence graph and rule set.

[0068] In one example, for the character The comprehensive arbitration score of the proposed candidate conclusions can be expressed as: in, This indicates support for the strength of the evidence. Indicates the strength of the rebuttal evidence. This indicates safety and regulatory risks. This represents the cost of supplementary evidence, re-execution, or resource consumption required to adopt the candidate conclusion. These are the weight parameters.

[0069] In one example, the system calculates the support, refutation, and risk level of candidate conclusions based on the evidence graph, where: The strength of supporting evidence is determined based on evidence nodes in the evidence graph that are consistent with the candidate conclusion. The strength of rebuttal evidence is determined based on the evidence nodes in the evidence diagram that conflict with the candidate conclusions; The level of risk is determined based on the results of the rule set and security policy detection. Cost items are determined based on the resources required for supplementary certification operations, tool calls, or re-execution processes.

[0070] By employing the above methods, different candidate conclusions can be compared under a unified evaluation system.

[0071] Furthermore, after obtaining the comprehensive arbitration score of each candidate conclusion, the arbitration agent executes the arbitration process according to the preset decision-making process.

[0072] In one example, the arbitration process includes: When key evidence is missing, the system outputs the result of the evidence to be supplemented and triggers the verification agent to continue to retrieve evidence or call tools. The system will then re-evaluate the evidence after it has been supplemented. When there is a hard rule conflict or a high-risk security violation, output the rejection result and record the corresponding triggering rule and the reason for rejection; When the highest-scoring candidate conclusion is significantly better than other candidate conclusions, and the consistency of evidence meets the preset conditions, the supporting result is output, and the candidate conclusion is taken as the current main conclusion. When the main conclusion can be adopted but there are still some unverified contents, output the supporting results, mark the disputed sub-items and trigger a local review; When multiple candidate conclusions have similar scores and resources allow, trigger re-execution or further verification to obtain results with higher confidence.

[0073] Furthermore, in a preferred embodiment, the system outputs a consensus conclusion when the following conditions are met. : The conflict intensity of the remaining disputed items is below the threshold. ; Evidence consistency pass rate not lower than the threshold ; The difference between the highest-scoring candidate conclusion and the second-highest-scoring candidate conclusion shall not be less than the threshold. ; continuous No new strong rebuttal evidence has emerged. For security-sensitive tasks, security status conditions must also be met.

[0074] After generating the consensus conclusion, the system writes the arbitration label, key evidence citations, reasons for not adopting, remaining risk labels, and confidence information back into the structured corpus object to support subsequent corpus distillation and storage processing.

[0075] In this embodiment, a multi-dimensional comprehensive scoring mechanism based on the strength of supporting evidence, the strength of rebuttal evidence, security risks, and the costs of supplementary evidence and re-execution is constructed. Combined with role credibility, candidate conclusions are weighted and evaluated, achieving a unified quantitative comparison of multi-agent output results. Simultaneously, by structuring candidate conclusions into a unified representation of "claims—evidence—actions—constraints—risks," and by gradually resolving disagreements through a tiered arbitration process and convergence criteria, candidate conclusions from different sources and with different expressions can be effectively compared and screened within a unified evaluation framework. This improves the accuracy, stability, and interpretability of consensus conclusions while ensuring controllable computational resources, and enhances the completeness of the generated corpus in terms of decision-making basis, reasoning paths, and risk information, providing high-quality data support for training the collaborative capabilities of multi-agent models.

[0076] In one embodiment, the generation of consensus conclusions further includes: An objective function is constructed based on the comprehensive score of the candidate conclusions and the set of candidate conclusions. The objective function includes a bias term and a constraint term. The deviation term is used to characterize the degree of difference between the target conclusion and each of the candidate conclusions, and the constraint term is used to characterize the consistency of evidence and the consistency of rules. A comprehensive score is determined based on the basic credibility of the role to identify candidate conclusions. The corresponding weights are then determined based on the comprehensive score, and the objective function is solved based on the weights to obtain a consensus conclusion.

[0077] Specifically, after the arbitration agent obtains the comprehensive score of each candidate conclusion, the system does not directly output the result based on the candidate conclusion with the highest score. Instead, it models all candidate conclusions as a whole to further improve the global consistency of the consensus conclusion.

[0078] In one example, the system constructs an objective function based on a set of candidate conclusions, where a bias term characterizes the degree of difference between the objective conclusion and each candidate conclusion. For example, bias can be measured by the distance between semantic representations, key slot differences, and action execution differences. A constraint term characterizes the degree to which the objective conclusion satisfies the consistency of evidence and rules; when the objective conclusion violates the evidence support relationship or rule constraints, the value of the corresponding constraint term increases.

[0079] Furthermore, in one example, the objective function can be expressed as: in, This indicates a consensus conclusion. Indicates role The output candidate conclusions, where R represents the set of roles participating in the consensus solution. Indicate candidate conclusions Normalized weights in the consensus-solving process; L(·) represents the bias term, and Ω(·) represents the constraint term. This is a diagram representing evidence. Let represent the set of rules, y represent the target consensus conclusion to be solved, and λ represent the weight parameters of the constraint terms.

[0080] Furthermore, the basic credibility of character r This is used to characterize the relative credibility of a role based on its historical performance. In one example, the system can perform a basic credibility assessment on each collaborative role participating in the current consensus solution based on the role's historical accuracy, tool call reliability, rule pass rate, and domain prior information, and then normalize the assessment results, for example: in, Indicates the accuracy of the character's historical records. Indicates the reliability of tool calls. Indicates whether the rule has been passed. Represents prior information in the domain. Here are the weight parameters. `softmax(·)` represents the normalization of the weighted historical metrics of each collaborating role participating in the current consensus resolution, to obtain the basic credibility of each collaborating role. .

[0081] The system calculates the basic credibility of the role according to the aforementioned comprehensive arbitration score. The overall arbitration score for the candidate conclusion is obtained by comprehensively considering the strength of supporting evidence, the strength of rebuttal evidence, security and rule risks, and the costs of supplementary evidence or re-enforcement, in relation to the current candidate conclusion. The comprehensive arbitration score. This is used to characterize the comprehensive evaluation result of the candidate conclusions output by role r in the current task. The system further calculates the comprehensive arbitration score for each candidate conclusion. Normalization is performed to determine the weight of each candidate conclusion in the consensus-solving process. In one example, the weights It can be represented as: In other examples, the overall arbitration score can also be used. Weights are obtained by performing other normalization processes or monotonic mapping. This is to ensure that candidate conclusions with higher overall arbitration scores have greater weight in the consensus-solving process. Finally, the system uses these weights... The deviation terms corresponding to each candidate conclusion are weighted and combined with the constraints of evidence consistency and rule consistency to obtain the consensus conclusion. .

[0082] Furthermore, by solving the objective function, the system can perform weighted fusion or selection among multiple candidate conclusions to obtain the optimal consensus conclusion that satisfies the consistency of evidence and rule constraints, rather than simply selecting a single candidate conclusion.

[0083] After obtaining the consensus conclusion, the system writes the consensus conclusion, key evidence citations, arbitration labels, reasons for non-adoption, remaining risk labels, and confidence information into a structured corpus object for subsequent corpus distillation and model training.

[0084] In this embodiment, by introducing an optimization solution mechanism based on an objective function on the basis of candidate conclusion scoring, the generation of consensus conclusions is transformed from a single score-driven process to a global optimization process of multiple candidate conclusions. This not only comprehensively considers the differences between different candidate conclusions and their evidence support, but also satisfies evidence consistency and rule constraints at the same time, thereby further improving the accuracy, stability and robustness of consensus conclusions, and enhancing the consistency and interpretability of multi-agent collaborative decision-making results.

[0085] In one embodiment, the preset quality evaluation index is determined based on at least one of the following: coverage, novelty, conflict richness, dispute resolution completeness, and generation cost of the candidate corpus samples: The coverage is determined based on the distribution of the candidate corpus samples in terms of task type or conflict type; The novelty is determined based on the degree of difference between the candidate corpus sample and the existing corpus sample; The conflict richness is determined based on the number or type of conflict segments in the candidate corpus samples; The completeness of the dispute resolution is determined based on whether the candidate corpus samples contain a complete conflict resolution process, and the generation cost is determined based on the computing resources consumed in generating the candidate corpus samples.

[0086] Specifically, after the candidate corpus samples are generated, the system performs a quality assessment on the candidate corpus samples to select those with high training value. In one example, the system constructs a comprehensive quality score index for each candidate corpus sample to uniformly represent the sample's overall performance in terms of coverage, novelty, conflict information value, and generation cost.

[0087] In a preferred embodiment, for the first The overall quality score of each candidate corpus sample can be expressed as: in, Indicates coverage. Indicating novelty, Indicates the richness of conflict. Indicates the completeness of dispute resolution. Indicates the generation cost. The weights are non-negative and satisfy the normalization constraint.

[0088] Among them, coverage This is used to characterize the extent to which the current candidate corpus samples supplement the scarce task types or conflict types in the corpus. In one example, the system determines the scarcity level of each category based on the distribution of different task categories and conflict categories in the current corpus, and determines the coverage value based on the degree to which the candidate sample category supplements the overall distribution.

[0089] Furthermore, coverage can be expressed by the following formula: in, , , , Each from the current version of the corpus The distribution statistics of the batches to be merged were obtained and normalized to a unified standard. The scarcer a certain dimension is, the higher its value. .

[0090] Among them, novelty This is used to characterize the degree of difference between candidate corpus samples and existing corpus samples. In one example, candidate samples can be compared with historical samples based on semantic similarity and structural similarity. When the candidate sample differs greatly from the existing samples, its novelty is high; conversely, when the similarity is high, the novelty is low.

[0091] Furthermore, novelty can be expressed by the following formula: It is obtained by combining semantic similarity and structural similarity, and the statistical scope covers the current version of the corpus. and the current batches awaiting warehousing; results normalized to The more similar it is to existing samples, The lower.

[0092] Among them, conflict richness This is used to characterize the quantity and diversity of conflict information in candidate corpus samples. In one example, the conflict richness can be determined based on the number of conflict segments in the sample, the statistical results of conflict intensity, and the diversity of conflict types. For example, it can be calculated by combining the average or peak value of the conflict intensity sequence and the combination of roles involved in the conflict.

[0093] Furthermore, conflict richness can be expressed by the following formula: This is the statistic of conflict intensity throughout the entire process of the current sample, which can be taken as... The mean, peak, or key segment score of the sequence; For the diversity of conflict types; To account for the diversity of roles involved in the conflict. All the above quantities are calculated around the complete trajectory of the current sample and uniformly normalized to... , These are the weight parameters.

[0094] Among them, the completeness of dispute resolution This is used to characterize whether candidate corpus samples contain a complete conflict resolution process. In one example, when a sample contains claims from multiple roles, rebuttal information, verification results, arbitration decisions, and consensus outputs, the completeness is high; when any one of these steps is missing, the completeness decreases accordingly.

[0095] Furthermore, the completeness of dispute resolution can be expressed by the following formula: in, This indicates that there are at least two explicit claims by the parties involved. This indicates that there is evidence to the contrary or objection. This indicates that the verification agent has output the evidence verification result. This indicates that the arbitration agent outputs a ruling result such as support, partial support, rejection, pending further evidence, or re-enforcement. This indicates that the consensus results and their rationale have been written back into the structured corpus. All options are acceptable. The value can also be a soft score.

[0096] Among them, the generation cost This is used to characterize the resources consumed in generating candidate corpus samples. In one example, the generation cost can be based on the computational resource consumption during the generation process. Number of tool calls Number of interaction rounds or retries Determine and normalize.

[0097] Furthermore, the generation cost can be determined using the following formula: in, As a noise penalty, These are the weight parameters.

[0098] In one example, the system performs unified normalization on the above indicators and then obtains the comprehensive quality score through weighted combination. The candidate corpus samples are then sorted or filtered based on the quality scores.

[0099] Furthermore, in one embodiment, the method further includes determining whether candidate corpus samples are suitable for inclusion in the database, and writing the candidate corpus samples into the target corpus when preset conditions are met. Specifically, after the collaborative interaction is completed and candidate corpus samples are generated, the system performs quality assessment and consistency verification on the candidate corpus samples to determine whether they meet the inclusion conditions.

[0100] In one example, the target corpus set at time... Represented as The current candidate corpus samples are represented as Then, when the preset conditions are met, the corpus set is updated as follows: The preset conditions include: the quality score of the candidate corpus samples. Not lower than the quality threshold Evidence consistency verification results and security verification results .

[0101] Furthermore, the quality threshold The overall quality level of the samples entering the database can be controlled based on the corpus version release strategy or the statistical quantile of the validation set; the evidence consistency check is used to determine whether the conclusions in the candidate corpus samples are consistent with the supporting relationships in the evidence graph; the security check is used to detect whether the candidate corpus samples have rule conflicts, permission overreach, privacy risks, or insecure operations.

[0102] In one example, when a candidate corpus sample meets the above conditions, the system performs an ingestion operation, writes the candidate corpus sample into the target corpus, and registers its version identification and index; when any condition is not met, the candidate corpus sample is discarded, downgraded, or regenerated.

[0103] Furthermore, during the data entry process, the system stores candidate corpus samples together with their corresponding arbitration link information, key evidence citations, and version identification information, thereby forming traceable corpus data units.

[0104] Through the above methods, this embodiment expands the evaluation of corpus quality from a single indicator to a comprehensive assessment of multiple dimensions such as coverage, novelty, conflict information value, and generation cost. This not only prioritizes the retention of corpus samples with high information density, conflict with learning value, and complete structure, but also effectively controls resource consumption during corpus generation, thereby improving the overall quality and diversity of the corpus and providing a more stable and high-value data foundation for training multi-agent models.

[0105] Furthermore, in one embodiment, the conflict intensity weight used in the conflict measurement process and the quality score weight used in the quality evaluation process are both subject to non-negative normalization constraints and are determined and adjusted according to the task type and system operating status.

[0106] Specifically, the determination methods for the conflict intensity weight and quality score weight include at least one of the following: First, determining the initial weight based on task category, risk level, tool dependence, and historical verification results; second, obtaining the weight combination that best matches the human judgment results through searching based on a manually labeled verification set; and third, adjusting the weight online based on indicators such as verification pass rate, arbitration stability, sample entry rate, and downstream training benefits during system operation, thereby achieving adaptive adjustment of the weight parameters.

[0107] In one example, the conflict intensity weights are configured differently for different task types. For example: In general knowledge analysis tasks, the conflict intensity weights can be set to α1=0.30, α2=0.35, α3=0.20, and α4=0.15 to highlight semantic differences and evidence differences. In the tool execution guidance task, the conflict intensity weights can be set to α1=0.20, α2=0.25, α3=0.40, and α4=0.15 to improve the sensitivity to planning execution deviations; In security-sensitive tasks, the conflict intensity weights can be set to α1=0.20, α2=0.25, α3=0.20, and α4=0.35 to strengthen the focus on rule constraints and security boundaries.

[0108] Furthermore, in one example, different configuration strategies are adopted for the quality score weights at different corpus construction stages. For example, in the cold start corpus construction stage, the quality score weights can be set to β1=0.35, β2=0.15, β3=0.15, β4=0.25, and β5=0.10 to prioritize improving corpus coverage and dispute resolution completeness. During the regular database expansion phase, the quality scoring weights can be set to β1=0.25, β2=0.20, β3=0.20, β4=0.25, and β5=0.10 to balance coverage, novelty, and the value of conflicting information. During the refining and purification stage, the quality scoring weights can be set to β1=0.20, β2=0.25, β3=0.20, β4=0.25, and β5=0.10 to further improve the novelty and structural integrity of the corpus.

[0109] Furthermore, during consensus convergence and sample storage, the system employs various threshold parameters to constrain the generated results, including a quality threshold. Evidence consistency threshold Conflict intensity threshold Score difference threshold and the limit on the number of interaction wheels The threshold parameter can be determined comprehensively based on the validation set statistics, historical version performance, and task risk level.

[0110] In one example, for a security-sensitive task, the security status and the rule hit result together constitute a hard constraint. When the hard constraint is not passed, the candidate conclusion will not enter the consensus write-back process, and the corresponding candidate corpus sample will not be put into the database.

[0111] Through the above methods, this embodiment realizes the dynamic configuration and adaptive adjustment of weight parameters and threshold parameters, which enables the conflict measurement, quality evaluation and corpus entry process to be optimized according to task characteristics and system operating status, thereby improving the stability, adaptability and overall quality of multi-agent collaborative corpus generation.

[0112] Furthermore, in one embodiment, the collaborative interaction execution process further includes acquiring at least one perturbation term, the perturbation term including: Incomplete information in the input task data, random noise during tool invocation, differences in preferences among different collaborative roles, or resource limitations; The disturbance term is then introduced into the collaborative interaction execution process.

[0113] Specifically, during the multi-agent collaborative interaction process, the system introduces perturbation terms to intervene in the collaborative process based on the original task data and the predetermined role arrangement configuration, so that different collaborative roles can generate different inference paths or candidate conclusions under the same task conditions.

[0114] In one example, the perturbation term may include at least one of the following forms: Incomplete input information perturbation: By cropping, masking or delaying the input task data to provide some key information, some collaborating roles are made to reason under incomplete information conditions, thereby generating different candidate conclusions; Tool call noise perturbation: During the tool call process, random noise, result perturbation, or time delay are introduced into the tool's returned results to simulate the instability of the tool or observation errors in the real environment; Role preference difference perturbation: Set differentiated strategies or decision preferences for different collaborative roles, such as risk-averse preferences or exploratory preferences, so that different roles tend to output different types of candidate conclusions under the same task; Resource constraint perturbation: Imposing restrictions on computing resources, interaction rounds, or tool calls on some collaborative roles, forcing them to make decisions under constrained conditions, thereby creating strategic differences with other roles.

[0115] In one example, the disturbance term is dynamically introduced during the collaborative interaction process and acts on at least one stage of the task input, role decision-making process, or tool invocation process, thereby affecting the generation process of candidate conclusions.

[0116] Furthermore, in a preferred embodiment, the system can parameterize the perturbation term, for example by setting the perturbation intensity or perturbation probability, to control the degree of influence of the perturbation on the collaborative interaction process; the perturbation intensity can be dynamically adjusted according to the current task complexity, the degree of divergence between candidate conclusions, or the corpus generation target.

[0117] Furthermore, by introducing the perturbation term, multiple collaborative roles can generate differentiated outputs during collaborative interaction, thereby increasing the degree of divergence among candidate conclusions and enhancing the number and type diversity of conflict fragments; the conflict fragments are further used in subsequent conflict measurement, arbitration decision-making, and corpus screening processes.

[0118] In this embodiment, by actively introducing controllable perturbations during the collaborative interaction process, the multi-agent system can generate diverse and representative disagreements within a manageable range. Compared with relying solely on naturally generated disagreements, this not only effectively improves the coverage and richness of conflict samples but also enhances the corpus's ability to express complex collaborative scenarios, thereby providing a more challenging and valuable data foundation for training multi-agent models.

[0119] In one embodiment, the candidate corpus sample is a structured data object, specifically including: The role arrangement and configuration data, the process trajectory of the collaborative interaction execution, the consensus conclusion, as well as the conflict relationship data used to represent the differences between roles and the evidence association data used to represent the relationship between claims and evidence; The conflict relationship data is determined based on the conflict fragments, and the evidence association data is generated based on the correspondence between the candidate conclusions and the evidence retrieval results.

[0120] Specifically, in order to perform unified modeling and efficient management of multi-agent collaborative processes, the system constructs the candidate corpus samples into structured corpus units. In one example, during the collaborative interaction execution process... At any given moment, the structured corpus unit can be represented as: in, This indicates a task seed or task description, the source of which may include task templates, real log abstract templates, rule scripts, or online failure case feedback data. This represents the role orchestration configuration, used to record information such as the set of roles participating in collaboration, permission boundaries, tool authorizations, interaction order, and round budget; , , , , These represent the planning agent, the execution agent, the critique agent, the verification agent, and the arbitration agent at time [time]. Messages, local trajectories, or summary information are used to characterize the behavior and intermediate results of each role in the collaborative process; This indicates information observed by the tool, which may come from tool call results, environmental feedback, or simulation output. This indicates the candidate conclusions, interim results, or consensus conclusions at the current stage.

[0121] Furthermore, in one example, the structured corpus units are organized around the complete execution process of the same task, and their statistical range corresponds to the first [number] in the current task execution cycle. Multiple collaborative moments. By sequentially combining the corpus units from multiple moments, a complete representation of the multi-agent collaborative trajectory can be formed.

[0122] For collaborative roles that are not participating in the current collaboration phase, their corresponding message items can be recorded as null values ​​or default flags, thereby ensuring the consistency of the corpus structure across different collaboration phases.

[0123] Furthermore, in a preferred embodiment, the structured corpus unit further includes conflict relationship data and evidence association data: The conflict relationship data is used to describe the divergence relationship between different collaborative roles at the candidate conclusion level. It can be generated based on the conflict fragments, such as recording conflict type, conflict intensity, and conflict role parity information. The evidence association data is used to describe the relationship between candidate conclusions and their corresponding evidence. It can be constructed based on evidence retrieval results, such as establishing a mapping relationship between claims and supporting and rebuttal evidence, thereby forming an evidence graph structure.

[0124] In this embodiment, task information, role behavior, tool observation, conflict relationships, and evidence association in the multi-agent collaboration process are uniformly organized into standardized data objects. This not only supports the structured storage and efficient retrieval of the corpus, but also provides basic support for conflict analysis, arbitration decision backtracking, and multi-granularity sample construction, thereby improving the reusability, interpretability, and system scalability of the corpus.

[0125] In one embodiment, the method further includes: Acquire abnormal data generated during the multi-agent collaborative interaction process, including erroneous results, unresolved conflict records, or tool execution abnormality records; The abnormal data will be processed and used as a supplementary source of input task data.

[0126] Specifically, during the multi-agent collaborative interaction process, the system continuously monitors the execution process. When execution failure, result deviation, unresolved conflicts, or abnormal tool calls occur, the corresponding data is marked as abnormal data and collected.

[0127] In one example, the abnormal data may include erroneous result data, unresolved conflict records, and tool execution anomaly records. Erroneous result data refers to data where the candidate conclusion or final result is significantly inconsistent with the evidence or rules; unresolved conflict records refer to conflict segments and their contextual information where significant disagreements remain after the collaborative interaction has concluded and no consensus has been reached; and tool execution anomaly records refer to situations where the tool fails to call, returns an exception, or is inconsistent with expectations during the tool invocation process.

[0128] Furthermore, the system performs structured processing on the abnormal data, including extracting the corresponding task context, role interaction trajectories, candidate conclusions, conflict fragments, and related evidence information, and annotating the abnormal types to form standardized abnormal corpus units. In a preferred embodiment, the abnormal data can also be filtered and reconstructed, such as supplementing missing information, performing attribution analysis on abnormal results, or annotating and enhancing unresolved conflict fragments to improve its effectiveness as training samples.

[0129] In one example, the processed anomalous data is transformed into new input task data, which, together with the original task data, forms the input data set for subsequent multi-agent collaborative interaction. Furthermore, anomalous labels or difficulty indicators can be retained during the transformation process to guide the system to prioritize covering high-risk or high-uncertainty scenarios in subsequent generation processes.

[0130] In this embodiment, abnormal data generated during the collaborative interaction of multiple agents is transformed into reusable training resources, forming a data closed loop of "execution-abnormality-regeneration". This not only improves the corpus's coverage of abnormal and complex conflict scenarios, but also enhances the robustness of the multi-agent system and its ability to handle complex problems.

[0131] Furthermore, in one example, the structured corpus unit may include the following fields for unified description and organization of various types of information in the multi-agent collaboration process: The structured corpus unit includes a corpus unit identifier field, used to uniquely identify the sample, version, and source; a scene identifier field, used to associate the task type, difficulty level, and constraints; a role arrangement configuration field, used to describe the set of roles participating in the collaboration, round budget, and permission boundaries; and a shared context field, used to store task descriptions, common memory, and resource constraint information.

[0132] Furthermore, the structured corpus unit also includes multiple role trajectory fields, including planning trajectory field, execution trajectory field, critique trajectory field and verification trajectory field, which are used to record the behavioral information of the planning agent, execution agent, critique agent and verification agent in the collaborative interaction process; and arbitration result field, which is used to record dispute attribution, weight allocation and final consensus conclusion.

[0133] In one example, the structured corpus unit also includes a tool observation field for recording tool call results, environmental feedback information, and external evidence summaries; a conflict relationship field for describing the types of disagreements, conflict intensity, and directional relationships between different roles; and an evidence association field for describing the mapping relationship between claims, supporting evidence, and counter-evidence, thereby constructing an evidence graph structure.

[0134] Furthermore, the structured corpus unit also includes a distillation target field, which indicates the training type corresponding to the corpus unit, including supervised training samples, preference learning samples, reward model samples, or evaluation samples; and a quality and signature field, which records quality scores, risk labels, version information, and data signatures.

[0135] Through the above fields, the structured corpus unit can not only fully describe the task information, role behavior and decision basis in the multi-agent collaboration process, but also support the training, evaluation, playback and source tracing of the corpus, thereby improving the corpus's structuring degree and reusability.

[0136] The steps of the various methods described above are only for clarity. In practice, they can be combined into one step or some steps can be split into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this application. Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but without changing the core design of the algorithm and process, are also within the scope of protection of this application.

[0137] Furthermore, in one embodiment, the method can be implemented by a multi-module collaborative system, which includes an input task data generation module, a role configuration and prompt compilation module, a collaborative execution and tool sandbox module, a conflict injection and divergence detection module, an evidence verification and arbitration resolution module, a conflict distillation and sample compilation module, a quality assessment and bias correction module, and a corpus indexing and version management module. These modules can be centrally deployed on the same computing node or distributed across data factory nodes, simulation nodes, evaluation nodes, and training data gateways, thereby supporting large-scale corpus generation and processing.

[0138] Specifically, the input task data generation module is used to sample input task data from task templates, real log abstract templates, or rule scripts. The input task data may include task seeds and, combined with domain knowledge, constraint rules, and resource boundaries, constructs scenario descriptions and task structure information. The role configuration and prompt compilation module is used to generate the division of responsibilities, permission scope, prompt strategies, and interaction round budgets for each collaborative role based on the input task data, thereby forming an executable role orchestration configuration. The collaborative execution and tool sandbox module is used to drive multi-role collaborative interaction in a controlled environment and record role trajectories and tool observation information.

[0139] Furthermore, the conflict injection and disagreement detection module is used to identify or proactively introduce semantic conflicts, evidentiary conflicts, execution conflicts, and security conflicts during collaborative execution, and generate conflict labels and conflict relationship data; the evidence verification and arbitration resolution module is used to perform evidence retrieval, rule comparison, and credibility assessment on disputed conclusions, and output arbitration conclusions and consensus results; the conflict distillation and sample compilation module is used to compress the complete collaborative trajectory into structured training samples, including role samples, conflict samples, and consensus samples.

[0140] In one example, the quality assessment and debiasing module is used to evaluate the generated samples based on indicators such as coverage, novelty, conflict richness, dispute resolution completeness, and security, and to remove low-quality or biased samples; the corpus indexing and version management module is used to version the samples that pass the quality assessment, index and register them, and trace their sources, thereby forming a continuously evolving corpus.

[0141] Furthermore, in one example, the system preferably constructs structured role-based collaborative corpus units to uniformly represent input task data, role behaviors, tool observations, conflict relationships, evidence associations, and arbitration results during multi-agent collaboration. These corpus units record not only the final conclusions but also the claims, objections, verification processes, and reasons for consensus formation of each role, thereby supporting various application scenarios such as training, evaluation, replay, and auditing.

[0142] In one example, once the input task data enters the corpus generation process, the system preferentially allows the planning role to first generate the task breakdown and execution path, followed by the execution role calling the tools to complete the task. Simultaneously, it allows the critique, verification, and arbitration roles to intervene at key nodes, forming a collaborative interactive structure that includes main chain execution and verification subchains. The system can also dynamically adjust the role scheduling strategy based on the current conflict intensity, evidence gaps, uncertainties, and resource budget, thereby improving collaboration efficiency and corpus quality.

[0143] Furthermore, during conflict resolution, the system continuously calculates conflict relationship data and evidentiary gaps. When the conflict intensity reaches a preset threshold, a dispute escalation process is triggered. A critic identifies the problem, a verifier performs evidence retrieval and rule validation, and an arbitrator provides a ruling. The dispute escalation and arbitration processes are preferentially retained as conflict distillation samples for subsequent training.

[0144] In one example, after arbitration and consensus generation are completed, the system reconstructs the collaborative trajectory samples, retaining only the structured corpus objects, key trajectory fragments, conflict distillation summaries, and evidence and ruling citations, and stores the complete original collaborative log in the audit or playback system to balance training efficiency and traceability.

[0145] Furthermore, the system preferably defines a unified corpus generation and conflict distillation state machine to standardize the execution process under different task scenarios, including input task data generation, role arrangement, collaborative execution, conflict injection, conflict detection, arbitration resolution, sample distillation, quality verification, and corpus release, thereby ensuring the consistency and controllability of the corpus generation process.

[0146] In one example, the system can also be linked with a model training and online operation system to use the generated corpus for supervised training, preference optimization and automatic evaluation, and to feed back failure cases, anomaly records and arbitration logs from the online operation as new input task data or conflict templates, thereby forming a continuously evolving corpus production closed loop.

[0147] Through the above methods, this embodiment constructs a complete system architecture covering input task data generation, collaborative execution, conflict handling, sample distillation, quality evaluation, and corpus management. This enables the generation process of multi-agent collaborative corpus to be structured, controllable, and continuously optimized, thereby significantly improving corpus quality and the training effect of multi-agent models.

[0148] Furthermore, some embodiments of this application also provide an electronic device. The electronic device can be various forms of digital computer, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, etc. The electronic device can also be various forms of mobile devices, such as cellular phones, smartphones, wearable devices, and other similar computing devices.

[0149] The electronic device includes: one or more processors; and a memory storing computer program instructions that, when executed, cause the processor to perform the steps of the methods provided in any one or more of the above embodiments. Figure 2 An exemplary structural diagram of the electronic device is disclosed. The electronic device includes one or more processors 1101, a memory 1102, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components are interconnected via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some other embodiments, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple electronic devices can be connected, each providing some of the necessary operations. The components, their connections and relationships, and their functions shown herein are merely examples and are not intended to limit the implementation of the present application described and / or claimed herein.

[0150] The electronic device may further include an input device 1103 and an output device 1104. The processor 1101, memory 1102, input device 1103 and output device 1104 may be connected by a bus or other means, as shown in the figure, which is connected by a bus 1105.

[0151] Input device 1103 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the electronic device, such as a touch screen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 1104 may include a display device, auxiliary lighting device (e.g., LED), and haptic feedback device (e.g., vibration motor). The display device may include, but is not limited to, a liquid crystal display, a light-emitting diode display, and a plasma display. In some embodiments, the display device may be a touch screen.

[0152] To provide interaction with the user, the electronic device can be a computer. The computer has: a display device (e.g., a cathode ray tube or LCD monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback); and input from the user can be received in any form (e.g., voice input or tactile input).

[0153] In this embodiment, a computer-readable medium stores a computer program / instructions that, when executed by a processor, implement the steps of the methods provided in any one or more of the above embodiments. This computer-readable medium may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into that device. The aforementioned computer-readable medium carries one or more computer-readable instructions.

[0154] The memory 1102 can serve as a non-transitory computer-readable storage medium, used to store non-transitory software programs, non-transitory computer-executable programs, and modules. The processor 1101 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions, and modules stored in the memory 1102, thereby implementing the program instructions / modules corresponding to the methods provided in any one or more of the embodiments described above in this application.

[0155] The memory 1102 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the electronic device. Furthermore, the memory 1102 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 1102 may optionally include memory remotely located relative to the processor 1101, and these remote memories can be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0156] It should be noted that the computer-readable medium described in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. Computer-readable media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections having one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory, optical fibers, portable compact disk read-only memory, optical storage devices, magnetic storage devices, or any suitable combination thereof. In this application, a computer-readable medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0157] Computer-readable media include permanent and non-permanent, removable and non-removable media, which can store information by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory, static random access memory, dynamic random access memory, other types of random access memory, read-only memory, electrically erasable programmable read-only memory, flash memory or other memory technologies, read-only optical discs, digital versatile optical discs or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0158] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including local area networks (LANs) or wide area networks (WANs), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0159] In the above embodiments, all or part of the implementation can be achieved through software, hardware, firmware, or any combination thereof. For example, it can be implemented using an application-specific integrated circuit (ASIC), a general-purpose computer, or any other similar hardware device. In some embodiments, the software program of this application can be executed by a processor to implement the above steps or functions. Similarly, the software program of this application (including related data structures) can be stored in a computer-readable recording medium, such as RAM memory, magnetic or optical drives, floppy disks, and similar devices. In addition, some steps or functions of this application can be implemented in hardware, for example, as circuitry that cooperates with a processor to perform the various steps or functions.

[0160] The computer program product provided in this application includes one or more computer programs / instructions. When executed by a processor, these computer programs / instructions generate, in whole or in part, the processes or functions described in this application. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.

[0161] The flowcharts or block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of devices, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-specific system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0162] The scope of this application is defined by the appended claims rather than the foregoing description, and is therefore intended to encompass all variations falling within the meaning and scope of equivalents of the claims. No reference numerals in the claims should be construed as limiting the scope of the claims. Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in a device claim may also be implemented by a single unit or device in software or hardware. Terms such as "first," "second," etc., are used only for distinguishing descriptions and do not indicate any particular order, nor should they be construed as indicating or implying relative importance.

[0163] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily made by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims, and the above embodiments should be regarded as exemplary and non-limiting.

Claims

1. A method for generating multi-agent collaborative corpus and conflict distillation, characterized in that, The method includes: The system acquires input task data and generates role arrangement configuration data based on the input task data, which is used to define the division of responsibilities, scope of permissions and interaction order of intelligent agents corresponding to multiple collaborative roles. Based on the role arrangement configuration data, the agents corresponding to the multiple collaborative roles are controlled to perform collaborative interaction, obtain the candidate conclusions output by each agent, and determine the conflict fragments based on the differences between the candidate conclusions. Based on the conflict fragment, the agent corresponding to the collaborative role with verification and arbitration responsibilities is invoked to perform evidence retrieval and consistency comparison on the candidate conclusions corresponding to the conflict fragment, and the candidate conclusions are scored to generate a consensus conclusion. Candidate corpus samples are generated based on the input task data, the role arrangement and configuration data, the process trajectory of the collaborative interaction, the conflict segments, and the consensus conclusion. Candidate corpus samples that meet the conditions are then filtered based on preset quality evaluation indicators and written into the multi-agent role collaborative corpus.

2. The method according to claim 1, characterized in that, The determination of conflicting segments based on the differences between the candidate conclusions specifically includes: The differences between candidate conclusions are characterized based on the conflict metric, and conflicting segments are determined based on the conflict metric. The conflict metric is determined based on at least one of the following: semantic difference, evidence inconsistency, planning execution deviation, and safety boundary violation: The semantic difference term is determined based on the semantic representation of the candidate conclusion; The inconsistency in the evidence is determined based on the evidence set corresponding to the candidate conclusion. The planning execution deviation item is determined based on the execution path generated during collaborative execution and the actual execution results. The security boundary violation is determined based on the compliance between the candidate conclusion and the preset constraints.

3. The method according to claim 1, characterized in that, The control of the intelligent agents corresponding to the multiple collaborative roles to perform collaborative interaction includes: Generate task status features based on the input task data; The proportion of evidence gaps is determined based on the information to be verified and the information already verified during the current collaborative interaction process. Uncertainty indicators are determined based on the distribution of candidate conclusions or verification results; The remaining budget is determined based on the remaining interaction rounds or resource usage. Based on the task status characteristics, the evidence gap ratio, the uncertainty index, the remaining budget, and the historical activation status of the collaborative roles, the agents participating in subsequent collaborative interaction execution are determined.

4. The method according to claim 1, characterized in that, The step of scoring the candidate conclusions to generate a consensus conclusion includes: The score for supporting evidence is determined based on the evidence supporting the candidate conclusion. The score for rebuttal evidence is determined based on evidence that conflicts with the candidate conclusions. The security risk score is determined based on the degree to which the candidate conclusions violate the constraints. The costs of supplementary verification and re-execution are determined based on the operational costs required to revise the candidate conclusions. The comprehensive score of the candidate conclusion is determined based on the supporting evidence score, the rebuttal evidence score, the security risk score, and the cost of supplementary evidence and re-execution.

5. The method according to claim 4, characterized in that, The step of scoring the candidate conclusions to generate a consensus conclusion also includes: An objective function is constructed based on the comprehensive score of the candidate conclusions and the candidate conclusions themselves. The objective function includes a bias term and a constraint term. The deviation term is used to characterize the degree of difference between the target conclusion and each of the candidate conclusions, and the constraint term is used to characterize the consistency of evidence and the consistency of rules. A comprehensive score is determined based on the basic credibility of the role to identify candidate conclusions. The corresponding weights are then determined based on the comprehensive score, and the objective function is solved based on the weights to obtain a consensus conclusion.

6. The method according to claim 1, characterized in that, The preset quality evaluation index is determined based on at least one of the following: coverage, novelty, conflict richness, dispute resolution completeness, and generation cost of the candidate corpus samples: The coverage is determined based on the distribution of the candidate corpus samples in terms of task type or conflict type; The novelty is determined based on the degree of difference between the candidate corpus sample and the existing corpus sample; The conflict richness is determined based on the number or type of conflict segments in the candidate corpus samples; The completeness of the dispute resolution is determined based on whether the candidate corpus samples contain a complete conflict resolution process, and the generation cost is determined based on the computing resources consumed in generating the candidate corpus samples.

7. The method according to claim 1, characterized in that, The candidate corpus samples are structured data objects, specifically including: The role arrangement and configuration data, the process trajectory of the collaborative interaction execution, the consensus conclusion, as well as the conflict relationship data used to represent the differences between roles and the evidence association data used to represent the relationship between claims and evidence; The conflict relationship data is determined based on the conflict fragments, and the evidence association data is generated based on the correspondence between the candidate conclusions and the evidence retrieval results.

8. An electronic device, characterized in that, The electronic device includes: One or more processors; and A memory storing computer program instructions, which, when executed, cause the processor to perform the steps of the method as described in any one of claims 1 to 7.

9. A computer-readable medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 7.

10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 7.