A data set governance method and an agent system based on multi-agent cooperation

By employing a multi-agent collaborative dataset governance approach, the problem of insufficient ability to handle unstructured data and unbalanced data distribution in traditional dataset construction is solved. It achieves autonomous governance and differentiated optimization throughout the entire process, improves data quality and compliance, and is suitable for constructing large model training datasets.

CN123157699APending Publication Date: 2026-11-24DIGITAL QINGDAO CONSTRUCTION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611442431.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Traditional dataset construction processes are weak in handling unstructured text and mixed text and image data, have high rule maintenance costs, cannot adapt to new business data formats independently, data distribution imbalance leads to model illusion and overfitting, desensitized and copyrighted data cannot be traced, data standards are inconsistent among multiple agents, and there is a lack of full-process autonomous governance and differentiated optimization.

Method used

A dataset governance approach based on multi-agent collaboration is adopted, which constructs a scheduling central agent, a data access agent, a multimodal cleaning agent, a two-layer quality inspection agent, and a global memory knowledge base. This enables data profiling, noise reduction, deduplication, quality inspection, deviation correction, and compliance traceability. The global memory knowledge base stores governance strategies and updates them dynamically, achieving closed-loop optimization of dataset governance.

Benefits of technology

It achieves autonomous governance throughout the entire process, reduces human intervention, improves governance consistency and efficiency, ensures that data quality gradually approaches the target threshold, and allows incremental datasets to iterate autonomously, meeting the compliance and quality requirements for large model training.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157699A_ABST
    Figure CN123157699A_ABST
Patent Text Reader

Abstract

This application relates to the field of data processing, specifically disclosing a dataset governance method and intelligent agent system based on multi-agent collaboration. In this method: a data access agent receives the original dataset and generates a data profile; a scheduling central agent generates a governance task pipeline and issues task instructions; a multimodal cleaning agent performs denoising and deduplication on the data; a two-layer quality inspection agent performs quality checks on the cleaned data and outputs defect information; the scheduling central agent receives the defect information output by the two-layer quality inspection agent, maps the defect types to governance operators, updates governance rules, generates local re-governance tasks by segmenting the defective data, and issues them to the corresponding agents for execution; a global memory knowledge base agent stores the governance features and defect cases written by each agent; and the scheduling central agent retrieves historical governance strategies for similar datasets in the global memory knowledge base agent and reuses these historical governance strategies. Applying this method can reduce human intervention and improve governance consistency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a dataset governance method and intelligent agent system based on multi-agent collaboration. Background Technology

[0002] Traditional dataset construction processes typically employ ETL tools, which involve manually writing regular expressions, SQL, and UDF rules for data processing. These tools only support structured data and have limited capabilities for processing unstructured text and mixed text / image data. They also have high rule maintenance costs and cannot adapt to new business data formats independently.

[0003] Other related technologies employ multi-layered intelligent agents for data cleaning, such as edge-region-center three-layer agents for data cleaning and sharding. However, this approach only covers a single stage of data cleaning, with highly overlapping functions among the agents at each layer, requiring manual intervention throughout the entire process. Its scheduling relies on static knowledge graphs, making it impossible to autonomously update governance strategies based on governance results, necessitating repeated manual configuration of incremental datasets. Imbalanced data distribution directly flows into training, easily exacerbating model illusion and overfitting. Anonymized, copyrighted, and confidential data cannot be fully traced, posing a high compliance risk for commercial large-scale models. Inconsistent task and data definitions can lead to inconsistent governance results. Furthermore, these technologies lack specific optimizations for the intended use of large-scale model training datasets, making it difficult to support end-to-end data management for large-scale model training.

[0004] Therefore, a dataset governance solution is needed that can achieve autonomous governance throughout the entire process, differentiated governance for the purpose of training large models, and has closed-loop correction of biases and compliance evidence traceability. Summary of the Invention

[0005] This application provides a dataset governance method and intelligent agent system based on multi-agent collaboration to solve the problems of excessive manual intervention, uncorrected distribution offset, incomplete compliance links, and inconsistent data standards among multiple intelligent agents in the processes of multi-source heterogeneous data access, cleaning, labeling, quality inspection, deviation correction, desensitization and traceability, and incremental update.

[0006] In a first aspect, one embodiment of this application provides a dataset governance method based on multi-agent collaboration, including: Construct a scheduling central intelligent agent, a data access intelligent agent, a multimodal cleaning intelligent agent, a two-layer quality inspection intelligent agent, and a global memory knowledge base intelligent agent; the scheduling central intelligent agent communicates with the data access intelligent agent, the multimodal cleaning intelligent agent, and the two-layer quality inspection intelligent agent; the global memory knowledge base intelligent agent has bidirectional read and write connections with the multimodal cleaning intelligent agent and the two-layer quality inspection intelligent agent; The data access agent receives the raw dataset and generates a data profile. The central intelligent agent generates a governance task pipeline and issues task instructions; The multimodal cleaning agent performs noise reduction and deduplication on the data; The dual-layer quality inspection intelligent agent performs quality inspection on the cleaned data and outputs defect information; The central intelligent agent receives the defect information output by the two-layer quality inspection intelligent agent, maps the defect type to the governance operator, updates the governance rules, generates local re-governance tasks by sharding the defect data, and sends them to the corresponding intelligent agents for execution. The global memory knowledge base agent stores the governance features and defect cases written by each agent. Before generating the governance task pipeline, the scheduling central agent retrieves historical governance strategies of similar datasets in the global memory knowledge base agent and reuses the historical governance strategies.

[0007] In this embodiment, a scheduling central agent receives defect information output by a quality inspection agent, maps defect types to governance operators, updates governance rules, generates local re-governance tasks by sharding defect data, and distributes them to the corresponding agents for execution. This solves the problem that data defects discovered by quality inspection cannot be automatically triggered for local repair. Furthermore, a memory-based agent stores governance features and defect cases written by each agent. Before generating the governance task pipeline, the scheduling central agent retrieves and reuses historical governance strategies for similar datasets, solving the problem of wasted manpower and computing power caused by repeated rule configuration for the governance of similar datasets. Thus, dataset governance is transformed from single manual configuration to closed-loop adjustment based on defect feedback and strategy reuse based on shared memory, reducing manual intervention and improving governance consistency. This achieves the unexpected effects of continuous optimization of governance strategies with defect cases, no need for repeated manual configuration for the governance of similar datasets, gradual approach to target thresholds in data quality, and autonomous iterative governance of incremental datasets.

[0008] In one alternative implementation, the method further includes: Construct intelligent agents for automatic labeling, data deviation correction, and compliance de-identification and traceability. The scheduling central agent is equipped with a dataset hierarchical policy library, which stores the quality standards of the pre-training dataset, the quality standards of the fine-tuning dataset, and the quality standards of the RAG dataset. The data access agent receives raw datasets from multiple sources; The central intelligent agent generates a task DAG pipeline based on business governance needs and issues task instructions; The multimodal cleaning agent performs noise reduction, deduplication, and format unification on the data; An automatic labeling agent performs labeling on the cleaned data; The two-layer quality inspection agent performs basic quality inspection and global distribution inspection on the labeled dataset and outputs defect fragments. The data bias correction agent performs corrections on the detected distribution offsets; The compliance desensitization and traceability intelligent agent performs desensitization and hash storage on the corrected data; and the scheduling central intelligent agent selects the corresponding quality standard from the dataset hierarchical policy library according to the purpose of the dataset and generates a differentiated task DAG pipeline. When the two-layer quality inspection agent outputs a defect segment or the data deviation correction agent outputs a deviation report that is not closed, the scheduling central agent maps the defect type to the corresponding governance operator, updates the rule base version, generates a secondary governance task DAG subset for the defect segment, and sends it to the corresponding agent to perform local re-governance. The global memory knowledge base agent stores the cleaning features, annotation features, defect cases, correction schemes and compliance rules written by each agent during the governance process as shared memory entries; Before generating a new task DAG pipeline, the central agent retrieves historical governance strategies for similar datasets in the global memory knowledge base agent and reuses these strategies.

[0009] The above embodiments employ a central scheduling agent to select pre-trained, fine-tuned, or RAG-corresponding quality standards from a dataset hierarchical policy library based on the dataset's intended use, generating a differentiated task DAG pipeline. This addresses the problem of insufficient governance targeting caused by using the same governance standard for datasets with different purposes. Furthermore, when the two-layer quality inspection agent outputs defect shards or the data deviation correction agent outputs deviation reports without closing them, the central scheduling agent maps the defect type to the governance operator, updates the rule base version, generates a secondary governance task DAG subset for the defect shards, and distributes it to the corresponding agent for local re-governance. This prevents defect data from directly flowing into the training set, and the secondary governance only targets... Defects are segmented to avoid full recalculation and reduce computational consumption. Meanwhile, the global memory knowledge base agent stores the cleaning features, annotation features, defect cases, correction schemes and compliance rules written by each agent during the governance process as shared memory entries. The scheduling central agent retrieves and reuses historical governance strategies of similar datasets before generating a new task DAG pipeline, avoiding repeated manual configuration of similar datasets, reducing human intervention and improving governance efficiency. This achieves the comprehensive effect of reducing human intervention workload, shortening the governance cycle, automatically correcting data distribution deviations, ensuring a complete compliance audit chain, unifying data standards across multiple agents, and enabling autonomous iterative governance of incremental datasets.

[0010] In one alternative implementation, the dataset hierarchical strategy library stores pre-training granularity quality standards, adjustment quality standards, and RAG accuracy quality standards. The central agent receives the dataset purpose identifier, determines whether the dataset purpose is pre-training, fine-tuning or RAG, and selects the corresponding quality standard from the dataset classification policy library according to the dataset purpose. When the purpose of the dataset changes, the scheduling central agent dynamically switches the quality standards.

[0011] In the above embodiments, since the dataset grading strategy library stores three sets of differentiated quality standards, the scheduling central agent determines pre-training, fine-tuning, or RAG based on the dataset's purpose identifier and selects the corresponding quality standard. When the purpose changes, the standard set is dynamically switched, solving the problem of inaccurate governance caused by datasets with different purposes sharing the same quality standard. Thus, the pre-training dataset adopts coarse-grained governance, the fine-tuning dataset adopts high-quality governance, and the RAG dataset adopts high-precision governance, achieving precise matching between governance standards and dataset purposes, avoiding manual configuration of grading rules, and improving the targeting of governance and the consistency of quality judgment.

[0012] In one alternative implementation, the method further includes: When the dual-layer quality inspection agent outputs a defect segmentation report or the data deviation correction agent outputs a deviation report that is not closed, the scheduling central agent aggregates the quality inspection defects and deviation correction items that are not closed. Map defect types to corresponding governance operators; Attribute the root causes of defects to generate candidate rules; Candidate rules are evaluated in parallel with historical defective fragments in shadow mode, and the effects are compared with those of old rules. When the candidate rules reach the preset effect threshold, all rules are switched; if they do not meet the threshold, the old version is retained and the reason for failure is recorded. Generate a subset of the secondary governance task DAG and distribute it to the corresponding agent to perform local re-governance.

[0013] In the above embodiments, the scheduling central agent aggregates quality inspection defects and unclosed deviation correction items, maps defect types to governance operators, attributes the root causes of defects and generates candidate rules, and evaluates historical defect fragments in parallel through shadow mode. Once a preset effect threshold is reached, all rules are switched; otherwise, the old version is retained. This solves the problem of governance quality degradation caused by lack of verification in rule updates. Thus, defect feedback is transformed into rule update and secondary governance instructions. The rule update process has shadow evaluation and gray-scale switching guarantees, avoiding the direct implementation of low-quality rules and improving the security and recoverability of dataset governance strategy iteration.

[0014] In one alternative implementation, the method further includes: The global memory knowledge base agent maintains a version number and timestamp for each shared memory entry; During writing, condition updates are performed; if the versions are inconsistent, the latest version is read first and then merged. The fusion rules adopt the priority of the source agent type, the most recent timestamp, and the majority voting rule; Record issues related to rules that cannot be automatically merged in the issue log and mark them as requiring confirmation; A consistent snapshot is obtained when any agent reads the memory.

[0015] In the above embodiments, since the global memory knowledge base agents maintain version numbers and timestamps, condition updates are performed during writing. If the versions are inconsistent, the latest version is read and merged. The fusion rules adopt the priority of the source agent type, the most recent timestamp, and the majority voting rule. Problem logs are recorded for rules that cannot be automatically merged and marked as pending confirmation. Any agent reads the memory to obtain a consistent snapshot, which solves the problem of inconsistent rules and inconsistent data standards caused by multiple agents concurrently writing to the shared memory. Thus, it prevents old rules from overwriting new rules, ensures that the governance strategies read by different agents are consistent, and rule updates will not roll back due to concurrent out-of-order updates, thereby enhancing the reliability and consistency of the shared memory.

[0016] In one alternative implementation, the method further includes: The global memory knowledge base intelligent agent adopts a dual-mode storage approach, namely a vector database shared memory bus or a knowledge graph structured memory. In the vector database model, governance cases are vectorized and retrieved based on semantic similarity; In the knowledge graph structured memory model, the storage domain entity relationships and governance rules are stored in the event stream storage of event tracing. The written events are immutable, and the current state is generated by event replay.

[0017] The above embodiments, due to the dual-mode storage of the global memory knowledge base agent supporting vector database shared memory bus and knowledge graph structured memory, the vector mode retrieves governance cases based on semantic similarity, while the knowledge graph mode stores domain entity relationships and governance rules and generates the current state with immutable event streams and replays, solving the problem that a single memory storage mode cannot simultaneously handle semantic retrieval and structural reasoning; thus, it improves memory interpretability and consistency, maintains semantic-level policy reuse capability in the governance of similar datasets, and meets the needs of real-time query and rule reasoning.

[0018] In one optional implementation, the two-layer quality inspection agent includes a basic quality inspection submodule and a dataset-wide quality inspection submodule; the method further includes: The basic quality inspection submodule detects missing values, outliers, and labeling errors. The basic quality inspection score is calculated by weighting the missing value rate, outlier ratio, and labeling error rate. The dataset global quality inspection submodule calculates data distribution differences, sample balance, and category coverage, and calculates distribution difference measures on a piecewise basis. Defect shards are located by data source ID, batch ID, shard ID, sample ID, or field name, and a defect category label is attached.

[0019] In the above embodiments, the dual-layer quality inspection agent includes a basic quality inspection submodule and a dataset-wide quality inspection submodule. The basic quality inspection detects missing values, outliers, and labeling errors and calculates scores using weighted averages. The dataset-wide quality inspection calculates data distribution, sample balance, and category coverage, and calculates difference metrics on a shard basis. Defect shards are located using multi-level IDs and are labeled with defect categories. This solves the problem that traditional quality inspection only checks the quality of a single data item while ignoring the overall imbalance in the dataset distribution and failing to accurately locate defects. As a result, the scheduling center obtains executable defect location, local secondary governance can be accurately triggered, the computational load of full recalculation is reduced, and the efficiency of governance iteration is improved.

[0020] In one alternative implementation, the method further includes: The data bias correction agent identifies distribution shifts by using the KL divergence or maximum mean difference between the training set distribution and the reference distribution. Class imbalance is measured by the ratio of majority to minority class samples and the percentage of valid samples. Based on the imbalance ratio and offset, an adaptive selection strategy is chosen for rare sample synthesis, redundant sample downsampling, or out-of-domain data isolation and removal. The correction intensity is set according to the ratio of positive to negative target samples; After correction, the distribution difference index is recalculated. If it still does not meet the standard, a deviation failure report is submitted to the dispatch center.

[0021] In the above embodiments, the data bias correction agent uses KL divergence or maximum mean difference to identify distribution shifts, and uses the ratio of majority to minority class samples and the proportion of effective samples to measure class imbalance. It adaptively selects synthesis, downsampling, or isolation strategies based on the imbalance ratio and the amount of shift. The correction intensity is set according to the target positive and negative sample ratio. After correction, the distribution difference index is recalculated, and a bias not closed report is submitted when the target is not met. This solves the problem of over-balancing or under-correction caused by the inability to quantify the degree of shift and the correction intensity in bias correction. As a result, the correction intensity is matched with the degree of imbalance, the correction process is evaluable and reproducible, and the risk of model overfitting and illusion caused by training data distribution shifts is reduced.

[0022] In one alternative implementation, the method further includes: Compliant, de-identified, and traceable intelligent agents identify sensitive fields and copyright-restricted text; Sensitive fields are desensitized using three levels: masking, replacement, and deletion. High-sensitivity fields are desensitized by deletion or replacement with pseudonyms of the same format, while medium- and low-sensitivity fields are masked to retain the beginning and end of the field. Copyright-restricted text will replace or isolate infringing segments; A field-level hash is calculated for each de-identified field, a record-level hash is calculated for each data entry as a whole, and an operation-level hash is calculated for the governance operation metadata, forming a three-level hash chain.

[0023] In the above embodiments, because the compliance desensitization and traceability intelligent agent identifies sensitive fields and copyright-restricted text, it performs three levels of desensitization on sensitive fields: masking, replacement, and deletion. High-sensitivity fields are deleted or replaced with pseudonyms, while medium- and low-sensitivity fields are masked while retaining the beginning and end. Copyright-restricted text is replaced or infringing fragments are isolated. Furthermore, it calculates field-level, record-level, and operation-level hashes for the desensitized fields, the overall data, and governance operation metadata to form a three-level hash chain. This solves the problems of imprecise desensitization processing and the inability to locate field-level changes in audit traceability. Thus, it balances data availability and privacy protection, allows audit traceability to locate field-level and operation-level changes, reduces the rate of missed detection of sensitive information, and meets compliance audit requirements.

[0024] Secondly, one embodiment of this application provides a hierarchical collaborative intelligent agent system for constructing large model training and inference datasets, comprising: The system includes a central intelligent agent for scheduling, an intelligent agent for data access, an intelligent agent for multimodal cleaning, an intelligent agent for automatic labeling, an intelligent agent for two-layer quality inspection, an intelligent agent for data deviation correction, an intelligent agent for compliance desensitization and traceability, and an intelligent agent for global memory knowledge base. The scheduling central agent connects to the data access agent, multimodal cleaning agent, automatic labeling agent, two-layer quality inspection agent, data deviation correction agent, and compliance desensitization and traceability agent through the task message bus; the global memory knowledge base agent has bidirectional read and write connections with each agent. The data access agent is configured to receive multi-source raw datasets and generate raw data profiles. The central intelligent agent is configured to generate a task DAG pipeline and issue task instructions; The multimodal cleaning agent is configured to perform noise reduction, deduplication, and format unification on the data; The automatic labeling agent is configured to perform labeling on the cleaned data; The dual-layer quality inspection intelligent agent is configured to detect basic quality and global distribution, and output defect segments. The data bias correction agent is configured to perform corrections on detected distribution offsets; The compliant, anonymized, and traceable intelligent agent is configured to perform anonymization and generate hash evidence for the corrected data. The scheduling central agent is equipped with a dataset hierarchical policy library, which stores the quality standards of the pre-training dataset, the quality standards of the fine-tuning dataset, and the quality standards of the RAG dataset. The central intelligent agent selects the corresponding quality standard based on the purpose of the dataset and generates a differentiated task DAG pipeline; The scheduling central agent responds to the defect fragmentation or deviation unclosed report output by the two-layer quality inspection agent or the deviation correction agent, maps the defect type to the governance operator, updates the rule base version, generates a subset of the secondary governance task DAG, and sends it to the corresponding agent to perform local re-governance. The global memory knowledge base agent stores the cleaning features, labeled features, defect cases and correction schemes written by each agent. The scheduling central agent retrieves and reuses historical governance strategies of similar datasets before generating a new task DAG pipeline.

[0025] In this embodiment, a dataset hierarchical policy library is set up in the system to store three sets of quality standards: pre-training, fine-tuning, and RAG. The scheduling central agent selects the corresponding quality standard according to the purpose of the dataset and generates a differentiated task DAG pipeline to solve the quality non-compliance problem caused by mixing the same governance standard for datasets with different purposes. Furthermore, in response to the defect fragmentation output by the two-layer quality inspection agent or the deviation unclosed report output by the data deviation correction agent, the scheduling central agent maps the defect type to the governance operator, updates the rule base version, generates a subset of secondary governance task DAG, and sends it to the corresponding agent for local refactoring. The governance approach addresses the issue of automatic local repairs failing to be triggered after quality inspection and deviation detection. Simultaneously, a global memory knowledge base agent stores cleaning features, annotation features, defect cases, and correction schemes written by each agent. The central agent retrieves and reuses historical governance strategies from similar datasets before generating a new task's DAG pipeline, resolving inconsistencies in data definitions among multiple agents and redundant configurations of similar datasets. This achieves a comprehensive effect: data governance quality grading, closed-loop defect correction, cross-task reuse of governance strategies, unified definitions across multiple agents, a complete compliance audit chain, and system support for autonomous iterative governance of incremental datasets. Attached Figure Description

[0026] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 A comparative schematic diagram of a single-layer cleaning agent architecture in a related technology provided in this application embodiment; Figure 2 A hierarchical collaborative intelligent agent overall system architecture diagram provided in one embodiment of this application; Figure 3 A closed-loop flowchart for automated dataset governance is provided as an embodiment of this application; Figure 4 A schematic diagram of a two-layer quality inspection intelligent agent processing flow provided in an embodiment of this application; Figure 5 A schematic diagram of a data deviation correction intelligent agent processing flow provided in an embodiment of this application; Figure 6A schematic diagram of a compliant de-identification and traceability intelligent agent processing flow provided in an embodiment of this application; Figure 7 A schematic diagram of a global memory knowledge base intelligent agent processing flow provided in an embodiment of this application; Figure 8 A schematic diagram of a collaborative processing method provided in an embodiment of this application; Figure 9 A flowchart illustrating a dataset governance method based on multi-agent collaboration, provided as an embodiment of this application; Figure 10 A flowchart is provided for another dataset governance method based on multi-agent collaboration, as an embodiment of this application. Detailed Implementation

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

[0029] This application provides a hierarchical collaborative intelligent agent system for constructing large model training and induction datasets, as well as a dataset governance method based on multi-agent collaboration. It is applicable to scenarios such as enterprise-developed large model data platforms, general dataset governance platforms, and government industry large model training data management systems. The system can autonomously govern multi-source heterogeneous datasets throughout the entire process, transforming raw data into usable datasets that meet the requirements for pre-training, fine-tuning, or Retrieval-Augmented Generation (RAG) purposes, and forming traceable governance logs and compliance audit chains. The system can be deployed on centralized cloud computing nodes or on hybrid nodes combining lightweight edge agents and cloud hubs. In a typical application scenario, enterprise business systems generate multi-source heterogeneous data such as database tables, API interface data, local files, multimodal documents with images and text, and government forms. The system automatically accesses these data sources, sequentially completing cleaning, labeling, quality inspection, deviation correction, compliance desensitization, and traceability and evidence preservation. Finally, the compliant dataset is archived to the large model training repository, while governance logs and audit reports are simultaneously archived. The entire governance process requires no manual writing of adaptation code and governance rules, significantly reducing the workload of manual intervention.

[0030] This application is conceived as follows: Building a large model training dataset requires covering multiple stages, including multi-source heterogeneous data access, multimodal cleaning, automatic annotation, two-layer quality inspection, data bias correction, compliance de-identification and traceability, and incremental updates. Existing traditional Extract-Transform-Load (ETL) tools rely on manually written regular expressions, Structured Query Language (SQL), and User-Defined Function (UDF) rules. They only support structured data and have weak capabilities in processing unstructured text and mixed text / image data. Rule maintenance costs are extremely high, and they cannot autonomously adapt to new business data formats. Existing layered cleaning agent solutions employ three layers: edge, region, and center agents. Each layer only completes data cleaning and sharding, with overlapping functions. No independent annotation, quality inspection, bias analysis, or compliance audit agents are set up, requiring manual intervention throughout the entire process. Furthermore, they use static knowledge graph scheduling, which cannot autonomously update governance strategies based on governance results, necessitating repeated manual configuration for incremental datasets. The lack of a closed-loop correction mechanism for dataset distribution bias allows imbalanced data to flow directly into training, exacerbating model illusion and overfitting. The absence of a unified, trusted cross-agent data storage link makes it impossible to fully trace the source of anonymized, copyrighted, and confidential data, posing a high compliance risk for commercial large-scale models. The lack of a unified memory-sharing bus among multiple agents leads to task conflicts, inconsistent data definitions, and contradictory governance results, requiring manual verification and correction. Furthermore, the relevant technologies are not specifically optimized for the intended use of large-scale model training datasets, failing to differentiate governance standards for pre-training, fine-tuning, and RAG datasets, and cannot automatically classify dataset quality levels, making it difficult to support end-to-end data management for large-scale model training. These issues result in excessive manual intervention in the governance process, uncorrected data distribution bias, incomplete compliance links, and inconsistent data definitions across multiple agents.

[0031] To address the aforementioned issues, this application constructs a hierarchical collaborative intelligent agent system for building large model training and induction datasets. This system comprises eight functionally decoupled intelligent agents: a scheduling central agent, a data access agent, a multimodal cleaning agent, an automatic annotation agent, a two-layer quality inspection agent, a data deviation correction agent, a compliance desensitization and traceability agent, and a global memory knowledge base agent. It also includes a task message bus, a distributed hash storage system, a training repository archiving module, and a rule base version management module. The scheduling central agent receives raw data profiles, quality inspection defect reports, and deviation analysis reports. It uses a business requirement parsing engine to parse natural language requirements into structured governance parameters. A task directed acyclic graph (DAG) generator generates the task DAG pipeline. A dataset hierarchical policy library stores three sets of quality standards: pre-training, fine-tuning, and RAG. The scheduling central agent selects differentiated governance standards and assigns sub-tasks based on the dataset's purpose. The data access agent uses an adaptive data source adapter to uniformly convert multi-source heterogeneous data into a standard intermediate data format and generates raw data profiles. The multimodal cleaning agent consists of a text cleaning sub-agent, an image denoising sub-agent, and a table normalization sub-agent, which perform denoising, deduplication, formatting, and cross-table field alignment in parallel. The automatic labeling agent performs entity extraction, semantic labeling, and cross-modal alignment labeling based on a domain-specific small-sample knowledge graph, marking low-confidence samples as requiring further review. The two-layer quality inspection agent completes basic quality checks and a full-domain distribution check of the dataset, outputting a quantitative quality score and marking defective segments. The data bias correction agent performs rare sample synthesis, redundant sample downsampling, or out-of-domain data isolation and removal for distribution offsets, class imbalances, and out-of-domain noise, generating a distribution comparison report before and after correction. The compliance desensitization and traceability agent performs hierarchical desensitization of sensitive fields and copyright-restricted text, generating hashes for each data entry as a whole, each desensitized field, and each governance operation. A three-level hash chain (field-level, record-level, and operation-level) is formed through a distributed hash storage system, outputting a compliance audit report. After receiving quality inspection defect reports and deviation analysis reports, the scheduling center maps defect types to governance operators, updates the rule base version, generates a subset of the secondary governance task DAG, triggers local re-governance, and forms a closed loop of governance, detection, correction, and policy update. The rule base version management module performs shadow evaluation on candidate rules, switching them to a grayscale version after reaching a preset effect threshold, and rolling them back if they do not meet the threshold. The global memory knowledge base agent acts as a cross-agent shared memory bus, storing historical governance rules, defect cases, business domain knowledge graphs, and dataset distribution characteristics in a bidirectional read-write manner. Optimistic concurrency control based on version numbers is used to handle memory write conflicts, resolving conflicts based on timestamps, source agent type, and policy priority, providing a consistent snapshot. Each agent writes cleaning features, annotation features, correction schemes, and compliance rules during the governance process. Before generating a new pipeline, the scheduling center retrieves historical policies from similar datasets to achieve policy reuse.The training repository archiving module synchronizes and archives compliant datasets with governance logs and audit reports, establishing version associations. This transforms data governance from manual rule configuration and coordination to fully autonomous governance, enabling governance strategies to be reused across tasks. Data distribution biases and defects are identified and corrected before training, and compliance documentation and audit reports are automatically generated, meeting the compliance and audit requirements for large-scale model training data.

[0032] Figure 1 This is a comparative schematic diagram of a single-layer cleaning agent architecture in related technologies provided in an embodiment of this application. Figure 1 A complete comparison diagram of the hierarchical collaborative agent architecture and the existing single-layer cleaning agent architecture is presented.

[0033] By comparing the existing single-layer cleaning agent architecture with the layered collaborative agent architecture proposed in this application, the shortcomings of the traditional solution are identified, and the four major innovations, complete business process, output capabilities and closed-loop operation mechanism of the new architecture are explained one by one.

[0034] First, existing technologies demonstrate the process and shortcomings of a single-layer cleaning agent architecture.

[0035] The traditional approach is a single-layer data cleaning agent cluster, with the complete chain as follows: 1. Multi-source data input: Receives various types of raw data sources.

[0036] 2. Single-layer hybrid cleaning intelligent agent cluster processing.

[0037] Limitations: It can only perform basic data sharding and rule-based denoising and cleaning; it lacks deep semantic understanding and intelligent correction capabilities. All cleaning tasks are mixed in the same layer of the intelligent agent, and the functions are not separated.

[0038] 3. Inherent architectural flaws: lack of independent quality inspection and compliance modules.

[0039] Data bias and privacy breach risks cannot be automatically blocked; these risks can only be discovered manually afterward.

[0040] 4. Output: Coarsely cleaned dataset.

[0041] The output data still contains a lot of noise and privacy risks, and must be manually verified a second time. The automation level is low and the quality is uncontrollable.

[0042] The old architecture suffers from several pain points: mixed functions, lack of automated quality inspection and compliance, static one-time processing, lack of self-iteration capabilities, high dependence on manual review, and high risks to privacy and data quality.

[0043] Secondly, a comparison of core innovation differences.

[0044] 1. Functional decoupling and restructuring.

[0045] Breaking away from the traditional, singular, and generalized cleaning function, it is broken down into eight specialized intelligent agents, ensuring that each agent is responsible for its own specific task, thus significantly improving overall processing efficiency.

[0046] 2. Closed-loop feedback iteration.

[0047] Defect data is automatically fed back to the memory, driving the model to continuously self-optimize; unlike the old architecture's one-time static data processing, this architecture has the ability to continuously evolve.

[0048] 3. Compliant native design.

[0049] It has a built-in independent compliance traceability intelligent agent, which realizes auditing as cleaning, avoids the risk of privacy leakage and data abuse at the source of data processing, and the compliance capability is natively embedded in the architecture, rather than being added as an external plug-in later.

[0050] 4. Global memory sharing.

[0051] By introducing a global memory bus, information silos between different intelligent agents are broken down, enabling multiple functional intelligent agents to exchange and collaborate on knowledge and operational status.

[0052] Finally, the complete process of the hierarchical collaborative intelligent agent architecture in this application is presented.

[0053] 1. Access to multiple heterogeneous data sources.

[0054] It is compatible with various heterogeneous and multi-type raw data source inputs, and has stronger input adaptation capabilities compared to the old solution.

[0055] 2. Eight independent functional intelligent agents work together in a cluster.

[0056] The eight functions include: access, cleaning, labeling, quality inspection, deviation correction, compliance, memory, and scheduling; Each agent performs its own function, relying on the global memory bus to achieve cross-agent information exchange and collaborative work, thus completing the decoupling of functions and no longer a single-layer hybrid processing.

[0057] 3. Dual-track output: High-availability dataset + compliance chain.

[0058] Output high-quality, usable datasets to meet the demand for high-quality data in large model training.

[0059] Simultaneously generate a compliance chain, fully preserve audit clues, and meet the regulatory requirements for data security and compliance auditing.

[0060] 4. Closed-loop iterative channel.

[0061] Defect data feedback drives model optimization, forming a complete positive loop.

[0062] Cleaning - Quality Inspection - Feedback - Optimization.

[0063] The discovered defective data is not discarded directly, but is automatically fed back into the system to update the memory bank and iteratively optimize the models of each agent, thereby achieving continuous self-improvement and breaking away from the traditional static one-time processing mode.

[0064] Please refer to Figure 2 , Figure 2 This diagram illustrates the overall system architecture of the hierarchical collaborative intelligent agent system. The hierarchical collaborative intelligent agent system is a software system comprised of multiple independent software intelligent agent processes or services, deployed on centralized cloud computing nodes or hybrid nodes combining lightweight edge intelligent agents with a cloud hub. The intelligent agents are connected via a message bus and a shared memory bus. The scheduling hub intelligent agent serves as the central control node, while the other intelligent agents act as execution and feedback nodes. The data access intelligent agent outputs raw data profiles to the scheduling hub and intermediate format data to the cleaning intelligent agent. Cleaning, labeling, quality inspection, deviation correction, and compliance desensitization and traceability sequentially form a data link. The global memory knowledge base intelligent agent connects to all intelligent agents via bidirectional read / write. The task message bus and task status synchronization module handle task distribution and status feedback between the intelligent agents.

[0065] In some embodiments, the hierarchical collaborative intelligent agent system includes a scheduling central intelligent agent 110, a data access intelligent agent 120, a multimodal cleaning intelligent agent 130, an automatic labeling intelligent agent 140, a two-layer quality inspection intelligent agent 150, a data deviation correction intelligent agent 160, a compliance de-identification and traceability intelligent agent 170, and a global memory knowledge base intelligent agent 180. Additionally, it includes a global memory shared bus, a government structured library, multimodal unstructured data, real-time incremental data streams, historical existing datasets, a diversity training dataset repository, a compliance audit evidence library, and a defect sample feedback channel. The scheduling central intelligent agent 110 communicates with the data access intelligent agent 120, the multimodal cleaning intelligent agent 130, the automatic labeling intelligent agent 140, the two-layer quality inspection intelligent agent 150, the data deviation correction intelligent agent 160, and the compliance de-identification and traceability intelligent agent 170 via a task message bus. The global memory knowledge base intelligent agent 180 has bidirectional read / write connections with each intelligent agent. The data access intelligent agent 120 is configured to receive multi-source raw datasets and generate raw data profiles. The central scheduling agent 110 is configured to generate a task DAG pipeline and issue task instructions. The multimodal cleaning agent 130 is configured to perform denoising, deduplication, and format unification on the data. The automatic annotation agent 140 is configured to annotate the cleaned data. The two-layer quality inspection agent 150 is configured to detect basic quality and global distribution, and output defect fragments. The data bias correction agent 160 is configured to correct detected distribution offsets. The compliance desensitization and traceability agent 170 is configured to desensitize the corrected data and generate hash evidence. The central scheduling agent 110 has a dataset hierarchical policy library, which stores the quality standards for pre-trained datasets, fine-tuned datasets, and RAG datasets. The central scheduling agent 110 selects the corresponding quality standard based on the dataset's purpose and generates a differentiated task DAG pipeline. In response to the defect sharding report output by the two-layer quality inspection agent 150 or the deviation not closed report output by the data deviation correction agent 160, the scheduling central agent 110 maps the defect type to the governance operator, updates the rule base version, generates a subset of the secondary governance task DAG, and distributes it to the corresponding agent for local re-governance. The global memory knowledge base agent 180 stores the cleaning features, annotation features, defect cases, and correction schemes written by each agent. Before generating a new task DAG pipeline, the scheduling central agent 110 retrieves and reuses historical governance strategies from similar datasets.

[0066] Please refer to Figure 3 , Figure 3 The diagram illustrates the closed-loop process of automated dataset governance.

[0067] Figure 3The document details the complete business pipeline within the layered collaborative intelligent agent architecture, connecting eight independent functional intelligent agents in sequence according to their processing time. It also demonstrates two key closed-loop links: quality inspection failure triggers backflow, and memory assets drive iteration. The bottom section clarifies the core mechanism of the entire data governance closed loop.

[0068] S301, the intelligent 120 data access system completes the normalization of multi-source heterogeneous data formats, and performs standardized processing on raw data from different sources and with different formats; it automatically generates raw data profiles, establishes unified access standards and data basic archives, and lays a unified foundation for subsequent full-process governance.

[0069] S302, the multimodal cleaning agent 130 receives the standardized data after access and performs basic and semantic cleaning: intelligent deduplication, noise filtering, and outlier removal; it completes cross-field semantic alignment and intelligently completes missing values ​​to achieve basic purification of multimodal data.

[0070] S303 and Automatic Labeling Agent 140 rely on the capabilities of large models to carry out entity extraction, attribute classification, cross-modal alignment, automatically build a high-precision labeling system, complete dataset labeling, and provide label support for large model training.

[0071] S304, the dual-layer quality inspection intelligent agent 150 adopts a dual-layer quality inspection mechanism: on the one hand, it relies on the rule engine to detect basic format and logic defects; on the other hand, it uses a large model to perform full-domain scoring and rating; and outputs a formal quality report and rectification list.

[0072] Branching logic: Data that fails quality inspection is triggered to flow back along the dotted arrow on the left and re-enter the previous treatment stage for correction; data that passes quality inspection flows downward.

[0073] S305 and Data Bias Correction Intelligent 160 are designed for qualified data to detect dataset distribution shifts and class imbalances. They employ resampling and weighting algorithms to optimize sample distribution, reduce or eliminate model biases introduced during training, and improve the rationality of dataset distribution.

[0074] S306, the compliance desensitization and traceability intelligent agent 170 completes the automatic identification and desensitization of sensitive information; generates full-link hash evidence storage, fully records the entire data processing process, outputs a compliance audit report that meets regulatory requirements, and implements data security and audit traceability requirements.

[0075] S307, the function of archiving and storing qualified datasets is to store them in a hierarchical manner according to different large model application scenarios such as pre-training, fine-tuning, retrieval enhancement generation, etc.; a versioned management directory and data asset index are established to realize the orderly management of datasets and facilitate direct access later.

[0076] S308, the function of writing to the global memory shared bus will store the governance rules, defect samples and optimization cases accumulated from the whole process into the global memory shared bus, forming a shared knowledge asset that can be accessed by all intelligent agents; relying on the memory asset driven by the dotted line on the right to drive the iteration and feed back to all intelligent agents, continuously driving the evolution of the overall data governance capability.

[0077] Furthermore, data failing quality inspection triggers a backflow process. Data deemed unqualified by the two-layer quality inspection intelligent agents does not flow downstream but is instead returned to the upstream processing stage for reprocessing. This immediate interception of low-quality data safeguards the bottom line of data quality and prevents defective data from entering the final dataset. Memory assets drive iteration; knowledge assets accumulated through the complete governance process and stored on the global memory shared bus are then fed back to the eight intelligent agents. Each agent reuses historical defect samples, optimization cases, and mature governance rules to achieve continuous iterative optimization of the overall strategy. The core of the governance closed loop ensures the bottom line of data quality through immediate quality inspection backflow and achieves self-optimization and intelligent iteration of the governance strategy through global memory accumulation, constructing a sustainably evolving governance system.

[0078] It should be noted that the hierarchical collaborative intelligent agent system can be deployed centrally in the cloud or in a hybrid deployment combining lightweight edge agents and a cloud-based central hub. In one embodiment, the hierarchical collaborative intelligent agent system is deployed on a cloud container cluster, where the scheduling central agent 110 runs on the central node, and each functional agent runs as an independent container service, communicating through message queues and shared storage. In another embodiment, the data access agent 120 and the multimodal cleaning agent 130 are deployed on edge gateway nodes to adapt to the processing requirements of local government classified data and edge-collected data streams; the scheduling central agent 110 and the remaining agents are deployed in the cloud, with edge agents and cloud agents connected through a secure channel. This edge deployment method can prevent classified data from leaving the local environment, while the cloud-based scheduling central hub uniformly manages the governance pipeline. Specifically, the working modes of the hierarchical collaborative intelligent agent system include offline full-volume governance mode, real-time incremental governance mode, secondary correction mode, and archiving mode. In the offline full-scale governance mode, each agent executes in parallel or serially according to the task DAG pipeline; in the real-time incremental governance mode, the data access agent 120 continuously senses new data, and the scheduling central agent 110 only triggers governance for incremental fragments; in the secondary correction mode, quality inspection defect reports or deviation reports trigger local re-governance; in the archiving mode, the compliant dataset and audit files are synchronously written to the training repository.

[0079] Specifically, the hierarchical collaborative intelligent agent system decouples the previously manually coordinated data governance processes into eight specialized intelligent agents. It achieves cross-agent collaboration through a feedback loop in the scheduling center and a global memory bus. Furthermore, with a message bus and evidence storage system as underlying support, it enables fully autonomous governance of large model training datasets throughout the entire process. This significantly reduces manual configuration and cross-process manual coordination, shortens the governance cycle for multi-source heterogeneous data, and simultaneously improves training data quality, distribution balance, and compliance traceability.

[0080] Please refer to Figure 2 and Figure 3 The scheduling central intelligent agent 110 is deployed on a central node, a cloud container, or a central control node. The carriers of the scheduling central intelligent agent 110 include a business requirement parsing engine, a task DAG generator, a task queue, a rule base, a load balancer, a dataset hierarchical policy library, and a rule update decision-maker. The rule base version management module and the dataset hierarchical policy library can be embedded within the scheduling central intelligent agent 110 or deployed as an independent configuration center. In one embodiment, the rule base version management module and the dataset hierarchical policy library run as independent services, interacting with the scheduling central intelligent agent 110 through internal interfaces. In another embodiment, the rule base version management module and the dataset hierarchical policy library are embedded as library files in the process space of the scheduling central intelligent agent 110 to reduce network latency.

[0081] It should be noted that the scheduling central agent 110 receives the raw data profile output by the data access agent 120, the defect report output by the two-layer quality inspection agent 150, and the deviation analysis report output by the data deviation correction agent 160. The scheduling central agent 110 issues task instructions to the multimodal cleaning agent 130, the automatic labeling agent 140, the two-layer quality inspection agent 150, the data deviation correction agent 160, and the compliance desensitization and traceability agent 170. The scheduling central agent 110 and the global memory knowledge base agent 180 bidirectionally read and write governance rules, governance cases, and task status. The scheduling central agent 110 writes task messages to the task message bus and receives status feedback.

[0082] Specifically, the role of the central intelligent agent 110 in the system is to uniformly schedule various functional intelligent agents, orchestrate the governance pipeline, and implement dataset quality grading. The central intelligent agent 110 parses natural language business requirements into executable governance sub-tasks, generates task DAGs, selects differentiated governance standards based on three types of uses: pre-training, fine-tuning, and RAG, and iteratively updates the rule base and issues secondary correction tasks based on defect feedback.

[0083] In some embodiments, the scheduling central agent 110 operates as follows: During the initial governance, the scheduling central agent 110 creates a task DAG based on the original data profile and business requirements, with tasks allocated according to dependencies and parallelism. When the quality score output by the two-layer quality inspection agent 150 is lower than the corresponding level threshold or the deviation distribution index output by the data deviation correction agent 160 exceeds the threshold, the scheduling central agent 110 enters a secondary correction state, initiating partial or full re-governance and updating the rule base version. When incremental data arrives, the scheduling central agent 110 matches the existing pipeline of the existing dataset and performs governance only on the newly added shards. When the purpose of the dataset changes, the scheduling central agent 110 switches between pre-trained coarse-grained, fine-tuned high-quality, and RAG high-precision corresponding quality standards.

[0084] For example, the scheduling central agent 110 receives a natural language business governance request input by the user, such as "Please govern this batch of government data according to the fine-tuning standard, requiring all sensitive fields to be anonymized." The business requirement parsing engine performs semantic parsing on the statement, extracting structured governance parameters such as the governance target being government data, the dataset's purpose being fine-tuning, and the compliance requirement being the anonymization of all sensitive fields. The task DAG generator generates a task DAG pipeline based on the above parameters, which includes task nodes such as data access, cleaning, labeling, quality inspection, deviation correction, compliance anonymization tracing, and archiving, as well as their dependencies. The dataset grading strategy library outputs the quality threshold corresponding to the fine-tuning of high-quality datasets based on the purpose of the fine-tuned dataset. Each task instruction is sent to the corresponding agent for execution via the task message bus.

[0085] In other embodiments, the governance task pipeline generated by the scheduling central agent 110 can also use a directed acyclic hypergraph or a hierarchical finite state machine as the process orchestration model, expressing the three sets of hierarchical governance standards using a rule tree or decision table. The scheduling central agent 110 selects the state transition path based on the original data profile and the purpose of the dataset, generating an executable governance link; during secondary corrections, local governance is triggered through state reentry. This alternative approach makes it easier to define state reentry and concurrency control when incremental data triggers local governance.

[0086] It should be noted that, because the scheduling central agent 110 establishes a closed loop encompassing demand analysis, DAG orchestration, selection of grading standards, and defect feedback rescheduling, the manual rule configuration process is transformed into autonomous scheduling and rule updates by the agent. This eliminates the need for manual configuration of governance rules and coordination between processing stages. It supports three sets of differentiated dataset governance standards, meeting the quality grading management requirements for large model pre-training, fine-tuning, and RAG data, and improving adaptation and iteration efficiency in scenarios with new data sources. The dataset governance cycle is shortened from 72 hours to 4.5 hours, reducing manual intervention workload by approximately 92%.

[0087] Specifically, the scheduling central agent 110 includes a business requirement parsing engine. This engine is a software submodule running within the central agent 110. It comprises a natural language understanding model, an intent recognizer, a slot extractor, and a requirement structure converter. The engine receives natural language business governance requirements from the user, outputs structured governance objectives, data quality levels, data source scope, and timeliness requirements to the task DAG generator, and interacts with the dataset grading strategy library to determine the quality level. Business requirement parsing is performed before the initial governance and when business requirements change. When the parsing confidence level is lower than a preset threshold, low-confidence items are marked as pending confirmation without blocking overall task generation, and the parsing results are written to the task context. This preset threshold can be set to 0.7, meaning that items with a parsing confidence level below 70% are marked as pending confirmation. For example, the business requirement parsing engine interprets "govern this batch of clinical data for fine-tuning" as having a governance objective of clinical data, a dataset purpose of fine-tuning, and a quality level of high-quality fine-tuning. Because the business requirement parsing engine replaces manual form configuration of governance parameters with natural language semantic parsing, and the parsing results are linked with the hierarchical strategy library, business personnel can initiate dataset governance without writing rules.

[0088] The scheduling central agent 110 also includes a task DAG generator. The task DAG generator is a software submodule, comprising a task dependency graph builder, a parallelism planner, a resource estimator, and a DAG verifier. The task DAG generator receives structured governance parameters output by the business requirement parsing engine, outputs the task DAG pipeline and the resource requirements, dependencies, and priorities of each subtask, and writes task nodes to the task queue. DAGs are generated under three modes: initial governance, secondary correction, and incremental governance. When a dependency cycle or excessive resource limits are detected, task splitting and priority adjustment are performed. When historically similar pipelines exist, DAG templates are reused preferentially. For example, the task DAG generator generates a DAG for fine-tuning dataset governance requirements, where the task nodes corresponding to the multimodal cleaning agent 130 and the automatic labeling agent 140 can be executed in parallel, while the task nodes corresponding to the two-layer quality inspection agent 150 must be executed after cleaning and labeling are completed. The task DAG generator automates the manual orchestration process with a DAG builder and improves resource utilization efficiency with dependency verification and parallel planning. Complex multi-agent tasks can be automatically orchestrated, avoiding process blockages caused by manual error checking.

[0089] Still referencing Figure 2The data access agent 120 is deployed on the data source side, edge gateway nodes, or central nodes. The data access agent 120's components include a data source adapter 121, a format parser, an intermediate format converter, a data element extractor, an invalid data filter, and an access status listener. The data access agent 120 receives data streams from databases, APIs, local files, multimodal documents (text and images), and government forms. The data access agent 120 outputs unified intermediate format data to the multimodal cleaning agent 130, outputs raw data profiles and abnormal data source information to the scheduling central agent 110, and can write access features to the global memory knowledge base agent 180. In offline full-volume mode, the data access agent 120 batch-reads data sources and completes format conversion; in real-time incremental mode, it continuously monitors data source changes and writes them to the intermediate format in a streaming manner; when the data source type cannot be identified, the parsing error rate exceeds a threshold, or the proportion of empty data exceeds a threshold, it marks the data source as abnormal and notifies the scheduling central agent 110; when a new data source is added, developers do not need to add adaptation code, as the adapter adaptively selects the parsing and conversion strategy.

[0090] It should be noted that the Data Access Intelligent Agent 120, through adaptive data source adaptation and intermediate format normalization, enables multi-source heterogeneous data to achieve a unified representation before entering the governance pipeline, avoiding manual configuration of data access rules. Adding new data sources requires no additional adaptation code from developers, improving business iteration efficiency by approximately 75%.

[0091] Specifically, the data access agent 120 includes a data source adapter 121. The data source adapter 121 is a software submodule, including a data source type identifier, a connector pool, a protocol adapter, and a fragment reader. The data source adapter 121 identifies the data source type based on the connection protocol, file header, and metadata information. It uniformly converts databases, APIs, local files, multimodal documents with images and text, and government forms into a standard intermediate data format for the large model. It automatically identifies data element fields, generates raw data profiles, and filters completely invalid empty data. When the data source type cannot be identified, the parsing error rate exceeds a threshold, or the proportion of empty data exceeds a threshold, the data source is marked as abnormal, and the scheduling central agent 110 is notified. When a new data source is accessed, the adapter adaptively selects the parsing and conversion strategy, without requiring developers to add new adaptation code. In another embodiment, when the data source adapter 121 cannot directly match the type, it matches historical parsing templates through format features and field name similarity. The new parsing strategy performs trial parsing of sample fragments in shadow mode; after the parsing success rate and field coverage exceed the threshold, it is officially accessed. If parsing fails, it reverts to manual confirmation or is marked as an abnormal data source. For example, when data source adapter 121 receives an Application Programming Interface (API) response containing JSON fields, it first identifies it as a JSON API data source based on the Hypertext Transfer Protocol (HTTP) Content-Type and response body structure. Then, it calls a JSON parser to convert it into a uniform matrix intermediate format, automatically identifying data element fields such as "name" and "ID number." If the API response contains nested array fields, data source adapter 121 matches historical parsing templates based on field name similarity and expands the nested array into multiple records. The parsing success rate threshold can be set to 95%, and the field coverage threshold can be set to 90%. When the parsing success rate or field coverage is below the threshold, it is not automatically connected but marked as pending confirmation.

[0092] It should be noted that, because the data access intelligent agent 120 replaces manual configuration of data source access rules with adaptive adaptation and intermediate format normalization, heterogeneous data can be uniformly expressed at the governance entry point, the access capability of multi-source heterogeneous data is enhanced, and no new data source needs to be added by developers to add adaptation code, providing input support for the whole process without manual configuration.

[0093] Please refer to Figure 2, the multimodal cleaning agent 130 is a software agent cluster composed of multiple sub-agent services running in parallel, deployed on cloud computing nodes or edge lightweight nodes. The carrier of the multimodal cleaning agent 130 includes a text cleaning sub-agent, an image denoising sub-agent, a table normalization sub-agent, and a cleaning feature extractor. The multimodal cleaning agent 130 receives the standard intermediate format data output by the data access agent 120, outputs the initially cleaned dataset to the automatic labeling agent 140 and the dual-layer quality inspection agent 150, writes cleaning features into the global memory knowledge base agent 180, and receives the full-volume cleaning or defective fragment re-cleaning task issued by the scheduling hub agent 110. Under the normal governance state, the multimodal cleaning agent 130 has three sub-agents process different modality fragments of the same dataset in parallel; under the secondary correction state, it only re-executes cleaning on the quality inspection defective fragments to avoid full-volume recalculation; under the incremental data governance state, it reuses cleaning rules based on historical cleaning features and mature strategies in the memory library, and only performs differential cleaning on newly added fragments.

[0094] It should be noted that, since the multimodal cleaning agent 130 splits multimodal data cleaning into three dedicated sub-agents for text, image, and table to execute in parallel, and links cleaning features with the global memory bus, a reusable and locally re-executable cleaning mechanism is formed. Compared with a single cleaning agent, it can cover multimodal training data, the missed detection rate of noise, duplicate and garbled data is reduced by 87%, the cleaning efficiency is improved, and defective fragments do not require full-volume re-cleaning.

[0095] Specifically, the text cleaning sub-agent operates inside the multimodal cleaning agent 130. The text cleaning sub-agent includes a duplicate text detection module, a semantic redundancy filtering model, a garbled or invalid advertising noise rule engine, and a text format normalization tool. The text cleaning sub-agent receives text fragments in the intermediate format, outputs cleaned text features and text data to the multimodal cleaning agent 130, and interacts with the global memory knowledge base agent 180 to write or read historical text cleaning features. The text cleaning sub-agent performs deduplication, filtering, and format unification on the full-volume text fragments during initial governance; only re-executes cleaning on defective text fragments during secondary correction; and prioritizes reusing learned noise templates and deduplication strategies when historical cleaning features exist. The text cleaning sub-agent is distinguished from conventional character-level deduplication by semantic-level redundancy recognition, and can identify text content with semantic repetition expressed by different words. For example, "the weather is sunny" and "the weather is very nice today" have different characters but semantic repetition, which can be identified as redundancy through semantic similarity calculation. The text cleaning sub-agent reduces the redundancy rate of text data, prevents repeated semantics from entering large model training, and reduces the risk of model overfitting and repeated content generation.

[0096] The image denoising sub-agent operates within the multimodal cleaning agent 130. The image denoising sub-agent includes an image quality assessment module, an image noise suppression module, and an image-text consistency detection module. It receives image slices from the intermediate format, outputs denoised image data and quality features to the multimodal cleaning agent 130, and collaborates with the automatic annotation agent 140 before cross-modal image-text alignment. When the image quality score is below a threshold, the image denoising sub-agent performs denoising or marks the image as pending processing; during secondary correction, it re-performs quality assessment and denoising on defective image slices; in mixed image-text data, it passes image quality features to the automatic annotation agent 140 for cross-modal alignment. The threshold for the image denoising sub-agent can be set to 0.6, meaning denoising is performed when the image quality score is below 60. The image denoising sub-agent adds image-side quality assessment and denoising processing to the multimodal cleaning process, allowing mixed image and text training data to enter the annotation and quality control stages after noise suppression. Non-content images and low-quality images are filtered or repaired, improving the quality of multimodal training data and reducing visual noise interference during training. Furthermore, the image denoising sub-agent extracts scene, entity, and Optical Character Recognition (OCR) features from the images, while the text cleaning sub-agent extracts contextual semantics and entity labels. The image-text consistency detection module calculates the alignment score between image features and text features. When the alignment score is below a threshold, it is marked as an image-text conflict fragment and returned to the cleaning stage for reprocessing, or the annotation priority of that sample is reduced. Because of the calculation of the alignment score between image and text features, inconsistent image-text samples can be identified during the cleaning stage, preventing low-quality image-text conflict samples from entering training and reducing the risk of visual and semantic errors in multimodal training.

[0097] The table normalization sub-agent operates within the multimodal cleaning agent 130. It includes a table structure recognizer, a field alignment engine, a cross-table pattern matcher, and a table format normalization module. The table normalization sub-agent receives structured table fragments from intermediate formats and outputs normalized table data and field mapping relationships to the multimodal cleaning agent 130, coordinating with the data element field recognition results of the data access agent 120. During the initial cleaning process, the table normalization sub-agent performs field alignment on multi-source tables based on the data element field recognition results; when cross-table field conflicts are detected, it writes the conflict information into the cleaning features; during the secondary correction, it re-normalizes the fragments with field alignment defects. The table normalization sub-agent introduces table structure recognition and cross-table field alignment within the multimodal cleaning scope, resolving the inconsistency in field representation for structured multi-source tables. Multi-source table data is unified into consistent field expressions, reducing data discrepancies caused by cross-table field conflicts and improving the consistency of downstream annotation and quality inspection.

[0098] Please refer to Figure 2The automatic annotation agent 140 is deployed on cloud computing nodes. The carriers of the automatic annotation agent 140 include a domain small-sample knowledge graph retrieval unit, an entity recognizer, a semantic label generator, a cross-modal alignment model for text and image, and an annotation confidence evaluator. The automatic annotation agent 140 receives the initial cleaned dataset output by the multimodal cleaning agent 130, outputs an annotated structured dataset and a list of samples to be reviewed to the two-layer quality inspection agent 150, and writes annotation features and low-confidence sample distribution information to the global memory knowledge base agent 180. Under normal governance conditions, the automatic annotation agent 140 performs parallel automatic annotation on text, images, and mixed text and image data; when the sample annotation confidence is lower than a preset threshold, it is marked as a sample to be reviewed and the reason is recorded; when historical annotation rules exist, the domain knowledge graph and annotation cases in the memory are reused first; under secondary correction conditions, only the incorrectly annotated fragments are re-annotated. This annotation confidence threshold can be set to 0.8, meaning samples with a confidence level below 80% are marked as needing review. The automatic annotation agent 140 introduces domain-specific small-sample knowledge graphs and cross-modal alignment models into the dataset construction process. It uses confidence assessment to distinguish between automatically annotated and samples to be reviewed, replacing a large number of manual annotation steps. This improves annotation efficiency, reduces the workload of manual annotation, and automatically identifies low-confidence samples to enter the review process, preventing low-quality annotations from directly entering the training data.

[0099] Please refer to Figure 2 and Figure 4 , Figure 4 A schematic diagram of the two-layer quality inspection intelligent agent processing flow is shown. Figure 4 It should include at least the following steps: S401: Determine the dataset to be inspected (original input pool).

[0100] S402: Initiate the dual-layer intelligent quality inspection process.

[0101] S403: Activate dual verification mechanism (basic planning and full coverage).

[0102] S404: Determine if the quality meets the standard. If yes, proceed to S405; otherwise, proceed to S406.

[0103] S405: Seamlessly transition to the "Data Deviation Correction Agent" and enter the next round of intelligent optimization.

[0104] S406: Automatically pushes to the dispatch center, triggering the "secondary governance" process to re-clean and supplement the data.

[0105] Next Figure 4 The process will be explained as follows: The two-layer quality inspection agent 150 is deployed on cloud computing nodes. It includes a basic quality inspection submodule and a dataset-wide quality inspection submodule. The two-layer quality inspection agent 150's components include a missing value detector, an outlier analyzer, an annotation error checker, a distribution statistician, a balance calculator, a category coverage analyzer, and a quality score aggregator. The two-layer quality inspection agent 150 receives labeled structured datasets output by the automatic annotation agent 140, outputs quality scores, defect data fragments, and defect type information to the scheduling central agent 110, and writes defect cases and quality score distributions to the global memory knowledge base agent 180. The dual-layer quality inspection agent 150 performs a full quality inspection after the initial governance; after the second correction, it only re-inspects the corrected fragments or the entire dataset; when the quality score is lower than the compliance threshold corresponding to the dataset level selected by the scheduling central agent 110, a defect report is generated; when the global distribution deviation exceeds the preset range, the distribution problem is pushed to the data deviation correction agent 160 and the scheduling central agent 110 is notified simultaneously. The dual-layer quality inspection agent 150 divides the quality inspection into two layers: basic quality and global quality. The basic layer checks for missing values, outliers, and labeling errors, while the global layer checks data distribution, sample balance, and class coverage, and outputs defect fragment location. It can discover data distribution imbalance problems that are difficult to identify by traditional quality inspection, providing accurate defect location and quantitative basis for subsequent deviation correction and secondary governance.

[0106] Specifically, the basic quality inspection submodule runs within the two-layer quality inspection agent 150. This submodule includes a missing value counter, an outlier detector, an annotation error comparator, and a rule base. It receives the cleaned and labeled dataset and annotation confidence information, outputs basic quality defect fragments to the two-layer quality inspection agent 150, and shares the basic quality threshold corresponding to the data level with the scheduling central agent 110. During the initial quality inspection, the submodule performs field-by-field and sample-by-sample checks; after secondary correction, it focuses on re-inspecting the original defect fragments; when the missing rate, outlier rate, or annotation error rate exceeds the threshold, it outputs defect labels and fragment locations. The basic quality inspection submodule integrates multiple types of single-data-line quality defects into a single basic quality inspection submodule and binds them to dataset level thresholds. Low-quality samples at the single-data-line level are automatically identified, reducing the probability of low-quality data entering the training stage and providing precise location for secondary governance. For example, the basic quality inspection submodule detects that the "age" field is missing in a certain data, and the data belongs to the fine-tuning dataset with a missing rate threshold of 0.02. The missing field causes the data to be marked as missing defect, and outputs the data source ID, batch ID, shard ID and sample ID for precise location.

[0107] The dataset global quality inspection submodule runs within the two-layer quality inspection agent 150. This submodule includes a data distribution statistician, a sample balance calculator, a category coverage calculator, and a global defect marker. It receives the dataset and metadata after basic quality inspection and outputs global distribution defects, balance defects, and coverage defects to the two-layer quality inspection agent 150, sharing the distribution verification results with the data deviation correction agent 160. During the initial quality inspection, the submodule calculates the distribution indicators for each segment and category; when the category coverage is below a preset threshold, it marks the corresponding category segment; when the ratio of positive to negative samples or the proportion of domain samples deviates from the target range, it generates a global defect report and pushes it to the scheduling central agent 110. The category coverage threshold can be set to 80%, meaning that a category with a sample coverage rate below 80% is marked as having a coverage defect. The dataset-wide quality inspection submodule adds a dataset-wide distribution quality inspection on top of sample-level quality inspection. Using distribution difference and coverage as quality indicators, it can identify data distribution imbalances that are difficult to detect with traditional quality inspections, providing clear triggering conditions and quantitative inputs for bias correction and reducing the risk of model training bias. Defect fragments are located by data source ID, batch ID, fragment ID, sample ID, or field name, and are labeled with defect category tags. The basic quality inspection score is calculated by weighting the missing value rate, outlier ratio, and annotation error rate. The full-domain quality inspection calculates distribution difference metrics on a fragment-by-fragment basis, such as Kullback-Leibler Divergence (KL), Jensen-Shannon Divergence (JS), or Gini impurity. Because defect fragments have precise location identifiers and category tags, the scheduling central agent 110 can map them to governance operators based on defect categories, enabling precise triggering of local secondary governance, reducing the computational load of full recalculation, and improving governance iteration efficiency.

[0108] Please refer to Figure 2 and Figure 5 , Figure 5 A schematic diagram illustrating the data deviation correction agent's processing flow is shown. Figure 5 It should include at least the following steps: S501: Qualified data input (pure data source after quality inspection screening).

[0109] S502: Intelligent Deviation Recognition (Multidimensional Statistical Analysis, Location Distribution Anomalies).

[0110] S503: Correction strategy decision (autonomous matching optimal, resampling and weighting).

[0111] S504: Perform equalization correction (dynamically adjust data distribution to eliminate sample bias).

[0112] S505: Output and Deposit (balanced dataset delivery, report stored in memory).

[0113] Next Figure 5 The process will be explained as follows: The data deviation correction agent 160 is deployed on cloud computing nodes. The data deviation correction agent 160's components include a distribution statistics module, a positive / negative sample ratio analyzer, a domain sample ratio analyzer, an out-of-domain sample identifier, a correction strategy selector, and a pre- and post-correction comparison report generator. The data deviation correction agent 160 receives the dataset's global distribution defect information and the dataset after basic quality inspection from the two-layer quality inspection agent 150. It outputs a deviation analysis report and correction plan to the scheduling central agent 110, writes the pre- and post-correction distribution comparison report to the global memory knowledge base agent 180, and outputs the corrected dataset to the compliance de-identification and traceability agent 170. When the data bias correction agent 160 detects distribution shift, class imbalance, or out-of-domain noise exceeding the threshold during the global quality inspection, it enters the correction state. It selects one or more correction strategies based on the type and severity of the bias. After correction, it recalculates the distribution index; if it still fails to meet the standard, it submits a secondary bias report to the scheduling center agent 110. The corrected data and comparison report are then transmitted to the compliance desensitization and traceability agent 170 and the global memory knowledge base agent 180, respectively. The data bias correction agent 160 incorporates bias self-detection and closed-loop correction agents into the large model dataset governance chain. This closed-loop approach—identifying distribution shifts, autonomously selecting corrections, generating before-and-after comparisons, and providing feedback to the scheduling center—corrects the training data distribution. The training data distribution shift is automatically identified and corrected, achieving a dataset distribution bias identification accuracy of 96.3%, reducing the risk of model illusion and overfitting caused by distribution imbalance.

[0114] Specifically, the data bias correction agent 160 identifies distribution shifts by using the KL divergence or maximum mean difference between the training set distribution and the reference distribution; it measures class imbalance by using the ratio of majority to minority class samples and the percentage of effective samples; it adaptively selects strategies such as rare sample synthesis, redundant sample downsampling, or out-of-domain data isolation and removal based on the imbalance ratio and shift; the correction intensity is set according to the target positive and negative sample ratio; after correction, the distribution difference index is recalculated, and if it still does not meet the target, a bias not closed report is submitted to the scheduling central agent 110. For example, if the data bias correction agent 160 detects that the positive sample ratio in a binary classification dataset is 10%, the negative sample ratio is 90%, and the reference distribution has a positive sample ratio of 50%, and the calculated KL divergence exceeds the preset threshold of 0.2, it determines that there is a class imbalance; the correction strategy selects rare sample synthesis, using the SMOTE algorithm to synthesize positive samples, so that the positive and negative sample ratio is close to 1:1; after correction, the KL divergence is recalculated and reduced to 0.05, which does not exceed the threshold, so the bias is closed and no bias not closed report is submitted. The data bias correction agent 160 replaces empirical correction with quantifiable distribution difference indicators and adaptive correction strength, making the bias correction process assessable and reproducible, matching the correction strength to the degree of imbalance, and reducing the risk of overcorrection. In other embodiments, rare sample synthesis can use CTGAN or diffusion models to generate new samples in the original feature space, redundant sample downsampling can be replaced by a reweighting strategy based on influence functions or cost-sensitive learning, and out-of-domain data filtering can be replaced by an out-of-domain detector based on energy scores or maximum mean differences. All of these alternatives can achieve class balance and distribution bias correction, and generate a comparison report before and after correction.

[0115] Please refer to Figure 2 and Figure 6 , Figure 6 This diagram illustrates the compliance desensitization and traceability intelligent agent processing flow.

[0116] Figure 6 Focusing on the compliance desensitization and traceability intelligent agent 170 among the eight functional intelligent agents, this intelligent agent is the core carrier for realizing the native compliance design of the architecture. It is subdivided into four core capability modules: autonomous identification, hierarchical desensitization, hash evidence storage, and intelligent auditing. It fully covers the entire process of sensitive risk identification, privacy protection processing, operation evidence storage and traceability, and audit report output, realizing the design goal of "cleaning is auditing".

[0117] S601, Autonomous Identification: Precise Risk Positioning.

[0118] This module is responsible for the automatic scanning and identification of sensitive risks. It can automatically identify sensitive personal information such as ID cards and mobile phone numbers, confidential corporate fields, and copyright-restricted text; it accurately locates all risk points of sensitive information within the data, discovering risks at the source of data processing and avoiding privacy leaks from the outset.

[0119] Unlike traditional keyword matching, this method proactively identifies risk points, providing an accurate basis for subsequent desensitization processing.

[0120] S602, Graded Desensitization: Flexible Privacy Protection.

[0121] Based on the identified data sensitivity level, the system automatically matches the corresponding processing strategy, supporting multiple desensitization methods such as masking, replacement, and deletion.

[0122] Differentiated handling based on the degree of sensitivity ensures both the protection of personal privacy and trade secrets, while preserving the value of business information as much as possible. This balances data availability with compliance control and avoids the loss of a large amount of valuable information due to "one-size-fits-all deletion".

[0123] S603, Hash Evidence Storage: Full-chain traceability.

[0124] Generate a unique and tamper-proof hash fingerprint for each piece of data and each data processing operation; write the fingerprint to a distributed evidence log.

[0125] It achieves three major effects: operation traceability, accountability, and full traceability. It fully records all the processing actions that the data goes through, so that when compliance issues arise later, the corresponding data and corresponding processing links can be located, solving the pain points of unrecorded behavior and inability to trace the source of incidents in the data governance process.

[0126] S604, Intelligent Audit: Meets regulatory requirements.

[0127] Automatically generate standardized compliance audit reports, which include source data verification, anonymization implementation records, copyright determination results, and defect handling records.

[0128] It can directly support internal and external regulatory reviews, enabling one-click response to regulatory verifications. It eliminates the need for manual compilation of large amounts of ledger materials, embedding compliance audit capabilities within the data pipeline instead of requiring manual audits after the fact.

[0129] The entire capability is a sequential and progressive chain: autonomously identifying and locating risks, performing tiered de-identification to complete privacy and security processing, hash-based evidence storage to solidify evidence throughout the entire process, and intelligent auditing to output compliance reports.

[0130] In traditional technical solutions, data anonymization and auditing are mostly standalone tools added after data cleaning. This architecture encapsulates the entire set of compliance capabilities into an independent dedicated intelligent agent, embedding it into the mainstream data governance pipeline, so that processing and compliance are completed simultaneously.

[0131] Specifically, the compliance desensitization and traceability intelligent agent 170 is deployed on cloud computing nodes or local government edge nodes. The carriers of the compliance desensitization and traceability intelligent agent 170 include a sensitive field identifier, a hierarchical desensitization executor, a copyright-restricted text identifier, a hash fingerprint generator, a distributed evidence storage log client, and an audit report generator. The compliance desensitization and traceability intelligent agent 170 receives the corrected dataset output by the data deviation correction intelligent agent 160, outputs the desensitized dataset and compliance audit report to the training repository archiving module, writes the hash fingerprint and evidence storage log to the distributed hash evidence storage system, and exchanges compliance rules and sensitive data characteristics with the global memory knowledge base intelligent agent 180. The compliance desensitization and traceability intelligent agent 170 performs compliance desensitization and evidence storage before data archiving; when high-sensitivity data is identified, it upgrades the desensitization level and records the reason; when copyright is determined to be restricted content, it replaces or isolates the restricted fragments; it generates hashes for each data entry as a whole and for each desensitized field, and generates operation hashes for governance operation metadata; when hash integrity verification fails, it alerts the scheduling central intelligent agent 110. The Compliance Desensitization and Source Tracing Intelligent Agent 170 integrates privacy desensitization, copyright processing, and source tracing and evidence preservation into a single intelligent agent. It uses field-level, record-level, and operation-level hashing to form end-to-end evidence preservation and outputs the results as an exportable audit report. The desensitization and copyright processing of large model training data are verifiable, and the governance process forms a complete compliance audit chain, meeting the requirements of data security regulatory audit.

[0132] Specifically, the hierarchical data masking executor runs within the compliance data masking and traceability intelligent agent 170. The hierarchical data masking executor includes a masker, a pseudonym replacement unit, a field emptying unit, and a data masking strategy selector. The hierarchical data masking executor receives the list of sensitive fields and their sensitivity levels from the sensitive field identifier, outputs data masking action metadata to the hash fingerprint generator, and outputs data masking records to the audit report generator. The hierarchical data masking executor performs data masking field by field before data archiving; when a field has a high sensitivity level, deletion or pseudonym replacement in the same format is used; when a field has a medium to low sensitivity level, a mask is used to retain the first and last digits; the data masking action is recorded in the operation hash chain. For example, when masking the ID number field, the first 6 digits and the last 4 digits are retained, with asterisks used to replace the middle digits, resulting in the output 110101. 1234; The phone number field is replaced with a pseudonym in the same format to generate a phone number with the same format but not the real one. The hierarchical desensitization executor maps three levels of desensitization actions to sensitivity levels, replacing a single desensitization method. It achieves a balance between usability and privacy protection, handles sensitive fields more finely, and the desensitized data can still be used for training while meeting compliance requirements.

[0133] The compliance-compliant desensitization and traceability intelligent agent 170 identifies sensitive fields and copyright-restricted text. Sensitive fields are desensitized using a three-level process: masking, replacement, and deletion. High-sensitivity fields are deleted or replaced with pseudonyms of the same format, while medium- and low-sensitivity fields are masked while retaining the beginning and end. Copyright-restricted text is replaced or isolated for infringing segments. A three-level hash chain is formed by calculating a field-level hash for each desensitized field, a record-level hash for each data entry, and an operation-level hash for governance operation metadata. Sensitive field identification employs a dual-path approach using rule templates and named entity recognition. Rule templates identify ID card numbers and mobile phone numbers, while named entities identify enterprise confidential fields and copyright-restricted text. Desensitization is performed when the confidence level of sensitive field identification reaches the desensitization threshold, which can be set to 0.85. Because sensitive field identification uses a dual-path approach of rule templates and named entity recognition—rule templates identify fixed patterns, while named entities identify non-fixed-format sensitive fields—it solves the problem of low recall rate for non-fixed-format sensitive fields when using single-rule matching, thus improving the accuracy of sensitive field identification and reducing the false negative rate of sensitive information.

[0134] Please refer to Figure 2 and Figure 7 , Figure 7 This diagram illustrates the processing flow of the global memory knowledge base intelligent agent.

[0135] Figure 7 The section introduces Agent 180, the global memory knowledge base agent in the hierarchical collaborative agent architecture. It serves as the intelligent central hub of the entire system, corresponding to the innovative point of "global memory sharing" mentioned in the previous diagrams. Through a vector memory bus, it connects various functional agents, breaking down knowledge silos, facilitating the accumulation and reuse of governance experience, and driving the entire system's autonomous iterative evolution. Internally, it consists of four sub-databases, and the bottom summarizes the core value of this agent.

[0136] First, a global memory knowledge base is built by intelligent agents to construct a vector memory bus shared across intelligent agents.

[0137] In traditional single-layer architectures, each processing unit operates independently, and experience cannot be shared. This intelligent agent centrally manages the experience, rules, cases, and business knowledge generated by each intelligent agent in the data governance process, allowing the eight functional intelligent agents to access them at any time. This enables experience accumulation, knowledge reuse, and supports the system's self-iterative upgrades.

[0138] Next, each library will be explained separately: (1) Rule strategy library.

[0139] Establish various cleaning logics and data governance strategies.

[0140] Save the verified and effective cleaning rules and processing strategies, and reuse them directly when encountering similar governance scenarios. This eliminates the need for repeated development and modeling, reduces the workload of repetitive development, and improves processing efficiency.

[0141] (2) Defect case library.

[0142] It includes various typical data quality problems, corresponding root cause analyses, and proven effective remediation solutions.

[0143] When the system encounters a similar defect again, it can directly refer to historical cases for handling, so that the same problem will not be repeated; at the same time, the case library receives defect samples generated by quality inspection feedback, and continuously accumulates rich cases.

[0144] (3) Domain knowledge graph.

[0145] Establish relationships between business entities and standardize the definitions of various business metrics.

[0146] Enable the system to understand business semantics, rather than just performing simple format processing, enhance the system's ability to understand complex business scenarios, and support intelligent agents for cleaning, labeling, and quality inspection to complete semantic-level data governance.

[0147] (4) Distribution feature library.

[0148] Store the statistical characteristics of the dataset and the baseline standards for data quality.

[0149] Record the statistical distribution and quality benchmarks that a normal dataset should have, provide a benchmark reference for deviation correction and two-layer quality inspection intelligent agents, identify distribution deviations and abnormal samples, and provide underlying data support for the entire intelligent governance system.

[0150] The core values ​​are summarized as follows: Avoid redundant calculations and improve governance efficiency: Rules, cases, and knowledge can be reused across intelligent agents, and each governance result is accumulated, reducing the overhead of redundant modeling and redundant calculations; The strategy iterates autonomously to achieve "intelligent autonomy": As business processes continue, the knowledge base is continuously enriched and updated, which in turn drives the various business intelligence agents to optimize strategies, and the more the system is used, the stronger its capabilities become. A unified knowledge base ensures consistent collaboration among multiple agents: the eight functional agents share the same knowledge base, ensuring that each agent has a unified understanding of business and quality standards, and avoiding conflicts caused by inconsistencies in the standards of different modules.

[0151] Specifically, the Global Memory Knowledge Base Intelligent Agent 180 is deployed on a central node or an independent storage node. The carriers of the Global Memory Knowledge Base Intelligent Agent 180 include a vector database shared memory bus, a knowledge graph library, a cache or index layer, a historical governance rule library, a defect case library, and a dataset distribution feature library. The Global Memory Knowledge Base Intelligent Agent 180 connects to the scheduling central intelligent agent 110, data access intelligent agent 120, multimodal cleaning intelligent agent 130, automatic annotation intelligent agent 140, two-layer quality inspection intelligent agent 150, data deviation correction intelligent agent 160, and compliance desensitization and traceability intelligent agent 170 via bidirectional read / write. The Global Memory Knowledge Base Intelligent Agent 180 provides shared memory query, policy template retrieval, historical case matching, and rule version management. When any agent in the global memory knowledge base (Agent 180) identifies new cleaning features, defect cases, correction schemes, or compliance rules during the governance process, it writes them to the shared memory bus. Before the scheduling central agent (Agent 110) generates the governance pipeline, it retrieves historical governance strategies for similar datasets in the memory. When a memory write conflict is detected, it resolves the conflict based on timestamps, source agent types, and policy priorities. It can switch between vector database and knowledge graph modes according to business scenarios. The global memory knowledge base (Agent 180) replaces the static knowledge graph with a cross-agent shared memory bus, enabling governance rules and defect cases to be continuously updated with governance results. It supports historical policy retrieval and reuse, ensures consistent data standards among multiple agents, reduces task conflicts, eliminates the need for repetitive manual configuration for similar datasets, reduces computational consumption, and supports autonomous iterative governance of incremental datasets.

[0152] Specifically, the global memory knowledge base agent 180 maintains a version number and timestamp for each shared memory entry. During writing, a conditional update is performed; if versions are inconsistent, the latest version is read first before merging. The fusion rules employ source agent type priority, most recent timestamp, and majority voting. Issues with rules that cannot be automatically merged are logged and marked for confirmation. A consistent snapshot is obtained when any agent reads the memory. Because the global memory knowledge base agent 180 maintains version numbers and timestamps, performs conditional updates during writing, and merges inconsistent versions by reading the latest version, and employs source agent type priority, most recent timestamp, and majority voting rules, issues with rules that cannot be automatically merged are logged and marked for confirmation, and a consistent snapshot is obtained when any agent reads the memory, old rules are prevented from overwriting new rules, ensuring consistency in the governance policies read by different agents, preventing rule updates from rolling back due to concurrency issues, and enhancing the reliability and consistency of shared memory.

[0153] The Global Memory Knowledge Base Agent 180 employs a dual-mode storage approach: a vector database shared memory bus or a knowledge graph structured memory. In vector database mode, governance cases are vectorized and retrieved based on semantic similarity. In knowledge graph structured memory mode, domain entity relationships and governance rules are stored, with events written as an immutable event stream, and the current state generated by event replay. Because the Global Memory Knowledge Base Agent 180 supports both vector database shared memory bus and knowledge graph structured memory, with the vector mode retrieving governance cases based on semantic similarity and the knowledge graph mode storing domain entity relationships and governance rules and generating the current state through immutable event streams and replays, the interpretability and consistency of memory are improved. This maintains semantic-level policy reuse capabilities in governance of similar datasets, balancing real-time query and rule reasoning requirements.

[0154] Please refer to Figure 2 The task message bus is a software infrastructure deployed on a central node or cloud message queue cluster. It includes an asynchronous message queue, producer or consumer adapters, a serializer, a task state table, an idempotent controller, and a timeout retry mechanism. The task message bus connects the scheduling central agent 110 with various functional agents. It receives task messages from the scheduling central agent 110, returns the states of each agent to the central agent 110, and shares task state snapshots with the global memory knowledge base agent 180. The task message bus enables the scheduling central agent 110 to uniformly manage task distribution, state tracking, timeout retries, and idempotent deduplication. Task messages contain the task ID, dataset shard ID, pipeline version, operation type, parameters, priority, quality target, and parent task dependencies. Each agent consumes a task message and returns a RUNNING, SUCCESS, or FAILED status. The scheduling central agent 110 maintains a unified task state table, recording the current state, start time, and number of retries for each task. When a task times out and fails to return a response, a retry is triggered, and idempotent keys ensure that duplicate messages are not executed repeatedly. When the consecutive failure limit is reached, the task is marked as abnormal and downstream tasks are suspended. Because the task message bus supports decoupled communication and reliable state synchronization for multi-agent distributed governance using asynchronous message queues and a unified task state table, task states are traceable and recoverable, improving the execution reliability of closed-loop scheduling and reducing task conflicts and duplicate processing during multi-agent collaboration. In one embodiment, the message body uses Protocol Buffers or Avro binary serialization to reduce network transmission overhead. Task state snapshots can be written to the global memory knowledge base agent 180 for querying during fault recovery.

[0155] Please refer to Figure 2The distributed hash evidence storage system is a software infrastructure deployed on a central node or independent evidence storage nodes. It includes a hash fingerprint generator, a distributed log client, a Merkle tree aggregator, an integrity verifier, and an evidence storage query interface. The system receives field-level, record-level, and operation-level hashes written by the compliance de-identification and traceability intelligent agent 170, returns evidence storage confirmation and integrity verification results to the agent 170, and provides evidence storage query data to the audit report generator. The system calculates a field-level hash for each de-identified field, a record-level hash for each data entry as a whole, and an operation-level hash for governance operation metadata. These three levels of hashes are aggregated using a Merkle tree and written to the distributed evidence storage log. The hashes are recalculated and compared with the evidence before archiving and during auditing. An alarm is sent to the scheduling central intelligent agent 110 when verification fails. The system provides field-level, record-level, and operation-level evidence storage query APIs, supporting retrieval by data version number, data source ID, governance operation type, and time range. Audit reports are exported as structured JSON or PDF, including hash values, timestamps, operator information, data versions, and defect handling records. The query interface can be set to read-only access and access auditing. Because the distributed hash evidence storage system uses a three-level hash chain and Merkle tree aggregation to form verifiable end-to-end evidence storage, and provides multi-dimensional query interfaces and access control, the tamper-proof capability of the evidence storage is enhanced. Auditors can quickly retrieve and export complete compliant evidence chains, preventing unauthorized modification of evidence storage records and improving audit efficiency.

[0156] Please refer to Figure 2 The training repository archiving module is a software module deployed on the central node or training data warehouse side. It includes a data version manager, integrity verifier, archive association indexer, and training repository write client. The module receives the anonymized dataset and audit report from the compliance anonymization and traceability agent 170, sends the archiving results back to the scheduling central agent 110, and exchanges data versions and archiving indexes with the global memory knowledge base agent 180. The module performs archiving after the dataset meets the requirements. Integrity verification is performed before archiving. The data version number is associated with the governance logs and audit reports. Upon successful archiving, confirmation is sent to the scheduling central agent 110 and the global memory knowledge base agent 180. The training repository archiving module synchronously binds dataset archiving with governance logs and audit reports, ensuring a complete historical record of the training data before use, forming a traceable data version and audit chain, meeting subsequent audit traceability needs, and reducing compliance risks.

[0157] Please refer to Figure 2The rule base version management module is a software module deployed within the scheduling central agent 110 or in an independent configuration center. It includes a rule version library, a rule conflict detector, a shadow evaluator, a canary switcher, and a rollback manager. The module interacts bidirectionally with the scheduling central agent 110, reading historical rules and defect cases from the global memory knowledge base agent 180 and outputting the currently effective rule set to the task DAG generator. It manages the governance rules through versioning and canary implementation. When the scheduling central agent 110 receives a defect report, it generates candidate rules. These candidate rules are evaluated in parallel with historical defect fragments in shadow mode, comparing their effectiveness with older rules. When a candidate rule reaches a preset effectiveness threshold, it is fully switched; otherwise, the old version is retained, and the reason for failure is recorded. Because the rule base version management module uses a versioned rule base and a shadow evaluation mechanism to implement gray-scale updates and rollbacks of governance rules, the self-optimization process of the scheduling central agent 110 has a secure verification step. The quality of rule updates has an evaluation basis, governance strategy iterations are more stable, and the quality of dataset governance will not significantly decline due to a single defect feedback. Furthermore, the rule base uses versioned rule sets, with each rule having triggering conditions, applicable scope, and effective status. Candidate rule evaluation uses a historical defect shard sample set, with new and old rules running in parallel, and switching or rollback determined based on the effect threshold.

[0158] Please refer to Figure 2 The dataset grading policy library is a software module deployed within the scheduling central agent 110 or in an independent configuration center. The library includes a pre-training quality standard set, a fine-tuning quality standard set, a RAG quality standard set, and a grade threshold table. The library interacts with the scheduling central agent 110, the two-layer quality inspection agent 150, and the data bias correction agent 160, outputting threshold parameters for the current dataset grade to the task DAG generator and the quality score aggregator. The library stores pre-training granularity quality standards, tuning quality standards, and RAG precision quality standards. The scheduling central agent 110 receives a dataset usage identifier, determines whether the dataset is for pre-training, fine-tuning, or RAG, and selects the corresponding quality standard from the dataset grading policy library based on the usage. When the dataset usage changes, the scheduling central agent 110 dynamically switches the quality standard. Since the dataset grading strategy library stores three sets of differentiated quality standards, the scheduling central agent 110 determines whether the dataset is pre-trained, fine-tuned, or RAG based on the dataset's purpose identifier and selects the corresponding quality standard. When the purpose changes, the standard set is dynamically switched, so that the pre-trained dataset adopts coarse-grained governance, the fine-tuned dataset adopts high-quality governance, and the RAG dataset adopts high-precision governance. This achieves precise matching between the governance standard and the dataset's purpose, avoids manual configuration of grading rules, and improves the targeting of governance and the consistency of quality judgment.

[0159] In order to improve the technical solution of this application, Figure 8 The diagram illustrates the overall principle of a collaborative processing method provided in an embodiment of this application.

[0160] Specifically, this diagram systematically summarizes the five core technological innovations of the layered collaborative intelligent agent architecture of this application, and provides an overall summary of its core advantages. It compares the existing traditional single-layer cleaning solutions from five dimensions: business process, functional architecture, operating mechanism, collaborative foundation, and scenario adaptation, clarifying the technological contributions and technological barriers of this solution.

[0161] Link 1: Integration and connection of links.

[0162] Breaking through the limitations of traditional technologies: Traditional single-cleaning architectures only focus on the isolated step of data cleaning, with each business link being isolated from the others.

[0163] This application establishes a complete end-to-end process for large model dataset access, annotation, quality inspection, distribution correction, compliance archiving, and iterative optimization, enabling seamless connection of all key data governance aspects.

[0164] After the raw data is input, it does not need to be transferred back and forth across multiple independent systems. End-to-end processing can be completed within the same architecture, eliminating data loss, format conversion, and manual transfer costs caused by connecting multiple systems.

[0165] Step 2: Functional decoupling and unique modules.

[0166] Reconstruct the division of labor system of intelligent agents, decouple the mixed functions, and eliminate functional overlap between modules; The innovative addition of two unique functional modules—a deviation correction module and a compliance audit module—fills a gap in existing industry solutions. The specification clearly states that this architectural design is not disclosed in existing prior art or patent documents, and is a key distinguishing feature that differentiates it from existing technologies.

[0167] Traditional data cleaning architectures generally do not treat distribution bias correction and full-process compliance auditing as independent functional units. They are mostly simple additional tools and are not encapsulated as independent intelligent agents embedded in the mainstream waterline.

[0168] Step 3: Closed-loop autonomous optimization mechanism.

[0169] It pioneered a dynamic closed-loop mechanism of "quality inspection - deviation analysis - scheduling iteration".

[0170] Traditional data governance is a static, one-off process: once the rules are configured, they remain unchanged, and the process ends after a batch of data is processed; the system does not automatically improve.

[0171] This architecture relies on quality inspection to discover defects and conduct deviation analysis, and drives the iterative update of strategies through the problem feedback scheduling system. The system can automatically update governance strategies based on real data feedback, and the entire data governance capability has the ability to self-evolve and continuously adapt to the ever-changing data forms.

[0172] Section 4: Global Shared Memory Bus.

[0173] A global memory architecture for cross-agent collaborative work is established, corresponding to the aforementioned global memory knowledge base agent.

[0174] This addresses the common problem of information silos in traditional solutions: each processing unit operates independently, knowledge cannot be shared, and problems such as task conflicts, excessive duplication of calculations, and data fragmentation arise.

[0175] The global shared memory bus serves as a unified knowledge foundation, enabling eight functional agents to share a set of rules, cases, and business knowledge, significantly improving the consistency of collaborative decision-making among multiple agents and avoiding standard conflicts between modules.

[0176] Step 5: Differentiated Adaptive Governance Standards.

[0177] For three typical application scenarios of large models: pre-training, fine-tuning, and RAG retrieval-enhanced generation, customized differentiated governance rules are provided for each.

[0178] Most general data cleaning solutions on the market use a single standard, which cannot distinguish the differentiated needs of different large-scale business scenarios.

[0179] This application achieves scenario-based and refined governance: pre-training focuses on the diversity of wide-area data, fine-tuning focuses on label accuracy, and RAG focuses on factual accuracy. Different quality and governance standards are implemented for different scenarios, deeply matching the actual needs of different business stages of large models.

[0180] This application achieves technological breakthroughs from five dimensions: full-process coverage, functional restructuring and decoupling, closed-loop autonomous optimization, collaborative foundation architecture, and scenario-based adaptive standards, thus building its own unique technological barriers; it is clearly distinguished from existing patents and technologies, avoiding duplication of solutions; and it provides a new end-to-end solution with higher efficiency and stronger business adaptability for large-scale model data governance scenarios.

[0181] The following section provides a detailed description of the dataset governance method based on multi-agent cooperation provided in this application, following the prescribed steps. It should be noted that this method can be executed in a hierarchical collaborative agent system as described above, or in other multi-agent systems with corresponding functionalities.

[0182] In some embodiments, Figure 9This application provides a dataset governance method based on multi-agent cooperation. The method includes the following steps: S901: The data access agent receives the raw dataset and generates a data profile.

[0183] S902: The central intelligent agent generates the governance task pipeline and issues task instructions.

[0184] S903: The multimodal cleaning agent performs noise reduction and deduplication on the data.

[0185] S904: The dual-layer quality inspection intelligent agent performs quality inspection on the cleaned data and outputs defect information.

[0186] S905: The scheduling central agent receives the defect information output by the two-layer quality inspection agent, maps the defect type to the governance operator, updates the governance rules, generates local re-governance tasks by sharding the defect data, and sends them to the corresponding agents for execution.

[0187] S906: The global memory knowledge base agent stores the governance features and defect cases written by each agent. Before generating the governance task pipeline, the scheduling central agent retrieves historical governance strategies of similar datasets in the global memory knowledge base agent and reuses the historical governance strategies.

[0188] Optionally, the implementation methods for each step can be found in the aforementioned embodiments, and will not be repeated here.

[0189] To further improve the technical solution of this application, a specific example is used below to illustrate the dataset governance method of this application. (See [link to example]). Figure 10 , Figure 10 It should include at least the following steps: S101: The data access agent pulls raw datasets from multiple sources and generates raw data profiles.

[0190] Input parameters include database connection information, API response data, local file path, multimodal documents (text and images), government forms, and data source type identifiers. The data processing procedure is as follows: Data access agent 120 calls data source adapter 121 to identify the data source type, performs format parsing, and uniformly converts databases, APIs, files, and multimodal documents into a standard intermediate data format for the large model; automatically identifies data element fields; filters completely invalid empty data; and summarizes profile information such as data volume, field type, missing data, and format type. Judgment conditions include: whether the data source type is a recognizable and adaptable type; whether the parsing error rate exceeds a preset threshold; whether the proportion of empty data exceeds a threshold; whether it is in real-time incremental mode; and whether the standard intermediate format conversion has been completed. The execution actions or results are: generating an initial dataset in the standard intermediate format and original data profiles; outputting to the scheduling central agent 110 and the multimodal cleaning agent 130; and marking abnormal data sources and notifying the scheduling central agent 110.

[0191] For example, data access agent 120 receives a business registration data table containing 10,000 records. Data source adapter 121 identifies it as a MySQL data source type based on the database connection protocol and reads the table structure and data. The format parser converts each record into a unified intermediate format, where numeric fields are converted to standard numeric types and date fields are standardized to ISO8601 format. The data element extractor automatically identifies data element fields such as "company name," "unified social credit code," and "registered capital." The invalid data filter deletes records containing only null values. Finally, a raw data profile is generated, including 9,850 data entries, 15 fields, a missing rate of approximately 2%, and a structured table format. Because the data source type is identifiable, the parsing error rate is 0.5%, and the percentage of empty data is 1.5%, both below the preset thresholds, and the data source is marked as normal. The raw data profile is output to the scheduling central agent 110 for generating the governance pipeline.

[0192] It should be noted that, because the data access intelligent agent 120 replaces manual configuration of data source access rules with adaptive adaptation and intermediate format normalization, heterogeneous data can be uniformly expressed at the governance entry point, the access capability of multi-source heterogeneous data is enhanced, and no new data source needs to be added by developers to add adaptation code, providing input support for the whole process without manual configuration.

[0193] S102: The central intelligent agent of the scheduling center generates a dedicated governance pipeline based on the purpose of the dataset.

[0194] Input parameters include the original data profile, natural language instructions for business governance requirements, dataset usage identifiers (i.e., pre-trained, fine-tuned, or RAG), and historical governance pipeline templates. The data processing procedure is as follows: the central agent 110 uses the business requirement parsing engine to analyze the business governance requirements using natural language, extracting governance objectives, data quality levels, data source range, and timeliness requirements; it breaks down the requirements into governance sub-tasks; it generates a task DAG pipeline based on task dependencies; and it selects three differentiated governance standards based on the dataset usage: pre-trained coarse-grained, fine-tuned high-quality, and RAG high-precision. Judgment conditions include: whether the dataset usage is identified as pre-trained, fine-tuned, or RAG; whether the natural language parsing confidence meets the execution conditions; whether there are similar historical pipelines that can be reused; and whether there are dependency cycles in the task DAG. The execution actions or results are: generating the task DAG pipeline, task instructions for each agent, dataset hierarchical governance standards, and achievement thresholds; and issuing task instructions to the corresponding agents.

[0195] For example, the central intelligent agent 110 receives a business governance request: "Please govern this batch of enterprise business registration data according to the fine-tuning standards, requiring sensitive fields to be anonymized." The business requirement parsing engine parses the data and finds that the dataset's purpose is fine-tuning, the governance target is enterprise business registration data, and the compliance requirement is the anonymization of sensitive fields. The task DAG generator generates a task DAG, where the data access task has been completed, and subsequent tasks include cleaning, labeling, quality inspection, deviation correction, compliance anonymization, and archiving. The cleaning and labeling tasks can be performed in parallel, while the quality inspection task depends on the cleaning and labeling tasks. The dataset grading policy library outputs thresholds for missing values ​​(0.02), outliers (0.03), labeling error rates (0.01), and class coverage (90%) corresponding to fine-tuning high-quality datasets. The task instructions are distributed to each intelligent agent via the task message bus.

[0196] It should be noted that, since the scheduling central intelligent agent 110 drives the generation of task DAG using natural language and introduces three sets of quality standards—pre-training, fine-tuning, and RAG—into the scheduling process, data governance has shifted from unified processing to differentiated governance based on different uses. Governance pipelines can be generated without manual rule configuration, and large model data for different uses are governed according to different standards, thereby improving data quality and the targeting of governance.

[0197] S103: The multimodal cleaning agent and the automatic labeling agent perform basic data processing in parallel.

[0198] Input parameters include initial data in standard intermediate format, cleaning task instructions, annotation task instructions, domain small sample knowledge graph, and historical cleaning features. The data processing is as follows: the text cleaning sub-agent performs duplicate text removal, semantic redundancy filtering, removal of garbled text and invalid advertising noise, and format unification; the image denoising sub-agent performs image quality assessment and denoising; the table normalization sub-agent performs cross-table field alignment and format unification; the automatic annotation agent 140 performs entity extraction, semantic label generation, and cross-modal alignment annotation of text and images; samples with annotation confidence below a threshold are automatically marked for review. Judgment conditions include: whether semantic similarity exceeds the deduplication threshold; whether image quality score is below the denoising threshold; whether table field alignment matching meets requirements; whether annotation confidence is below the automatic pass threshold; and whether both cleaning and annotation tasks have been completed. The execution actions or results are: outputting the initial cleaned dataset, the annotated structured dataset, and the list of samples to be reviewed; writing the cleaning features and annotation features into the global memory knowledge base agent 180; and outputting the results to the two-layer quality inspection agent 150.

[0199] For example, the text cleaning sub-agent performs semantic deduplication on text segments, setting a semantic similarity threshold of 0.95, meaning that two texts with a semantic similarity exceeding 95% are considered duplicates, and only one is retained. The image denoising sub-agent assesses image quality, and images with a score below 60 undergo denoising processing. The table normalization sub-agent aligns the "Company Name" field in multi-source tables, uniformly mapping "Company Name" and "Enterprise Name" to "Enterprise Name". The automatic labeling agent 140 labels enterprise entities in the cleaned data, setting an automatic pass confidence level of 0.8; samples with a confidence level below 0.8 are marked as pending review.

[0200] It should be noted that, since the multimodal cleaning agent 130 and the automatic labeling agent 140 are executed in parallel, and low-confidence samples are automatically diverted to the review stage based on the confidence threshold instead of directly entering the training data, cleaning and labeling can be completed in parallel, the governance cycle is shortened, low-quality labeled samples are automatically intercepted, and the workload of manual labeling is reduced.

[0201] S104: The dual-layer quality inspection agent completes basic quality inspection and full-domain quality inspection, and outputs defect segments.

[0202] Input parameters include the cleaned and labeled dataset, label confidence information, sample ID, data source ID, fragment ID, and sample category label. The data processing procedure is as follows: the basic quality inspection submodule detects missing values, outliers, and labeling errors; the dataset-wide quality inspection submodule calculates data distribution differences, sample balance, and category coverage; scores are given to both basic and global indicators; fragments below a threshold are marked as defective fragments and labeled with defect category tags. Judgment conditions include: whether the missing rate exceeds the current dataset level threshold; whether the outlier ratio exceeds the threshold; whether the labeling error rate exceeds the threshold; whether the global distribution difference index exceeds the target range; and whether the category coverage is below a preset lower limit. The execution actions or results are: outputting a quantitative quality score, a list of defective data fragments and defect types; generating a defect report and pushing it to the scheduling central agent 110; and synchronizing the global distribution defect information to the data deviation correction agent 160.

[0203] For example, the basic quality inspection submodule calculates that the dataset has a missing rate of 3%, an outlier rate of 1%, and a labeling error rate of 2%. Based on the thresholds for fine-tuning high-quality datasets—a missing rate threshold of 2%, an outlier threshold of 3%, and a labeling error rate threshold of 1%—the missing rate and labeling error rate exceed the limits, and the relevant samples are marked as defective segments. The dataset full-domain quality inspection submodule calculates the positive and negative sample ratio and category coverage of the dataset, finding that the "small-scale enterprises" category coverage is only 60%, lower than the preset threshold of 90%, and is marked as a full-domain coverage defect. The weighted average of the basic quality inspection score and the full-domain quality inspection score yields a total quality score of 78, which is lower than the pass threshold of 85 for the fine-tuned dataset. Therefore, a defect report is generated and pushed to the scheduling central agent 110, while the full-domain defect information is synchronized to the data deviation correction agent 160.

[0204] It should be noted that, because the dual-layer quality inspection intelligent agent 150 combines basic sample indicators and global distribution indicators, it extends quality defects from the level of a single sample to the level of the overall distribution of the dataset. It can not only detect missing values, outliers, and labeling errors, but also detect data distribution imbalances and insufficient category coverage, providing a dual-layer positioning basis for closed-loop repair.

[0205] S105: The data deviation correction agent analyzes the data distribution, generates and executes an equalization correction scheme.

[0206] Input parameters include the post-quality inspection dataset, quality score, defect segmentation, global distribution statistics, positive and negative sample ratio, and domain sample proportion. The data processing procedure is as follows: Data bias correction agent 160 collects data on dataset distribution, positive and negative sample ratio, and domain sample proportion; identifies distribution shift, class imbalance, and out-of-domain noise data; autonomously selects strategies such as rare sample synthesis, redundant sample downsampling, or out-of-domain dirty data isolation and removal based on the type and severity of the bias; performs correction and generates a distribution comparison report before and after correction. Judgment conditions include: whether the distribution shift exceeds a preset threshold; whether the class imbalance ratio exceeds the target interval; whether the confidence level for out-of-domain sample identification meets the conditions for isolation; and whether the corrected distribution indicators return to the target range. The execution actions or results are: outputting the corrected dataset, correction scheme, and distribution comparison report before and after correction; writing the comparison report to the global memory knowledge base agent 180; and if the correction still fails to meet the standards, sending a bias not closed report to the scheduling central agent 110.

[0207] For example, the data bias correction agent 160 analyzes the low coverage of the "small-scale enterprises" category and finds that this category only accounts for 5% of all samples, while the target proportion is 20%, resulting in a class imbalance ratio exceeding the preset upper limit of 3:1. The data bias correction agent 160 selects a rare sample synthesis strategy, using the SMOTE algorithm to synthesize samples from the small-scale enterprise category, increasing the proportion of this category to 20%. After correction, the recalculated class coverage is 98%, reaching the fine-tuning dataset threshold of 90%. The data bias correction agent 160 generates a distribution comparison report before and after correction, writes it to the global memory knowledge base agent 180, and outputs the corrected dataset to the compliance de-identification and traceability agent 170.

[0208] It should be noted that, since the data bias correction agent 160 combines bias detection and correction into a closed-loop step, it uses three selectable strategies—synthesis, downsampling, and isolation—to perform targeted repair of distribution bias. The training data distribution shift and class imbalance are automatically corrected, resulting in high accuracy in distribution bias identification and reducing the risk of model overfitting and illusion.

[0209] S106: Compliant desensitization and traceability intelligent agents perform privacy desensitization and full-link hash evidence storage.

[0210] Input parameters include the corrected dataset, data source information, compliance rule base, historical governance operation logs, and copyright-restricted content identification results. The data processing procedure is as follows: the compliance de-identification and traceability intelligent agent 170 identifies ID card numbers, mobile phone numbers, enterprise confidential fields, and copyright-restricted text; performs hierarchical de-identification by masking, replacement, and deletion; generates a unique hash fingerprint for each data entry and each de-identified field; generates an operation hash for each governance operation and writes it to the distributed hash evidence storage system; and summarizes to generate a compliance audit report. Judgment conditions include: whether the confidence level of sensitive field identification meets the conditions for de-identification; whether the sensitivity level is high-sensitivity; whether the copyright determination pertains to restricted content; whether the hash integrity verification passes; and whether the audit chain covers all data and operations. The execution actions or results are: outputting the de-identified dataset, field-level and record-level hash fingerprints, distributed evidence storage logs, and the compliance audit report; and transferring the de-identified dataset to the archiving process.

[0211] For example, the compliance de-identification and traceability intelligent agent 170 identifies a "Unified Social Credit Code" field in the dataset, with a medium sensitivity level. It uses a masking method to retain the first four and last four digits, replacing the rest with asterisks. The "Enterprise Contact Number" field is replaced with a pseudonym in the same format, generating a phone number that is identical in format but does not actually exist. A record-level hash is calculated for each data record, for example, using the SHA-256 algorithm to obtain a 256-bit hash value. An operation hash is generated for the de-identification operation, recording the operator, timestamp, and operation type. All hashes are written to a distributed hash storage system. The compliance de-identification and traceability intelligent agent 170 outputs a compliance audit report, including the data source, de-identification records, copyright determination, and defect handling records.

[0212] It should be noted that, because the Compliance-Enhanced and Data-Tracing Intelligent Agent 170 incorporates compliance processing before data enters the training repository, it employs tiered data masking and field-level, record-level, and operation-level hash storage to generate exportable audit reports. Privacy, confidentiality, and copyright risks are identified and addressed before training, and the data usage chain is traceable, meeting the compliance audit requirements for large-scale model training data. The three-level hashes are aggregated using a Merkle tree and then written into the distributed hash storage system, further enhancing the tamper-proof storage capability and audit retrieval efficiency.

[0213] S107: The central intelligent agent receives defect reports, automatically issues secondary correction tasks, and iterates until the dataset meets the standards.

[0214] Input parameters include quality inspection defect reports, deviation analysis reports, current dataset version, governance rule base version, and quality compliance threshold. The data processing procedure is as follows: The central agent 110 aggregates unclosed quality inspection defects and deviation correction items; maps defect types to corresponding governance operators; attributes defect root causes and generates candidate rules; candidate rules are evaluated in parallel with historical defect fragments in shadow mode, comparing their effectiveness with older rules; when a candidate rule reaches a preset effectiveness threshold, it is fully switched; otherwise, the old version is retained and the reason for failure is recorded; a subset of the secondary governance task DAG is generated and distributed to the corresponding agent to re-execute cleaning, labeling, quality inspection, or deviation correction; the corrected dataset is re-scored. Judgment conditions include: whether the quality score reaches the compliance threshold corresponding to the current dataset level; whether the number of defect fragments has decreased to an acceptable range; whether the rule update passes shadow evaluation; and whether the number of iterations has reached the upper limit. The execution actions or results are: outputting the secondary governance task, the updated rule base version, and the compliance dataset version; if the threshold is reached, the compliance dataset is passed to the archiving step; if not, iteration continues or anomalies are marked.

[0215] For example, the scheduling central agent 110 receives a defect report from the two-layer quality inspection agent 150, which shows that the missing rate and labeling error rate exceed the standard. The scheduling central agent 110 maps the missing rate excess to the cleaning operator and the labeling error rate excess to the labeling operator. Simultaneously, it attributes the root cause of the defects and finds that the missing rate excess is due to an incomplete mapping of a data source field. The rule base version management module generates candidate rules, i.e., adds field mapping integrity verification. The candidate rules are evaluated on historical defect fragments in shadow mode. The new rule reduces the missing rate from 3% to 1.5%, which is better than the old rule and reaches the preset effect threshold, so it is fully switched. The scheduling central agent 110 generates a secondary governance task DAG subset, containing only the cleaning and labeling tasks for defect fragments, and distributes it to the multimodal cleaning agent 130 and the automatic labeling agent 140 for execution. After correction, the dataset is re-inspected, and the quality score reaches 88 points, exceeding the threshold of 85 points. The dataset then enters the archiving step.

[0216] It should be noted that, because the central intelligent agent 110, acting as a feedback control node, transforms quality inspection and deviation information into rule update and secondary governance instructions, a closed loop of governance, detection, correction, and policy update is formed. The governance policy is autonomously updated based on defect feedback, and the dataset quality gradually approaches the target threshold, preventing defective data from flowing into the large model training repository. Simultaneously, rule updates undergo shadow evaluation and gray-scale switching to prevent low-quality rules from taking effect directly, improving the security and recoverability of governance policy iteration.

[0217] S108: Compliance datasets are automatically archived, and governance logs and audit reports are archived synchronously.

[0218] Input parameters include the compliance dataset, governance logs, audit report, data version number, and training repository path. The data processing procedure is as follows: the training repository archiving module automatically writes the compliance dataset to the large model training repository; it synchronously stores the governance logs and compliance audit report to the archiving system; it establishes the association between the data version and audit records and defect handling records; and it generates archiving confirmation information. Judgment conditions include: whether the archiving integrity check passes; whether the audit chain is complete and unbroken; whether the data version number matches the governance log record; and whether the training repository write is successful. The execution actions or results are: outputting the archived dataset version, governance log archive, and compliance audit archive; and feeding back the archiving results to the scheduling central agent 110 and the global memory knowledge base agent 180.

[0219] For example, the training repository archiving module performs integrity verification on the compliant dataset, calculates the dataset checksum, and compares it with the data version number recorded during the governance process. If they match, the verification passes. The dataset is written to a specified path in the training repository, and governance logs and audit reports are written to the archiving system, establishing a link between the data version number V1.0 and the audit records and defect handling records. After archiving is complete, archiving confirmation information is generated and fed back to the scheduling central intelligent agent 110. Because the training repository archiving module synchronously binds dataset archiving with governance logs and audit reports, the training data has a complete historical state record before use, forming a traceable data version and audit chain, meeting subsequent audit traceability needs, and reducing compliance risks.

[0220] S109: The global memory knowledge base intelligent agent writes governance cases and optimization rules to form a shared memory.

[0221] Input parameters include governance cases, optimized cleaning and annotation rules, defect cases, dataset distribution characteristics, before-and-after correction comparison reports, and compliance rule update items. The data processing procedure is as follows: Global Memory Knowledge Base agent 180 vectorizes or graphs the governance cases and writes them into the shared memory bus; updates the domain knowledge graph and governance strategy templates; indexes the data defect cases and distribution characteristics; performs conflict fusion on rules that conflict with existing memories; and clusters governance strategies for similar datasets based on similarity. Judgment conditions include: whether the case similarity reaches the reuse threshold; whether the degree of rule conflict meets the requirements for direct merging or manual confirmation; whether the memory update timestamp and source agent type are consistent; and whether the shared memory writing is complete. The execution actions or results are: outputting the updated global knowledge base, reusable governance strategy templates, and conflict resolution records; in subsequent governance of similar datasets, the scheduling central agent 110 and corresponding agents can directly retrieve and reuse mature strategies.

[0222] For example, the global memory knowledge base agent 180 vectorizes the current enterprise business data governance case and writes it into the vector database shared memory bus. This case includes governance rules, defective cases, and distribution characteristics. When the scheduling central agent 110 receives similar enterprise business data again, it retrieves this case and reuses its cleaning and labeling rules without reconfiguration. If two agents simultaneously write conflicting rules, the global memory knowledge base agent 180 merges them based on the source agent type priority, the most recent timestamp, and the majority voting rule. If automatic merging is not possible, a conflict log is recorded and marked as pending confirmation.

[0223] It should be noted that, since the global memory knowledge base agent 180 stores the rules and cases generated in each round of governance through a shared memory bus, the governance knowledge can be reused across multiple tasks and multiple datasets. There is no need to manually reconfigure rules for the same type of dataset, and the governance strategy is continuously optimized as historical cases accumulate, supporting autonomous iterative governance of incremental datasets.

[0224] In some embodiments, the dataset governance method based on multi-agent collaboration provided in this application also supports incremental data governance. The data access agent 120 continuously monitors data source changes in real-time incremental mode, generates a unique shard ID for each incremental shard, and records the data source change log offset or version number. Idempotent deduplication is performed using the shard ID during the governance process. When an incremental governance task fails, the processed state of the shard is restored from the global memory knowledge base agent 180, and the incomplete governance steps are resubmitted. The scheduling central agent 110 determines whether all incremental data has been consumed based on the offset and generates an incremental governance DAG only for the incremental shard. Because the data access agent 120 continuously monitors data source changes in real-time incremental mode, it generates a unique shard ID for each incremental shard and records the log offset or version number. It uses the shard ID for idempotent deduplication. In case of failure, it restores the processed state from the memory and re-delivers the unfinished steps. The scheduling center judges the consumption progress based on the offset and only generates the incremental governance DAG. The incremental data is not duplicated or missed. It can recover from the breakpoint after a failure, reducing the computing power consumption of real-time incremental governance and supporting the continuous iterative training of large models.

[0225] Specifically, in this application, the term "pre-trained dataset" refers to a large-scale unsupervised or self-supervised training dataset used in the pre-training stage of a large model. Its governance criteria are relatively coarse-grained, allowing for higher noise and redundancy, but requiring broad coverage of domains and distributions. The term "fine-tuning dataset" refers to a dataset used for supervised fine-tuning based on the pre-trained model. Its governance criteria require high quality and balanced distribution, and strict control over missing values, outliers, and labeling errors. The term "RAG dataset" refers to a knowledge base dataset used for retrieval augmentation generation. Its governance criteria require high accuracy, ensuring that knowledge fragments are accurate, non-redundant, and highly relevant to the business domain. The term "defective fragment" refers to a subset of data marked as not meeting quality thresholds during quality inspection, which can be located by data source ID, batch ID, fragment ID, sample ID, or field name. The term "defect type" refers to the specific category of the defect, such as missing value defects, outlier defects, labeling error defects, category coverage defects, distribution offset defects, etc.

[0226] The above embodiments are only used to provide a detailed description of the technical solutions of this application. However, the description of the above embodiments is only for the purpose of helping to understand the methods of the embodiments of this application and should not be construed as a limitation on the embodiments of this application. Any changes or substitutions that can be easily conceived by those skilled in the art should be covered within the protection scope of the embodiments of this application.

Claims

1. A dataset governance method based on multi-agent collaboration, characterized in that: The system constructs a scheduling central intelligent agent, a data access intelligent agent, a multimodal cleaning intelligent agent, a two-layer quality inspection intelligent agent, and a global memory knowledge base intelligent agent; the scheduling central intelligent agent is communicatively connected to the data access intelligent agent, the multimodal cleaning intelligent agent, and the two-layer quality inspection intelligent agent; The global memory knowledge base intelligent agent is bidirectionally read-write connected to the multimodal cleaning intelligent agent and the two-layer quality inspection intelligent agent; The data access agent receives the raw dataset and generates a data profile. The central intelligent agent generates a governance task pipeline and issues task instructions; The multimodal cleaning agent performs noise reduction and deduplication on the data; The dual-layer quality inspection intelligent agent performs quality inspection on the cleaned data and outputs defect information. The scheduling central agent receives the defect information output by the two-layer quality inspection agent, maps the defect type to the governance operator, updates the governance rules, generates local re-governance tasks by sharding the defect data, and sends them to the corresponding agents for execution. The global memory knowledge base agent stores the governance features and defect cases written by each agent. Before generating the governance task pipeline, the scheduling central agent retrieves historical governance strategies of similar datasets in the global memory knowledge base agent and reuses the historical governance strategies.

2. The method according to claim 1, characterized in that, The method further includes: Construct intelligent agents for automatic labeling, data deviation correction, and compliance de-identification and traceability. The scheduling central agent is configured with a dataset hierarchical policy library, which stores the quality standards of pre-trained datasets, the quality standards of fine-tuned datasets, and the quality standards of retrieval-enhanced generated RAG datasets. The data access agent receives raw datasets from multiple sources; The scheduling central intelligent agent generates a directed acyclic graph (DAG) pipeline for tasks based on business governance requirements and issues task instructions. The multimodal cleaning agent performs noise reduction, deduplication, and format unification on the data; The automatic labeling agent performs labeling on the cleaned data; The dual-layer quality inspection agent performs basic quality inspection and global distribution inspection on the labeled dataset and outputs defect fragments. The data deviation correction agent performs correction on the detected distribution offset; The compliance desensitization and traceability intelligent agent performs desensitization and hash storage on the corrected data; and the scheduling central intelligent agent selects the corresponding quality standard from the dataset hierarchical strategy library according to the purpose of the dataset to generate a differentiated task DAG pipeline. When the dual-layer quality inspection agent outputs a defect fragment or the data deviation correction agent outputs a deviation non-closed report, the scheduling central agent maps the defect type to the corresponding governance operator, updates the rule base version, generates a secondary governance task DAG subset for the defect fragment, and sends it to the corresponding agent to perform local re-governance. The global memory knowledge base agent stores the cleaning features, annotation features, defect cases, correction schemes and compliance rules written by each agent during the governance process as shared memory entries; Before generating a new task DAG pipeline, the scheduling central agent retrieves historical governance strategies for similar datasets in the global memory knowledge base agent and reuses these historical governance strategies.

3. The method according to claim 2, characterized in that, The dataset hierarchical strategy library stores pre-training granularity quality standards, adjustment quality standards, and RAG accuracy quality standards. The scheduling central agent receives the dataset purpose identifier, determines that the dataset purpose is one of pre-training, fine-tuning or RAG, and selects the corresponding quality standard from the dataset hierarchical policy library according to the dataset purpose. When the purpose of the dataset changes, the scheduling central agent dynamically switches the quality standards.

4. The method according to claim 2, characterized in that, The method further includes: When the dual-layer quality inspection agent outputs a defect segment or the data deviation correction agent outputs a deviation not closed report, the scheduling central agent aggregates the quality inspection defects and deviation correction not closed items. Map defect types to corresponding governance operators; Attribute the root causes of defects to generate candidate rules; The candidate rules are evaluated in parallel in shadow mode for historical defective fragments, and the effect is compared with that of the old rules. When the candidate rules reach the preset effect threshold, all rules are switched; if they do not meet the threshold, the old version is retained and the reason for failure is recorded. Generate a subset of the secondary governance task DAG and distribute it to the corresponding agent to perform local re-governance.

5. The method according to claim 2, characterized in that, The method further includes: The global memory knowledge base agent maintains a version number and timestamp for each shared memory entry; During writing, condition updates are performed; if the versions are inconsistent, the latest version is read first and then merged. The fusion rules adopt the priority of the source agent type, the most recent timestamp, and the majority voting rule; Record issues related to rules that cannot be automatically merged in the issue log and mark them as requiring confirmation; A consistent snapshot is obtained when any agent reads the memory.

6. The method according to claim 5, characterized in that, The method further includes: The global memory knowledge base intelligent agent adopts a dual-mode storage of vector database shared memory bus or knowledge graph structured memory. In the vector database model, governance cases are vectorized and retrieved based on semantic similarity; In the knowledge graph structured memory model, the storage domain entity relationships and governance rules are stored in the event stream storage of event tracing. The written events are immutable, and the current state is generated by event replay.

7. The method according to claim 2, characterized in that, The dual-layer quality inspection agent includes a basic quality inspection submodule and a dataset-wide quality inspection submodule; the method further includes: The basic quality inspection submodule detects missing values, outliers, and labeling errors. The basic quality inspection score is calculated by weighting the missing value rate, outlier ratio, and labeling error rate. The dataset global quality inspection submodule calculates data distribution differences, sample balance, and category coverage, and calculates distribution difference measures in units of slices. Defect fragments are located by data source identifier, batch identifier, fragment identifier, sample identifier, or field name, and are labeled with defect category.

8. The method according to claim 7, characterized in that, The method further includes: The data deviation correction agent identifies distribution shifts by using the KL divergence or maximum mean difference between the training set distribution and the reference distribution. Class imbalance is measured by the ratio of majority to minority class samples and the percentage of valid samples. Based on the imbalance ratio and offset, an adaptive selection strategy is chosen for rare sample synthesis, redundant sample downsampling, or out-of-domain data isolation and removal. The correction intensity is set according to the ratio of positive to negative target samples; After correction, the distribution difference index is recalculated. If it still does not meet the standard, a deviation failure report is submitted to the dispatch center.

9. The method according to claim 2, characterized in that, The method further includes: The compliant, de-identified, and traceable intelligent agent identifies sensitive fields and copyright-restricted text. Sensitive fields are desensitized using three levels: masking, replacement, and deletion. High-sensitivity fields are desensitized by deletion or replacement with pseudonyms of the same format, while medium- and low-sensitivity fields are masked to retain the beginning and end of the field. Copyright-restricted text will replace or isolate infringing segments; A field-level hash is calculated for each de-identified field, a record-level hash is calculated for each data entry as a whole, and an operation-level hash is calculated for the governance operation metadata, forming a three-level hash chain.

10. A hierarchical collaborative intelligent agent system for constructing large model training and inference datasets, characterized in that, include: The system includes a central intelligent agent for scheduling, an intelligent agent for data access, an intelligent agent for multimodal cleaning, an intelligent agent for automatic labeling, an intelligent agent for two-layer quality inspection, an intelligent agent for data deviation correction, an intelligent agent for compliance desensitization and traceability, and an intelligent agent for global memory knowledge base. The scheduling central agent is connected to the data access agent, the multimodal cleaning agent, the automatic labeling agent, the two-layer quality inspection agent, the data deviation correction agent, and the compliance desensitization and traceability agent through the task message bus; the global memory knowledge base agent has bidirectional read and write connections with each agent. The data access agent is configured to receive multi-source raw datasets and generate raw data profiles. The scheduling central intelligent agent is configured to generate a task DAG pipeline and issue task instructions; The multimodal cleaning agent is configured to perform noise reduction, deduplication, and format unification on the data; The automatic labeling agent is configured to perform labeling on the cleaned data; The dual-layer quality inspection intelligent agent is configured to detect basic quality and global distribution, and output defect segments. The data deviation correction agent is configured to perform correction on the detected distribution offset; The compliant de-identification and traceability intelligent agent is configured to perform de-identification and generate hash evidence for the corrected data; The scheduling central agent is equipped with a dataset hierarchical policy library, which stores the quality standards of pre-trained datasets, fine-tuned datasets, and RAG datasets. The scheduling central agent selects the corresponding quality standard and generates a differentiated task DAG pipeline based on the purpose of the dataset. In response to the defect fragments output by the two-layer quality inspection agent or the deviation not closed report output by the data deviation correction agent, the scheduling central agent maps the defect type to the governance operator, updates the rule base version, generates a subset of the secondary governance task DAG, and sends it to the corresponding agent to perform local re-governance. The global memory knowledge base agent stores the cleaning features, annotation features, defect cases and correction schemes written by each agent. The scheduling central agent retrieves and reuses historical governance strategies of similar datasets before generating a new task DAG pipeline.