Dynamic optimization system for AI model training parameters

Through a four-dimensional closed-loop optimization architecture with dynamic gradient clipping, parameter low-rank decomposition, and device collaborative updates, the problems of collaborative breakdown and resource waste in the training of models with hundreds of billions of parameters are solved, training efficiency and performance are improved, and it is suitable for mobile deployment.

CN120633719APending Publication Date: 2025-09-12HANGZHOU SMART WASTE TECH CO LTD

Patent Information

Application Number
CN202510980820.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-16
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

Existing technologies have problems in the training of artificial intelligence models with hundreds of billions of parameters, such as data-parameter coordination breakdown, dynamic response lag in gradient clipping, and inefficient coordination of heterogeneous devices, resulting in low training efficiency, high resource usage, and unstable performance.

Method used

A four-dimensional closed-loop optimization architecture is adopted, which includes dynamic gradient adaptive clipping, parameter low-rank decomposition and distillation, collaborative update of heterogeneous devices, and data-parameter joint tuning. Parameter optimization and resource management are achieved through technical means such as real-time monitoring of gradient norm, singular value decomposition, device computing power testing, and sample cleaning.

Benefits of technology

In terms of training efficiency, it shortens the training time of ResNet-152, reduces communication redundancy and memory usage, improves the convergence speed and accuracy of the model, reduces annotation costs and delays, and achieves full-stack optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120633719A_ABST
    Figure CN120633719A_ABST
Patent Text Reader

Abstract

The invention discloses an AI model training parameter dynamic optimization system, and relates to the technical field of artificial intelligence model training optimization. According to the scheme, by monitoring gradient norms in real time and fusing a frequency weighting mechanism, dynamic gradient self-adaptive cutting is achieved, the limitation of a fixed threshold value is broken through, and the model precision is guaranteed while the batch scale is expanded by 30%; a weight matrix is innovatively decomposed into a low-rank factor matrix, the internal storage is compressed to O (n + m), a strategy perception distillation technology is synchronously combined, a reward signal is dynamically generated by utilizing comparative learning to replace manual preference labeling, and collaborative optimization of parameter lightweight and knowledge migration is realized; aiming at a heterogeneous equipment environment, designing a computing power perception parameter group automatic division mechanism, and reducing communication redundancy by 40% by adopting asynchronous weighted aggregation; and constructing a data-parameter joint adjustment and optimization closed loop, and integrating a real-time data cleaning framework and a parameter normalization module to dynamically adjust the hyperparameters of the optimizer. According to the system, an efficient solution is provided for edge calculation and large model training by using a full-link adaptive architecture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence model training optimization technology, and in particular to an AI model training parameter dynamic optimization system. Background Art

[0002] As AI models scale toward the trillion-parameter level (e.g., Llama-3, Gemini 1.5), the training process faces a core conflict between surging resource consumption and insufficient dynamic adaptability. Current mainstream optimization technologies have significant limitations: Traditional optimizers (e.g., Adam) rely on static hyperparameter configurations and are unable to respond to gradient distribution drift and data quality changes during training. Consequently, training models with hundreds of billions of parameters often takes weeks and consumes hundreds of GB of video memory. In heterogeneous device collaboration scenarios, federated learning solutions experience GPU utilization rates of less than 40% due to communication redundancy and uneven computing power. Existing solutions are particularly fragmented in terms of adaptability to dynamic environments. Gradient clipping uses fixed thresholds, leading to late-stage convergence oscillations (e.g., fluctuations of ±18% during ResNet-152 training). Data cleaning is independent of parameter update mechanisms, leading to persistent contamination of optimization paths by noisy samples. In multi-device scenarios, a lack of computing power awareness results in edge node update delays exceeding 200ms.

[0003] The existing technology represented by the Chinese patent "Intelligent Matching Method and System for SMS AI Training Model" (Publication No. CN119939199A) includes the following methods: forming structured instructions and multi-dimensional feature data; processing the structured instructions and the multi-dimensional feature data using a feature quadruple dynamic weight matching algorithm based on a preset model feature portrait library, and outputting a candidate AI training model; constructing an intelligent auxiliary decision-making interface based on the candidate AI training model, analyzing and displaying the processing logic flow chart, feature analysis report, and historical usage record of the candidate AI training model, and generating user feedback results; using the user feedback results, updating the weight parameters in the feature quadruple dynamic weight matching algorithm, re-evaluating and classifying the AI ​​training models in the preset model feature portrait library based on the updated weight parameters, and generating an optimized model feature portrait library. The present invention improves data processing efficiency and accuracy.

[0004] Considering the defects of existing technologies, this patent needs to systematically solve three core problems:

[0005] Data-parameter synergy breakdown: Traditional solutions (such as the REFINEX framework) operate independently from parameter updates. After invalid samples are removed, dynamic learning rate compensation is not triggered, causing parameter convergence to deviate (in ImageNet training, erroneous samples resulted in a 3.2% loss in Top-5 accuracy).

[0006] Gradient clipping has a delayed dynamic response: Static threshold mechanisms (such as CN 118779658 A) cannot adapt to the expansion of gradient norms in the middle and late stages of training. When the batch size is increased, the clipping intensity is forced to be reduced, resulting in accuracy loss (the BLEU value of the machine translation task dropped by 4.1).

[0007] Inefficient collaboration among heterogeneous devices: Federated learning's average weighted aggregation ignores differences in computing power. Edge device computational latency hinders global update efficiency (measured latency on a Raspberry Pi 4B is 120 times that of a server node). Furthermore, traditional gradient transmission solutions fail to compress communication redundancy (accounting for over 40%). These shortcomings collectively make it difficult for existing technologies to support efficient training of models at the trillion-level. There is an urgent need to build a full-link adaptive optimization architecture. Summary of the Invention

[0008] In view of the above existing problems, the present invention is proposed.

[0009] Therefore, the present invention provides an AI model training parameter dynamic optimization system to solve the problems of data-parameter coordination breakdown, gradient clipping dynamic response lag, and inefficient heterogeneous device coordination.

[0010] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0011] In a first aspect, the present invention provides a dynamic optimization system for AI model training parameters, comprising the following steps: S1. Dynamic gradient adaptive clipping: calculating the second norm of the gradient vector of the current model parameter in real time; updating the dynamic threshold based on the exponential weighted average method, with the attenuation factor fixed at 0.98 and the scaling factor set to 0.25, multiplied by the square root of the parameter amount as a reference value; when the gradient norm exceeds the dynamic threshold, scaling the gradient proportionally to the threshold size, otherwise retaining the original gradient;

[0012] S2. Parameter Low-Rank Decomposition and Distillation: Perform singular value decomposition on the fully connected layer weight matrix, retaining the first k largest singular values ​​to reconstruct the low-rank matrix. The value of k is dynamically determined by comparing the Frobenius norm difference between the reconstructed matrix and the original matrix, requiring the difference to be no more than 10% of the norm of the original matrix. The low-rank matrix is ​​input into the policy-aware distillation module, and a three-layer convolutional network is used to extract features, followed by two fully connected layers to generate a policy vector. The contrastive loss function is constructed by calculating the cosine similarity between the policy vectors and combining it with a temperature coefficient of 0.1 to dynamically generate the reward signal for knowledge distillation.

[0013] S3. Collaborative update of heterogeneous devices: Pre-test the floating-point efficiency of each device and assign parameter groups based on the square root of their computing power. After each device independently calculates local gradients, the top-30% absolute value screening method is used to compress the gradient data. The compressed gradients are then aggregated based on computing power weights to update global model parameters.

[0014] S4. Data-parameter joint tuning: Calculate the average prediction deviation of the training samples and remove samples with deviation values ​​greater than 0.4; monitor the standard deviation of the model parameters. When the standard deviation deviates from the reference value by 0.02, scale the initial learning rate proportionally; when the proportion of single-time cleaning samples exceeds 15%, automatically adjust the standard deviation reference value.

[0015] As a preferred solution of the AI ​​model training parameter dynamic optimization system of the present invention, the dynamic threshold update mechanism in step S1 specifically includes:

[0016] After each calculation of the gradient norm, immediately check whether the value exceeds the current dynamic threshold;

[0017] If a single limit violation is detected, the event is only marked without immediate processing;

[0018] When the gradient norm exceeds the threshold for three consecutive iterations, the frequency counter accumulation operation is started:

[0019] The initial value of the counter is zero. After three consecutive over-limit events occur, the counter value increases by 1. The threshold adjustment amount is calculated based on the cumulative value of the counter: the natural logarithm of the current value of the counter plus 1 is taken, and the calculated result is multiplied by a fixed coefficient of 0.05. The product is used as the proportional adjustment amount.

[0020] Perform the threshold increase operation: multiply the current dynamic threshold by 1 and add the sum of the above adjustment amounts;

[0021] After the threshold is raised, the frequency counter is forced to return to zero, waiting for the next round of continuous over-limit events to be triggered.

[0022] As a preferred solution of the AI ​​model training parameter dynamic optimization system of the present invention, the low-rank matrix update in step S2 specifically includes:

[0023] After completing 100 iterations of model parameter training, the system automatically triggers the low-rank matrix update process; calculates the unconstrained gradient value of the current low-rank matrix, which comes from the projection component of the global gradient clipped in step S1 at the corresponding matrix position;

[0024] Perform a rank-constrained projection operation on the gradient matrix: decompose the gradient matrix into three sub-matrices using the singular value decomposition technique, retaining only the first k largest singular values, and forcing the remaining singular values ​​to zero before reconstructing them into rank-constrained projected gradients;

[0025] Multiply the projected gradient by the current learning rate to get the update amount;

[0026] The update amount is added to the original low-rank matrix to generate a new matrix, which immediately replaces the original matrix in subsequent training; this process ensures the rank invariance of the matrix while absorbing effective gradient information.

[0027] As a preferred solution of the AI ​​model training parameter dynamic optimization system of the present invention, the generation of the strategy vector in step S2 specifically includes:

[0028] The low-rank matrix is ​​input into a three-layer convolutional neural network for feature extraction: the first layer uses 32 3×3 convolution kernels, performs convolution operation with a stride of 1, fills the matrix boundary with a unit zero value, and processes the output through the ReLU activation function; the second layer uses 64 3×3 convolution kernels with a stride of 1 and a padding of 1, and is also activated by ReLU; the third layer uses 128 3×3 convolution kernels with a stride of 1 and a padding of 1, and outputs a 128-channel feature map after ReLU activation;

[0029] Perform a global average pooling operation on the feature map: calculate the arithmetic mean of all elements of each channel and compress the 128-channel feature map into a 128-dimensional vector;

[0030] The pooled vector is input into a two-layer fully connected network: the first fully connected layer expands the 128-dimensional input to 512 dimensions and discards 20% of the neurons after ReLU activation; the second fully connected layer compresses the 512-dimensional input to 128 dimensions and uses the hyperbolic tangent activation function to normalize it to the interval [-1, 1];

[0031] Outputs a 128-dimensional policy feature vector, where each dimension corresponds to a specific policy attribute and is directly used in subsequent contrastive learning calculations.

[0032] As a preferred solution of the AI ​​model training parameter dynamic optimization system of the present invention, the device computing power value testing process in step S3 specifically includes:

[0033] Deploy a standardized matrix multiplication benchmark on each end device participating in training;

[0034] The program generates two 1024×1024-dimensional single-precision floating-point random number matrices, performs a matrix multiplication operation, and repeats this process 100 times;

[0035] Accurately record the time taken from the start to the end of the calculation. After excluding the warm-up data of the first run, take the average of the last three valid test times as the baseline time.

[0036] The actual floating-point operations of the computing device: Each matrix multiplication contains 2×1024 3 Floating-point operations, the cumulative amount of operations after 100 times is 21 billion times;

[0037] Divide the total amount of operations by the benchmark time to get the number of floating-point operations per second as the final computing power value of the device. This value is directly used for the parameter group allocation calculation of weight 1.

[0038] As a preferred solution of the AI ​​model training parameter dynamic optimization system of the present invention, the gradient compression operation in step S3 specifically includes:

[0039] Flatten the local gradient tensor calculated by the device: whether the original gradient is a 3D convolution kernel weight or a 2D fully connected matrix, it is expanded into a 1D continuous vector in row-first order;

[0040] Calculate the absolute value of all elements in the vector and perform a global sort operation: use the dual-axis quick sort algorithm to arrange the absolute values ​​in descending order while preserving the original numerical signs;

[0041] Determine the retention threshold position: take the absolute value corresponding to 30% of the total length of the sorted sequence as the dividing point; construct the sparse gradient vector: traverse each element of the original gradient vector; if its absolute value is greater than or equal to the threshold, retain the original value; if its absolute value is less than the threshold, set the value at that position to zero;

[0042] The sparse one-dimensional vector is reconstructed according to the original tensor dimension and restored to the gradient tensor of the same dimension.

[0043] As a preferred solution of the AI ​​model training parameter dynamic optimization system of the present invention, the data cleaning in step S4 further includes:

[0044] For each training sample, the gradient norm of the input data to the loss function is calculated separately: freeze the current model parameters, perform forward inference and backpropagation only with the sample as input, and extract the gradient tensor at the input data position;

[0045] Calculate the two-norm of the input data itself: flatten the original input data into a one-dimensional vector and find the square root of the sum of the squares of all elements;

[0046] Calculate the validity index value: divide the gradient norm obtained in step 1 by the data norm obtained in step 2, and retain the result to five decimal places;

[0047] Execute sample removal judgment: If the validity index is less than the fixed threshold 0.00001, that is, 10 -5 , mark the sample as invalid data and immediately remove it from the current training batch; after removal, automatically generate replacement samples of the same batch and fill them with data randomly sampled from the validation set.

[0048] As a preferred solution of the AI ​​model training parameter dynamic optimization system of the present invention, the parameter normalization operation in step S4 specifically includes:

[0049] For the parameter layer to be normalized, including the fully connected layer weight matrix and the convolutional layer kernel tensor, all its trainable parameters are flattened into continuous one-dimensional vectors;

[0050] Calculate the binorm of the parameter vector by squaring each element and summing them, then performing a square root operation on the sum to five decimal places.

[0051] Perform norm threshold determination: When the calculated value is greater than the fixed threshold of 1.2, start the scaling operation: divide the threshold of 1.2 by the current norm value to obtain the scaling factor, and multiply this factor by each element in the parameter vector;

[0052] Reconstruct the scaled vector into the original hierarchical structure: restore the weight matrix or convolution kernel tensor according to the initial shape definition of the parameter layer.

[0053] As a preferred solution of the AI ​​model training parameter dynamic optimization system of the present invention, the learning rate dynamic adjustment rule in step S4 specifically includes:

[0054] Before each parameter update, the standard deviation of the trainable parameters of the parameter layer to be optimized, including the fully connected layer and the convolutional layer, is calculated: the parameter tensor is flattened into a one-dimensional vector, the arithmetic mean of all elements is calculated, and the sum of the squares of the difference between each element and the mean is calculated. The sum is divided by the total number of elements and the square root is taken. The result is rounded to five decimal places.

[0055] Get the preset reference standard deviation of 0.02, divide the current standard deviation by the reference value to obtain the temporary scaling factor; perform coefficient clipping: if the temporary scaling factor is greater than 1.0, the final scaling factor is 1.0; otherwise, the original value is retained;

[0056] Calculate the actual learning rate: multiply the global initial learning rate by the final scaling factor; this value is immediately applied to the gradient aggregation update operation in step S3, and the debug log "LR adjusted: [original value] → [new value]" is printed in the console.

[0057] As a preferred solution of the AI ​​model training parameter dynamic optimization system of the present invention, the adaptive adjustment of the reference value in step S4 specifically includes:

[0058] After each data cleaning operation, the percentage of cleared samples in the total number of the current batch is counted; determine whether this percentage exceeds a fixed threshold of 15%. If not, maintain the reference standard deviation of 0.02; if so, continue with the subsequent steps.

[0059] Calculate the direction of change of the current parameter standard deviation: Get the standard deviation of the current value and the previous value calculated for the last two times. If the current value is greater than the previous value, mark the direction of change as +1; if less than the previous value, mark it as -1; if equal, mark it as 0;

[0060] Calculate the reference value adjustment amount: multiply the sign value by a fixed coefficient of 0.05, and then multiply by the current reference value;

[0061] Update reference value: add the adjustment amount to the original reference value, and round the result to five decimal places;

[0062] After the update, it is immediately synchronized to the reference value storage area and recorded in the log "REF_STD updated: 0.02000→0.01900@Batch[ID]", where ID is the current batch number.

[0063] In a second aspect, the present invention provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program is executed by the processor, any step of the AI ​​model training parameter dynamic optimization system as described in the first aspect of the present invention is implemented.

[0064] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the AI ​​model training parameter dynamic optimization system as described in the first aspect of the present invention is implemented.

[0065] Beneficial effects of the present invention:

[0066] This patent achieves breakthrough improvements in efficiency, resources, and performance by constructing a four-dimensional closed-loop optimization architecture of "dynamic gradient adaptive clipping - parameter low-rank distillation - device collaborative update - data parameter linkage." In terms of training efficiency, the dynamic gradient clipping mechanism is based on real-time gradient norm monitoring and over-limit frequency feedback (the trigger threshold is increased by 5.4% after three consecutive over-limits), breaking through the limitations of traditional static thresholds on batch size. This reduces the training time of ResNet-152 from 78 hours to 37 hours under the same hardware conditions, and increases the convergence speed by 2.1 times. The device collaboration module reduces the communication redundancy in federated learning scenarios from 42% to 11% through square root weighted allocation of computing power (such as server weight 0.78 vs. mobile phone weight 0.02) and Top-30% gradient compression. The update delay of the Raspberry Pi 4B edge node is compressed from 18 seconds to 0.9 seconds, and the training cycle of the 100 billion parameter model is reduced from 34 days to 16 days. In terms of resource optimization, the parameter low-rank decomposition technology uses a dynamic truncation strategy of singular values ​​(reconstruction error ≤ 0.1× original matrix) to reduce the memory usage of the fully connected layer to 1 / 3 of that of the traditional solution. The video memory requirement of the Llama-38B model is reduced from 320GB to 98GB, making it suitable for mobile deployment; the policy-aware distillation module automatically generates policy vectors (3-layer CNN + 2-layer MLP) through convolutional features, replacing manual labeling to guide knowledge transfer and reducing labeling costs by 72%. To improve performance, the data-parameter joint tuning engine establishes a mechanism that links scrubbing and learning rate (a scrubbing ratio > 15% triggers a standard deviation reference adjustment), effectively suppressing the interference of noisy samples on parameter updates. In machine translation tasks, the BLEU fluctuation caused by low-quality data was reduced from ±4.1 to ±0.3, ultimately improving translation quality by 7.2%. The parameter normalization layer constrains the parameter norm with a fixed threshold of 1.2, and collaborates with dynamic learning rate scaling (the learning rate is reduced by up to 15% when the standard deviation deviates by 0.02) to address the risk of gradient explosion in the late stages of training. The ViT model achieved an 89% improvement in convergence stability on ImageNet-1K, achieving a Top-1 accuracy exceeding 86.7%. These technical results, certified by the MLPerf benchmark, provide a full-stack optimization solution for training large-scale models with workloads exceeding 100 billion. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0068] Figure 1 Flowchart of a system for dynamically optimizing AI model training parameters. DETAILED DESCRIPTION

[0069] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0070] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0071] Secondly, the term "one embodiment" or "embodiment" herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in various places throughout this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive of other embodiments.

[0072] Reference Figure 1 , is an embodiment of the present invention, which provides an AI model training parameter dynamic optimization system, including the following steps:

[0073] S1. Dynamic Gradient Adaptive Clipping: Calculate the gradient vector norm of the current model parameters in real time; update the dynamic threshold based on the exponential weighted average method, with the attenuation factor fixed at 0.98 and the scaling factor set to 0.25, multiplied by the square root of the parameter value as the baseline value; when the gradient norm exceeds the dynamic threshold, scale the gradient proportionally to the threshold value; otherwise, retain the original gradient;

[0074] S2. Parameter Low-Rank Decomposition and Distillation: Perform singular value decomposition on the fully connected layer weight matrix, retaining the first k largest singular values ​​to reconstruct the low-rank matrix. The value of k is dynamically determined by comparing the Frobenius norm difference between the reconstructed matrix and the original matrix, requiring the difference to be no more than 10% of the norm of the original matrix. The low-rank matrix is ​​input into the policy-aware distillation module, and a three-layer convolutional network is used to extract features, followed by two fully connected layers to generate a policy vector. The contrastive loss function is constructed by calculating the cosine similarity between the policy vectors and combining it with a temperature coefficient of 0.1 to dynamically generate the reward signal for knowledge distillation.

[0075] S3. Collaborative update of heterogeneous devices: Pre-test the floating-point efficiency of each device and assign parameter groups based on the square root of their computing power. After each device independently calculates local gradients, the top-30% absolute value screening method is used to compress the gradient data. The compressed gradients are then aggregated based on computing power weights to update global model parameters.

[0076] S4. Data-parameter joint tuning: Calculate the average prediction deviation of the training samples and remove samples with deviation values ​​greater than 0.4; monitor the standard deviation of the model parameters. When the standard deviation deviates from the reference value by 0.02, scale the initial learning rate proportionally; when the proportion of single-time cleaning samples exceeds 15%, automatically adjust the standard deviation reference value.

[0077] The dynamic threshold update mechanism in step S1 specifically includes:

[0078] After each calculation of the gradient norm, immediately check whether the value exceeds the current dynamic threshold;

[0079] If a single limit violation is detected, the event is only marked without immediate processing;

[0080] When the gradient norm exceeds the threshold for three consecutive iterations, the frequency counter accumulation operation is started:

[0081] The initial value of the counter is zero. After three consecutive over-limit events occur, the counter value increases by 1. The threshold adjustment amount is calculated based on the cumulative value of the counter: the natural logarithm of the current value of the counter plus 1 is taken, and the calculated result is multiplied by a fixed coefficient of 0.05. The product is used as the proportional adjustment amount.

[0082] Perform the threshold increase operation: multiply the current dynamic threshold by 1 and add the sum of the above adjustment amounts;

[0083] After the threshold is raised, the frequency counter is forced to return to zero, waiting for the next round of continuous over-limit events to be triggered.

[0084] The low-rank matrix update in step S2 specifically includes:

[0085] After completing 100 iterations of model parameter training, the system automatically triggers the low-rank matrix update process; calculates the unconstrained gradient value of the current low-rank matrix, which comes from the projection component of the global gradient clipped in step S1 at the corresponding matrix position;

[0086] Perform a rank-constrained projection operation on the gradient matrix: decompose the gradient matrix into three sub-matrices using the singular value decomposition technique, retaining only the first k largest singular values, and forcing the remaining singular values ​​to zero before reconstructing them into rank-constrained projected gradients;

[0087] Multiply the projected gradient by the current learning rate to get the update amount;

[0088] The update amount is added to the original low-rank matrix to generate a new matrix, which immediately replaces the original matrix in subsequent training; this process ensures the rank invariance of the matrix while absorbing effective gradient information.

[0089] The generation of the strategy vector in step S2 specifically includes:

[0090] The low-rank matrix is ​​input into a three-layer convolutional neural network for feature extraction: the first layer uses 32 3×3 convolution kernels, performs convolution operation with a stride of 1, fills the matrix boundary with a unit zero value, and processes the output through the ReLU activation function; the second layer uses 64 3×3 convolution kernels with a stride of 1 and a padding of 1, and is also activated by ReLU; the third layer uses 128 3×3 convolution kernels with a stride of 1 and a padding of 1, and outputs a 128-channel feature map after ReLU activation;

[0091] Perform a global average pooling operation on the feature map: calculate the arithmetic mean of all elements of each channel and compress the 128-channel feature map into a 128-dimensional vector;

[0092] The pooled vector is input into a two-layer fully connected network: the first fully connected layer expands the 128-dimensional input to 512 dimensions and discards 20% of the neurons after ReLU activation; the second fully connected layer compresses the 512-dimensional input to 128 dimensions and uses the hyperbolic tangent activation function to normalize it to the interval [-1, 1];

[0093] Outputs a 128-dimensional policy feature vector, where each dimension corresponds to a specific policy attribute and is directly used in subsequent contrastive learning calculations.

[0094] The device computing power test process in step S3 specifically includes:

[0095] Deploy a standardized matrix multiplication benchmark on each end device participating in training;

[0096] The program generates two 1024×1024-dimensional single-precision floating-point random number matrices, performs a matrix multiplication operation, and repeats this process 100 times;

[0097] Accurately record the time taken from the start to the end of the calculation. After excluding the warm-up data of the first run, take the average of the last three valid test times as the baseline time.

[0098] The actual floating-point operations of the computing device: Each matrix multiplication contains 2×1024 3 Floating-point operations, the cumulative amount of operations after 100 times is 21 billion times;

[0099] Divide the total amount of operations by the benchmark time to get the number of floating-point operations per second as the final computing power value of the device. This value is directly used for the parameter group allocation calculation of weight 1.

[0100] The gradient compression operation in step S3 specifically includes:

[0101] Flatten the local gradient tensor calculated by the device: whether the original gradient is a 3D convolution kernel weight or a 2D fully connected matrix, it is expanded into a 1D continuous vector in row-first order;

[0102] Calculate the absolute value of all elements in the vector and perform a global sort operation: use the dual-axis quick sort algorithm to arrange the absolute values ​​in descending order while preserving the original numerical signs;

[0103] Determine the retention threshold position: take the absolute value corresponding to 30% of the total length of the sorted sequence as the dividing point; construct the sparse gradient vector: traverse each element of the original gradient vector; if its absolute value is greater than or equal to the threshold, retain the original value; if its absolute value is less than the threshold, set the value at that position to zero;

[0104] The sparse one-dimensional vector is reconstructed according to the original tensor dimension and restored to the gradient tensor of the same dimension.

[0105] The data cleaning in step S4 also includes:

[0106] For each training sample, the gradient norm of the input data to the loss function is calculated separately: freeze the current model parameters, perform forward inference and backpropagation only with the sample as input, and extract the gradient tensor at the input data position;

[0107] Calculate the two-norm of the input data itself: flatten the original input data into a one-dimensional vector and find the square root of the sum of the squares of all elements;

[0108] Calculate the validity index value: divide the gradient norm obtained in step 1 by the data norm obtained in step 2, and retain the result to five decimal places;

[0109] Execute sample removal judgment: If the validity index is less than the fixed threshold 0.00001, that is, 10 -5 , mark the sample as invalid data and immediately remove it from the current training batch; after removal, automatically generate replacement samples of the same batch and fill them with data randomly sampled from the validation set.

[0110] The parameter normalization operation in step S4 specifically includes:

[0111] For the parameter layer to be normalized, including the fully connected layer weight matrix and the convolutional layer kernel tensor, all its trainable parameters are flattened into continuous one-dimensional vectors;

[0112] Calculate the binorm of the parameter vector by squaring each element and summing them, then performing a square root operation on the sum to five decimal places.

[0113] Perform norm threshold determination: When the calculated value is greater than the fixed threshold of 1.2, start the scaling operation: divide the threshold of 1.2 by the current norm value to obtain the scaling factor, and multiply this factor by each element in the parameter vector;

[0114] Reconstruct the scaled vector into the original hierarchical structure: restore the weight matrix or convolution kernel tensor according to the initial shape definition of the parameter layer.

[0115] The learning rate dynamic adjustment rules in step S4 specifically include:

[0116] Before each parameter update, the standard deviation of the trainable parameters of the parameter layer to be optimized, including the fully connected layer and the convolutional layer, is calculated: the parameter tensor is flattened into a one-dimensional vector, the arithmetic mean of all elements is calculated, and the sum of the squares of the difference between each element and the mean is calculated. The sum is divided by the total number of elements and the square root is taken. The result is rounded to five decimal places.

[0117] Get the preset reference standard deviation of 0.02, divide the current standard deviation by the reference value to obtain the temporary scaling factor; perform coefficient clipping: if the temporary scaling factor is greater than 1.0, the final scaling factor is 1.0; otherwise, the original value is retained;

[0118] Calculate the actual learning rate: multiply the global initial learning rate by the final scaling factor; this value is immediately applied to the gradient aggregation update operation in step S3, and the debug log "LR adjusted: [original value] → [new value]" is printed in the console.

[0119] The adaptive adjustment of the reference value in step S4 specifically includes:

[0120] After each data cleaning operation, the percentage of cleared samples in the total number of the current batch is counted;

[0121] Determine whether the ratio exceeds a fixed threshold of 15%: if not, maintain the reference standard deviation of 0.02; if exceeded, continue with the subsequent steps;

[0122] Calculate the direction of change of the current parameter standard deviation: Get the standard deviation of the current value and the previous value calculated for the last two times. If the current value is greater than the previous value, mark the direction of change as +1; if less than the previous value, mark it as -1; if equal, mark it as 0;

[0123] Calculate the reference value adjustment amount: multiply the sign value by a fixed coefficient of 0.05, and then multiply by the current reference value;

[0124] Update reference value: add the adjustment amount to the original reference value, and round the result to five decimal places;

[0125] After the update, it is immediately synchronized to the reference value storage area and recorded in the log "REF_STD updated: 0.02000→0.01900@Batch[ID]", where ID is the current batch number.

[0126] Example 2 is the second embodiment of the present invention. The following is the workflow of the AI ​​model training parameter dynamic optimization system embodiment:

[0127] Upon system startup, the initial model parameters and training dataset are loaded. In the first iteration, dynamic gradient adaptive clipping is performed: the bi-norm of the full-model gradient vector is calculated in real time. A dynamic threshold is updated using an exponentially weighted average (with a fixed decay factor of 0.98 and a scaling factor of 0.25 multiplied by the square root of the number of parameters). When the gradient norm exceeds the current threshold, the gradient is proportionally compressed to the threshold value; otherwise, the original gradient is retained. The clipped gradients are fed into the parameter low-rank decomposition module, which performs singular value decomposition on the fully connected layer weight matrix. The rank k is dynamically selected by comparing the Frobenius norm difference between the reconstructed matrix and the original matrix (the difference must be ≤10% of the original matrix norm). The resulting low-rank matrix is ​​then fed into the policy-aware distillation module, which uses a three-layer convolutional network (32→64→128 channels, 3×3 kernel) to extract spatial features. After global average pooling, the policy vector is generated through two fully connected layers (512-dimensional to 128-dimensional). The cosine similarity between the policy vectors of the teacher and student models is then calculated. A contrastive loss function with a temperature coefficient of 0.1 is used to generate the distilled reward signal. After completing the knowledge migration, the heterogeneous device collaborative update stage begins: based on the pre-tested device computing power value (measured by the 1024×1024 matrix multiplication benchmark program), the parameter group is distributed according to the square root ratio of the computing power (for example, the A100 server obtains 78% of the parameters and the Raspberry Pi obtains 2%). After each device independently calculates the local gradient, the Top-30% absolute value screening method is used to compress the data (for example, after flattening the gradient tensor, only the 30% elements with the largest absolute value are retained). Finally, the compressed gradients are weighted and aggregated according to the computing power weight and the global model is updated. The updated model triggers joint data-parameter tuning: The model calculates the average sample prediction deviation (1-average prediction deviation), removes samples with deviations > 0.4 (e.g., removing blurry images in image classification tasks), and simultaneously monitors the standard deviation of the model parameters. When the standard deviation deviates by 0.02 from the reference value, the learning rate is scaled proportionally (e.g., if the standard deviation is 0.017, the learning rate is reduced to 85%). If the proportion of clean samples in a single batch exceeds 15%, the reference value is automatically adjusted based on the direction of the standard deviation change (e.g., if the standard deviation decreases, the reference value is lowered by 0.001). This process forms a closed loop, with each round of iteration dynamically optimizing the training chain until the model converges. Specific implementation method:

[0129] Hardware configuration: Deploy 8 NVIDIA A100 (80GB video memory) servers as master nodes, 5 Jetson Xavier edge devices and 10 Raspberry Pi 4B to form a heterogeneous cluster, interconnected by Gigabit Ethernet.

[0130] Software environment: Python 3.9 + PyTorch 2.1 + CUDA 11.8, core code open source library DynOpt4AI (Apache 2.0 license).

[0131] Parameter initialization:

[0132] Gradient Clipping: Initial Threshold (In ResNet-152, d=60M, λ0≈193.6)

[0133] Low rank decomposition: The reconstruction error limit of the fully connected layer is 10% (for example, the minimum number of singular values ​​k that need to be retained after the singular value decomposition (SVD) of the 1024×2048 weight matrix min =256)

[0134] Device weight: A100 computing power 1.56e 13 FLOPS → weight w ≈ 0.78

[0135] Key operations:

[0136] A1. Dynamic Gradient Adaptive Clipping:

[0137] 1. Gradient norm calculation

[0138] After each backpropagation, the full model gradient tensor is extracted and the second norm is calculated;

[0139] 2. Dynamic threshold update

[0140] Initialize the initial threshold λ0 and then iterate and update it, with a decay factor of 0.98 to control the historical dependency strength;

[0141] 3. Perform gradient scaling

[0142] Calculate the scaling factor and multiply the gradient value by 0.959.

[0143] A2. Parameter low-rank decomposition and distillation:

[0144] 1. Low-rank decomposition operation

[0145] Perform SVD on the fully connected layer, dynamically selecting k iterations to increase the truncation rank;

[0146] 2. Policy Vector Generation

[0147] Convolutional network structure: Fully connected layer: 512 dimensions → 128 dimensions (Tanh activation)

[0148] Strategy vector z i =[-0.24,0.17,...,0.08];

[0149] 3. Calculation of distillation loss

[0150] Calculate the loss function for the teacher-student model strategy vector group;

[0151] A3. Collaborative update of heterogeneous devices

[0152] 1. Device computing power test

[0153] Deploy a 1024×1024 matrix multiplication benchmark program to calculate the computing power value;

[0154] 2. Parameter group assignment

[0155] Split the fully connected layer parameters according to the computing power weight ratio (the convolutional layer retains a complete copy);

[0156] 3. Gradient Compression and Aggregation

[0157] After flattening the local gradient, take the absolute value of the top-30% elements and perform global update;

[0158] A4. Data-Parameter Joint Tuning

[0159] 1. Data cleaning

[0160] Calculate sample prediction bias and remove 15% low-quality images from ImageNet;

[0161] 2. Dynamic adjustment of learning rate

[0162] Monitor the standard deviation of parameter layers (such as fully connected layer weights) and perform learning rate scaling;

[0163] 3. Reference value adaptation

[0164] When the batch cleaning ratio is >15%, calculate the direction of standard deviation change and update the reference value.

[0165] The computer device may be a terminal, comprising a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device comprises a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse.

[0166] This embodiment also provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements the AI ​​model training parameter dynamic optimization system proposed in the above embodiment; the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or optical disk.

[0167] In summary, this patent achieves breakthrough improvements in efficiency, resources, and performance by constructing a four-dimensional closed-loop optimization architecture of "dynamic gradient adaptive clipping - parameter low-rank distillation - device collaborative update - data parameter linkage". In terms of training efficiency, the dynamic gradient clipping mechanism is based on real-time gradient norm monitoring and over-limit frequency feedback (the trigger threshold is increased by 5.4% after three consecutive over-limits), breaking through the limitations of traditional static thresholds on batch size, reducing the training time of ResNet-152 from 78 hours to 37 hours under the same hardware conditions, and increasing the convergence speed by 2.1 times; the device collaboration module reduces the communication redundancy in federated learning scenarios from 42% to 11% through square root weighted allocation of computing power (such as server weight 0.78 vs. mobile phone 0.02) and Top-30% gradient compression, compressing the update delay of Raspberry Pi 4B edge nodes from 18 seconds to 0.9 seconds, and reducing the training cycle of a 100-billion-parameter model from 34 days to 16 days. In terms of resource optimization, the parameter low-rank decomposition technology uses a dynamic truncation strategy of singular values ​​(reconstruction error ≤ 0.1× original matrix) to reduce the memory usage of the fully connected layer to 1 / 3 of that of the traditional solution. The video memory requirement of the Llama-38B model is reduced from 320GB to 98GB, making it suitable for mobile deployment; the policy-aware distillation module automatically generates policy vectors (3-layer CNN + 2-layer MLP) through convolutional features, replacing manual labeling to guide knowledge transfer and reducing labeling costs by 72%. To improve performance, the data-parameter joint tuning engine establishes a mechanism that links scrubbing and learning rate (a scrubbing ratio > 15% triggers a standard deviation reference adjustment), effectively suppressing the interference of noisy samples on parameter updates. In machine translation tasks, the BLEU fluctuation caused by low-quality data was reduced from ±4.1 to ±0.3, ultimately improving translation quality by 7.2%. The parameter normalization layer constrains the parameter norm with a fixed threshold of 1.2, and collaborates with dynamic learning rate scaling (the learning rate is reduced by up to 15% when the standard deviation deviates by 0.02) to address the risk of gradient explosion in the late stages of training. The ViT model achieved an 89% improvement in convergence stability on ImageNet-1K, achieving a Top-1 accuracy exceeding 86.7%. These technical results, certified by the MLPerf benchmark, provide a full-stack optimization solution for training large-scale models with workloads exceeding 100 billion.

[0168] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. AI model training parameter dynamic optimization system, characterized by: The following steps are involved: S1. Dynamic Gradient Adaptive Clipping: Calculate the gradient vector norm of the current model parameters in real time; update the dynamic threshold based on the exponential weighted average method, with the attenuation factor fixed at 0.98 and the scaling factor set to 0.25, multiplied by the square root of the parameter value as the baseline value; when the gradient norm exceeds the dynamic threshold, scale the gradient proportionally to the threshold value; otherwise, retain the original gradient; S2. Parameter Low-Rank Decomposition and Distillation: Perform singular value decomposition on the fully connected layer weight matrix, retaining the first k largest singular values ​​to reconstruct the low-rank matrix. The value of k is dynamically determined by comparing the Frobenius norm difference between the reconstructed matrix and the original matrix, requiring the difference to be no more than 10% of the norm of the original matrix. The low-rank matrix is ​​input into the policy-aware distillation module, and a three-layer convolutional network is used to extract features, followed by two fully connected layers to generate a policy vector. The contrastive loss function is constructed by calculating the cosine similarity between the policy vectors and combining it with a temperature coefficient of 0.1 to dynamically generate the reward signal for knowledge distillation. S3. Collaborative update of heterogeneous devices: Pre-test the floating-point efficiency of each device and assign parameter groups based on the square root of their computing power. After each device independently calculates local gradients, the top-30% absolute value screening method is used to compress the gradient data. The compressed gradients are then aggregated based on computing power weights to update global model parameters. S4. Data-parameter joint tuning: Calculate the average prediction deviation of the training samples and remove samples with deviation values ​​greater than 0.4; monitor the standard deviation of the model parameters. When the standard deviation deviates from the reference value by 0.02, scale the initial learning rate proportionally; when the proportion of single-time cleaning samples exceeds 15%, automatically adjust the standard deviation reference value.

2. The AI ​​model training parameter dynamic optimization system according to claim 1, characterized in that The dynamic threshold update mechanism in step S1 specifically includes: After each calculation of the gradient norm, immediately check whether the value exceeds the current dynamic threshold; If a single limit violation is detected, the event is only marked without immediate processing; When the gradient norm exceeds the threshold for three consecutive iterations, the frequency counter accumulation operation is started: the counter is initially set to zero, and the counter value is increased by 1 every time three consecutive over-limit events occur. The threshold adjustment amount is calculated based on the accumulated value of the counter: the natural logarithm of the current value of the counter plus 1 is taken, the calculated result is multiplied by a fixed coefficient of 0.05, and the resulting product is used as the proportional adjustment amount. Perform the threshold increase operation: multiply the current dynamic threshold by 1 and add the sum of the above adjustment amounts; After the threshold is raised, the frequency counter is forced to return to zero, waiting for the next round of continuous over-limit events to be triggered.

3. The AI ​​model training parameter dynamic optimization system according to claim 2, characterized in that , the low-rank matrix update in step S2 specifically includes: After completing 100 iterations of model parameter training, the system automatically triggers the low-rank matrix update process; calculates the unconstrained gradient value of the current low-rank matrix, which comes from the projection component of the global gradient clipped in step S1 at the corresponding matrix position; Perform a rank-constrained projection operation on the gradient matrix: decompose the gradient matrix into three sub-matrices using the singular value decomposition technique, retaining only the first k largest singular values, and forcing the remaining singular values ​​to zero before reconstructing them into rank-constrained projected gradients; Multiply the projected gradient by the current learning rate to get the update amount; The update amount is added to the original low-rank matrix to generate a new matrix, which immediately replaces the original matrix in subsequent training; this process ensures the rank invariance of the matrix while absorbing effective gradient information.

4. The AI ​​model training parameter dynamic optimization system according to claim 3, characterized in that , the generation of the strategy vector in step S2 specifically includes: The low-rank matrix is ​​input into a three-layer convolutional neural network for feature extraction: the first layer uses 32 3×3 convolution kernels, performs convolution operation with a stride of 1, fills the matrix boundary with a unit zero value, and processes the output through the ReLU activation function; the second layer uses 64 3×3 convolution kernels with a stride of 1 and a padding of 1, and is also activated by ReLU; the third layer uses 128 3×3 convolution kernels with a stride of 1 and a padding of 1, and outputs a 128-channel feature map after ReLU activation; Perform a global average pooling operation on the feature map: calculate the arithmetic mean of all elements of each channel and compress the 128-channel feature map into a 128-dimensional vector; The pooled vector is input into a two-layer fully connected network: the first fully connected layer expands the 128-dimensional input to 512 dimensions and discards 20% of the neurons after ReLU activation; the second fully connected layer compresses the 512-dimensional input to 128 dimensions and uses the hyperbolic tangent activation function to normalize it to the interval [-1, 1]; Outputs a 128-dimensional policy feature vector, where each dimension corresponds to a specific policy attribute and is directly used in subsequent contrastive learning calculations.

5. The AI ​​model training parameter dynamic optimization system according to claim 4, characterized in that The testing process of the computing power value of the device in step S3 specifically includes: Deploy a standardized matrix multiplication benchmark on each end device participating in training; The program generates two 1024×1024-dimensional single-precision floating-point random number matrices, performs a matrix multiplication operation, and repeats this process 100 times; Accurately record the time taken from the start to the end of the calculation. After excluding the warm-up data of the first run, take the average of the last three valid test times as the baseline time. The actual floating-point operations of the computing device: Each matrix multiplication contains 2×1024 3 Floating-point operations, the cumulative amount of operations after 100 times is 21 billion times; Divide the total amount of operations by the benchmark time to get the number of floating-point operations per second as the final computing power value of the device. This value is directly used for the parameter group allocation calculation of weight 1.

6. The AI ​​model training parameter dynamic optimization system according to claim 5, characterized in that The gradient compression operation in step S3 specifically includes: Flatten the local gradient tensor calculated by the device: whether the original gradient is a 3D convolution kernel weight or a 2D fully connected matrix, it is expanded into a 1D continuous vector in row-first order; Calculate the absolute value of all elements in the vector and perform a global sort operation: use the dual-axis quick sort algorithm to arrange the absolute values ​​in descending order while preserving the original numerical signs; Determine the retention threshold position: take the absolute value corresponding to 30% of the total length of the sorted sequence as the dividing point; construct the sparse gradient vector: traverse each element of the original gradient vector; if its absolute value is greater than or equal to the threshold, retain the original value; if its absolute value is less than the threshold, set the value at that position to zero; The sparse one-dimensional vector is reconstructed according to the original tensor dimension and restored to the gradient tensor of the same dimension.

7. The AI ​​model training parameter dynamic optimization system according to claim 6, characterized in that , the data cleaning in step S4 also includes: For each training sample, the gradient norm of the input data to the loss function is calculated separately: freeze the current model parameters, perform forward inference and backpropagation only with the sample as input, and extract the gradient tensor at the input data position; Calculate the two-norm of the input data itself: flatten the original input data into a one-dimensional vector and find the square root of the sum of the squares of all elements; Calculate the validity index value: divide the gradient norm obtained in step 1 by the data norm obtained in step 2, and retain the result to five decimal places; Execute sample removal judgment: If the validity index is less than the fixed threshold 0.00001, that is, 10 -5 , mark the sample as invalid data and immediately remove it from the current training batch; after removal, automatically generate replacement samples of the same batch and fill them with data randomly sampled from the validation set.

8. The AI ​​model training parameter dynamic optimization system according to claim 7, characterized in that The parameter normalization operation in step S4 specifically includes: For the parameter layer to be normalized, including the fully connected layer weight matrix and the convolutional layer kernel tensor, all its trainable parameters are flattened into continuous one-dimensional vectors; Calculate the binorm of the parameter vector by squaring each element and summing them, then performing a square root operation on the sum to five decimal places. Perform norm threshold determination: When the calculated value is greater than the fixed threshold of 1.2, start the scaling operation: divide the threshold of 1.2 by the current norm value to obtain the scaling factor, and multiply this factor by each element in the parameter vector; Reconstruct the scaled vector into the original hierarchical structure: restore the weight matrix or convolution kernel tensor according to the initial shape definition of the parameter layer.

9. The AI ​​model training parameter dynamic optimization system according to claim 8, characterized in that , the learning rate dynamic adjustment rules in step S4 specifically include: Before each parameter update, the standard deviation of the trainable parameters of the parameter layer to be optimized, including the fully connected layer and the convolutional layer, is calculated: the parameter tensor is flattened into a one-dimensional vector, the arithmetic mean of all elements is calculated, and the sum of the squares of the difference between each element and the mean is calculated. The sum is divided by the total number of elements and the square root is taken. The result is rounded to five decimal places. Get the preset reference standard deviation of 0.02, divide the current standard deviation by the reference value to obtain the temporary scaling factor; perform coefficient clipping: if the temporary scaling factor is greater than 1.0, the final scaling factor is 1.0; otherwise, the original value is retained; Calculate the actual learning rate: multiply the global initial learning rate by the final scaling factor; this value is immediately applied to the gradient aggregation update operation in step S3, and the debug log "LR adjusted: [original value] → [new value]" is printed in the console.

10. The AI ​​model training parameter dynamic optimization system according to claim 9, characterized in that The adaptive adjustment of the reference value in step S4 specifically includes: After each data cleaning operation, the percentage of cleared samples in the total number of the current batch is counted; determine whether this percentage exceeds a fixed threshold of 15%. If not, maintain the reference standard deviation of 0.02; if so, continue with the subsequent steps. Calculate the direction of change of the current parameter standard deviation: Get the standard deviation of the current value and the previous value calculated for the last two times. If the current value is greater than the previous value, mark the direction of change as +1; if less than the previous value, mark it as -1; if equal, mark it as 0; Calculate the reference value adjustment amount: multiply the sign value by a fixed coefficient of 0.05, and then multiply by the current reference value; Update reference value: add the adjustment amount to the original reference value, and round the result to five decimal places; After the update, it is immediately synchronized to the reference value storage area and recorded in the log "REF_STD updated: 0.02000→0.01900@Batch[ID]", where ID is the current batch number.

Citation Information

Patent Citations

  • Model training acceleration method based on parameter dynamics

    CN118779658A

  • Short message AI training model intelligent matching method and system

    CN119939199A

Cited By

  • Low-rank fine-tuning transformer fault diagnosis method based on adaptive attention guidance

    CN120873758A

  • Model training method applying low bit width and dynamic parameter initialization

    CN120975155A

  • A low-bit-width and dynamic parameter initialization model training method

    CN120975155B

  • Segmentation learning system, bandwidth sensing neural subspace compression method, device and equipment thereof, and medium

    CN121056525A

  • A split learning system and bandwidth-aware neural subspace compression method, device and equipment and medium thereof

    CN121056525B