A financial document analysis method and system based on multi-agent cooperation
By employing a multi-agent collaborative analysis method and feature-aware gating reordering technology, this approach addresses the issues of limited perspective and insufficient structural alignment in financial document analysis. It enables efficient and reliable analysis of long and complex financial documents, making it suitable for scenarios involving financial analysis, investment research, and regulatory support.
Patent Information
- Application Number
- CN202610866769.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-16
- Publication Date
- 2026-11-27
AI Technical Summary
Existing financial document analysis technologies suffer from limitations when processing lengthy, complex, and highly specialized financial disclosure documents. These limitations include a single analytical perspective, insufficient ability to align queries with document structure, and difficulty in identifying semantically similar but unsupported false evidence. Consequently, key information coverage is insufficient and analysis results are inaccurate.
A multi-agent collaborative analysis method is adopted, which drives multiple professional analytical agents (overview, quantitative, market, legal risk, and corporate operations) to process in parallel through a coordinator. Combined with local summary view and multi-path retrieval, subqueries aligned with the structure of the target financial document are generated. Feature-aware gating and reordering are used to filter evidence, achieving high recall and high reliability of evidence.
It improves the evidence coverage and reliability of analysis results in financial document analysis, and is suitable for multi-dimensional information retrieval and evidence screening of long and complex financial documents, ensuring the logical integrity and professional suitability of the analysis results.
Smart Images

Figure CN123178533A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of artificial intelligence and financial information processing, and in particular to a financial document analysis method and system based on multi-agent collaboration. Background Technology
[0002] With the continuous and rapid growth of information in the financial market, regulatory disclosure documents issued by regulatory agencies, periodic reports published by listed companies, prospectuses used by companies issuing securities, and other professional financial documents are showing a trend of increasing length and expanding information dimensions. These documents typically contain a large number of professional terms from finance, law, accounting, and other fields, with complex logical expressions, rigorous and standardized sentence structures, and key information is often distributed across chapters, paragraphs, and other areas. How to quickly and accurately locate and analyze relevant valid evidence from these lengthy, complex, and highly specialized financial documents, and form objective and reliable analytical results, has become a critical technical problem that urgently needs to be solved in multiple core application scenarios such as financial analysis, investment research, risk management, and regulatory support.
[0003] In recent years, retrieval-enhanced generation technology, with its technical architecture of retrieving external knowledge and generating conclusions through models, has been widely applied in financial document analysis tasks such as financial question answering, document parsing, and intelligent investment research. This technology effectively combines external real-world text information with the understanding and generation capabilities of large language models by introducing retrieval results from external professional financial documents as the basis for generation. To a certain extent, it alleviates the illusion problems such as fabricated facts and logical biases that may arise when large language models directly generate analytical content, providing a feasible technical path for the intelligent processing and professional analysis of financial texts. However, when dealing with formal financial documents that are highly specialized, structurally complex, formatted, and information-dense, existing retrieval-enhanced generation technologies and similar financial document analysis solutions still have many significant shortcomings that are difficult to overcome, and they cannot meet the stringent technical requirements of high-end financial analysis scenarios.
[0004] On the one hand, existing retrieval and analysis solutions typically employ a single retrieval path or a single analytical perspective. Their limited analytical dimensions and professional coverage make them ill-suited for the comprehensive analysis of financial issues across multiple professional dimensions, such as market competition, legal compliance risks, company operations, core financial indicators, and industry trends. This can easily lead to insufficient coverage of key evidence, omissions of core information, and missing analytical dimensions, failing to provide complete support for the comprehensive assessment and in-depth analysis of complex financial issues. On the other hand, financial documents usually possess standardized chapter structures, fixed information disclosure paradigms, and domain-specific terminology. Their textual expressions and chapter logic exhibit strong domain-specific characteristics. However, user-input natural language questions are often directly used for retrieval without adaptation processing in existing technologies. This lack of precise alignment with the target document structure, chapter logic, professional expression habits, and domain corpus characteristics easily results in generated search queries that deviate from the target chapters and mismatch professional terminology, significantly reducing search accuracy and information hit rate, and making it difficult to locate truly effective analytical evidence. Furthermore, financial documents often contain a large number of templated expressions and generic statements. While these text fragments may appear semantically similar to user questions, they fail to provide sufficient evidence to support analytical conclusions in terms of factual support, logical coherence, and evidentiary value. Existing technologies often struggle to accurately identify and effectively filter out such superficially similar but actually invalid false correlations, easily incorporating invalid or weakly relevant information into the analysis, thus directly impacting the accuracy, rigor, and reliability of the final analysis results.
[0005] Therefore, existing technologies have significant shortcomings in meeting the practical needs of intelligent analysis of long and complex financial documents in scenarios such as financial analysis, investment research, and regulatory assistance. There is an urgent need for a new financial document analysis method and system that can adapt to collaborative analysis from multiple professional perspectives, achieve precise alignment of document structure and terminology, and possess efficient evidence risk identification and control capabilities. This would comprehensively compensate for the deficiencies of existing technologies in terms of evidence coverage completeness, retrieval accuracy, and result output reliability, and meet the technical needs of professional analysis in the financial field. Summary of the Invention
[0006] To address the problems of existing financial document analysis technologies in processing long, complex, and highly specialized financial disclosure documents, such as a single analytical perspective, insufficient ability to align queries with document structure, and difficulty in identifying semantically similar but not validly supporting false evidence, the present invention aims to provide a financial document analysis method and system based on multi-agent collaboration, so as to improve the evidence coverage, structural alignment, and reliability of analysis results in the financial document analysis process.
[0007] The above-mentioned objective of this invention is achieved through the following technical solutions: A financial document analysis method based on multi-agent collaboration includes the following steps: S1: Obtain the user-input question to be analyzed and the target financial document corpus corresponding to the question to be analyzed; S2: The coordinator performs semantic recognition and task assignment on the problem to be analyzed based on the semantic type of the problem to be analyzed. Based on the analysis dimensions involved in the problem, at least one target analysis agent is selected and activated from a plurality of preset professional analysis agents. Each of the professional analysis agents corresponds to a preset scope of responsibility, retrieval scope and analysis focus, and is used to decompose and analyze the problem to be analyzed from different professional perspectives. S3: Each of the target analysis agents generates a role condition analysis view for the problem to be analyzed, so as to form an analytical representation of different dimensions, including overview, quantitative, market, legal risk and company operation. S4: Based on the problem to be analyzed, the role condition analysis view, and the local summary view obtained from the target financial document corpus, perform a query decomposition of the perception database on each target analysis agent to generate a sub-query set that matches the scope of responsibility of the corresponding target analysis agent; S5: For each subquery in the subquery set, perform multi-path retrieval within the retrieval range of the corresponding target analysis agent to obtain a set of candidate evidence blocks and improve the recall and coverage capability of candidate evidence; S6: Perform feature-aware reordering on the candidate evidence block set to obtain the target evidence set; S7: Based on the target evidence set, each target analysis agent generates a sub-analysis result with evidence constraints, and the coordinator aggregates, resolves conflicts and integrates information for each sub-analysis result, and outputs the financial document analysis result.
[0008] Furthermore, in step S2, the preset multiple specialized analytical agents include at least: The system includes a general intelligence agent for overview analysis, a quantitative intelligence agent for quantitative analysis, a market intelligence agent for market analysis, a legal intelligence agent for legal risk analysis, and a company intelligence agent for company operations analysis.
[0009] Further, in step S2, the coordinator performs semantic recognition and task assignment on the problem to be analyzed based on its semantic type. Based on the analytical dimensions involved in the problem, at least one target analytical agent is selected and activated from a set of preset specialized analytical agents. Specifically: The problem to be analyzed is semantically identified and classified into tasks, and the professional analysis dimensions involved in the problem to be analyzed are broken down into response sub-problems. Based on the professional analysis dimensions, a set of target analysis agents matching the problem to be analyzed is determined. If the problem to be analyzed is determined to be an irrelevant request that is not related to the domain, a direct reply interception mechanism is triggered, and no professional agent is activated. If the problem is determined to be a basic concept problem, it will be downgraded to activating only the basic agent that handles global transactions. If the problem is identified as a complex financial issue, the system generates structured data, including JSON format, containing the target analysis agent identifier, activation reason, and status identifier. The system parses the structured data, extracts the target analysis agent identifier, and issues instructions to the set of target analysis agents in an independent thread to control them to perform evidence retrieval and analysis from a specific perspective in parallel.
[0010] Furthermore, in step S3, when each of the target analysis agents generates a role condition analysis view for the problem to be analyzed, for any target analysis agent... Its role condition analysis view satisfy: in, This indicates the problem to be analyzed. Represents the target analysis agent Corresponding role strategies Let A represent the prompt generation function induced by the role strategy, and let A be the set of the target analysis agents.
[0011] Further, in step S4, the local summary view is obtained in the following way: To improve the structural alignment between the problem to be analyzed and the target financial document corpus, offline preprocessing is performed on the target financial document corpus before query decomposition, parsing the original financial documents into document blocks with page number information, chapter information or source information; Generate summary information and build a summary index for adjacent or consecutive document blocks; During online analysis, after receiving the question to be analyzed, a lightweight retrieval tool is used to recall relevant previous results from the abstract index. Each summary result forms a local summary view. .
[0012] Further, in step S4, a set of subqueries matching the scope of responsibility of the corresponding target analysis agent is generated, specifically as follows: After obtaining the role condition analysis view and the local summary view, each target analysis agent performs query decomposition of the perception database based on the problem to be analyzed, the role condition analysis view and the local summary view to generate a set of subqueries that match the corresponding responsibility scope. For any target analysis agent a, its subquery set satisfy: in, Represents the target analysis agent The corresponding query decomposition function, The target analysis agent represents The generated role condition analysis view, Representing the problem to be analyzed The corresponding local summary view, The target analysis agent represents Multiple subqueries were generated; By introducing a local summary view, the generated subqueries can be better aligned with the chapter titles, business segment names, risk item names, financial item names, and disclosure terms in the target financial document, thereby reducing the structural mismatch problem caused by relying solely on the original question for query expansion.
[0013] Furthermore, in step S5, the multi-path retrieval includes at least two or more of the following retrieval paths: Sparse retrieval path based on term matching; Dense search paths based on vector similarity; Summary retrieval path based on summary vector similarity; Table retrieval path based on table content representation.
[0014] Furthermore, in step S5, for any target analysis agent... and any of its subqueries Candidate evidence block set satisfy: in, This indicates the first few steps returned by the sparse search path. One search result, This indicates the first result returned by the dense search path. One search result, This indicates the first result returned by the abstract retrieval path. One search result, Represents the target analysis agent The corresponding search scope; By using parallel multi-path retrieval, different signals such as term matching, semantic similarity, and summary-level matching can be comprehensively utilized to improve the recall completeness of candidate evidence.
[0015] Furthermore, in step S5, the multi-path retrieval also satisfies at least one of the following: Sparse search paths are categorized by BM25 score within the search scope. Before selecting internally One document block; Dense search paths are categorized by the similarity between query embeddings and document block embeddings within the search scope. Before selecting internally One document block; Abstract retrieval paths are based on the similarity between query embeddings and abstract embeddings within the retrieval scope. Before selecting internally One document block; Table retrieval paths are based on the similarity between the query embedding and the table representation within the retrieval scope. Before selecting internally A table block.
[0016] Further, in step S6, the candidate evidence block set is reordered based on features, specifically as follows: Since the candidate evidence block set obtained by multi-path retrieval is usually an over-inclusion set with high recall and wide coverage, it may contain a large number of candidate blocks that are similar to the subquery surface but cannot constitute real supporting evidence. Therefore, a feature-aware gating re-ranking mechanism is introduced to evaluate and screen the reliability of candidate evidence blocks, including: For candidate evidence blocks AND subquery The semantic reordering model is used to calculate the basic semantic relevance score. ; Constructing feature vectors for feature evaluation ; The feature vector is input into a pre-calibrated feature-aware gating model. The reliability estimate of the evidence was obtained. ; The final ranking score is calculated based on the basic semantic relevance score and the evidence reliability estimate.
[0017] Furthermore, the feature vector satisfy: in, This represents the search scores from different search paths. Indicates candidate evidence blocks The path position and source information, This indicates subquery-level statistical features. This represents the metadata features at the candidate evidence block level. This indicates overlap features between candidate evidence blocks and subqueries, including term overlap, number overlap, year overlap, or word similarity.
[0018] Furthermore, the estimated reliability of the evidence and the final ranking score respectively satisfy: Utilizing pre-trained and calibrated feature-aware gating models Mapping the feature vector yields an estimate of the reliability of the evidence, which is expressed as follows: in, Indicates candidate evidence blocks For subqueries The larger the value of the evidence reliability estimate, the more likely the candidate evidence block is to constitute true and valid supporting evidence. After obtaining the basic semantic relevance score and the evidence reliability estimate, this invention calculates the final ranking score using a gated fusion method, which is expressed as follows: in, Represents the target analysis agent The corresponding gate strength parameters, Indicates candidate evidence blocks relative to subqueries The final ranking score, through this gating fusion mechanism, can suppress candidate evidence blocks with high semantic similarity but low reliability while retaining the advantages of semantic re-ranking, thereby reducing the probability of false positive samples entering the final evidence set.
[0019] Furthermore, in step S6, for any target analysis agent... and any of its subqueries The top scorers are selected based on the final ranking scores. The candidate evidence blocks are used as the target evidence set. satisfy: in, Subquery The corresponding set of target evidence, Indicates the number of candidate evidence blocks retained. This indicates that the top scores are selected from highest to lowest according to the final ranking. One candidate evidence block; Each target analysis agent generates a sub-analysis result with evidence constraints based on its corresponding target evidence set. The coordinator then resolves conflicts, integrates information, and synthesizes the results of the sub-analysis outputs from different target analysis agents, and outputs the final financial document analysis result.
[0020] Furthermore, the pre-calibrated feature-aware gating model is obtained in the following way: Construct positive samples based on known valid evidence in the training set; Hard negative samples are constructed based on highly similar but invalid evidence in the search results, and random negative samples are selected to supplement them. The feature-aware gating model is trained using the positive samples, hard negative samples, and random negative samples, so that the feature-aware gating model learns to distinguish between real supporting evidence and fake positive samples.
[0021] A multi-agent collaborative financial document analysis system for performing the multi-agent collaborative financial document analysis method described above includes: The input acquisition module is used to acquire the user-input question to be analyzed and the target financial document corpus corresponding to the question to be analyzed; The coordination and control module is used to perform semantic recognition and task assignment on the problem to be analyzed based on the semantic type of the problem to be analyzed through a coordinator, and select and activate at least one target analysis agent from a plurality of preset professional analysis agents according to the analysis dimensions involved in the problem. Each of the professional analysis agents corresponds to a preset scope of responsibility, retrieval scope and analysis focus, and is used to decompose and analyze the problem to be analyzed from different professional perspectives. The role analysis module is used to generate role condition analysis views for each of the target analysis agents for the problem to be analyzed, so as to form analysis representations of different dimensions including overview, quantitative, market, legal risk and company operation. The query decomposition module is used to perform a perceptual database query decomposition on each of the target analysis agents based on the problem to be analyzed, the role condition analysis view, and the local summary view obtained from the target financial document corpus, and generate a sub-query set that matches the responsibility scope of the corresponding target analysis agent. The multi-path retrieval module is used to perform multi-path retrieval within the retrieval range of the corresponding target analysis agent for each subquery in the subquery set, so as to obtain a set of candidate evidence blocks and improve the recall and coverage capability of candidate evidence. The feature reordering module is used to perform feature-aware reordering on the candidate evidence block set to obtain the target evidence set. The result synthesis module is used to generate sub-analysis results with evidence constraints by each of the target analysis agents based on the target evidence set, and the coordinator aggregates, resolves conflicts and integrates information of each of the sub-analysis results to output financial document analysis results.
[0022] A computer device or computer-readable storage medium, the computer device comprising a processor, a memory and a computer program stored in the memory and executable on the processor, or the computer-readable storage medium storing a computer program; wherein the computer program, when executed by the processor, implements the method as described above.
[0023] Compared with the prior art, the present invention has at least one of the following beneficial effects: (1) The present invention uses a coordinator-driven role-specialized multi-agent collaborative analysis mechanism to explicitly split the analysis needs of different professional dimensions before retrieval, which can improve the problem of insufficient evidence coverage under a single analysis path and improve the recall ability of multi-dimensional information in complex financial documents. (2) By introducing a local summary view and performing query decomposition of the perceptual database based on the view, the present invention enables the subquery generation process to no longer rely solely on the user's original question, but to be aligned with the chapter structure and terminology system of the target financial document corpus, thereby improving the consistency between the query and the document structure. (3) This invention combines multi-path retrieval with feature-aware gating reordering to improve the recall coverage of candidate evidence while suppressing false related candidate evidence that is semantically similar but does not constitute real support, thereby improving the accuracy and reliability of the target evidence set. (4) By uniformly aggregating and integrating the sub-analysis results output by each target analysis agent, this invention can improve the factual consistency, logical integrity and professional adaptability of financial document analysis results, and is applicable to long and complex financial disclosure documents, company reports, regulatory documents and other financial text analysis scenarios. Attached Figure Description
[0024] Figure 1 This is a flowchart illustrating the overall process of the financial document analysis method based on multi-agent collaboration of the present invention. Figure 2 This is a schematic diagram illustrating the specific process of the technical solution of the present invention for processing user questions until a final answer is generated. Figure 3 This is a diagram illustrating the overall structure of the financial document analysis system based on multi-agent collaboration according to the present invention. Detailed Implementation
[0025] 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.
[0026] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this specification means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0027] First Embodiment like Figure 1 and 2 As shown, this embodiment provides a financial document analysis method based on multi-agent collaboration, including the following steps: S1: Obtain the user-input question to be analyzed and the target financial document corpus corresponding to the question to be analyzed.
[0028] In this invention, this step serves as the starting point and data foundation of the entire analysis process. Specifically, the user-input analysis question is typically a complex query targeting lengthy financial documents, encompassing multiple dimensions such as investment decisions, risk assessment, and compliance review. The target financial document corpus contains various professional financial texts, including regulatory disclosures, company periodic reports, and prospectuses, characterized by complex internal structures, high information density, and key information often distributed across multiple chapters. Accurately acquiring these two core inputs provides indispensable operational objects and analytical foundations for subsequent S2 coordinator agent scheduling, S4 query structure alignment, and S5 multi-path retrieval. This ensures that the entire analysis process consistently revolves around the user's actual needs and the effective information in the target documents, effectively avoiding analytical deviations or information omissions.
[0029] S2: The coordinator performs semantic recognition and task assignment on the problem to be analyzed based on the semantic type of the problem to be analyzed. Based on the analysis dimensions involved in the problem, at least one target analysis agent is selected and activated from a plurality of preset professional analysis agents. Each of the professional analysis agents corresponds to a preset scope of responsibility, retrieval scope and analysis focus, and is used to decompose and analyze the problem to be analyzed from different professional perspectives.
[0030] In step S2, the pre-defined plurality of specialized analytical agents include at least: The system includes a general intelligence agent for overview analysis, a quantitative intelligence agent for quantitative analysis, a market intelligence agent for market analysis, a legal intelligence agent for legal risk analysis, and a company intelligence agent for company operations analysis.
[0031] In step S2, the coordinator performs semantic recognition and task assignment on the problem to be analyzed based on its semantic type. Based on the analytical dimensions involved in the problem, at least one target analytical agent is selected and activated from a set of preset specialized analytical agents. Specifically: The problem to be analyzed is semantically identified and classified into tasks, and the professional analysis dimensions involved in the problem to be analyzed are broken down into response sub-problems. Based on the professional analysis dimensions, a set of target analysis agents matching the problem to be analyzed is determined. If the problem to be analyzed is determined to be an irrelevant request that is not related to the domain, a direct reply interception mechanism is triggered, and no professional agent is activated. If the problem is determined to be a basic concept problem, it will be downgraded to activating only the basic agent that handles global transactions. If the problem is identified as a complex financial issue, the system generates structured data, including JSON format, containing the target analysis agent identifier, activation reason, and status identifier. The system parses the structured data, extracts the target analysis agent identifier, and issues instructions to the set of target analysis agents in an independent thread to control them to perform evidence retrieval and analysis from a specific perspective in parallel.
[0032] This step, as the central scheduling core of the entire financial document analysis process, achieves global control, hierarchical discrimination, and intelligent resource scheduling of all tasks through a coordinator. From the underlying architecture, it overcomes the inherent defects of traditional analysis solutions where a single agent handles all dimensions of analysis. This invention relies on a refined problem semantic hierarchical mechanism, adapting differentiated scheduling strategies to different types of user requests. While avoiding unnecessary computational waste on irrelevant issues and simplifying the analysis process for shallow problems, it enables on-demand parallel activation and independent task allocation of multiple specialized agents for complex financial analysis needs. Each agent strictly follows its own exclusive responsibilities, retrieval boundaries, and professional analysis focus to carry out subsequent work, achieving parallel professional judgment from multiple perspectives such as market, finance, law, and operations. This ensures comprehensive coverage of analysis dimensions while also achieving boundary isolation of analysis tasks for each agent, laying a unified scheduling foundation for subsequent independent generation of role-based analysis views, exclusive subquery decomposition, and targeted evidence retrieval by each agent.
[0033] S3: Each of the target analysis agents generates a role condition analysis view for the problem to be analyzed, so as to form an analytical representation of different dimensions, including overview, quantitative, market, legal risk and company operation.
[0034] In step S3, when each of the target analysis agents generates a role condition analysis view for the problem to be analyzed, for any target analysis agent... Its role condition analysis view satisfy: in, This indicates the problem to be analyzed. Represents the target analysis agent Corresponding role strategies Let A represent the prompt generation function induced by the role strategy, and let A be the set of the target analysis agents.
[0035] This step follows the agent scheduling and activation process completed in step S2. Each target analysis agent, based on its own unique role positioning, responsibility boundaries, and professional analysis strategies, constructs its own specialized analysis perspective in conjunction with the original problem to be analyzed. Through the role-condition analysis view, it solidifies the analysis scope, information focus, and analytical logic constraints of its own dimension, transforming the unified original user problem into a specialized analytical representation adapted to its own professional field. This process achieves clear isolation of the analysis boundaries of each agent, ensuring that subsequent query decomposition and evidence retrieval stages strictly adhere to the information needs of the corresponding professional dimension, avoiding cross-dimensional information interference and analysis scope deviation. At the same time, it provides a preliminary perspective constraint for subsequent structured query alignment and precise subquery generation in conjunction with the local summary view.
[0036] S4: Based on the problem to be analyzed, the role condition analysis view, and the local summary view obtained from the target financial document corpus, perform a perceptual database query decomposition on each target analysis agent to generate a sub-query set that matches the scope of responsibility of the corresponding target analysis agent.
[0037] In step S4, the local summary view is obtained in the following way: To improve the structural alignment between the problem to be analyzed and the target financial document corpus, offline preprocessing is performed on the target financial document corpus before query decomposition, parsing the original financial documents into document blocks with page number information, chapter information or source information; Generate summary information and build a summary index for adjacent or consecutive document blocks; During online analysis, after receiving the question to be analyzed, a lightweight retrieval tool is used to recall relevant previous results from the abstract index. Each summary result forms a local summary view. .
[0038] In step S4, a set of subqueries matching the scope of responsibility of the corresponding target analysis agent is generated, specifically as follows: After obtaining the role condition analysis view and the local summary view, each target analysis agent performs query decomposition of the perception database based on the problem to be analyzed, the role condition analysis view and the local summary view to generate a set of subqueries that match the corresponding responsibility scope. For any target analysis agent a, its subquery set satisfy: in, Represents the target analysis agent The corresponding query decomposition function, The target analysis agent represents The generated role condition analysis view, Representing the problem to be analyzed The corresponding local summary view, The target analysis agent represents Multiple subqueries were generated; By introducing a local summary view, the generated subqueries can be better aligned with the chapter titles, business segment names, risk item names, financial item names, and disclosure terms in the target financial document, thereby reducing the structural mismatch problem caused by relying solely on the original question for query expansion.
[0039] This step follows the aforementioned agent-centric perspective construction process, integrating the original question, specific analytical perspective, and global document summary information to conduct perceptual query decomposition. While fully aligning with the professional analytical boundaries of each agent, it anchors the target financial document's own chapter structure, disclosure paradigm, and domain terminology system, achieving refined decomposition and adaptation of the original query. Relying on the global document summary information constructed through offline preprocessing, it effectively bridges the semantic gap between the original user question and the professional expression of the financial document. This results in sub-queries with stronger document structure matching and domain adaptability, accurately matching the retrieval and analysis needs of the corresponding agent, and optimizing the information hit accuracy of subsequent multi-path retrieval stages from the source. It avoids the defects of chapter deviation, terminology misalignment, and insufficient effective information retrieval caused by direct native query retrieval.
[0040] S5: For each subquery in the subquery set, perform multi-path retrieval within the retrieval range of the corresponding target analysis agent to obtain a set of candidate evidence blocks and improve the recall and coverage capability of candidate evidence.
[0041] In step S5, the multi-path retrieval includes at least two or more of the following retrieval paths: Sparse retrieval path based on term matching; Dense search paths based on vector similarity; Summary retrieval path based on summary vector similarity; Table retrieval path based on table content representation.
[0042] In step S5, for any target analysis agent and any of its subqueries Candidate evidence block set satisfy: in, This indicates the first few steps returned by the sparse search path. One search result, This indicates the first result returned by the dense search path. One search result, This indicates the first result returned by the abstract retrieval path. One search result, Represents the target analysis agent The corresponding search scope; By using parallel multi-path retrieval, different signals such as term matching, semantic similarity, and summary-level matching can be comprehensively utilized to improve the recall completeness of candidate evidence.
[0043] In step S5, the multi-path retrieval also satisfies at least one of the following: Sparse search paths are categorized by BM25 score within the search scope. Before selecting internally One document block; Dense search paths are categorized by the similarity between query embeddings and document block embeddings within the search scope. Before selecting internally One document block; Abstract retrieval paths are based on the similarity between query embeddings and abstract embeddings within the retrieval scope. Before selecting internally One document block; Table retrieval paths are based on the similarity between the query embedding and the table representation within the retrieval scope. Before selecting internally A table block.
[0044] This step follows the specific subqueries generated in step S4, and initiates multi-dimensional retrieval links in parallel within the specific retrieval boundaries defined by each agent. It integrates various retrieval signals, such as precise term matching, deep semantic association, global summary matching, and extraction of structured information from tables. By fusing results from multiple paths, it compensates for the recall shortcomings of single retrieval methods, fully covering potential effective information scattered across different chapters and formats within financial documents. This constructs a high-coverage, broad-dimensional set of candidate evidence, providing a sufficient raw data foundation for subsequent evidence reliability screening and precise reordering. It avoids the problems of missing key evidence and incomplete information recall that are prone to occur with single retrieval paths from the source.
[0045] S6: Perform feature-aware reordering on the candidate evidence block set to obtain the target evidence set.
[0046] In step S6, the candidate evidence block set is reordered based on features, specifically as follows: Since the candidate evidence block set obtained by multi-path retrieval is usually an over-inclusion set with high recall and wide coverage, it may contain a large number of candidate blocks that are similar to the subquery surface but cannot constitute real supporting evidence. Therefore, a feature-aware gating re-ranking mechanism is introduced to evaluate and screen the reliability of candidate evidence blocks, including: For candidate evidence blocks (candidate chunk) and subqueries The semantic reordering model is used to calculate the basic semantic relevance score. ; Constructing feature vectors for feature evaluation ; The feature vector is input into a pre-calibrated feature-aware gating model. The reliability estimate of the evidence was obtained. ; The final ranking score is calculated based on the basic semantic relevance score and the evidence reliability estimate.
[0047] Furthermore, the feature vector satisfy: in, This represents the search scores from different search paths. Indicates candidate evidence blocks The path position and source information, This indicates subquery-level statistical features. This represents the metadata features at the candidate evidence block level. This indicates overlap features between candidate evidence blocks and subqueries, including term overlap, number overlap, year overlap, or word similarity.
[0048] Furthermore, the estimated reliability of the evidence and the final ranking score respectively satisfy: Utilizing pre-trained and calibrated feature-aware gating models Mapping the feature vector yields an estimate of the reliability of the evidence, which is expressed as follows: in, Indicates candidate evidence blocks For subqueries The larger the value of the evidence reliability estimate, the more likely the candidate evidence block is to constitute true and valid supporting evidence. After obtaining the basic semantic relevance score and the evidence reliability estimate, this invention calculates the final ranking score using a gated fusion method, which is expressed as follows: in, Represents the target analysis agent The corresponding gate strength parameters, Indicates candidate evidence blocks relative to subqueries The final ranking score, through this gating fusion mechanism, can suppress candidate evidence blocks with high semantic similarity but low reliability while retaining the advantages of semantic re-ranking, thereby reducing the probability of false positive samples entering the final evidence set.
[0049] Furthermore, in step S6, for any target analysis agent... and any of its subqueries The top scorers are selected based on the final ranking scores. The candidate evidence blocks are used as the target evidence set. satisfy: in, Subquery The corresponding set of target evidence, Indicates the number of candidate evidence blocks retained. This indicates that the top scores are selected from highest to lowest according to the final ranking. One candidate evidence block; Each target analysis agent generates a sub-analysis result with evidence constraints based on its corresponding target evidence set. The coordinator then resolves conflicts, integrates information, and synthesizes the results of the sub-analysis outputs from different target analysis agents, and outputs the final financial document analysis result.
[0050] Furthermore, the pre-calibrated feature-aware gating model is obtained in the following way: Construct positive samples based on known valid evidence in the training set; Hard negative samples are constructed based on highly similar but invalid evidence in the search results, and random negative samples are selected to supplement them. The feature-aware gating model is trained using the positive samples, hard negative samples, and random negative samples, so that the feature-aware gating model learns to distinguish between real supporting evidence and fake positive samples.
[0051] This step follows the high-coverage, over-inclusion candidate evidence set obtained in step S5. Addressing the issue of numerous highly semantically similar but weakly valid false fragments arising from multi-path retrieval, it purifies and filters evidence through multi-dimensional feature fusion evaluation and a gated weighted ranking mechanism. While preserving basic semantic matching capabilities, it comprehensively considers multi-dimensional features such as retrieval source, data metadata, and text overlap to accurately determine the true supporting power of evidence, specifically suppressing invalid and false evidence. This achieves noise reduction and simplification of the candidate set and precise priority ranking, providing pure and valid exclusive evidence for each agent to subsequently generate rigorous, reliable, and well-founded sub-analysis conclusions. This fundamentally alleviates the technical problems of large models generating illusions and distorted analytical evidence.
[0052] S7: Based on the target evidence set, each target analysis agent generates a sub-analysis result with evidence constraints, and the coordinator aggregates, resolves conflicts and integrates information for each sub-analysis result, and outputs the financial document analysis result.
[0053] This step serves as the final output and conclusion aggregation stage of the entire analysis process. Each target analysis agent, based on the high-confidence target evidence set selected in step S6, combines its own specialized analytical perspective and logical reasoning rules to generate structured sub-analysis conclusions with strict evidentiary constraints. Subsequently, the coordinator uniformly receives the sub-analysis results from each agent, not only performing horizontal result integration and information aggregation, but also, crucially, conducting in-depth conflict resolution and consistency verification to address potential conclusion conflicts, logical contradictions, or information redundancy issues that may arise among different agents during the analysis process. Ultimately, this results in a comprehensive financial document analysis outcome covering multiple dimensions, including overview, quantitative, market, legal, and operational aspects, ensuring logical consistency, factual completeness, and mutual corroboration. This guarantees comprehensive coverage of multiple professional perspectives and achieves unified convergence and reliable output of analytical conclusions.
[0054] Second Embodiment To address the technical problems of existing financial long document analysis technologies, such as limited perspectives, retrieval mismatch, and susceptibility to false relevant evidence, this embodiment provides a financial document analysis method based on multi-agent collaboration. This method integrates the generation capabilities of large language models (LLMs) with lightweight retrieval and feature-gated reordering techniques, constructing a collaborative architecture that includes a coordinator and multiple domain-specific agents.
[0055] Specifically, the financial document analysis method provided in this embodiment includes the following key steps in its overall execution flow: offline preprocessing of financial corpus and construction of local summary view; receiving user queries and using a coordinator to intercept intent and route agent roles; each activated target analysis agent performing query decomposition of the perception database; for the decomposed subqueries, performing multi-path retrieval within the exclusive retrieval scope of each agent; reordering candidate evidence using a pre-calibrated feature perception gating model and aggregating the output results from the perspectives of each agent.
[0056] The specific implementation details of the above core steps are described below.
[0057] I. Offline Preprocessing of Financial Corpus and Construction of Local Summary View To address the "lexical gap" and "structural mismatch" issues between user-input natural language queries and professional financial documents, this embodiment introduces a mechanism for constructing a "LocalDatabase View" before performing online retrieval analysis.
[0058] Specifically, the offline preprocessing stage includes: (1) Parsing and segmentation: Obtain the original financial disclosure documents (such as SEC 10-K / 10-Q, annual reports, prospectuses, etc.), extract the text and tables using document parsing tools, and convert them into structured data. Subsequently, strictly maintaining sentence boundaries, the text is segmented into uniformly long document chunks, and each document chunk is bound with a metadata identifier, which includes at least: the year to which the document belongs, page number information, chapter affiliation (such as "risk factors", "management discussion and analysis"), and document chunk type (plain text or table). (2) Context enrichment and summary generation: For the segmented document chunks, the basic language model is used to resolve the references within the local context (for example, explicitly replacing "this company" with a specific company name). Further, for consecutive document chunk sequences belonging to the same chapter, paragraph-level or chapter-level condensed summaries are generated. (3) Index construction: The document blocks and summary information processed above are vectorized by text embedding model, and dense vector index library (such as dense index based on FAISS library) and sparse keyword index library (such as BM25 index library) are constructed respectively.
[0059] Online Local Summary View Acquisition Stage: When the system receives the user's input question to be analyzed... First, start the lightweight search engine and compute the problem. The vector representation of the problem is compared with the cosine similarity of the vectors in the above-mentioned summary index to quickly recall the problem. Most relevant front Chapter-level summaries are generated to form a local summary view. This view is not used to answer questions directly, but rather serves as a "database structure wizard" for the subsequent query decomposition phase.
[0060] II. Coordinator's Intent Interception and Agent Role Routing In a multi-agent architecture, not all problems require the full use of computing power. This embodiment achieves efficient allocation of computing power by designing an Orchestrator with interception and degradation mechanisms.
[0061] Specifically, the coordinator routing and scheduling mechanism includes the following steps: (1) Constructing the coordinator context: The system concatenates the user-input question q to be analyzed, multi-turn dialogue history data (if any), and a preset list of agent role descriptions into a prompt context. The list of agent role descriptions clearly defines the scope of responsibilities, triggering conditions, and exclusivity principles of each candidate agent (including but not limited to overview agent, quantitative agent, market agent, legal risk agent, and corporate management agent). (2) Intent Interception and Task Classification: The coordinator receives the context of the prompt words and performs intent judgment based on preset logic: If the question to be analyzed q is determined to be casual conversation or an irrelevant request (such as a routine greeting) in the non-financial field, the coordinator triggers a direct reply interception mechanism, without activating any underlying professional analysis agents, and directly generates a blocking reply; If the question to be analyzed q is determined to be a basic concept explanation or term definition (such as "what is the price-earnings ratio"), the system triggers a task degradation mechanism, only activating the general agent that handles global affairs to provide a lightweight reply; If the question to be analyzed q is determined to involve complex corporate finance, legal or market competition status, the coordinator determines the set of target analysis agents to be activated based on the "minimum full coverage principle". (3) Generating and Parallel Distributing Structured Scheduling Instructions: The coordinator does not output free text, but is configured to forcibly output a standardized structured data dictionary (such as JSON format). This structured data contains at least three core fields: selected_agents (an array of identifiers of selected target analysis agents), reason (a decision reason for activating the combination), and off_topic (a boolean interception status identifier). The system backend parses the structured data, extracts the target analysis agent identifiers in selected_agents, and starts multiple independent computing threads to distribute the problem to be analyzed q to each activated target analysis agent in parallel, controlling it to enter the subsequent parallel evidence retrieval and analysis pipeline.
[0062] III. Database-Aware Query Decomposition Based on Local Summary Views In existing Retrieval Augmentation (RAG) techniques, large language models typically rely on their internally pre-trained prior knowledge to directly decompose complex problems. This often leads to a severe mismatch between the generated subquery terms and the actual wording of specific financial documents (such as specific business segment names, financial statement specific accounts, etc.), resulting in retrieval failure. This embodiment solves this problem by introducing a "Database-Aware" mechanism.
[0063] The specific implementation steps are as follows: (1) Generate the role condition analysis view: For any activated target analysis agent First, it depends on its own role strategy. A preliminary review of the original question q to be analyzed is performed, generating a brief natural language analysis view. ,in Generate the prompt word function for the agent. This view limits the focus that the agent should focus on in the subsequent decomposition. (2) Subquery generation of the perception database: The problem to be analyzed The above role condition analysis view and the local summary view obtained in step one. Both are used as input and passed to the query decomposition function of the target analysis agent. Because the prompt explicitly includes a local summary view. As a structural guide, the large language model will be forced to rewrite the query by "referencing the real terms, chapter titles and expression habits that appear in the summary". (3) Output subquery set: The subquery set output by each target analysis agent is aligned with the underlying structure of the target financial document: in, The number of subqueries generated for the agent. Through this step, the present invention transforms the "blindly divergent" query expansion into the "corpus-aligned" precise query generation, fundamentally reducing the probability of retrieval mismatch.
[0064] IV. Multi-path Parallel Search Based on Specific Range For the generated subquery set To maximize the retrieval of heterogeneous evidence scattered throughout lengthy financial documents, this embodiment employs a multi-path parallel retrieval framework. Simultaneously, to prevent the unlimited amplification of retrieval noise, all searches are strictly limited to the preset, dedicated retrieval scope of each agent. (For example, the scope of a legal intelligence agent's search is limited to "risk factors," "major litigation," and compliance-related sections.)
[0065] Specifically, for any target analysis agent a and any of its subqueries , The multi-path retrieval module performs the following retrieval operations in parallel: (1) Sparse Retrieval: based on term exact matching algorithms (such as the BM25 algorithm), within a range Internally, calculate the term frequency and inverse document frequency scores of the subquery and document blocks, and recall the top k document blocks containing specific numbers or proper nouns, denoted as . (2) Dense Retrieval: Based on a pre-trained dual-tower embedding model, the semantic vector of the subquery is calculated. With candidate document block vectors The cosine similarity between them is used to recall the top k most semantically relevant document blocks, denoted as . (3) Summary Retrieval: Calculate the semantic vector of the subquery. Compared with pre-generated document block paragraph summary vectors The cosine similarity between them is used to select the top scorers. Each abstract is retrieved, and its corresponding underlying full-text document block is recorded as... This path effectively compensates for the lack of fine-grained dense retrieval in long context semantic matching. (4) Table Retrieval: If the preprocessing includes table data, then calculate the subquery vector and the table feature representation. Similarity, before recall A table-structured data, denoted as .
[0066] Fusion and deduplication of candidate evidence blocks: After completing the multi-path retrieval, the document blocks recalled by each path are combined and duplicates are removed to construct a set of candidate evidence blocks with high recall. Its mathematical expression is: The set is intentionally designed to be "over-inclusive" to ensure that no potential evidence is missed, and the final task of distinguishing true from false evidence is left to the subsequent feature-aware gating reordering module.
[0067] V. Feature-aware gating reordering and result synthesis Financial documents (such as financial statements and prospectuses) often contain a large number of boilerplate expressions or repetitive phrases in adjacent sections. Multi-path retrieval recalls a set of candidate evidence blocks. Inevitably, this includes a large number of false positive samples (i.e., highly similar to the subquery in literal or semantic terms, but which do not actually constitute valid support). Re-ranking based solely on deep learning semantic models is often deceived by these samples. Therefore, this embodiment introduces a "feature-aware gating model" that combines machine learning classification trees with deep learning semantic scoring.
[0068] Specifically, for sets Each candidate evidence block in The reordering and synthesis mechanism includes the following steps: (1) Calculate the basic semantic relevance score: First, use a pre-trained decoder or a re-ranking large model to calculate the subquery. With candidate evidence blocks The deep semantic matching degree between them yields the basic semantic relevance score. .
[0069] (2) Constructing a multidimensional feature vector: Extract the statistical and structured features of the candidate evidence block and the query, and concatenate them to generate a feature vector for feature evaluation. Specifically, this feature vector is assembled from features in the following dimensions: Retrieval path characteristics: Record which paths the evidence block was recalled by (e.g., whether it was hit by both BM25 and FAISS), its original score and ranking in each path; Lexical Overlap: Calculates the overlap count between the subquery and the evidence block on the overall vocabulary, especially on “Number” and “Year”, and compares it with Jaccard similarity. Metadata features: Extract the document year, page number position, and text type (such as plain text or table) of the evidence block; Query context features: Extract the length of the subquery and the agent role identifier to which it belongs; Semantic base score: The basic semantic relevance score srerank obtained in step (1) is included as a key feature.
[0070] (3) Generate an estimate of the reliability of the evidence: The above feature vectors The input is a lightweight feature-aware gating model (e.g., a gradient boosting tree classifier based on LightGBM) pre-tuned for the target domain. This gating model maps multidimensional features to a probability value and outputs an estimate of the reliability of the evidence. This estimate The larger the value, the higher the confidence level that the evidence block is genuine and valid supporting evidence; conversely, it is highly likely to be a false related fragment.
[0071] (4) Gated fusion and final re-ranking score calculation: The basic semantic score is penalized and calibrated based on the formula to obtain the final ranking score. : in, The gating strength parameter (typically ranging from 0.1 to 0.3) is used to analyze the target agent a. The physical meaning of this fusion formula is: when the semantic score of a segment... The gating model indicates that its actual reliability is extremely low (i.e., very high), but the gating model judges it to be extremely low (i.e., very low reliability). When the score approaches 0, the system will strongly suppress the total score through a penalty coefficient, thereby eliminating false positive segments with "high scores but low abilities".
[0072] (5) Generate the target evidence set and synthesize the analysis results: based on the final ranking score. From high to low, extract the first... These candidate evidence blocks form the target evidence set for the subquery. Each target analysis agent generates a sub-analysis result constrained by evidence based on its own refined evidence set. Finally, the coordinator receives the sub-analysis results submitted by all agents, performs logical coherence checks and information aggregation, and outputs the final financial document analysis result covering multiple professional perspectives.
[0073] Third Embodiment I. Experimental Objective This embodiment aims to verify, through an ablation study, the independent contribution and synergistic effect of the core components in the framework of this invention, such as "multi-agent collaboration," "feature gating reordering," and "query decomposition of the perceptual database," on improving the macro evidence recall rate of the system.
[0074] II. Experimental Design The experiments were conducted under fair comparison conditions with strict control over the final input context length (uniformly limited to approximately 35 candidate evidence blocks) to eliminate the gain caused by simply increasing the number of retrievals. The test set covered five challenging financial question-answering datasets: Zeekr, Lotus, FinDER, FinanceBench, and SECQUE. By progressively adding the core technology modules of this invention to a single-agent baseline, the trend of macroscopic recall (%) was observed.
[0075] III. Experimental Results and Analysis: The specific recall rate changes after the superposition of each technical module are as follows: Benchmark performance (Single Agent): When using only a traditional single agent for retrieval, the system has a low average recall rate on each dataset due to the limited search perspective, namely: Zeekr (28%), Lotus (41%), FinDER (50%), FinanceBench (58%) and SECQUE (60%).
[0076] Introducing multi-agent collaboration: After adding multi-professional role agents for parallel retrieval, the scope of evidence capture was effectively broadened, and the recall rate of multiple datasets was significantly improved. For example, FinanceBench increased from 58% to 71%, and SECQUE increased from 60% to 74%.
[0077] Superimposed Feature Gating Reordering: By introducing the feature-aware gating model of this invention onto the multi-agent basis, the system effectively filters out false positive segments that are semantically similar but lack factual support, thereby increasing the ranking of valid evidence and further improving recall. For example, Zeekr improved to 35%, Lotus to 41%, FinDER to 58%, and SECQUE to 77%.
[0078] Overlaying query decomposition from a perceptual database: This further leverages local summary views to guide the large model in query breakdown, resolving the mismatch between query vocabulary and the structure of the local financial corpus. After adding this module, FinanceBench's recall rate soared to 80%, while Zeekr and Lotus improved to 38% and 43%, respectively.
[0079] The complete system performance of this invention (FinSAgent): When all modules are integrated to form a complete collaborative architecture, the system achieves excellent comprehensive evidence coverage on all datasets, with the final comprehensive recall rates reaching: Zeekr (40%), Lotus (50%), FinDER (60%), FinanceBench (76%), and SECQUE (83%).
[0080] Fourth embodiment I. Experimental Objective This embodiment aims to verify, through ablation experiments and parameter sensitivity analysis, the independent contributions of the core mechanisms in the framework of this invention, such as "multi-agent collaborative division of labor," "feature gating reordering," and "query decomposition of the perceptual database," to improving the system's evidence recall rate; and to verify the necessity of the multi-agent role and the robustness of the gating strength parameter.
[0081] II. Experimental Design The experiment was conducted under fair comparison conditions with strict control over the final input context length (uniformly limited to approximately 35 candidate evidence blocks). In addition to observing macro-level recall trends, this embodiment further analyzed the multi-agent activation frequency, exclusive contribution rate of real evidence blocks, and gating strength parameters on the target financial dataset (such as Lotus). The performance changes in the [0.0, 0.6] range were quantitatively tracked.
[0082] III. Experimental Results and Analysis (1) Step-by-step improvement in search coverage By progressively adding the various technical modules of this invention, the system recall rate is significantly improved: Benchmark performance: When using only a single agent for retrieval, the average recall rate on complex financial datasets (such as Zeekr) is only 28%.
[0083] Introducing feature-gated reordering: By superimposing a feature-aware gating model on the multi-agent basis, the evidence recall rate increased from 31% to 35% due to the effective filtering of semantically similar but fact-lacking false positive segments.
[0084] Introducing perceptual database query decomposition: By further overlaying query decomposition assisted by local summary views, the problem of mismatch between query vocabulary and local financial corpus was solved, and the recall rate was improved to 38%; the final comprehensive evidence recall rate of the complete system reached 40%. On public datasets such as FinanceBench, the recall rate jumped from 58% for a single agent to 76%.
[0085] (2) Necessity and exclusive contribution analysis of multi-agent roles Analysis of agent activation logs and recall contributions during system runtime (see the attached agent merging analysis diagram) shows that each professional role played an irreplaceable role. The activation rates of the total agent and the quantized agent were the highest, at 100% and 71%, respectively.
[0086] It is noteworthy that although the activation rates of the Legal and Company agents were relatively low (8% and 22%, respectively), when triggered, they independently recalled 27 and 209 exclusive GT chunks, respectively, that were not covered by other agents. This demonstrates that specialized agents in low-frequency domains are essential for capturing long-tail, marginalized financial risk information.
[0087] (3) Gating strength parameters ( Robustness verification Key penalty parameters in the feature-gated reordering module The experiment tested the impact of its value on recall rate on different specialized intelligent agents: When the gating model is enabled (i.e. When all agents (corporate, legal, market, quantitative) consistently outperformed the ungated baseline in evidence recall. ).
[0088] Among them, the company's intelligent agents and quantitative intelligent agents benefited the most, with maximum absolute gains of +6.1% and +4.4%, respectively.
[0089] Performance improvements The fact that the system quickly reaches a plateau within the range of 0.1 to 0.3 indicates that the penalty mechanism does not require extremely aggressive parameter tuning and only requires slight gating correction to effectively suppress high-confidence false positive evidence, demonstrating strong system stability.
[0090] Fifth Embodiment like Figure 3 As shown in the figure, this embodiment provides a financial document analysis system based on multi-agent collaboration for executing the financial document analysis method based on multi-agent collaboration as described in the first embodiment, comprising: The input acquisition module is used to acquire the user-input question to be analyzed and the target financial document corpus corresponding to the question to be analyzed; The coordination and control module is used to perform semantic recognition and task assignment on the problem to be analyzed based on the semantic type of the problem to be analyzed through a coordinator, and select and activate at least one target analysis agent from a plurality of preset professional analysis agents according to the analysis dimensions involved in the problem. Each of the professional analysis agents corresponds to a preset scope of responsibility, retrieval scope and analysis focus, and is used to decompose and analyze the problem to be analyzed from different professional perspectives. The role analysis module is used to generate role condition analysis views for each of the target analysis agents for the problem to be analyzed, so as to form analysis representations of different dimensions including overview, quantitative, market, legal risk and company operation. The query decomposition module is used to perform a perceptual database query decomposition on each of the target analysis agents based on the problem to be analyzed, the role condition analysis view, and the local summary view obtained from the target financial document corpus, and generate a sub-query set that matches the responsibility scope of the corresponding target analysis agent. The multi-path retrieval module is used to perform multi-path retrieval within the retrieval range of the corresponding target analysis agent for each subquery in the subquery set, so as to obtain a set of candidate evidence blocks and improve the recall and coverage capability of candidate evidence. The feature reordering module is used to perform feature-aware reordering on the candidate evidence block set to obtain the target evidence set. The result synthesis module is used to generate sub-analysis results with evidence constraints by each of the target analysis agents based on the target evidence set, and the coordinator aggregates, resolves conflicts and integrates information of each of the sub-analysis results to output financial document analysis results.
[0091] A computer-readable storage medium stores computer code that, when executed, performs the methods described above. Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. This program can be stored in a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0092] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.
[0093] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0094] It should be noted that the above embodiments can be freely combined as needed. The above description is only a preferred embodiment of the present invention. It should be pointed out that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A financial document analysis method based on multi-agent collaboration, characterized in that, Includes the following steps: S1: Obtain the user-input question to be analyzed and the target financial document corpus corresponding to the question to be analyzed; S2: The coordinator performs semantic recognition and task assignment on the problem to be analyzed based on the semantic type of the problem to be analyzed. Based on the analysis dimensions involved in the problem, at least one target analysis agent is selected and activated from a plurality of preset professional analysis agents. Each of the professional analysis agents corresponds to a preset scope of responsibility, retrieval scope and analysis focus, and is used to decompose and analyze the problem to be analyzed from different professional perspectives. S3: Each of the target analysis agents generates a role condition analysis view for the problem to be analyzed, so as to form an analytical representation of different dimensions, including overview, quantitative, market, legal risk and company operation. S4: Based on the problem to be analyzed, the role condition analysis view, and the local summary view obtained from the target financial document corpus, perform a query decomposition of the perception database on each target analysis agent to generate a sub-query set that matches the scope of responsibility of the corresponding target analysis agent; S5: For each subquery in the subquery set, perform multi-path retrieval within the retrieval range of the corresponding target analysis agent to obtain a set of candidate evidence blocks and improve the recall and coverage capability of candidate evidence; S6: Perform feature-aware reordering on the candidate evidence block set to obtain the target evidence set; S7: Based on the target evidence set, each target analysis agent generates a sub-analysis result with evidence constraints, and the coordinator aggregates, resolves conflicts and integrates information for each sub-analysis result, and outputs the financial document analysis result.
2. The financial document analysis method based on multi-agent collaboration according to claim 1, characterized in that, In step S2, the pre-defined multiple specialized analytical agents include at least: The system includes a general intelligence agent for overview analysis, a quantitative intelligence agent for quantitative analysis, a market intelligence agent for market analysis, a legal intelligence agent for legal risk analysis, and a company intelligence agent for company operations analysis.
3. The financial document analysis method based on multi-agent collaboration according to claim 1, characterized in that, In step S2, the coordinator performs semantic recognition and task assignment on the problem to be analyzed based on its semantic type. Based on the analytical dimensions involved in the problem, at least one target analytical agent is selected and activated from a set of preset specialized analytical agents. Specifically: The problem to be analyzed is semantically identified and classified into tasks, and the professional analysis dimensions involved in the problem to be analyzed are broken down into response sub-problems. Based on the professional analysis dimensions, a set of target analysis agents matching the problem to be analyzed is determined. If the problem to be analyzed is determined to be an irrelevant request that is not related to the domain, a direct reply interception mechanism is triggered, and no professional agent is activated. If the problem is determined to be a basic concept problem, it will be downgraded to activating only the basic agent that handles global transactions. If the problem is identified as a complex financial issue, the system generates structured data, including JSON format, containing the target analysis agent identifier, activation reason, and status identifier. The system parses the structured data, extracts the target analysis agent identifier, and issues instructions to the set of target analysis agents in an independent thread to control them to perform evidence retrieval and analysis from a specific perspective in parallel.
4. The financial document analysis method based on multi-agent collaboration according to claim 1, characterized in that, In step S3, when each of the target analysis agents generates a role condition analysis view for the problem to be analyzed, for any target analysis agent... Its role condition analysis view satisfy: in, This indicates the problem to be analyzed. Represents the target analysis agent Corresponding role strategies Let A represent the prompt generation function induced by the said role strategy, and let A be the set of said target analysis agents.
5. The financial document analysis method based on multi-agent collaboration according to claim 1, characterized in that, In step S4, the local summary view is obtained in the following way: To improve the structural alignment between the problem to be analyzed and the target financial document corpus, offline preprocessing is performed on the target financial document corpus before query decomposition, parsing the original financial documents into document blocks with page number information, chapter information or source information; Generate summary information and build a summary index for adjacent or consecutive document blocks; During online analysis, after receiving the question to be analyzed, a lightweight retrieval tool is used to recall relevant previous results from the abstract index. Each summary result forms a local summary view. .
6. The financial document analysis method based on multi-agent collaboration according to claim 5, characterized in that, In step S4, a set of subqueries matching the scope of responsibility of the corresponding target analysis agent is generated, specifically as follows: After obtaining the role condition analysis view and the local summary view, each target analysis agent performs query decomposition of the perception database based on the problem to be analyzed, the role condition analysis view and the local summary view to generate a set of subqueries that match the corresponding responsibility scope. For any target analysis agent a, its subquery set satisfy: in, Represents the target analysis agent The corresponding query decomposition function, The target analysis agent represents The generated role condition analysis view, Representing the problem to be analyzed The corresponding local summary view, The target analysis agent represents Multiple subqueries were generated; By introducing a local summary view, the generated subqueries can be better aligned with the chapter titles, business segment names, risk item names, financial item names, and disclosure terms in the target financial document, thereby reducing the structural mismatch problem caused by relying solely on the original question for query expansion.
7. The financial document analysis method based on multi-agent collaboration according to claim 1, characterized in that, In step S5, the multi-path retrieval includes at least two or more of the following retrieval paths: Sparse retrieval path based on term matching; Dense search paths based on vector similarity; Summary retrieval path based on summary vector similarity; Table retrieval path based on table content representation.
8. The financial document analysis method based on multi-agent collaboration according to claim 7, characterized in that, In step S5, for any target analysis agent... and any of its subqueries Candidate evidence block set satisfy: in, This indicates the first step returned by the sparse search path. One search result, This indicates the first result returned by the dense search path. One search result, This indicates the first result returned by the abstract retrieval path. One search result, Represents the target analysis agent The corresponding search scope; By using parallel multi-path retrieval, different signals such as term matching, semantic similarity, and summary-level matching can be comprehensively utilized to improve the recall completeness of candidate evidence.
9. The financial document analysis method based on multi-agent collaboration according to claim 8, characterized in that, In step S5, the multi-path retrieval also satisfies at least one of the following: Sparse search paths are categorized by BM25 score within the search scope. Before selecting internally One document block; Dense search paths are categorized by the similarity between query embeddings and document block embeddings within the search scope. Before selecting internally One document block; Abstract retrieval paths are based on the similarity between query embeddings and abstract embeddings within the retrieval scope. Before selecting internally One document block; Table retrieval paths are based on the similarity between the query embedding and the table representation within the retrieval scope. Before selecting internally A table block.
10. The financial document analysis method based on multi-agent collaboration according to claim 1, characterized in that, In step S6, the candidate evidence block set is reordered based on features, specifically as follows: Since the candidate evidence block set obtained by multi-path retrieval is usually an over-inclusion set with high recall and wide coverage, it may contain a large number of candidate blocks that are similar to the subquery surface but cannot constitute real supporting evidence. Therefore, a feature-aware gating re-ranking mechanism is introduced to evaluate and screen the reliability of candidate evidence blocks, including: For candidate evidence blocks AND subquery The semantic reordering model is used to calculate the basic semantic relevance score. ; Constructing feature vectors for feature evaluation ; The feature vector is input into a pre-calibrated feature-aware gating model. The reliability estimate of the evidence was obtained. ; The final ranking score is calculated based on the basic semantic relevance score and the evidence reliability estimate.
11. The financial document analysis method based on multi-agent collaboration according to claim 10, characterized in that, The feature vector satisfy: in, This represents the search scores from different search paths. Indicates candidate evidence blocks The path position and source information, This indicates subquery-level statistical features. This represents the metadata features at the candidate evidence block level. This indicates overlap features between candidate evidence blocks and subqueries, including term overlap, number overlap, year overlap, or word similarity.
12. The financial document analysis method based on multi-agent collaboration according to claim 10, characterized in that, The estimated reliability of the evidence and the final ranking score respectively satisfy: Utilizing pre-trained and calibrated feature-aware gating models Mapping the feature vector yields an estimate of the reliability of the evidence, which is expressed as follows: in, Indicates candidate evidence blocks For subqueries The larger the value of the evidence reliability estimate, the more likely the candidate evidence block is to constitute true and valid supporting evidence. After obtaining the basic semantic relevance score and the evidence reliability estimate, this invention calculates the final ranking score using a gated fusion method, which is expressed as follows: in, Represents the target analysis agent The corresponding gate strength parameters, Indicates candidate evidence blocks relative to subqueries The final ranking score, through this gating fusion mechanism, can suppress candidate evidence blocks with high semantic similarity but low reliability while retaining the advantages of semantic re-ranking, thereby reducing the probability of false positive samples entering the final evidence set.
13. The financial document analysis method based on multi-agent collaboration according to claim 12, characterized in that, In step S6, for any target analysis agent and any of its subqueries The top scorers are selected based on the final ranking scores. The candidate evidence blocks are used as the target evidence set. satisfy: in, Subquery The corresponding set of target evidence, Indicates the number of candidate evidence blocks retained. This indicates that the top scores are selected from highest to lowest according to the final ranking. One candidate evidence block; Each target analysis agent generates a sub-analysis result with evidence constraints based on its corresponding target evidence set. The coordinator then resolves conflicts, integrates information, and synthesizes the results of the sub-analysis outputs from different target analysis agents, and outputs the final financial document analysis result.
14. The financial document analysis method based on multi-agent collaboration according to claim 10, characterized in that, The pre-calibrated feature-aware gating model is obtained through the following method: Construct positive samples based on known valid evidence in the training set; Hard negative samples are constructed based on highly similar but invalid evidence in the search results, and random negative samples are selected to supplement them. The feature-aware gating model is trained using the positive samples, hard negative samples, and random negative samples, so that the feature-aware gating model learns to distinguish between real supporting evidence and fake positive samples.
15. A financial document analysis system based on multi-agent collaboration for executing the financial document analysis method based on multi-agent collaboration as described in any one of claims 1-14, characterized in that, include: The input acquisition module is used to acquire the user-input question to be analyzed and the target financial document corpus corresponding to the question to be analyzed; The coordination and control module is used to perform semantic recognition and task assignment on the problem to be analyzed based on the semantic type of the problem to be analyzed through a coordinator, and select and activate at least one target analysis agent from a plurality of preset professional analysis agents according to the analysis dimensions involved in the problem. Each of the professional analysis agents corresponds to a preset scope of responsibility, retrieval scope and analysis focus, and is used to decompose and analyze the problem to be analyzed from different professional perspectives. The role analysis module is used to generate role condition analysis views for each of the target analysis agents for the problem to be analyzed, so as to form analysis representations of different dimensions including overview, quantitative, market, legal risk and company operation. The query decomposition module is used to perform a perceptual database query decomposition on each of the target analysis agents based on the problem to be analyzed, the role condition analysis view, and the local summary view obtained from the target financial document corpus, and generate a sub-query set that matches the responsibility scope of the corresponding target analysis agent. The multi-path retrieval module is used to perform multi-path retrieval within the retrieval range of the corresponding target analysis agent for each subquery in the subquery set, so as to obtain a set of candidate evidence blocks and improve the recall and coverage capability of candidate evidence. The feature reordering module is used to perform feature-aware reordering on the candidate evidence block set to obtain the target evidence set. The result synthesis module is used to generate sub-analysis results with evidence constraints by each of the target analysis agents based on the target evidence set, and the coordinator aggregates, resolves conflicts and integrates information of each of the sub-analysis results to output financial document analysis results.
16. A computer device or computer-readable storage medium, characterized in that, The computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, or the computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, it implements the method described in any one of claims 1 to 14.
