Data intelligent preprocessing method for large model training
By constructing a unified data access interface and a hierarchical density clustering algorithm, combined with model distillation and policy conflict detection, the problems of unified representation and efficient denoising of multimodal data are solved, thereby improving the performance and data quality of generative artificial intelligence models.
Patent Information
- Application Number
- CN202611399432.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot effectively handle the unified representation and processing of multimodal data. Large-scale clustering is inefficient for denoising, and the lack of collaborative feedback in each stage of the preprocessing pipeline makes it easy for semantic drift to be introduced during the data augmentation process, which affects the performance of generative artificial intelligence models.
A unified data access interface layer is constructed, which parses multi-source heterogeneous data into an intermediate representation format through data connectors. A hierarchical density-based clustering algorithm is used to calculate the manifold closeness score. An incremental calculation strategy is combined to remove semantically abnormal samples. A lightweight evaluation submodule composed of model distillation is used to perform multi-dimensional quality assessment and intelligent data augmentation. The semantic consistency of the augmented data is verified by a policy conflict detection unit.
It achieves unified processing and efficient denoising of cross-modal data, improves data purity and diversity, reduces semantic drift, and enhances the logical accuracy and generalization ability of generative large models.
Smart Images

Figure CN123178780A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of generative artificial intelligence and vector storage indexing technology, specifically to a data intelligent preprocessing method for training large models. Background Technology
[0002] The evolution of deep learning technology has driven the widespread application of large language models and multimodal generative models in fields such as natural language processing, computer vision, code generation, and cross-modal content generation under generative artificial intelligence. The performance of large models is highly dependent on the scale and quality of the training data. High-quality training data can accelerate the convergence speed of the model, improve its generalization ability, and reduce the probability of the model producing illusions, biases, or harmful outputs in subsequent inference processes.
[0003] The raw data required for training large models typically comes from internet scraping, various business databases, third-party API interfaces, and distributed storage systems, exhibiting multi-source heterogeneous characteristics. This raw data differs in data format, storage structure, and semantic representation, and contains a large amount of noisy data, duplicate data, data with missing formats, and low-quality samples. Directly feeding unprocessed raw data into large model training will cause the model to learn incorrect semantic associations or invalid representation patterns, leading to decreased model performance and a serious waste of computing resources.
[0004] Existing technologies typically employ rule-based word segmentation and regular expression filtering, or, for specific domains such as advertising data or logs in specific formats, construct low-dimensional subspaces for clustering anomaly detection. These methods still have limitations, such as:
[0005] Poor domain versatility: Existing technologies rely on prior rules or manual feature design for specific domains, which cannot adapt to the unified processing needs of multimodal data such as text, images, audio, and code;
[0006] Low efficiency in clustering and denoising: When faced with ultra-large-scale high-dimensional vector data, traditional clustering algorithms, such as K-Means or global density clustering, need to pre-specify the number of clusters or calculate the full distance matrix. The computational complexity increases sharply with the amount of data, which cannot meet the end-to-end preprocessing requirements of data scales of hundreds of millions or more.
[0007] Process fragmentation and single-point optimization: Most existing technologies only focus on a single step in cleaning, deduplication, or enhancement. There is a lack of collaborative feedback between data flow and algorithm parameters between the steps. The data enhancement process is prone to semantic drift, making it difficult to control the overall quality of the data preprocessing pipeline.
[0008] The aforementioned shortcomings have a particularly pronounced impact on generative AI models: noisy, semantically drift-laden training data exacerbates core problems such as illusory output, content homogenization, and cross-modal image-text matching errors in generative models; traditional preprocessing pipelines cannot provide highly diverse and pure training materials for large generative models, severely restricting the logical accuracy and generalization ability of generated content. Therefore, designing a data intelligent preprocessing method that can handle multimodal data types, balances processing efficiency and intelligent cleaning accuracy, and achieves collaborative feedback across the entire pipeline of algorithms is a technical challenge that urgently needs to be addressed by those skilled in the art. Summary of the Invention
[0009] The purpose of this invention is to provide a data intelligent preprocessing method for training large models, which solves the technical problems in existing data preprocessing technologies, such as the difficulty in unified representation and processing of multimodal data, the low efficiency of ultra-large-scale clustering denoising, and the lack of collaborative feedback in various links of the preprocessing pipeline, which leads to the easy introduction of semantic drift in the data augmentation process.
[0010] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:
[0011] Intelligent data preprocessing methods for training large models include the following steps:
[0012] S1. Construct a unified data access interface layer, receive multi-source heterogeneous raw data through a data connector, and parse it into intermediate representation format data containing data content and data traceability identifier through the protocol adaptation unit and data format parsing unit inside the data connector, and push it into the data buffer queue.
[0013] S2. Extract intermediate representation format data from the data buffer queue, and call the corresponding text feature encoder, image feature encoder, audio feature encoder or code feature encoder according to the data type to extract the original feature vector. Normalize the original feature vector in dimension and perform isomorphic projection to generate a uniform isotropic high-dimensional feature vector and store it in the vector storage management system.
[0014] S3. Extract isotropic high-dimensional feature vectors, use a hierarchical density-based clustering algorithm to calculate the manifold closeness score of the isotropic high-dimensional feature vectors in their respective semantic clusters, remove semantic abnormal samples with manifold closeness scores lower than the first preset threshold, use approximate nearest neighbor retrieval to determine that samples with vector similarity exceeding the second preset threshold are duplicate data and merge them to obtain the cleaned data and manifold closeness score.
[0015] S4. Input the cleaned data into the lightweight evaluation submodule consisting of model distillation to calculate the multidimensional basic quality score. Use the degree of deviation of the manifold closeness score from the central value to generate a correction factor. Perform multiplicative adjustment on the multidimensional basic quality score to obtain the comprehensive quality score. Based on the comprehensive quality score, divide the cleaned data into usable data, data to be enhanced, and unusable data.
[0016] S5. Apply intelligent data augmentation to the data to be augmented. During the augmentation process, the augmentation perturbation intensity is adaptively adjusted in the reverse direction based on the relative distance between the comprehensive quality score and the first quality threshold and the second quality threshold. The cosine similarity of the feature vectors before and after augmentation is checked by the policy conflict detection unit to check whether it is within the preset fidelity range in order to correct the policy bias. After the augmented data passes the secondary manifold check, it is transferred to the available data pool.
[0017] S6. Convert the data in the available data pool into the target training format, load additional metadata including data source identifiers, manifold fit scores, and overall quality scores, and stream the output.
[0018] Furthermore, in step S1, the data connector adopts a plug-in dynamic library architecture, and the data connector includes a structured database connector, a semi-structured document parsing connector, an unstructured media stream access connector, and a distributed file system access connector; the data traceability identifier is generated by performing hash calculation on the data source type, collection timestamp, original format version, and geographical location information.
[0019] Furthermore, in step S2, the code feature encoder constructs the program code into an abstract syntax tree through lexical analysis and syntactic analysis, and uses a tree-structured neural network to recursively pass the hidden state along the topology of the abstract syntax tree, extracts the syntactic structure features, and concatenates them with the code sequence vector for isomorphic projection.
[0020] Furthermore, in step S3, an incremental calculation strategy is adopted. When new incremental data is added, the distance between the feature vector of the incremental data and the nearest existing semantic cluster center is calculated. If the distance is less than the preset merging threshold, the incremental data is integrated into the existing semantic cluster and the manifold closeness score is locally updated. If the distance is greater than or equal to the preset merging threshold, the incremental data is used as a new candidate cluster seed.
[0021] Furthermore, step S3 also includes format compliance verification, which verifies the completeness of required fields, standardization of field types, reasonableness of numerical value range, and compliance of data format by field through the built-in format compliance rule library, and marks and automatically removes any format anomaly samples that fail any of the verifications.
[0022] Furthermore, in step S4, the lightweight evaluation submodule is obtained by knowledge distillation of the student model using a large-scale pre-trained model as the teacher model; the evaluation dimensions of the text data include language fluency (text perplexity index), semantic integrity (semantic role completeness index), information density (real word Shannon entropy index) and knowledge value (knowledge graph matching index).
[0023] Furthermore, in step S5, the intelligent data enhancement of the text data includes synonym rewriting enhancement, sentence paraphrasing enhancement based on cross-language translation, and content expansion enhancement based on knowledge graph retrieval; the strategy conflict detection unit calculates the cosine similarity between the enhanced text vector and the original text vector in real time. If the cosine similarity is lower than the preset fidelity lower limit, the enhancement perturbation intensity is reduced and the enhancement is rolled back and re-enhanced. If the cosine similarity is higher than the preset fidelity upper limit, the enhancement strategy is switched or the enhancement perturbation intensity is increased.
[0024] Furthermore, in step S5, intelligent data enhancement for image data includes denoising and color correction restoration enhancement, super-resolution enhancement enhancement, and contextual background enrichment enhancement; intelligent data enhancement for code data includes code structure abstraction enhancement based on abstract syntax trees and control flow graphs, identifier variable renaming enhancement, and auxiliary code fragment synthesis enhancement.
[0025] Further, in step S5, the secondary manifold verification specifically involves: re-extracting the high-dimensional feature vectors of the newly generated enhanced samples and pushing them back to the vector storage management system; recalculating the manifold fit score and overall quality score of the newly generated enhanced samples; and determining that the verification is qualified and the samples are transferred to the available data pool only when the overall quality score of the newly generated enhanced samples reaches the first quality threshold.
[0026] Furthermore, in step S6, the target training format includes JSONLines format, ProtocolBuffers format, Arrow format, and TFRecord format; during persistent output, the data file is split according to the data source, data type, or quality level, and an index file containing the starting offset and length of the data record bytes is generated synchronously.
[0027] Furthermore, it also includes step S7, which uses a distributed task scheduling framework to parse the topology graph to achieve parallel orchestration of each step, collects the resource occupancy index of each computing node in real time, calculates the node selection score based on the remaining resource weight, and prioritizes scheduling computationally intensive tasks to the computing node with the highest node selection score.
[0028] Further, the specific steps in step S3, which use a hierarchical density-based clustering algorithm to calculate the manifold closeness score of the isotropic high-dimensional feature vector in its semantic cluster, include: for the extracted isotropic high-dimensional feature vector, retrieving a predetermined number of nearest neighbor vectors from the vector storage management system; constructing a local neighborhood set using the retrieved nearest neighbor vectors; and calculating the local intrinsic dimension of the local neighborhood set. The formula for calculating the local intrinsic dimension is as follows:
[0029] ;
[0030] in, Represents isotropic high-dimensional eigenvectors The local intrinsic dimension, This represents the number of nearest neighbor vectors in the local neighborhood set. Represents isotropic high-dimensional eigenvectors With the local neighborhood set of the first Euclidean distance between the nearest neighbor vectors Represents isotropic high-dimensional eigenvectors The maximum Euclidean distance between the vector and all nearest neighbor vectors in the local neighborhood set; the manifold closeness score is generated by exponentially weighting the fundamental density transition probabilities of the isotropic high-dimensional eigenvectors using the local intrinsic dimension. The formula for calculating the manifold closeness score is as follows:
[0031] ;
[0032] in, Represents isotropic high-dimensional eigenvectors The manifold fit score, with a value range of , This represents the preset topology attenuation coefficient. The local intrinsic dimension obtained from the aforementioned calculation, Represents isotropic high-dimensional eigenvectors To the semantic cluster center Euclidean distance, The radius of the cluster envelope of the semantic cluster to which it belongs is the distance from all samples within the semantic cluster to the cluster center. The average Euclidean distance.
[0033] Further, the specific steps of applying intelligent data augmentation to the data to be augmented in step S5 include: extracting the local manifold tangent space where the isotropic high-dimensional feature vector corresponding to the data to be augmented is located; performing singular value decomposition on the sample vectors in the local manifold tangent space to extract the principal component orthogonal basis matrix corresponding to the local manifold tangent space; determining the perturbation step size of data augmentation based on the comprehensive quality score; generating an adversarial perturbation vector along the normal space direction corresponding to the principal component orthogonal basis matrix; superimposing the adversarial perturbation vector onto the isotropic high-dimensional feature vector corresponding to the data to be augmented to generate the augmented feature vector; decoding the augmented feature vector into the augmented original modal data through the inverse mapping network of the corresponding text feature encoder, image feature encoder, audio feature encoder, or code feature encoder, wherein the inverse mapping network is paired and trained with the corresponding feature encoder; and submitting the augmented original modal data to the policy conflict detection unit to verify the cosine similarity of the feature vectors before and after augmentation.
[0034] This invention discloses a data intelligent preprocessing system for large model training, used to execute the data intelligent preprocessing method for large model training as described above, including:
[0035] The data acquisition and standardized access module is configured to build a unified data access interface layer, receive multi-source heterogeneous raw data through a data connector, generate intermediate representation format data through a protocol adaptation unit and a data format parsing unit, and push the data buffer queue.
[0036] The feature extraction and vectorization representation module is configured to extract intermediate representation format data from the data buffer queue, call the corresponding feature encoder to extract the original feature vector, and generate isotropic high-dimensional feature vectors through dimension normalization and isomorphic projection and store them in the vector storage management system.
[0037] The adaptive data cleaning module is configured to extract isotropic high-dimensional feature vectors, use a hierarchical density-based clustering algorithm combined with an incremental calculation strategy to calculate manifold closeness scores and remove semantically abnormal samples, use near nearest neighbor retrieval to identify and merge duplicate data, and simultaneously complete data format standardization verification and anomaly removal.
[0038] The hierarchical quality assessment module is configured to input the cleaned data into a lightweight assessment submodule consisting of model distillation to calculate a multidimensional basic quality score, and use manifold fit score for multiplicative control to obtain a comprehensive quality score and classify the data levels.
[0039] The intelligent data augmentation module is configured to apply augmentation to the data to be augmented, adaptively adjust the intensity of the augmentation disturbance according to the comprehensive quality score, perform policy correction through the policy conflict detection unit, and transfer the augmented data to the available data pool after passing the secondary manifold verification.
[0040] The format conversion and output module is configured to convert data from the available data pool into the target training format, load additional metadata, and stream the output.
[0041] Meanwhile, the present invention also discloses a pipeline scheduling and monitoring module, which is configured to perform task orchestration by parsing the topology graph through a distributed task scheduling framework, calculate node selection scores based on real-time collected resource usage indicators and dynamically distribute tasks, and present the running status through a centralized log system and a visual monitoring panel.
[0042] Compared with the prior art, the present invention has the following beneficial effects:
[0043] The intelligent data preprocessing method for large model training provided by this invention solves the fundamental defects of traditional data preprocessing schemes in cross-modal unified processing, large-scale denoising efficiency, and collaborative feedback of each link by constructing a closed-loop processing system that integrates multi-source heterogeneous data access to high-quality training data streaming output.
[0044] In the overall solution, plug-in data connectors are used to uniformly convert multi-source heterogeneous raw data into an intermediate representation format containing data traceability identifiers. Then, a multimodal feature encoder maps heterogeneous data such as text, images, audio, and code to a uniform isotropic high-dimensional feature vector space. This isomorphic representation mechanism eliminates the barriers between different modal data in the feature space, laying a topological foundation for subsequent unified semantic clustering, denoising, and quality assessment, and enabling cross-modal data to be processed consistently within the same mathematical framework.
[0045] A hierarchical density-based clustering algorithm calculates the manifold closeness score of isotropic high-dimensional feature vectors within their respective semantic clusters. Semantic anomalies are eliminated based on the manifold closeness score, and duplicate data is merged using approximate nearest neighbor retrieval. This manifold denoising strategy does not require pre-specifying the number of clusters and can automatically identify low-density noise distributions of arbitrary shapes, improving the accuracy and recall of semantic anomaly identification. Meanwhile, the incremental calculation strategy only performs local density feature calculations on newly accessed data and dynamically merges them with existing cluster structures, avoiding redundant calculations of the entire dataset and improving the end-to-end preprocessing throughput for datasets with hundreds of millions of records.
[0046] A lightweight evaluation submodule, comprised of model distillation components, quantitatively evaluates the cleaned data from multiple dimensions. It also introduces a manifold fit score to multiplicatively correct the base quality score, generating a comprehensive quality score. This ensures the quality evaluation results simultaneously consider the intrinsic quality of the data content and the consistency of the semantic manifold distribution, reducing the risk of high-quality data being misclassified as low-quality. In the data augmentation stage, intelligent data augmentation adaptively adjusts the perturbation intensity based on the comprehensive quality score. A policy conflict detection unit verifies the cosine similarity of feature vectors before and after augmentation for policy correction. Augmented data undergoes secondary manifold verification before being transferred to the usable data pool, suppressing semantic drift during the augmentation process and ensuring the stability of the semantic skeleton while expanding the boundaries of data diversity.
[0047] The local intrinsic dimension weighting mechanism enables the manifold closeness score to more accurately identify pseudo-nearest neighbor noise caused by encoder mapping errors in high-dimensional space, improving the semantic purity of the available data pool. The normal space orthogonal adversarial perturbation enhancement mechanism generates adversarial perturbation vectors along the normal space direction orthogonal to the principal component orthogonal basis matrix, and decodes the enhanced feature vectors into enhanced original modal data through the inverse mapping network. This expands the diversity boundary of data distribution, provides more informative training samples for large models, and improves the generalization ability and robustness of downstream models when dealing with long-tail cases. Attached Figure Description
[0048] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained from these drawings without creative effort.
[0049] Figure 1 This is a flowchart of the method of the present invention.
[0050] Figure 2 This is a flowchart of the adaptive data cleaning and deduplication sub-process of the present invention. Detailed Implementation
[0051] In the following description, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments can be modified in various ways without departing from the spirit or scope of the embodiments of the invention. Therefore, the drawings and description are considered to be exemplary in nature and not restrictive.
[0052] The following is in conjunction with the appendix Figures 1-2 The embodiments of the present invention will be described in detail below.
[0053] Example 1: Multi-source heterogeneous data acquisition and standardized streaming access. In specific implementation, a unified data access interface layer is established, and a structured database connector, a semi-structured document parsing connector, an unstructured media stream access connector, and a distributed file system access connector are configured through a pluggable dynamic link library architecture.
[0054] Each plug-in data connector integrates a protocol adaptation unit and a data format parsing unit. The protocol adaptation unit converts various external transmission protocols into the system's preset internal standard transmission protocol; the data format parsing unit parses various types of data and fills them into an internal intermediate representation format that includes a unique data identifier, collection timestamp, data type, original format version, metadata dictionary, and binary blocks of data content.
[0055] While data is being accessed, the system extracts the data source type, high-precision timestamp, format version, and geographic location parameters, executes a hash algorithm to generate a globally unique data traceability identifier, and writes it into the metadata dictionary of the intermediate representation format. The parsed data is pushed into a data buffer queue built by a distributed message queue middleware to achieve asynchronous decoupling and traffic shaping.
[0056] Example 2: Multimodal feature extraction and high-dimensional isomorphic vectorization representation (step S2)
[0057] Example 2 is a further optimization based on Example 1. It extracts intermediate representation data from the data buffer queue in a streaming manner and routes it to the corresponding feature encoder according to the data type:
[0058] Text data: A pre-trained language model based on the Transformer architecture is used as a text feature encoder to extract the hidden layer representation of the sequence and perform attention pooling to generate the original text vector;
[0059] Image data: The visual Transformer model is used as the image feature encoder to divide the image into non-overlapping image blocks and extract the hidden layer output of ClassToken as the original image vector.
[0060] Audio data: The time-domain audio signal is pre-emphasized, framed, and windowed, then converted into a Mel spectrogram by short-time Fourier transform, and input into a self-attention coding network to extract the original audio vector;
[0061] Code data: Using open-source lexical and syntax analyzers, the source code character sequence is traversed, keywords, identifiers, and operators are split to complete lexical analysis, code nesting structure and statement logic are parsed to complete syntax analysis, and a standardized abstract syntax tree is constructed; a tree structure neural network (Tree-LSTM) is called to recursively pass the hidden state from bottom to top along the topology of the abstract syntax tree, aggregate node features layer by layer, and concatenate and fuse the global hidden state of the root node with the code text sequence vector to generate a raw code vector with uniform dimensions.
[0062] To eliminate spatial barriers in feature representation across different modalities, each feature encoder is equipped with a modality projection matrix and a layer normalization unit at its end. This maps and normalizes the original feature vectors to an isotropic high-dimensional feature vector space of uniform dimension (e.g., 768-dimensional), generating unified feature vectors. The final generated feature vectors are stored in a vector storage management system built on a hierarchical navigable small-world graph (HNSW) to establish a millisecond-level approximate nearest neighbor retrieval index.
[0063] Example 3: Adaptive Data Cleaning and Deduplication Based on Incremental Hierarchical Density Manifold (Step S3)
[0064] Example 3 is based on the same principles as Example 1, but extracts a set of feature vectors from the vector storage management system and uses a hierarchical density-based clustering algorithm to construct a manifold topology for an isotropic high-dimensional feature vector space:
[0065] Manifold topology and closeness calculation: Reachability distances are calculated based on cosine distance and core neighbor distance between samples, constructing a minimum spanning tree and a hierarchical clustering tree. Within the clustering tree, the reachability of each data sample is calculated according to its density distribution within its semantic cluster. manifold close fit score The manifold closeness score objectively reflects the probability of a sample moving to the distribution center of the cluster manifold and the degree of closeness. The closer the score is to 0, the more the sample deviates from the mainstream semantic manifold.
[0066] Semantic denoising and deduplication: manifold closeness scoring Data samples with a value below a preset first threshold (e.g., 0.25) are identified as semantically abnormal noise and directly removed. For the remaining samples, HNSW graph index is used to retrieve candidate samples with a cosine similarity exceeding a preset second threshold (e.g., 0.92), which are identified as duplicate data. The metadata of duplicate samples is compared, and samples with the latest timestamp or more complete metadata are retained, while redundant copies are removed.
[0067] Incremental manifold fusion: When new incremental data is received, the system only extracts the feature vector of the incremental data and calculates the cosine distance between the incremental sample and the nearest existing semantic cluster center. If the distance is less than a preset merging threshold (0.15 for example), the incremental sample is directly integrated into the existing semantic cluster, and the manifold closeness score of all samples in the existing semantic cluster is locally updated; if the distance is greater than or equal to the preset merging threshold, the incremental sample is used as an independent seed for a new candidate cluster, a new semantic cluster is created, and the cluster parameters are initialized, achieving incremental cleaning without recalculating the entire dataset. Simultaneously, the completeness of fields and the rationality of values are verified through a format standardization rule base.
[0068] Example 4: Hierarchical Multidimensional Quality Assessment and Adaptive Cascade Screening (Step S4)
[0069] Example 4 is a further optimization based on Example 1. The data samples retained after cleaning proceed to step S4. For each data type, a quantitative evaluation is performed from four dimensions. All evaluation sub-modules are constructed from a lightweight model (student model) obtained through knowledge distillation of a large-scale pre-trained model (teacher model) to reduce inference computational overhead.
[0070] Textual dimensions: language fluency (confusion level), semantic integrity (semantic role completeness), information density (Shannon entropy of real words), and knowledge value (knowledge graph matching degree);
[0071] Image dimensions: visual quality (no reference IQA), resolution adaptability, annotation accuracy (CLIP image-text matching degree) and content diversity;
[0072] Audio dimensions: audio fidelity, signal-to-noise ratio, speech intelligibility (ASR confidence), and content completeness;
[0073] Code dimensions: code correctness (static syntax checking), cyclomatic complexity, readability (comments and naming conventions), and functional coverage.
[0074] To eliminate the disconnect between different stages of the existing pretreatment pipeline, a parameter coordination mechanism is established between the clustering manifold in step S3 and the quality assessment in step S4. The comprehensive scoring unit weights and sums the scores of the four assessment dimensions to obtain the basic quality score. ,in Fixed weight coefficients are assigned to each evaluation dimension, with the weights summing to 1. Example weight configurations: fluency 0.25, integrity 0.3, information density 0.25, knowledge value 0.2. This represents the normalized individual scores for each dimension. The manifold fit score output from step S3 is then incorporated. As a correction factor, the overall quality score is calculated using the following manifold topology cooperative quality assessment formula. :
[0075] ;
[0076] in, For data samples The overall quality score; For data samples The multidimensional basic quality score is obtained by weighted summation of the four-dimensional evaluation indicators; The manifold fit score calculated in step S3; This is a preset manifold correction adjustment coefficient, with a value range of 0.1 to 0.3, and an example value of 0.2, used to adjust the correction strength of the manifold topology to the quality score.
[0077] If the data sample is located in a high-density core manifold region ( A positive gain is obtained from the overall quality score; conversely, if the sample is close to the edge of the manifold ( The overall quality score is penalized and decayed, thus ensuring that the evaluation results take into account both the quality of the content itself and the consistency of the overall distribution topology.
[0078] The filtering unit is based on With the first quality threshold (e.g., 85 points) and the second quality threshold The comparison results (e.g., 60 points) divide the data into usable data pools. ), data queue to be enhanced ( ) and unavailable data pools ( ).
[0079] Example 5: Intelligent Data Augmentation with Policy Conflict Detection and Closed-Loop Feedback (Step S5)
[0080] Example 5 further optimizes Example 1. Targeted enhancements are applied to samples in the data queue to be enhanced: text data undergoes synonym rewriting, sentence paraphrasing based on cross-language translation, and content expansion based on knowledge graphs; image data undergoes repair and super-resolution enhancement based on generative adversarial networks and diffusion models; and code data undergoes structural abstraction and variable renaming based on abstract syntax trees.
[0081] To address the technical problem of semantic drift easily caused by traditional augmentation methods, this invention designs a closed-loop mechanism in which the perturbation intensity is controlled by quality score feedback in step S4, and policy conflict detection and secondary manifold verification are introduced after augmentation. The perturbation intensity parameter during the data augmentation process is described below. (Similar to synonym substitution probability, translation model sampling temperature, or diffusion model denoising steps) are calculated using the following quality feedback-driven adaptive adjustment formula:
[0082] ;
[0083] in, To be applied to data samples The enhanced disturbance intensity is a dimensionless parameter with a value range of 0 to 1. This is the preset maximum disturbance limit parameter, with an example value of 0.8; The overall quality score output in step S4; The first quality threshold is set, with an example value of 85 points. This is the second quality threshold, with an example value of 60 points.
[0084] Policy conflict detection and secondary manifold verification logic: The enhancement unit will enhance the sample Compared with the original sample Re-extract feature vectors respectively and Calculate cosine similarity Set the preset fidelity range. (like ):
[0085] like If a semantic drift conflict is detected, the perturbation intensity is automatically reduced. (Fixed attenuation coefficient to ensure no semantic loss) and rollback for re-enhancement;
[0086] like If an invalid enhancement conflict is detected, the enhancement strategy will be automatically switched or the disturbance intensity will be increased. (Fixed gain coefficient to improve data diversity);
[0087] like If the enhancement is deemed effective, the enhancement vector will be... Push back to the vector storage management system and recalculate the augmentation vector. manifold close fit score And update the overall quality score. The score reached Those that are transferred to the available data pool are discarded; otherwise, they are discarded.
[0088] Example 6: Streaming data format conversion, metadata mapping, and partitioned output (step S6)
[0089] Example 6 further optimizes Example 1. Samples from the available data pool are converted to the target training format (JSONLines, ProtocolBuffers, Arrow, or TFRecord). During the format conversion, metadata sideloading is performed, including data source identification and manifold fit scoring. Overall quality score The enhanced policy log is written as metadata to the output file header or sideload file.
[0090] The system supports splitting data files based on data source, data type, or quality level, and simultaneously generates an index file recording the starting offset and length of each data byte. Data is output in a streaming mode; as soon as the accumulated samples reach the preset split size (e.g., 512MB), it is immediately written to the target persistent storage for use by the training cluster.
[0091] Example 7: Dynamically resource-aware automated pipeline orchestration and monitoring (step S7)
[0092] Example 7 is a further optimization based on Example 1. A distributed task scheduling framework is used to parse the processing flow topology. Agents deployed on each computing node collect CPU utilization at fixed intervals. Memory usage GPU memory utilization and network bandwidth utilization .
[0093] For computationally intensive tasks such as feature extraction, distillation model inference, and diffusion model enhancement, the task scheduler calculates the scheduling score of nodes using the following heterogeneous resource remaining capacity allocation formula. :
[0094] ;
[0095] in, For computing nodes The task selection score indicates that the higher the score, the stronger the node's resource carrying capacity and the higher its priority. For nodes GPU memory utilization For nodes CPU utilization For nodes The memory usage rate ranges from 0 to 1. These are the weight coefficients for GPU, CPU, and memory resources, respectively. The sum of these weights is always 1. This is a fixed setting for GPU-intensive feature extraction and model inference tasks. For CPU-intensive format parsing tasks, adaptive settings can be configured. .
[0096] The scheduler prioritizes distributing heavy computing tasks to The highest-performing node executes the operation, automatically triggering retries and failover in case of node failure. The entire process log is centrally stored, and a visual dashboard displays real-time throughput, cleaning and culling rates, and node load heatmaps.
[0097] Example 8: Based on the above examples, Example 8 extends the manifold closeness scoring calculation logic in step S3 with a topological mechanism. The topological space where isotropic high-dimensional feature vectors reside often exhibits a highly non-uniform curvature distribution. Traditional clustering methods based on global distance or a single density threshold are prone to falling into the distance adhesion effect caused by the curse of dimensionality when dealing with cross-modal unified representations, and the distance difference from sample points to cluster centers in isotropic high-dimensional feature vector space tends to be infinitesimal.
[0098] To address the failure of distance metrics in cross-modal isotropic high-dimensional feature vector spaces, this embodiment introduces a local intrinsic dimension index to reconstruct the calculation of manifold closeness scores. The system performs fast nearest neighbor retrieval for each isotropic high-dimensional feature vector flowing into step S3 using a hierarchical, navigable small-world graph index built within the vector storage management system. The retrieval probe traverses the bottom-level connected graph of the graph structure, locking onto the sixty-four nearest neighbor vectors (K=64) closest to the isotropic high-dimensional feature vector. These sixty-four nearest neighbor vectors form a closed local neighborhood set. The system uses matrix multiplication instructions to compute in parallel the Euclidean distance array from all nearest neighbor vectors within the local neighborhood set to the central probe vector.
[0099] Local intrinsic dimension reflects the true topological unfolding dimension of data within its smallest neighborhood, and its measurement relies on extremum theory. The system extracts the maximum Euclidean distance from the Euclidean distance array, divides each Euclidean distance in the array by the maximum Euclidean distance to obtain a distance ratio, performs a natural logarithmic operation on these ratios, and sums them. The negative reciprocal of the mean of the summation results is the local intrinsic dimension. A larger local intrinsic dimension indicates that the data distribution within the local neighborhood set is closer to a disordered, high-dimensional white noise state; a smaller local intrinsic dimension indicates that the data within the local neighborhood set is tightly bound to a low-dimensional smooth manifold surface.
[0100] After obtaining the local intrinsic dimension, the system calls the tensor computation core to perform an exponential weighting operation. The exponential weighting operation uses the local intrinsic dimension as a penalty term, multiplying it by the relative Euclidean distance from the isotropic high-dimensional feature vector to the center of its semantic cluster. Topological decay coefficient. In this process, the severity of the dimensionality penalty is controlled, with an exemplary value range of 0.4 to 0.8, preferably 0.6. When isotropic high-dimensional feature vectors are located in regions with extremely high local intrinsic dimensions, even if they are close to the center of their semantic cluster in absolute distance, the exponential function will exponentially suppress the manifold fit score downwards. As a result, pseudo-nearest neighbor noise that is outside the true semantic manifold and is generated by encoder mapping errors is assigned an extremely low manifold fit score. Samples with low scores are marked as semantically abnormal samples in subsequent processes and are removed from the main data stream.
[0101] When performing local intrinsic dimension calculations, the compute node's memory controller pre-allocates contiguous page-locked memory blocks. Sixty-four nearest-neighbor vectors are packed into aligned single-precision floating-point matrices. This memory arrangement strategy allows the graphics processing unit's stream processors to process data using merged memory access, thereby improving vector computation throughput.
[0102] For the locally intrinsic dimension-weighted manifold closeness scoring algorithm proposed in this embodiment, the testing team conducted ablation verification experiments using a dirty dataset containing four million multimodal interleaved samples. The original dirty dataset contained a large number of adversarial samples with cross-modal semantic misalignment. The testing monitoring process continuously captured the recall metrics of abnormal samples and the purity metrics of vector clusters. Detailed comparison data is shown in Table 1.
[0103] Table 1: Comparison of Denoising Performance of Local Intrinsic Dimensional Manifolds
[0104] Calculation model configuration Cross-modal noise identification coverage (%) Mean contour coefficient within semantic cluster Handling throughput latency (ms / batch) Available data pool purity (%) Baseline global density cutoff model 72.4 0.51 14.2 81.3 Basic Local Density Reachable Model 85.1 0.63 18.5 89.6 Local intrinsic dimension-weighted manifold model 99.2 0.82 21.3 98.8
[0105] The local intrinsic dimension weighting mechanism alters the decision boundary of the denoising algorithm. Cross-modal noise recognition coverage climbs to near the theoretical limit, and the number of semantically misaligned samples remaining in the available data pool is compressed to an extremely low level. The slight increase in processing throughput latency is completely offset by the computational savings brought about by the high purity of the data during the downstream large model training phase. After absorbing high-purity available data from the data pool, the probability of modal confusion in the large model decreases.
[0106] Example 9: Example 9 further discloses the core algorithm mechanism for implementing intelligent data augmentation on the data to be augmented in step S5. Traditional synonym rewriting or random noise injection performs invalid sampling in extremely dense areas of data distribution, or directly crosses the boundary of the real data distribution, resulting in the generation of useless data with no semantic value.
[0107] To accurately push the data to be augmented to the data distribution boundary without deviating from the semantic manifold, the system establishes an augmentation mechanism based on orthogonal adversarial perturbations in the normal space. The scheduler intercepts the isotropic high-dimensional feature vectors corresponding to the data to be augmented. Using the isotropic high-dimensional feature vectors corresponding to the data to be augmented as anchor points, the system delineates a local manifold tangent space in the vector storage management system. The local manifold tangent space is spanned by clustered high-confidence vectors around the anchor point.
[0108] The system stacks sample vectors within the tangent space into a standardized covariance matrix and calls the computing node with the highest remaining resource weight in the distributed task scheduling framework to perform singular value decomposition. After decomposition, the squares of each singular value are calculated and accumulated to 95% of the sum of the singular value squares as a truncation threshold. Noise dimensions corresponding to extremely small singular values are automatically filtered out, retaining the principal component orthogonal basis matrix with the first 95% of energy. The principal component orthogonal basis matrix represents the feature direction with the most gradual semantic change and the highest information redundancy in the local region. If perturbation is performed along the principal component direction, the generated new data is merely a homogeneous rereading of the original semantics.
[0109] The system then rotates to the null space of the principal component orthogonal basis matrices. Along the normal space orthogonal to the principal component orthogonal basis matrices, an adversarial perturbation vector is synthesized using a normally distributed random number generator. The magnitude of the adversarial perturbation vector is controlled by the overall quality score. The closer the overall quality score is to the second preset threshold, the more fragile the semantic skeleton of the data to be augmented, and the system allocates a very small perturbation step size. The closer the overall quality score is to the first preset threshold, the larger the perturbation step size is allocated, driving the adversarial perturbation vector to explore unknown semantic boundaries.
[0110] The adversarial perturbation vector is added to the isotropic high-dimensional feature vectors corresponding to the data to be augmented. The augmented feature vectors generated by fusion reside in a high-dimensional coordinate system of a multimodal isomorphic space and cannot be directly used for feeding data to large models. The system activates the inverse mapping network matrix.
[0111] For text data to be augmented, the decoder inside the text feature encoder acts as an inverse mapping network, using the augmented feature vector as a guiding signal for cross-attention, and autoregressively decodes a new text sequence expanded by the normal space. For image data to be augmented, the augmented feature vector is injected into the conditional generation chain of the latent diffusion model. The diffusion model uses the augmented feature vector as a guiding vector, and through a multi-step denoising inverse process, renders a pixel matrix carrying new visual details while maintaining the core semantics.
[0112] The inverse mapping network outputs enhanced original modal data. This enhanced original modal data is then re-entered into the front-end encoding process, where the policy conflict detection unit extracts the reconstructed vectors. The policy conflict detection unit calculates the cosine similarity between the reconstructed vectors and the initial isotropic high-dimensional feature vectors. Occasionally, orthogonal perturbations can disrupt the underlying modal solidification features, causing a sharp drop in cosine similarity. Enhanced original modal data exhibiting a severe drop in similarity is discarded, triggering parameter correction logic, and the perturbation step size decay matrix immediately takes effect.
[0113] The verification testing platform conducted multiple batches of parallel control experiments on this orthogonal adversarial perturbation enhancement mechanism. The experiments removed all interfering variables and quantified the gains of traditional random Gaussian perturbations and the orthogonal adversarial perturbations of this embodiment under a multimodal pre-training task.
[0114] Table 2: Verification Table of Enhancement Effect of Orthogonal Counter-Perturbation
[0115] Data augmentation algorithm types Generate data distribution entropy Strategy conflict detection pass rate (%) Zero-sample downstream task performance gains Resource consumption (FLOPs / Sample) Traditional random Gaussian noise injection 4.12 45.3 +1.2% 1.2E8 Principal component direction translation extension 3.55 92.1 +0.4% 3.5E8 Orthogonal counter-disturbance in legal space 6.87 86.5 +8.9% 4.1E8
[0116] The surge in data distribution entropy demonstrates that orthogonal adversarial perturbations powerfully expand the diversity boundary of the available data pool. While principal component direction shifting achieves an extremely high policy conflict detection pass rate, its gain on downstream performance of large models is minimal. Normal space orthogonal adversarial perturbations, while maintaining a high pass rate, provide highly informative samples for large models. The robustness of downstream models in handling rare long-tail cases is improved. Although computational power consumption increases, the load balancing rate of computing nodes remains within a safe threshold under the dynamic scheduling of the automated pipeline orchestration module.
[0117] Specific embodiments and comparative data:
[0118] To facilitate a better understanding of the present invention by those skilled in the art, the present invention will be further described below with reference to specific data.
[0119] The method described in this invention was used to perform actual preprocessing operations on a batch of real multimodal large model training raw datasets with a size of 50TB, and a comparative experiment was conducted with conventional preprocessing methods in the prior art under the same conditions.
[0120] Experimental dataset composition: The total original data volume is 50TB, including:
[0121] Text data: Approximately 10TB (from web scraping, books, and academic papers).
[0122] Image data: Approximately 25TB (sourced from online images and web pages);
[0123] Audio data: Approximately 10TB (from podcasts and voice call logs);
[0124] Code data: Approximately 5TB (from open-source code repositories).
[0125] The processing procedure and parameter settings of this invention embodiment:
[0126] Step S1: Four pluggable connectors are used for access, and the data buffer queue built by the distributed message queue middleware is configured with 100 partitions;
[0127] Step S2: The text encoder uses a 768-dimensional Transformer, the image encoder uses a 768-dimensional ViT-B / 16, the audio encoder uses a 768-dimensional Mel-Spec-Encoder, and the code encoder uses a Tree-LSTM, all projected uniformly to... A high-dimensional isotropic eigenvector space is constructed and an HNSW index is generated.
[0128] Step S3: Hierarchical density clustering core neighbor count Remove the first threshold Second threshold for deduplication ;
[0129] Step S4: The evaluation module uses a lightweight distillation model to screen for the first mass threshold. Second quality threshold ;
[0130] Step S5: Enhance the fidelity range ,in This is the minimum similarity threshold for semantic fidelity. To enhance the invalid highest similarity threshold, based on Feedback control disturbance;
[0131] Step S6: Output TFRecord format, stream write, including complete metadata sideload.
[0132] Existing technologies for comparison processing: The comparison adopts a traditional discrete preprocessing pipeline: text uses rule-based and hash matching for deduplication, images use traditional sharpness thresholding and feature clustering, audio uses fixed signal-to-noise ratio thresholding for filtering, and code uses regular expression lexical filtering; evaluation uses a single index threshold; there is no algorithmic collaboration mechanism or policy conflict detection.
[0133] Technical Performance Comparison Results: After processing, comparative tests were conducted on data quality, data utilization, processing efficiency, and the performance of the trained large model. The test data are shown in Table 3.
[0134] Table 3: Comparison of the technical effects of the embodiments of the present invention with those of the prior art
[0135] Evaluation indicators Existing technology comparison Embodiments of the present invention Improvement in technical effect Anomaly data identification coverage (%) 64.2% 98.6% An increase of 34.4 percentage points Effective data utilization rate (%) 52.8% 93.5% An increase of 40.7 percentage points Data Augmentation Semantic Drift Rate (%) 22.4% 1.8% Decrease by 20.6 percentage points End-to-end preprocessing throughput (GB / h) 320GB / h 780GB / h Processing efficiency increased by 2.43 times. Evaluate inference computational overhead (GPU Hours) 1200 GPU Hours 340 GPU Hours Computing power consumption reduced by 71.7% Downstream large model training convergence steps 100,000 Steps 68,000 Steps The convergence speed increased by 32.0%. The final benchmark score of the large model 68.5 points 79.2 points The model performance improved by 10.7 points.
[0136] Table 3 shows that, in terms of cleaning accuracy and utilization, this invention employs hierarchical density clustering and manifold denoising based on isotropic high-dimensional feature vector space, achieving an abnormal data identification coverage rate of 98.6% and increasing the comparison ratio by 34.4 percentage points. Combined with the intelligent enhancement and secondary manifold verification in steps S4 and S5, a large amount of intermediate quality data to be enhanced was successfully repaired into usable data, and the effective data utilization rate increased from 52.8% to 93.5%, an increase of 40.7 percentage points.
[0137] Regarding enhanced fidelity: the strategy conflict detection mechanism of this invention controls the semantic drift rate during the enhancement process to an extremely low level of 1.8%, far lower than the comparative example of 22.4%.
[0138] In terms of processing efficiency and computing power consumption: With the help of a distillation lightweight evaluation model, an incremental clustering strategy and a distributed scheduling based on dynamic resource awareness, the end-to-end processing throughput of this invention reaches 780GB / h, which is 2.43 times that of the prior art; the computing power overhead of evaluation inference is reduced by 71.7%.
[0139] Regarding the downstream model training performance: When training a large language model using the high-quality dataset preprocessed by this invention, the number of convergence steps is reduced by 32%, and the overall score on the publicly released benchmark set is improved by 10.7 points, which confirms the practical value of the method of this invention.
[0140] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.
[0141] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. It should be noted that any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A data intelligent preprocessing method for training large models, characterized in that, Includes the following steps: S1. Construct a unified data access interface layer, receive multi-source heterogeneous raw data through a data connector, and parse it into intermediate representation format data containing data content and data traceability identifier through the protocol adaptation unit and data format parsing unit inside the data connector, and push it into the data buffer queue. S2. Extract intermediate representation format data from the data buffer queue, and call the corresponding text feature encoder, image feature encoder, audio feature encoder or code feature encoder according to the data type to extract the original feature vector. Normalize the original feature vector in dimension and perform isomorphic projection to generate a uniform isotropic high-dimensional feature vector and store it in the vector storage management system. S3. Extract isotropic high-dimensional feature vectors, use a hierarchical density-based clustering algorithm to calculate the manifold closeness score of the isotropic high-dimensional feature vectors in their respective semantic clusters, remove semantic abnormal samples with manifold closeness scores lower than the first preset threshold, use approximate nearest neighbor retrieval to determine that samples with vector similarity exceeding the second preset threshold are duplicate data and merge them to obtain the cleaned data and manifold closeness score. S4. Input the cleaned data into the lightweight evaluation submodule consisting of model distillation to calculate the multidimensional basic quality score. Use the degree of deviation of the manifold closeness score from the central value to generate a correction factor. Perform multiplicative adjustment on the multidimensional basic quality score to obtain the comprehensive quality score. Based on the comprehensive quality score, divide the cleaned data into usable data, data to be enhanced, and unusable data. S5. Apply intelligent data augmentation to the data to be augmented. During the augmentation process, the augmentation perturbation intensity is adaptively adjusted in the reverse direction based on the relative distance between the comprehensive quality score and the first quality threshold and the second quality threshold. The cosine similarity of the feature vectors before and after augmentation is checked by the policy conflict detection unit to check whether it is within the preset fidelity range in order to correct the policy bias. After the augmented data passes the secondary manifold check, it is transferred to the available data pool. S6. Convert the data in the available data pool into the target training format, load additional metadata including data source identifiers, manifold fit scores, and overall quality scores, and stream the output.
2. The intelligent data preprocessing method for large model training according to claim 1, characterized in that, In step S1, the data connector adopts a plug-in dynamic library architecture. The data connector includes a structured database connector, a semi-structured document parsing connector, an unstructured media stream access connector, and a distributed file system access connector. The data traceability identifier is generated by performing a hash calculation on the data source type, collection timestamp, original format version, and geographical location information.
3. The intelligent data preprocessing method for large model training according to claim 1, characterized in that, In step S2, the code feature encoder constructs an abstract syntax tree from the program code through lexical analysis and syntactic analysis. It then uses a tree-structured neural network to recursively pass hidden states along the topology of the abstract syntax tree, extracts syntactic structure features, concatenates them with the code sequence vector, and performs isomorphic projection.
4. The intelligent data preprocessing method for large model training according to claim 1, characterized in that, In step S3, an incremental calculation strategy is adopted. When new incremental data is added, the distance between the feature vector of the incremental data and the nearest existing semantic cluster center is calculated. If the distance is less than the preset merging threshold, the incremental data is integrated into the existing semantic cluster and the manifold closeness score is locally updated. If the distance is greater than or equal to the preset merging threshold, the incremental data is used as a new candidate cluster seed.
5. The intelligent data preprocessing method for large model training according to claim 1, characterized in that, Step S3 also includes format compliance checks, which use a built-in format compliance rule library to check the completeness of required fields, standardization of field types, reasonableness of numerical value ranges, and compliance of data format. Any format anomalies that fail any check are marked and automatically removed.
6. The intelligent data preprocessing method for large model training according to claim 1, characterized in that, In step S4, the lightweight evaluation submodule is obtained by knowledge distillation of the student model using a large-scale pre-trained model as the teacher model; the evaluation dimensions of the text data include language fluency, semantic integrity, information density, and knowledge value.
7. The intelligent data preprocessing method for large model training according to claim 1, characterized in that, In step S5, intelligent data enhancement of text data includes synonym rewriting enhancement, sentence paraphrasing enhancement based on cross-language translation, and content expansion enhancement based on knowledge graph retrieval. The strategy conflict detection unit calculates the cosine similarity between the enhanced text vector and the original text vector in real time. If the cosine similarity is lower than the preset fidelity lower limit, the enhancement perturbation intensity is reduced and the enhancement is rolled back and re-enhanced. If the cosine similarity is higher than the preset fidelity upper limit, the enhancement strategy is switched or the enhancement perturbation intensity is increased.
8. The intelligent data preprocessing method for large model training according to claim 1, characterized in that, In step S5, intelligent data enhancement for image data includes denoising and color correction restoration enhancement, super-resolution enhancement enhancement, and contextual background enrichment enhancement; intelligent data enhancement for code data includes code structure abstraction enhancement based on abstract syntax tree and control flow graph, identifier variable renaming enhancement, and auxiliary code fragment synthesis enhancement.
9. The intelligent data preprocessing method for large model training according to claim 1, characterized in that, In step S5, the secondary manifold verification specifically involves: re-extracting high-dimensional feature vectors from the newly generated enhanced samples and pushing them back to the vector storage management system; recalculating the manifold fit score and overall quality score of the newly generated enhanced samples; and determining that the verification is qualified and the samples are transferred to the available data pool only when the overall quality score of the newly generated enhanced samples reaches the first quality threshold.
