Method and system for governance and operation of multi-model collaborative large model in financial field
By employing a large-scale model governance approach that integrates multiple models, the problems of delayed illusion detection, insufficient retrieval coverage, and passive operation and maintenance response in AI operation and maintenance in the financial securities field have been solved. This approach enables real-time assessment and efficient fault response, ensuring the accuracy and reliability of the output.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHANGJIANG SECURITIES
- Filing Date
- 2026-04-01
- Publication Date
- 2026-06-26
AI Technical Summary
In the field of financial securities, AI-based operations and maintenance suffer from problems such as delayed hallucination detection, insufficient retrieval coverage, and passive operation and maintenance response, including a lack of real-time hallucination assessment mechanisms, low evidence recall rates, and long fault response times.
A multi-model collaborative large-model governance approach is adopted. By combining type identification, feature extraction and routing label configuration with RAG retrieval enhancement path and computation strategy path, prompt templates are constructed and a preset large model is invoked for inference. A multi-level evaluation strategy is used for real-time evaluation and risk classification.
It enables real-time detection and evaluation of large-scale model illusions, improves evidence recall and fault response efficiency, ensures the accuracy and reliability of output, and forms a complete operation and maintenance observability and emergency response system.
Smart Images

Figure CN121958558B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of artificial intelligence and natural language processing technology, and more specifically, to a method and system for the governance and operation of a large-scale collaborative multi-model illusion in the financial field. Background Technology
[0002] Operations and maintenance in the financial securities industry is a core element in ensuring the stable, secure, and efficient operation of trading systems. Faced with stringent requirements such as high-frequency trading, strong regulation, and 24 / 7 uninterrupted service, the operations and maintenance system has gradually evolved from traditional manual on-duty to a modern model that is automated, intelligent, and fully visualized.
[0003] Through extensive research and practice, the inventors of this application have discovered that current AI-based operations and maintenance in the financial securities field mainly employs a combination of traditional rule engines and manual review, which presents the following technical problems:
[0004] (1) Hallucination detection is lagging and lacks a real-time hallucination assessment mechanism. Erroneous outputs are often only discovered after they have caused an impact. This is because existing methods or systems rely on post-event manual review and customer complaints to trigger inspections. They cannot assess hallucination risks in real time before LLM output and lack real-time assessment mechanisms such as consistency scoring, coverage checks, and feature detection. As a result, hallucination outputs are only discovered after they have reached the customer.
[0005] (2) Insufficient retrieval coverage: Traditional vector retrieval lacks knowledge graph enhancement and has a low evidence recall rate, causing LLM to still force output even when the evidence is insufficient. Pure vector retrieval cannot handle complex relationships between entities and lacks the multi-hop traversal capability of knowledge graphs, resulting in a low evidence recall rate. As a result, it cannot achieve a complete mapping of entity relationships, and LLM generates incorrect conclusions based on incomplete evidence.
[0006] (3) The operation and maintenance response is passive, lacking an intelligent anomaly linkage mechanism. Fault response relies on manual investigation, resulting in a long average repair time. In existing methods, alarms rely on fixed threshold rules and lack intelligent anomaly detection based on GNN+time series generation models. For example, there is a lack of learning system behavior patterns and early warning, as well as a lack of natural language alarm analysis, such as automatically generating root causes of faults, scope of impact, and suggested solutions. In addition, there is a lack of anomaly linkage mechanisms, such as automatically triggering knowledge base governance and model rollback. Therefore, the average repair time is long and the scope of fault impact is expanded. Summary of the Invention
[0007] To address the technical problems existing in the prior art, this invention proposes a method and system for the governance and operation of multi-model collaborative large-scale model illusion in the financial field.
[0008] Specifically, the first aspect of this invention provides a method for the governance and operation of large-scale collaborative multi-model illusions in the financial field, including:
[0009] Receive user queries as input;
[0010] The system performs type identification and feature extraction on the received user queries to obtain type features, and then obtains the corresponding route labels and constraint configurations based on the type features.
[0011] The processing path is selected based on the routing label. The processing path includes the computation strategy path and the RAG retrieval enhancement path. The computation strategy path is used to call the pre-built computation strategy engine to generate computation strategy results. The RAG retrieval enhancement path is used to retrieve relevant evidence fragments from the knowledge base, calculate the retrieval coverage, and select whether to add the retrieved evidence fragments to the context based on the retrieval coverage.
[0012] Construct a prompt template based on routing tags, search results, and constraint configuration, and embed evidence fragments, citation format requirements, and strong mathematical constraints.
[0013] Combining RAG retrieval evidence, computational strategy results, and constructed prompt templates, a pre-defined large model is invoked for reasoning;
[0014] A multi-level evaluation strategy is used to evaluate the output reasoning results;
[0015] Risk classification and strategy implementation are based on the assessment results.
[0016] In one implementation, the received user query is subjected to type identification and feature extraction to obtain type features, including:
[0017] The system identifies the type of user queries received to determine the question intent category, including fact queries, content creation, mathematical calculations, logical reasoning, and document writing.
[0018] Pre-defined keyword detection is performed on user queries to obtain risk markers;
[0019] The frequency and density of numbers in user queries are statistically analyzed to obtain frequency analysis results.
[0020] In one embodiment, the method further includes:
[0021] Identify numerically intensive problems based on frequency analysis results.
[0022] In one implementation, the RAG retrieval enhancement path is specifically used for:
[0023] Load documents from the knowledge base and cut them into slices of a preset length;
[0024] An embedding model is used to semantically embed each slice to build a vector database. The embedding model is also used to convert user queries into vectors. Vector retrieval is then performed based on the similarity between the user query vector and the vectors in the vector database.
[0025] The knowledge base is constructed as a knowledge graph, user queries are embedded, and nearest neighbor search or graph traversal is performed to identify nodes related to the query embedding from the knowledge graph;
[0026] Based on the results of vector retrieval and graph retrieval, evidence fragments are obtained.
[0027] In one implementation, combining RAG retrieval evidence, computational strategy results, and constructed prompt templates, a pre-defined large model is invoked for reasoning, including:
[0028] For user queries involving mathematical calculations, a pre-defined large model is responsible for interpreting the calculation steps and using the calculation strategy results generated by the calculation strategy path as the numerical results obtained through reasoning.
[0029] For user queries other than those involving mathematical calculations, the default large model uses a thought chain or thought tree to expand the logic, and the reasoning results include the answer text, evidence citations, and reasoning chains.
[0030] In one implementation, a multi-level evaluation strategy is used to evaluate the output reasoning result, including:
[0031] Perform a rationality analysis on the characteristic statements and numerical ranges in the reasoning results;
[0032] The semantic consistency between the reasoning results and the retrieved evidence is analyzed, and a consistency score is calculated.
[0033] The chain of evidence is traced back to its source, the integrity of the reasoning chain is verified, and the citation rate is calculated to represent the proportion of evidence cited in the answer.
[0034] Consistency score, retrieval coverage, and citation rate are used as the comprehensive evaluation results.
[0035] In one implementation, risk classification and strategy execution are performed based on the assessment results, including:
[0036] Based on the risk marker, determine whether it meets the first preset condition for high risk. If so, conduct manual review or verification; otherwise, release and mark it as a reference.
[0037] The calculation strategy results generated by the calculation strategy path are compared with the output of the preset large model. If the values are inconsistent, an interception and recalculation are triggered.
[0038] Determine if the search coverage is less than the coverage threshold. If it is, downgrade the process and either retry or return an insufficient evidence message.
[0039] In one embodiment, the method further includes collecting and monitoring data during the input phase, reasoning phase, evaluation phase, and decision-making phase.
[0040] Based on the same inventive concept, a second aspect of this invention provides a system for the governance and operation of multi-model collaborative large-scale model illusions in the financial field, comprising:
[0041] The user query receiving module is used to receive user queries.
[0042] The problem analysis and type identification module is used to identify the type and extract features from the received user queries, obtain type features, and obtain the corresponding route labels and constraint configurations based on the type features;
[0043] The processing path selection module is used to select the processing path based on the routing label. The processing path includes the calculation strategy path and the RAG retrieval enhancement path. The calculation strategy path is used to call the pre-built calculation strategy engine to generate the calculation strategy result. The RAG retrieval enhancement path is used to recall relevant evidence fragments from the knowledge base, calculate the retrieval coverage, and select whether to add the recalled evidence fragments to the context based on the retrieval coverage.
[0044] The prompt template construction module is used to construct prompt templates based on routing tags, search results, and constraint configurations, embedding evidence fragments, citation format requirements, and strong mathematical constraints.
[0045] The reasoning module is used to combine RAG retrieval evidence, calculation strategy results, and constructed prompt templates to call a preset large model for reasoning;
[0046] The evaluation and decision-making module is used to evaluate the output reasoning results using a multi-level evaluation strategy.
[0047] The strategy execution and risk classification module is used to classify risks and execute strategies based on the assessment results.
[0048] Based on the same inventive concept, a third aspect of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for governance and operation of multi-model collaborative large-scale model illusion in the financial field as described in the first aspect.
[0049] Compared with the prior art, the advantages and beneficial technical effects of the present invention are as follows:
[0050] This invention discloses a method for managing and maintaining illusions in a large-scale collaborative multi-model system in the financial field. First, it identifies and extracts the type and features of received user queries to obtain type features, and then derives corresponding routing labels and constraint configurations based on these features. Next, it selects a processing path based on the routing labels, search results, and constraint configurations, and constructs a prompt template by embedding evidence fragments, citation format requirements, and strong mathematical constraints. Then, it combines RAG retrieval evidence, calculation strategy results, and the constructed prompt template to invoke a preset large-scale model for inference. A multi-level evaluation strategy is then used to evaluate the output inference results. Finally, risk classification and strategy execution are performed based on the evaluation results. Because this invention selects whether to add recalled evidence fragments to the context based on the calculated search coverage when triggering the RAG retrieval enhancement path, it ensures that the output is only performed when the search coverage condition is met, guaranteeing sufficient evidence. Furthermore, the multi-level evaluation strategy performs real-time evaluation of the output inference results, enabling real-time detection and evaluation of illusions in the large-scale model.
[0051] Furthermore, the RAG retrieval enhancement path combines vector retrieval with graph-enhanced retrieval to reduce the illusion rate of the model.
[0052] Furthermore, the computational strategy results generated by the computational strategy path are compared with the output of the preset large model. If the values are inconsistent, an interception and recalculation are triggered to ensure the accuracy of the numerical calculation.
[0053] Furthermore, data from the input, reasoning, evaluation, and decision-making stages are collected and monitored to form a complete observable operation and maintenance and emergency response system. Attached Figure Description
[0054] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0055] Figure 1 This is a flowchart illustrating the method for governance and operation of a large-scale collaborative multi-model illusion in the financial field, as described in this invention.
[0056] Figure 2 This is a detailed technical roadmap of the method for governance and operation of the multi-model collaborative large model illusion in the financial field in this embodiment of the invention;
[0057] Figure 3 This is a flowchart of the reasoning result evaluation and strategy execution in an embodiment of the present invention;
[0058] Figure 4 This is a flowchart of intelligent anomaly detection based on GNN+ temporal generation model in an embodiment of the present invention;
[0059] Figure 5 This is an architecture diagram of a system for governance and operation of a multi-model collaborative large model illusion in the financial field, as described in this embodiment of the invention. Detailed Implementation
[0060] Example 1
[0061] This embodiment provides a method for governing and maintaining the illusion of large-scale multi-model collaboration in the financial field. Please refer to [link to relevant documentation]. Figure 1 ,include:
[0062] S1: Receives user queries;
[0063] Specifically, S1 is the input data receiving stage.
[0064] S2: Perform type identification and feature extraction on the received user queries to obtain type features, and obtain the corresponding routing labels and constraint configurations based on the type features.
[0065] Specifically, S2 is the problem type analysis. After a user query enters through the entry gateway, the problem type is identified, and type characteristics are obtained, including fact query, content creation, mathematical calculation, logical reasoning, and document writing. Then, based on the type characteristics, the corresponding route tags and constraint configurations are obtained.
[0066] S2 performs type identification and feature extraction on the received user queries to obtain type features, specifically including:
[0067] The system identifies the type of user queries received to determine the question intent category, including fact queries, content creation, mathematical calculations, logical reasoning, and document writing.
[0068] Pre-defined keyword detection is performed on user queries to obtain risk markers;
[0069] The frequency and density of numbers in user queries are statistically analyzed to obtain frequency analysis results.
[0070] The method also includes:
[0071] Identify numerically intensive problems based on frequency analysis results.
[0072] Specifically, type features are used to characterize the fine-grained attributes of the query itself and its context, serving as input evidence for routing decisions and constraint configuration. Type features include at least: question intent category, specific keyword detection results (e.g., triggering a high-risk flag when high-risk words such as "prediction" or "estimation" are included), frequency and density of statistical data (used to identify numerically intensive questions and trigger "strong constraints on computational strategies"), and the risk level derived from these.
[0073] When the numerical values appear frequently in the problem (such as containing multiple percentages, amounts, dates, and other numerical entities), it is determined to be a numerically intensive problem. At this time, strong constraints on the calculation strategy will be triggered, specifically: (1) When processing path selection, the pre-built calculation strategy engine is forced to generate deterministic values; (2) During reasoning, LLM is only responsible for language interpretation and is prohibited from generating values on its own; (3) During evaluation, the output of the calculation strategy is compared with the output of LLM. If the values are inconsistent, interception and recalculation will be triggered.
[0074] Specifically, the aforementioned type features are first generated through type recognition and feature extraction. Then, based on these type features, corresponding routing labels and constraint configurations are inferred (e.g., different question types are bound to different search coverage thresholds and prompt template constraints). High-risk markers and other type features are then passed to the subsequent Prompt factory and illusion evaluation layer to select appropriate prompt templates, tighten SLO thresholds, and determine whether to proceed to the human review process. Thus, type features are the foundation for generating routing labels and constraint strategies, while routing labels represent high-level decision-making results formed based on these type features.
[0075] Routing labels are used to abstractly identify queries in terms of business scenarios and technical processing paths. They are the core control signals for the system to select retrieval paths, computational strategy branches, multi-model candidate pools, and configure evaluation and guard strategies. Based on intent recognition results, the question type analysis module categorizes queries into types such as fact queries, content creation, mathematical computation, logical reasoning, or long-form writing, and generates corresponding routing labels accordingly. For example, for the "Operations + Business Integration Diagnosis" scenario, it generates the routing label `fact_query_ops_biz`. The routing labels directly determine whether the second layer follows the RAG retrieval path or a pre-built computational strategy path, which retrieval coverage threshold is used, and whether to prioritize compliant models, mathematically specialized models, or general-purpose generative models.
[0076] In the specific implementation process, the output route labels and type characteristics play a key constraining role in subsequent steps, specifically including:
[0077] (1) The routing label determines the choice of the processing path of S2. For example, the mathematical calculation type will trigger the calculation strategy path and force the call of the deterministic calculation engine; the fact query type will trigger the RAG retrieval enhancement path, which adopts a strict retrieval coverage threshold, such as a retrieval coverage threshold of 0.65; the creation type will trigger the RAG retrieval enhancement path, which adopts a more lenient coverage threshold, such as a retrieval coverage threshold of 0.5.
[0078] (2) Type characteristics affect the template selection of the Prompt factory. For mathematical problems, the constraint of calculation before expression is forced to be embedded. For factual problems, the citation format is forced to be embedded.
[0079] (3) Risk markers will be used for subsequent risk assessments. For example, high-risk markers will be subject to stricter SLO thresholds at the assessment level and may be subject to mandatory human review processes.
[0080] S3: Select the processing path based on the routing label. The processing path includes the computation strategy path and the RAG retrieval enhancement path. The computation strategy path is used to call the pre-built computation strategy engine to generate computation strategy results. The RAG retrieval enhancement path is used to retrieve relevant evidence fragments from the knowledge base, calculate the retrieval coverage, and select whether to add the retrieved evidence fragments to the context based on the retrieval coverage.
[0081] Specifically, S3 is path selection, where the problem type analysis results are split into two parallel paths: the computation strategy path and the RAG retrieval enhancement path.
[0082] Specifically, the RAG retrieval enhancement path is used for:
[0083] S3.1: Load documents from the knowledge base and cut the documents into slices of a preset length;
[0084] S3.2: Use an embedding model to perform semantic embedding on each slice, build a vector database, use an embedding model to convert user queries into vectors, and perform vector retrieval based on the similarity between the user query vector and the vectors in the vector database;
[0085] S3.3: Construct the knowledge base into a knowledge graph, embed user queries, and perform nearest neighbor search or graph traversal to identify nodes related to the query embedding from the knowledge graph;
[0086] S3.4: Based on the results of vector retrieval and graph retrieval, obtain evidence fragments.
[0087] Specifically, the RAG retrieval path is generally divided into document loading, text segmentation, embedding vectorization, and retrieval. This process combines vector retrieval with graph retrieval, specifically GraphRAG graph-enhanced retrieval. This retrieval process includes entity linking, 2-3 hop multi-hop traversal of the knowledge graph, temporal filtering, and graph statistical evidence fusion. When obtaining evidence fragments based on the results of vector and graph retrieval, a hybrid sorting method is used, for example, setting the weight of graph retrieval to 0.6 and the weight of vector retrieval to 0.4. Compared to pure vector retrieval, this hybrid retrieval method significantly reduces the illusion rate and substantially decreases token consumption, ultimately returning coverage scores and evidence fragments.
[0088] The knowledge graph is built offline before system deployment and continuously updated through the knowledge base governance module. It includes the following: (1) Financial entity nodes, including listed companies, regulatory agencies, financial products, key figures, etc.; (2) Relationship edges, shareholding structure, related transactions, regulatory chains, industry affiliation, etc.; (3) Time attributes, each node and relationship is marked with an expiration date, and temporal filtering is supported. Main function: It stores complex relationships between entities through a graph structure, supports multi-hop reasoning and related queries, and makes up for the shortcomings of pure vector retrieval in relational reasoning.
[0089] Multi-hop traversal refers to starting from the query entity and performing 2-3 hops along the relationship edges of the knowledge graph to retrieve relevant evidence. For example, to query "Does Company A have related-party transactions with Company B?", the process starts from Company A → (1 hop) finds Company A's subsidiary C → (2 hops) discovers that C has an equity relationship with Company B → (3 hops) confirms the related-party transaction path. It should be noted that 2-3 hops is an empirical setting, which can capture indirect relationships while avoiding over-diffuse noise.
[0090] Domain graphs are financial specialization subsets of knowledge graphs. They are built offline based on authoritative materials such as regulatory documents, financial statements, and research reports before system deployment and are updated regularly through the knowledge base governance module. Specific functions include: (1) providing standardized definitions and associations for financial professional terms; (2) supporting entity disambiguation—distinguishing similar company names and stock codes; and (3) supporting temporal reasoning—verifying the timeliness of evidence and filtering outdated data.
[0091] Regarding the computational strategy path, mathematical problems directly call the deterministic computation engine to generate recalculated numerical results, avoiding the LLM's reliance on intuition to output numbers.
[0092] S4: Construct a prompt template based on the routing label, search results and constraint configuration, and embed evidence fragments, citation format requirements and strong mathematical constraints.
[0093] Specifically, S4 is the prompt template construction. The Prompt factory constructs a prompt template based on the question type and search results, embedding evidence fragments, citation format requirements (such as source, page number or paragraph), and strong mathematical constraints (calculate before stating, prohibit certain conclusions without evidence, etc.).
[0094] S5: Combining RAG retrieval evidence, computational strategy results, and constructed prompt templates, the system invokes a pre-defined large model for inference.
[0095] Specifically, S5 stands for model inference.
[0096] S5 specifically includes:
[0097] S5.1: For user queries involving mathematical calculations, a pre-defined large model is responsible for interpreting the calculation steps and using the calculation strategy results generated by the calculation strategy path as the numerical results obtained through reasoning.
[0098] S5.2: For user queries other than those involving mathematical calculations, the default large model uses a thought chain or thought tree to expand the logic, and the reasoning results include the answer text, evidence citations, and reasoning chains.
[0099] In the specific implementation process, the results output by LLM after performing inference include: (1) Answer text: the answer content generated for the user query; (2) Evidence citation: the source of evidence retrieved by RAG (e.g., document, page number, or paragraph); (3) Inference chain: the logical step sequence of CoT / ToT expansion; (4) Numerical results: if it is a mathematical problem, it includes the deterministic numerical value output by the calculation strategy engine and the language explanation of LLM. These results output after inference are passed as a whole to step S6 for quality inspection.
[0100] S6: Employ a multi-level evaluation strategy to evaluate the output reasoning results.
[0101] Specifically, S6 is the hallucination assessment.
[0102] S6 specifically includes:
[0103] S6.1: Conduct a rationality analysis on the characteristic statements and numerical ranges in the reasoning results;
[0104] S6.2: Analyze the semantic consistency between the reasoning results and the retrieved evidence, and calculate the consistency score;
[0105] S6.3: Trace the chain of evidence, verify the integrity of the reasoning chain, and calculate the citation rate to represent the proportion of evidence cited in the answer;
[0106] S6.4: Use consistency score, retrieval coverage, and citation rate as a comprehensive evaluation result.
[0107] In practice, the LLM output enters the automatic evaluator, which employs a four-layer evaluation pipeline. Please refer to [link to relevant documentation]. Figure 3 .
[0108] First layer: Fast rule filtering, detecting the reasonableness of feature terms and numerical ranges;
[0109] The second layer: semantic consistency, calculating and retrieving evidence coverage and factual consistency;
[0110] The third layer: CoT reasoning verification, step-by-step evidence tracing, and verification of the integrity of the reasoning chain;
[0111] The fourth layer: Machine learning model (ML model) scoring, where the ensemble classifier outputs a comprehensive score that includes consistency score, coverage, and citation rate.
[0112] S7: Based on the assessment results, classify risks and implement strategies.
[0113] Specifically, S7 refers to risk classification and strategy execution.
[0114] S7 specifically includes:
[0115] S7.1: Determine whether the risk meets the first preset condition based on the risk mark. If so, conduct manual review or verification. Otherwise, release and mark the reference.
[0116] S7.2: Compare the calculation strategy results generated by the calculation strategy path with the output of the preset large model. If the values are inconsistent, trigger an interception and recalculation.
[0117] S7.3: Determine if the search coverage is less than the coverage threshold. If it is less, perform a downgrade and retry or return an insufficient evidence message.
[0118] In the specific implementation process, the overall score is checked for SLO (Service Level Objective) thresholds. For example, if the consistency score, retrieval coverage, and citation rate all meet the conditions, then it is verified whether the current prompt model version is in the grayscale whitelist.
[0119] Then, a hybrid detection process combining rules and machine learning (ML) models is implemented for risk classification and fine-grained hallucination type identification. The specific workflow is as follows:
[0120] (1) Rule detection layer: First, predefined rules are applied for rapid screening, including feature detection, numerical range rationality verification, and timestamp consistency check;
[0121] (2) ML detection layer: The output of the rule layer is used to perform deep detection using a trained ensemble classifier to identify subtle illusory patterns that are difficult to capture by the rules;
[0122] (3) Risk grading method: Combining consistency score, coverage, citation rate, illusion type and business scenario, the output is divided into four risk levels: low risk, insufficient evidence, numerical inconsistency and high risk.
[0123] (4) Fine-grained illusion type identification: The HalluFin framework is applied to identify four types of illusions: time drift, projection overgeneralization, numerical inconsistency and entity confusion, providing accurate guidance for subsequent diversion processing.
[0124] Specifically, please see Figure 3 The specific decisions for the four branches of the risk level are as follows:
[0125] Insufficient evidence branch: If the search coverage is less than the threshold, downgrade, retry, or expand the recall;
[0126] Inconsistent numerical values branch: If the result of the calculation strategy is inconsistent with the numerical value output by LLM, the calculation strategy will be forced to recalculate, and the system will be intercepted and prompted with "There is a deviation in the numerical calculation. The result of the calculation strategy shall prevail".
[0127] For low-risk branches: if consistency and coverage meet the standards and references are in compliance with regulations, the branches are allowed to proceed and the reference sources are marked. Then, auditing and record-keeping are performed, and logs are retained throughout the entire process.
[0128] High-risk branches: those with insufficient consistency, high-risk characteristic words, or sensitive areas will enter the human review and compliance guard.
[0129] In one embodiment, the method further includes collecting and monitoring data during the input phase, reasoning phase, evaluation phase, and decision-making phase.
[0130] In the specific implementation process, the data fields collected include:
[0131] prompt_id: A unique identifier for the prompt word, used to trace the Prompt version and its historical changes;
[0132] retrieval_k: The number of top-k evidence fragments returned by RAG retrieval;
[0133] coverage_ratio: Search coverage, which measures the degree to which the fragments returned by RAG hit the question;
[0134] consistency_score: Fact consistency score, which measures the semantic consistency between the LLM output and the retrieved evidence;
[0135] citation_rate: Citation rate, measures the proportion and standardization of evidence citations in an answer;
[0136] hallucination_score: Hallucination score, which comprehensively assesses the level of hallucination risk output;
[0137] temporal_drift_count: Temporal drift count, records the number of times expired data is referenced in the output;
[0138] graph_hop_depth: hop count during graph traversal, recording the multi-hop depth during GraphRAG retrieval;
[0139] This implementation method establishes an operation and maintenance monitoring system; please refer to [link / reference] for details. Figure 5 On the right is the operation and maintenance module group, which includes five layers of modules from top to bottom: observable data collection, SLO threshold monitoring, monitoring alarms and auditing, cost and performance governance, and scaling and disaster recovery, forming a complete observable operation and maintenance and emergency response system.
[0140] The operation and maintenance monitoring system consists of the following components from top to bottom: observable data collection, SLO threshold monitoring, monitoring alarms and auditing, cost and performance management, and scaling and disaster recovery.
[0141] The method of this invention supports three types of models, all of which are obtained by retraining and optimizing existing large language models for different specific domains. The system performs dynamic routing selection based on scenario requirements:
[0142] Compliance Model: A model fine-tuned in the field of compliance, suitable for scenarios such as interpreting regulatory policies and conducting compliance reviews, emphasizing the compliance and conservatism of the output;
[0143] Mathematical Expertise Model: A model that excels in mathematical reasoning and is suitable for scenarios such as risk indicator calculation and interpretation, and financial data analysis. It is used in conjunction with a calculation strategy engine.
[0144] General Generative Model: A general large language model suitable for generative scenarios such as research report generation and customer service.
[0145] The model is dynamically selected based on the following factors:
[0146] (1) The routing label identified in step S2 of the problem type determines the candidate model pool. For example, the "compliance and supervision" type prioritizes the compliance model, and the "mathematical calculation" type prioritizes the mathematical expertise model.
[0147] (2) Latency budget: Select the model according to the latency requirements of the business scenario. For example, in real-time transaction scenarios, a lightweight model with faster inference speed should be selected; in non-real-time scenarios, a larger and more accurate model can be selected.
[0148] (3) High-risk scenarios are subject to mandatory use of compliance models and trigger human review processes.
[0149] The method of the present invention will be described in detail below through a specific example.
[0150] The compliance department of a securities firm discovered that this morning, the investment advisory service system triggered a large number of downgraded investment recommendations for VIP clients. The compliance manager, in conjunction with the operations team, inquired: "Why are VIP client investment recommendations frequently triggering downgrades? Is this a system malfunction or normal blocking? Please provide evidence and assess the business impact."
[0151] Step 1: Input Question and Type Recognition
[0152] When a compliance manager queries the system through the entry gateway, the problem type analysis module identifies keywords such as "investment advice," "downgrade," "normal blocking," "VIP clients," and "business impact," and determines that it is a fact query type. Therefore, the routing label is output as: fact_query_ops_biz.
[0153] Step 2: Specific keyword detection and digital frequency statistics
[0154] Keywords "investment advice" and "VIP customer" were detected and marked as high-risk concurrently; "downgrade" and "normal interception" triggered the operation and maintenance scenario markers, which were determined to be an operation and maintenance and business integration scenario. At this time, it is necessary to retrieve operation and maintenance data and business data at the same time.
[0155] Step 3: RAG Search and Coverage Check
[0156] Initiating the multi-source RAG search process:
[0157] Operations and maintenance dimension retrieval: The monitoring system retrieves evaluation records, degradation trigger logs, and SLO metric changes for the large model system's hallucination detection during the period from 09:30 to 11:00 today;
[0158] Business-related search: Based on the service knowledge base, we obtained VIP client classification standards, investment advisory service SLA requirements, and compliance red lines for investment advice;
[0159] Strategy-based retrieval: Based on the strategy configuration library, retrieve the retrieval coverage threshold, consistency threshold, and degradation rules for investment advice scenarios.
[0160] Temporal filtering retains only data within a preset time window (e.g., 09:30~11:00 today) and returns the retrieval coverage. Evidence fragments are added based on the relationship between the retrieval coverage and the threshold.
[0161] The evidence retrieved includes:
[0162] Operational evidence: The rate of downgrade in the investment advisory scenario increased between 09:45 and 10:30, triggered by insufficient search coverage.
[0163] Operational evidence: 09:40 Knowledge base update event—Securities research report database TTL expired, causing research report data to go offline;
[0164] Business Evidence: VIP Client Service SLA Requirements—Investment recommendations must be accompanied by research reports as evidence; affirmative conclusions are prohibited without evidence.
[0165] Strategy Evidence: The search coverage threshold for investment advisory scenarios is set to 0.80 (which is higher than the default value of 0.65), triggering a downgrade.
[0166] Step 4: Determining the Mathematical Problem
[0167] The system determines that the problem is not mathematical or logical, and does not call the computational strategy engine. Instead, it uses the CoT (Conceptual Chain) approach for multi-dimensional analysis and reasoning.
[0168] Step 5: Hints on Construction and LLM Reasoning
[0169] The Prompt factory constructs prompts based on the operation and maintenance + business integration template: embedding multi-dimensional RAG evidence and mandatory constraints: "Analyze from both the operation and maintenance perspective and the business perspective, and all conclusions must be based on retrieved evidence, clearly distinguishing between system failures and normal interception."
[0170] LLM inference service enables CoT inference, and the specific process includes:
[0171] Step 1: Conduct operational analysis to confirm the cause of the downgrade, specifically "retrieval coverage < coverage threshold 0.80", rather than a system failure;
[0172] Step 2: Root cause analysis: The research report database TTL (Time To Live) expired at 09:40, causing the research report data to be taken offline, and the search evidence was insufficient;
[0173] Step 3: Conduct a business impact assessment. The VIP customer service SLA (Service Level Agreement) requires "no conclusion without evidence," and the downgrade strategy complies with compliance requirements.
[0174] Step 4: Conclusion: This is a normal degradation behavior of the large model system, used to protect customers from compliance risks of unsubstantiated advice;
[0175] Step 5: Recommended action: Immediately update the TTL configuration of the research report database to restore search coverage.
[0176] Step 6: Evaluation and Scoring
[0177] The automated evaluator executes a four-layer evaluation pipeline:
[0178] First layer: Fast rule filtering. If no feature words are detected, the conclusion is based on multi-source evidence.
[0179] The second layer: semantic consistency check, which compares the LLM output with the operation and maintenance logs and business rules, and verifies each item. consistency_score=0.93;
[0180] The third layer: CoT inference verification, which verifies the integrity of the causal chain, such as TTL expiration → insufficient evidence → downgrade triggering;
[0181] Fourth layer: ML model scoring, obtaining a comprehensive score output.
[0182] Evaluation results: coverage_ratio=0.72, consistency_score=0.93, citation_rate=0.96 (full-dimensional evidence citation), hallucination_score=0.02.
[0183] Step 7: Fact Consistency Check
[0184] Determine if the fact consistency score is greater than or equal to the fact consistency score threshold for the financial scenario, i.e., consistency_score=0.93>=0.90 (fact consistency score threshold for the financial scenario). If it is greater than or equal to, continue execution without triggering a downgrade or blocking branch.
[0185] Step 8: SLO Threshold Check
[0186] SLO threshold verification:
[0187] First, a factual consistency determination is made, and the factual consistency score is compared with whether it is greater than or equal to the factual consistency score threshold in the financial scenario, which meets the requirements.
[0188] Whether the median search coverage is greater than or equal to the search coverage threshold. In this embodiment, the median search coverage is 0.72 < 0.80, which does not meet the requirement because the TTL of the research report database has expired, resulting in insufficient coverage.
[0189] Whether the citation rate is greater than or equal to the citation rate threshold, in this embodiment, the citation rate 0.96 ≥ 0.95, which meets the requirement;
[0190] The number of tense violations is 0, which meets the requirements.
[0191] It should be noted that the above is an operation and maintenance fault analysis query. The insufficient retrieval coverage is due to the problem being analyzed, not a quality issue with the current query, so the process should continue.
[0192] Step 9: Version and Grayscale Control
[0193] The system verifies the current configuration: Prompt version = compliance-ops-v2.1.0 (compliance + operation and maintenance integrated template), model version = compliance-v1.3 (compliance-specific model), current time = 11:05 (within the trading session), therefore, a stable version configuration is used.
[0194] Step 10: High-Risk Assessment and Strategy Execution
[0195] Risk classification: This query involves a compliance-sensitive area, but this query is an analysis of the fault rather than providing investment advice, and the evidence is sufficient, so it is judged as "low risk" and the release policy will be implemented.
[0196] Policy execution: Allow output and automatically label the source of reference, such as operation and maintenance log timestamps, business SLA documents, and policy configuration versions.
[0197] Step 11: Audit Record Keeping
[0198] The entire decision-making process is written into a blockchain audit log, which is retained for 7-10 years to support compliance audits and operational reviews. The specific content of the blockchain audit log includes:
[0199] (1) The compliance manager retrieves the original document and employee number;
[0200] (2) Multi-dimensional RAG retrieval evidence, including operation and maintenance logs, business SLAs, and policy configurations;
[0201] (3) LLM model output: including evaluation scores and policy decisions;
[0202] (4) Timestamp: YYYY-MM-DD 11:05:18.892, end-to-end delay: 1,250ms;
[0203] Step 12: Anomaly Detection and Change Freeze
[0204] The anomaly detection module monitors in real time: If no anomalies are found in this query, the normal process continues. However, the system detects an expired TTL issue in the research report database. This triggers the policy engine via a Webhook (an event notification system implemented through an HTTP callback mechanism, capable of sending data to a specified URL when a specific event occurs), and in conjunction with the knowledge base governance module, generates an emergency update work order. Currently, during trading hours, changes are frozen, but this type of knowledge base TTL configuration update falls under the category of emergency repair exceptions and will be executed immediately after approval by the on-duty operations and maintenance personnel.
[0205] Final output
[0206] The system returned the following result: an analysis report on the integration of operations and business.
[0207] Example 2
[0208] Based on the same inventive concept, this embodiment discloses a system for the governance and operation of multi-model collaborative large-scale model illusions in the financial field, including:
[0209] The user query receiving module is used to receive user queries.
[0210] The problem analysis and type recognition module is used to identify the type and extract features from the received user queries, obtain type features, and obtain the corresponding route labels and constraint configurations based on the type features;
[0211] The processing path selection module is used to select the processing path based on the routing label. The processing path includes the calculation strategy path and the RAG retrieval enhancement path. The calculation strategy path is used to call the pre-built calculation strategy engine to generate the calculation strategy result. The RAG retrieval enhancement path is used to recall relevant evidence fragments from the knowledge base, calculate the retrieval coverage, and select whether to add the recalled evidence fragments to the context based on the retrieval coverage.
[0212] The prompt template construction module is used to construct prompt templates based on routing tags, search results, and constraint configurations, embedding evidence fragments, citation format requirements, and strong mathematical constraints.
[0213] The reasoning module is used to combine RAG retrieval evidence, calculation strategy results, and constructed prompt templates to call a preset large model for reasoning;
[0214] The evaluation and decision-making module is used to evaluate the output reasoning results using a multi-level evaluation strategy.
[0215] The strategy execution and risk classification module is used to classify risks and execute strategies based on the assessment results.
[0216] Please see Figure 2 This is a detailed technical roadmap for the method of governance and operation of multi-model collaborative large model illusion in the financial field in this embodiment of the invention. The complete process from input problem to final decision includes the following steps:
[0217] 1. Problem input reception: When a user queries the system through the entry gateway, the system begins to analyze the problem.
[0218] 2. Type Identification Stage: The problem analysis and type identification module identifies which category the query belongs to: fact query, content generation, mathematical calculation, logical reasoning, or long article writing. At the same time, it performs specific keyword detection and statistical frequency analysis, and finally outputs routing labels and type characteristics to provide guidance for subsequent processing.
[0219] 3. RAG Retrieval and Coverage Check: The system initiates the RAG retrieval process, retrieves relevant evidence fragments from the knowledge base, and calculates the retrieval coverage. If the retrieval coverage reaches a threshold, the evidence fragment is added to the context; if the coverage is insufficient, the system triggers a degradation strategy, including rewriting the query, expanding the recall scope, or switching to a stronger retrieval model to ensure the sufficiency of the evidence.
[0220] 4. Prompt Construction Phase: The system selects the corresponding prompt template based on the question type, embeds the evidence fragments obtained from RAG retrieval into the prompt, and adds citation format requirements. For mathematical problems, the prompt is required to "calculate before stating," and guessing values without evidence is prohibited.
[0221] 5. LLM Reasoning and Computation Strategy Branch: The system sends the constructed hints to the LLM for reasoning. If the problem is identified as a mathematical problem, the system forcibly calls the computation strategy engine to generate deterministic values, while the LLM is only responsible for verbal interpretation to avoid numerical illusions; if the problem is a logical reasoning problem, a thought chain or thought tree is used to proceed with step-by-step reasoning.
[0222] 6. Evaluation and Scoring Process: Immediately after the LLM output, the system enters the automatic evaluator, executing a four-layer evaluation pipeline. The first layer uses rapid rule filtering to detect the reasonableness of feature words and numerical values; the second layer performs semantic consistency evaluation by verifying sentence embeddings and SPO triples (relation, entity relation, entity attribute triples) to calculate the consistency score; the third layer uses CoT inference to verify the completeness of the evidence chain through step-by-step tracing; and the fourth layer uses the ML model to score and output a comprehensive evaluation score. The system calculates three core indicators: consistency score, coverage, and citation rate.
[0223] 7. SLO Threshold Check Decision Point: The system compares the evaluation score with the SLO threshold. For example, in a financial scenario, the requirements are: factual consistency ≥ factual consistency threshold, median search coverage ≥ coverage threshold, and citation rate ≥ citation rate threshold. If any metric fails to meet the standard, the system triggers a downgrade or branches to be blocked; if all criteria are met, the subsequent process continues.
[0224] 8. Version and Gray-Scale Control Verification: The system verifies whether the currently used prompt template version and LLM model version are within the gray-scale whitelist and checks whether it is in a change freeze period (such as trading hours 09:30-15:00). If it is in a freeze period or the version is not on the whitelist, the new strategy execution is rejected, and a stable version configuration is used.
[0225] 9. Strategy Execution and Risk Classification: The strategy engine makes decisions based on the assessment score and risk level. If a scenario is determined to be high-risk (sensitive areas such as trading instructions, valuation opinions, compliance issues, or insufficient consistency score), it is forced into a human review or verification process, where experts conduct manual approval. If it is low-risk and the score meets the standard, the output is allowed and the cited source is indicated. If the evidence is insufficient or the data is unreliable, a downgrade strategy is implemented or the process is retried. If a definite error is detected, the output is intercepted and a compliance warning text is returned.
[0226] 10. Audit Log Recording: The system writes the complete decision-making chain (including the original user query, RAG retrieval of evidence sources, LLM model output, evaluation score, strategy decision, operator, and timestamp) into the blockchain audit log system, ensuring end-to-end traceability and immutability, meeting regulatory compliance requirements. The log retention period is 7-10 years. Audit fields adopt standardized GenAI semantic conventions, including observable fields such as coverage_ratio, consistency_score, citation_rate, hallucination_score, temporal_drift_count, and decision.
[0227] 11. Change Freeze and Kill Switch Emergency Mechanism: The system monitors anomaly detection indicators in real time, including abnormal increases in hallucination rate, number of temporal violations, and SLO exceeding thresholds. Once an anomaly is detected, the policy engine is triggered via Webhook to execute an emergency response, including downgrading (switching to a more conservative strategy), blocking (pausing LLM generation and only returning retrieved evidence), and rolling back (restoring to the previous stable version). In extreme cases, the Kill Switch emergency switch is activated, forcibly downgrading to the "evidence retrieval + human review" mode, completely stopping automatic LLM generation to ensure system security. The system in this application also includes underlying knowledge base governance and anomaly linkage closed loop. Specifically, the monitoring, alarm, and auditing modules monitor hallucination rate, coverage, and accuracy indicators in real time. Anomaly samples trigger an anomaly linkage mechanism via Webhook. This mechanism adopts an intelligent anomaly detection method based on GNN and temporal generation models. It replaces fixed thresholds by learning system behavior patterns, then performs natural language alarm analysis, and finally automatically stores the resulting samples in the database.
[0228] Please see Figure 4This is a flowchart illustrating the implementation of an intelligent anomaly detection method based on GNN and a time-series generative model. This method combines existing GNN (Graph Neural Network) and time-series generative model technologies, applying them to anomaly detection scenarios in large-scale model services. GNN is used to learn the topological relationships and dependency patterns between system components, while the time-series generative model is used to learn the time-series patterns of indicators. The combination of the two can identify potential problems before anomalies exhibit obvious symptoms, replacing traditional fixed-threshold alarm methods. The GNN module can learn the topological dependencies and fault propagation paths between system components, automatically locating the source of anomalies and tracing the impact chain. This enables the system to identify anomaly trends in advance, achieving proactive early warning. Intervention can be carried out before faults manifest, effectively narrowing the scope of impact and preventing fault spread. Automatic natural language alarms that automatically generate root causes, impact chains, and solution suggestions significantly shorten the mean time to repair (MTTR), greatly improving operational response efficiency, and are independent of individual experience levels.
[0229] Please see Figure 5 This is an architecture diagram of a system for governance and operation of a multi-model collaborative large model illusion in the financial field, as described in this embodiment of the invention.
[0230] Key decision points explained:
[0231] (1) Search coverage check: If the detection coverage is insufficient, rewrite the query, expand the recall scope or switch to a strong search model to ensure sufficient evidence.
[0232] (2) Mathematical problem branch: Force the use of computational strategies to generate numerical values, and LLM is only responsible for interpretation, thus avoiding numerical illusion.
[0233] (3) Fact consistency check: A four-layer evaluation pipeline (rule filtering → semantic consistency → CoT verification → ML scoring) is adopted. If the standard is not met, it will be downgraded or blocked.
[0234] (4) High-risk determination: When sensitive areas (such as transaction instructions, compliance issues, etc.) or inconsistencies are involved, the process will be forced to enter the manual review process.
[0235] (5) Abnormal linkage: When the illusion rate is abnormal, the temporal violation occurs, or the SLO exceeds the threshold, the Webhook triggers the strategy engine to perform downgrade, interception, or rollback.
[0236] Hallucination detection and reward feedback mechanism
[0237] The hallucination detection and treatment process includes four stages: assessment, classification, triage, and reward feedback.
[0238] I. Evaluation Process
[0239] 1. Model Output Reception: The answer generated by LLM is fed into an automatic evaluator for quality checks.
[0240] 2. Four-Layer Evaluation Pipeline Execution: The automated evaluator executes four layers of detection according to the principle of speed from fast to slow and complexity from simple to complex. The first layer is rule filtering (quickly detecting feature language (uncertain expressions such as "as far as I know," "maybe," "estimate," "probably," "perhaps," etc.) and the reasonableness of numerical ranges, identifying obvious low-quality outputs); the second layer is semantic consistency evaluation, which calculates the semantic consistency score and coverage between the LLM output and the retrieved evidence through sentence embedding vector comparison and SPO triple verification; the third layer is CoT inference verification, which step-by-step traces the inference chain to verify whether each inference step is supported by evidence, ensuring the integrity of the logical chain; the fourth layer is ML model comprehensive scoring, which uses an ensemble classifier to output a final comprehensive score of consistency score, coverage, and citation rate.
[0241] 3. Observable data collection: The system collects complete distributed tracing data and audit fields, including hallucination_score, coverage_ratio, consistency_score, citation_rate, and temporal_drift_count. All fields conform to the GenAI semantic convention standard, which facilitates subsequent fault location and root cause analysis.
[0242] 4. SLO Threshold Check Decision: The system compares the evaluation score with the preset SLO threshold. For financial securities scenarios, strict requirements are placed on factual consistency ≥ 0.90, median retrieval coverage ≥ 0.80, citation rate ≥ 0.95, and tense violations = 0 (zero tolerance). If any indicator fails to meet the standard, it is marked as a potential quality issue and enters the subsequent risk classification process.
[0243] 5. Version and Gray-scale Control Verification: The system verifies whether the current evaluation strategy version and threshold configuration are within the gray-scale whitelist to ensure the consistency and controllability of the evaluation criteria.
[0244] 6. In-depth analysis of hallucination detectors: A rule-based + ML hybrid detection method is adopted, and the HalluFin framework is applied to identify fine-grained hallucination types, including four major categories of hallucination problems: time drift, projection overgeneralization, numerical inconsistency, and entity confusion.
[0245] II. Classification
[0246] Risk classification: Based on the comprehensive assessment score, hallucination type and business scenario, the output is divided into four levels: low risk, insufficient evidence, inconsistent values and high risk.
[0247] III. Diversion Processing
[0248] After risk classification, the system proceeds to the corresponding processing branch based on different risk levels:
[0249] Branch 1: Insufficient Evidence Handling: If insufficient evidence is determined, the system initiates a downgrade, retry, or expanded recall strategy. Specific measures include rewriting the user query, expanding the recall scope, switching to a stronger retrieval model, and re-executing the RAG retrieval process to obtain more sufficient evidence. If sufficient evidence still cannot be obtained after a preset number of retries (e.g., 3), a compliance message "Insufficient evidence, unable to provide a definitive answer" is output, along with a link to authoritative materials for the user to consult.
[0250] Branch 2: Handling Numerical Inconsistencies: If a numerical inconsistency is detected (the value generated by LLM does not match the result of the calculation strategy engine, or the value is obviously unreasonable), the system will force the calculation strategy engine to recalculate, and the deterministic calculation result will prevail. The system intercepts the raw output of LLM and returns a message to the user: "There is a deviation in the numerical calculation. It has been recalculated. The following is the accurate result," along with the complete calculation process, formulas, parameter settings, and data sources, ensuring that the value is reproducible and verifiable. This sample is marked as a negative sample (the reward value is set to a negative value: -2 or -4) for subsequent reward model optimization.
[0251] It should be noted that "this sample" in branch 2 refers to a complete record of a numerical inconsistency interaction. Specifically, a user submits a query involving numerical computation, and the numerical value generated by the large model is inconsistent with the result of the computational strategy engine (or the value is clearly unreasonable). After detecting this issue, the system intercepts the original output of the LLM and replaces it with the correct result from the computational strategy engine. This entire interaction process is recorded, forming a negative sample (with a reward value of -2 or -4), which is used in the subsequent optimization training of the reward model—the negative sample input training process—to allow the model to learn the decision boundary that "numerical computation must be accurate."
[0252] Branch 3 Low-Risk Release: If determined to be low-risk (sufficient evidence, high consistency, and citation compliance), the system releases the output and automatically marks the citation source. The output format includes the answer text and citation information (source document, page number, paragraph, and timestamp) to ensure traceability. The system records the complete decision chain (query + evidence + output + scoring + strategy) in the audit log, preserving the evidence chain and meeting compliance requirements. This sample is marked as a positive sample (reward value set to positive: 0.5 or 1) for positive reinforcement learning guidance.
[0253] It should be noted that "this sample" in branch 3 refers to the complete question-and-answer record that has been assessed as low-risk (sufficient evidence, high consistency, and citation standard) and allowed to be output by the system. Specifically, it includes: the user's original query, the evidence documents returned by RAG retrieval, the answer text generated by LLM and automatically labeled citation information (e.g., source documents, page numbers, paragraphs, timestamps), the complete decision chain, all recorded in the audit log, the scores of each of the four levels of evaluation, and the reward value label. The reward value label is set to a positive value (0.5 or 1), indicating that this is a correct / high-quality sample, used to guide the model's learning.
[0254] Branch 4 High-Risk Human Review: If a problem is deemed high-risk (definitely incorrect, uncertain output in sensitive areas, extremely low consistency), the system forces it into a human review or verification process. The issue is assigned to a domain expert for manual review, who can view the complete audit log for a comprehensive assessment. The expert's approval result is linked to the audit log, creating a traceable record of the human review. High-risk intercepted samples are marked as important negative samples (reward value = -4), and their high weight is used for reward model optimization and strategy threshold adjustment.
[0255] It should be noted that the "high-risk intercepted samples" in branch 4 refer to samples that are judged as high-risk by the system and forcibly intercepted to enter the manual review process. The triggering conditions are: the LLM output contains a definite error, the output involves uncertainties in sensitive areas, or the factual consistency is extremely low. Specifically, it includes: the user's original query, the evidence documents returned by the RAG retrieval, the original answer generated by the LLM (the intercepted sample), the scores of each item in the four-level evaluation, the risk level and illusion type determined by the system, the complete audit log, the expert approval results, and the reward value label. The reward value label is set to -4, indicating that this is an important negative sample, and it is used with high weight for reward model optimization and policy threshold adjustment.
[0256] IV. Reward Feedback
[0257] The evaluation results are mapped to a 5-tier reward system for use in offline RLHF (Reinforcement Learning Based on Human Feedback) and online adaptive learning.
[0258] Reward value = 1 (positive correct answer): Sufficient evidence (coverage rate ≥ coverage rate threshold 0.80), high factual consistency (≥ factual consistency score threshold for financial scenarios 0.90), proper citation (citation rate ≥ citation rate 0.95), no feature words, no tense violations, and complete logical chain. This type of sample serves as a benchmark case for model learning, guiding the model to learn the decision-making pattern of "sufficient evidence → high-quality output".
[0259] Reward value = 0.5 (fuzzy correct answer): The evidence is partially supportive (coverage between 0.65 and 0.80), with moderate consistency (factual consistency score between 0.75 and 0.90). The output is basically correct but has slight uncertainty or improper citation. This type of sample serves as a neutral-biased case, suggesting that the model should be cautious when the evidence is insufficient, but can still provide a biased opinion.
[0260] Reward value = 0 (no relevant knowledge found): Evidence is missing or coverage is extremely low (e.g., coverage less than 0.50), but the model correctly outputs "Insufficient evidence, unable to provide a definitive answer" instead of forcibly fabricating an answer. These samples reinforce the model's learning of the "insufficient evidence → admitting ignorance" decision-making pattern, avoiding the illusion of no evidence. These samples are archived separately to identify knowledge base gaps and trigger the knowledge base expansion process.
[0261] Reward value = -2 (fuzzy incorrect answer): The evidence contradicts the output, or there is a deviation in the numerical calculation but it does not cause serious misleading. These samples serve as negative samples to guide the model to learn to avoid inconsistent evidence output and improve the rigor of reasoning.
[0262] Reward value = -4 (positive incorrect answer): Output with clear evidence to refute the statement, or outputting a positive conclusion without any evidence. These samples are serious negative samples, and are given high weight for reward model optimization, reinforcing the decision boundary of "no output without evidence" and "interception of contradictory evidence". Positive errors involving trading instructions, valuation opinions, and compliance issues are marked as SEV1 level events, triggering emergency responses such as alarms, human review, and version rollback.
[0263] Learning loop
[0264] 1. Sample Input and Labeling: The system randomly selects online samples according to a certain proportion and combines them with expert annotations to form a high-quality training dataset. Each sample includes complete context (including user query, RAG retrieval evidence, and LLM output), detailed scores for four levels of evaluation, 5-level reward value labels, and expert correction opinions (optional). Positive samples (reward value ≥ 0.5) and negative samples (reward value < 0) are mixed in a 1:1 or 2:1 ratio to avoid sample distribution skew.
[0265] 2. Reward Model Update: With fact consistency, retrieval coverage, and citation rate as positive optimization objectives, and minimizing divergence loss (KL Divergence), the reward model parameters are updated using PPO (Proximity Policy Optimization) or DPO (Direct Preference Optimization) algorithms. The reward model learns to distinguish the output features corresponding to the five reward values, forming a more accurate quality assessment capability. The updated reward model is validated in a pre-release environment. After confirming that metrics such as illusion rate and consistency score do not degrade, it is gradually rolled out through canary releases.
[0266] 3. Knowledge Base Governance and Cleaning: Knowledge base gaps are identified based on "no relevant knowledge found" samples (reward value = 0), triggering domain experts to supplement relevant materials and expand the knowledge base's coverage. A regular knowledge base cleansing process is implemented, including timeliness verification, contamination detection, and graph node validity filtering. Timeliness verification includes marking or deleting expired data; contamination detection includes isolating abnormal samples to a contaminated database; and graph node validity filtering (GraphRAG graph nodes have a time validity attribute, and expired nodes are automatically filtered during retrieval) also includes knowledge base versioning management, generating a new version with each major update, supporting canary releases and rollbacks.
[0267] 4. Feedback to RAG Retrieval Optimization: Query rewriting strategies, recall optimization methods, and graph traversal paths from high-quality samples are fed back into the RAG retrieval service to improve retrieval quality. For example, the query characteristics of "insufficient evidence" samples are analyzed to optimize entity recognition and keyword extraction algorithms; the graph traversal paths of "high retrieval coverage and high output quality" samples are analyzed to optimize GraphRAG's multi-hop strategy and mixed ranking weights. Through a continuous learning loop, the system continuously improves in retrieval accuracy, evidence sufficiency, and output consistency, forming a closed loop of "evaluation → feedback → optimization → re-evaluation".
[0268] Operation and maintenance constraints and guarantee mechanisms
[0269] 1. Unified Observable Implementation: Following GenAI Semantic Conventions, collect Traces / Metrics / Events / Logs throughout the entire RAG → Prompt → Generation → Evaluation process. Standard fields include gen_ai.system, gen_ai.request.model, gen_ai.usage.input_tokens, gen_ai.usage.output_tokens, and extended fields prompt_id, prompt_version, retrieval_k, coverage_ratio, consistency_score, citation_rate, hallucination_score, temporal_drift_count, graph_hop_depth, graph_transition_weight, latency_ms, cost_usd, and decision.
[0270] GenAI Semantic Conventions are GenAI observability standard specifications defined by the OpenTelemetry community, providing a unified telemetry data acquisition format for LLM applications.
[0271] Traces / Metrics / Events / Logs: Distributed tracing / metrics / events / logs form the three pillars of observability, used for tracing links, performance measurement, state change recording, and detailed log analysis, respectively.
[0272] Standard field description:
[0273] gen_ai.system: AI system identifier, indicating the name of the large model service provider or system currently in use;
[0274] gen_ai.request.model: Request model identifier, recording the specific model name and version called in this inference;
[0275] gen_ai.usage.input_tokens: Input token count. Records the number of tokens consumed by the input prompts in this request, used for cost accounting and usage monitoring.
[0276] gen_ai.usage.output_tokens: Output token count, records the number of output tokens generated by the model in this request, used for cost accounting and usage monitoring;
[0277] Extended field description:
[0278] prompt_id: A unique identifier for the prompt word, used to trace the origin and historical changes of the Prompt template;
[0279] prompt_version: The version number of the prompt word, which records the version of the currently used Prompt template and supports canary releases and rollbacks;
[0280] retrieval_k: The number of top-k retrieved items, the number of evidence fragments returned by RAG retrieval, which affects coverage and inference cost;
[0281] coverage_ratio: Search coverage, measures the degree to which the fragments returned by RAG hit the question, ranging from 0 to 1;
[0282] consistency_score: Fact consistency score, which measures the semantic consistency between the LLM output and the retrieved evidence, ranging from 0 to 1;
[0283] citation_rate: Citation rate, measures the proportion and normativeness of evidence citations in an answer, ranging from 0 to 1;
[0284] hallucination_score: Hallucination score, which comprehensively assesses the level of hallucination risk. The higher the value, the greater the risk.
[0285] temporal_drift_count: Temporal drift count, records the number of times expired data is referenced in the output, and a value of 0 is required in financial scenarios;
[0286] graph_hop_depth: hop count during graph traversal, recording the multi-hop depth during GraphRAG retrieval, typically 2-3 hops;
[0287] graph_transition_weight: Graph transition weight, which records the weight ratio of graph retrieval in GraphRAG hybrid ranking;
[0288] latency_ms: The latency in milliseconds, which records the end-to-end response time for this request;
[0289] cost_usd: Cost in US dollars, recording the LLM inference cost of this request;
[0290] decision: The decision result records the final decision of the strategy engine.
[0291] 2. Automated Instrumentation and Data Acquisition: Zero-code intrusive telemetry acquisition of LangChain / LlamaIndex is performed through Auto-Instrumentation Libraries. The Batch Exporter sends the data to a time-series database, a distributed tracing backend, and a log aggregation platform.
[0292] Explanation of relevant terms:
[0293] Auto-Instrumentation Libraries: These libraries of automated instruments can automatically collect distributed tracing data without modifying business code.
[0294] LangChain / LlamaIndex: A mainstream LLM application development framework that enables zero-intrusion telemetry data acquisition by the system;
[0295] Batch Exporter: This batch exporter sends the collected telemetry data to the backend storage system in batches.
[0296] Time series database: used to store metrics data;
[0297] Distributed tracing backend: Used to store Traces tracing data;
[0298] Log aggregation platform: used for storing and analyzing Logs data.
[0299] 3. AI Agent Observability Enhancement: Implement distributed tracing for multi-agent systems, capture inter-agent interactions, decision chains, and tool call sequences, and support end-to-end latency analysis and error tracing across agents.
[0300] 4. Versioning and Canary Release Control: Versioning of prompts / routes / models.
[0301] 5. Intelligent Anomaly Response: Anomaly detection based on GNN and time-series generation model triggers the policy engine, and natural language alarm analysis automatically generates root causes of failures, scope of impact, and solution suggestions. Samples are automatically added to the database to drive the continuous learning of reward models and knowledge base governance.
[0302] Since the system in Embodiment 2 of this invention is the same system used in the method for governance and operation of multi-model collaborative large-scale models in the financial field described in Embodiment 1, those skilled in the art can understand the specific structure and variations of this system based on the method introduced in Embodiment 1 of this invention, and therefore will not be repeated here. All systems used in the method of Embodiment 1 of this invention fall within the scope of protection of this invention.
[0303] Example 3
[0304] Based on the same inventive concept, the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method described in Embodiment 1.
[0305] Since the computer device described in Embodiment 3 of this invention is the same computer device used to implement the method for multi-model collaborative large-scale model illusion governance and operation and maintenance in the financial field in Embodiment 1 of this invention, those skilled in the art can understand the specific structure and variations of this computer device based on the method described in Embodiment 1 of this invention, and therefore will not be described again here. All computer devices used in the method of Embodiment 1 of this invention fall within the scope of protection of this invention.
[0306] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0307] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0308] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention. Clearly, those skilled in the art can make various modifications and variations to the embodiments of the invention without departing from the spirit and scope of the invention. Thus, if these modifications and variations of the embodiments of the invention fall within the scope of the claims of the invention and their equivalents, the invention also intends to include these modifications and variations.
Claims
1. A method for governance and operation of a large-scale collaborative multi-model illusion in the financial field, characterized in that, include: Receive user queries as input; The system performs type identification and feature extraction on the received user queries to obtain type features, and then obtains the corresponding route labels and constraint configurations based on the type features. The processing path is selected based on the routing label. The processing path includes the computation strategy path and the RAG retrieval enhancement path. The computation strategy path is used to call the pre-built computation strategy engine to generate computation strategy results. The RAG retrieval enhancement path is used to retrieve relevant evidence fragments from the knowledge base, calculate the retrieval coverage, and select whether to add the retrieved evidence fragments to the context based on the retrieval coverage. Construct a prompt template based on routing tags, search results, and constraint configuration, and embed evidence fragments, citation format requirements, and strong mathematical constraints. Combining RAG retrieval evidence, computational strategy results, and constructed prompt templates, a pre-defined large model is invoked for reasoning; A multi-level evaluation strategy is used to evaluate the output reasoning results; Risk classification and strategy implementation will be based on the assessment results; This involves performing type identification and feature extraction on received user queries to obtain type features, including: The system identifies the type of user queries received to determine the question intent category, including fact queries, content creation, mathematical calculations, logical reasoning, and document writing. Pre-defined keyword detection is performed on user queries to obtain risk markers; The frequency and density of numbers in user queries are statistically analyzed to obtain frequency analysis results. The type characteristics include question intent category, preset keyword detection results, and statistical results of number frequency and density.
2. The method for governance and operation of multi-model collaborative large-scale model illusion in the financial field as described in claim 1, characterized in that, The method further includes: Identify numerically intensive problems based on frequency analysis results.
3. The method for governance and operation of multi-model collaborative large-scale model illusion in the financial field as described in claim 1, characterized in that, RAG search enhancement paths are specifically used for: Load documents from the knowledge base and cut them into slices of a preset length; An embedding model is used to semantically embed each slice to build a vector database. The embedding model is also used to convert user queries into vectors. Vector retrieval is then performed based on the similarity between the user query vector and the vectors in the vector database. The knowledge base is constructed as a knowledge graph, user queries are embedded, and nearest neighbor search or graph traversal is performed to identify nodes related to the query embedding from the knowledge graph; Based on the results of vector retrieval and graph retrieval, evidence fragments are obtained.
4. The method for governance and operation of multi-model collaborative large-scale model illusion in the financial field as described in claim 1, characterized in that, Combining RAG retrieval evidence, computational strategy results, and constructed prompt templates, inference is performed using a pre-defined large model, including: For user queries involving mathematical calculations, a pre-defined large model is responsible for interpreting the calculation steps and using the calculation strategy results generated by the calculation strategy path as the numerical results obtained through reasoning. For user queries other than those involving mathematical calculations, the default large model uses a thought chain or thought tree to expand the logic, and the reasoning results include the answer text, evidence citations, and reasoning chains.
5. The method for governance and operation of multi-model collaborative large-scale model illusion in the financial field as described in claim 1, characterized in that, A multi-level evaluation strategy is employed to evaluate the output reasoning results, including: Perform a rationality analysis on the characteristic statements and numerical ranges in the reasoning results; The semantic consistency between the reasoning results and the retrieved evidence is analyzed, and a consistency score is calculated. The chain of evidence is traced back to its source, the integrity of the reasoning chain is verified, and the citation rate is calculated to represent the proportion of evidence cited in the answer. Consistency score, retrieval coverage, and citation rate are used as the comprehensive evaluation results.
6. The method for governance and operation of multi-model collaborative large-scale model illusion in the financial field as described in claim 1, characterized in that, Risk classification and strategy implementation are based on the assessment results, including: Based on the risk marker, determine whether it meets the first preset condition for high risk. If so, conduct manual review or verification; otherwise, release and mark it as a reference. The calculation strategy results generated by the calculation strategy path are compared with the output of the preset large model. If the values are inconsistent, an interception and recalculation are triggered. Determine if the search coverage is less than the coverage threshold. If it is, downgrade the process and either retry or return an insufficient evidence message.
7. The method for governance and operation of multi-model collaborative large-scale model illusion in the financial field as described in claim 1, characterized in that, The method also includes collecting and monitoring data during the input phase, reasoning phase, evaluation phase, and decision-making phase.
8. A system for governance and operation of a large-scale collaborative multi-model illusion in the financial field, characterized in that, Based on the method described in claim 1, it includes: The user query receiving module is used to receive user queries. The problem analysis and type recognition module is used to identify the type and extract features from the received user queries, obtain type features, and obtain the corresponding route labels and constraint configurations based on the type features; The processing path selection module is used to select the processing path based on the routing label. The processing path includes the calculation strategy path and the RAG retrieval enhancement path. The calculation strategy path is used to call the pre-built calculation strategy engine to generate the calculation strategy result. The RAG retrieval enhancement path is used to recall relevant evidence fragments from the knowledge base, calculate the retrieval coverage, and select whether to add the recalled evidence fragments to the context based on the retrieval coverage. The prompt template construction module is used to construct prompt templates based on routing tags, search results, and constraint configurations, embedding evidence fragments, citation format requirements, and strong mathematical constraints. The reasoning module is used to combine RAG retrieval evidence, calculation strategy results, and constructed prompt templates to call a preset large model for reasoning; The evaluation and decision-making module is used to evaluate the output reasoning results using a multi-level evaluation strategy. The strategy execution and risk classification module is used to classify risks and execute strategies based on the assessment results.
9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method for governance and operation of multi-model collaborative large-scale model illusion in the financial field as described in any one of claims 1 to 7.