Large Model Training Optimizers: Evolution and New Matrix-Based Methods
This article explains the role of optimizers in large model training, from basic gradient descent and its stability challenges to stochastic gradient descent with momentum and adaptive methods. It then examines emerging matrix-level optimization approaches that aim to use matrix structure, reduce optimizer-state memory, and improve hardware efficiency, and it outlines how to evaluate and configure new optimizers in engineering practice.
In large model training, model architecture, data quality, and compute resources are important, but the component that ultimately determines how parameters change is often the optimizer. It receives gradient information from the loss function with respect to the parameters and then computes parameter updates according to a mathematical strategy. Think of it as the “navigation system” in training: the loss function indicates the current state of the model, the gradient points out the local descent direction, and the optimizer decides how far to move next, whether to retain historical experience, and how to handle update differences across parameters.
In recent years, technical discussions around large model training have paid increasing attention to new optimizers. Compared with traditional methods, these optimizers usually attempt to reduce memory overhead, improve training stability, and achieve better convergence efficiency under the same compute budget. To understand these methods, it is helpful to start with the basic mechanism of gradient descent.
1. What Problem Does an Optimizer Solve?
Let the model parameters be (\theta) and the training objective be a loss function (L(\theta)). The most basic gradient descent update rule is:
[
\theta_{t+1}=\theta_t-\eta\nabla L(\theta_t)
]
Here, (\nabla L(\theta_t)) represents the gradient at the current parameter position, and (\eta) represents the learning rate.
This formula looks simple, but practical training presents three typical difficulties.
1.1 Learning Rate Too Large or Too Small
If the learning rate is too large, the parameters may repeatedly jump around the optimum or even diverge. If the learning rate is too small, training becomes very slow and may fail to reach a satisfactory result within a limited time.
More complex still, different directions of the loss function may have very different curvature. Some directions are steep, where a small movement causes a large fluctuation in loss; other directions are flat, where a larger step is needed to make noticeable progress. A single fixed step size is therefore usually insufficient for high-dimensional parameter spaces.
1.2 Narrow Ravines Cause Oscillation
In many neural network loss surfaces, the optimal region is not a regular circular valley but a narrow, curved ravine. When moving along steep directions, parameters tend to oscillate from side to side; when moving along flat directions, progress is very slow.
If decisions are based only on the current gradient, the optimization process may exhibit repeated sideways oscillation and slow forward progress. This is an important reason why simple stochastic gradient descent is limited in complex models.
1.3 Gradient Noise and Local Anomalies
Large model training generally computes gradients on small batches of data. Because each batch contains only a subset of the full dataset, the resulting gradients often contain random noise. Noise can sometimes help the model escape undesirable regions, but excessive noise can also cause training instability, manifesting as sudden loss spikes, gradient explosion, or abnormal parameter updates.
A practical optimizer therefore should not only “look at the current gradient” but also have some historical memory and noise-suppression capability.
2. From Stochastic Gradient Descent to Momentum
Stochastic gradient descent is the most basic training method. It computes gradients on each small batch and updates parameters along the negative gradient direction. Compared with batch gradient descent using all samples, stochastic gradient descent has lower computational cost and provides a degree of random exploration.
Its problems are also clear: each step depends heavily on the current batch, and the update direction may change frequently. To address this, researchers introduced momentum.
Momentum maintains a velocity variable:
[
vt=\beta v{t-1}+(1-\beta)g_t
]
[
\theta_{t+1}=\theta_t-\eta v_t
]
Here, (g_t) is the current gradient, and (\beta) controls how much historical information is retained.
Think of it as an object with inertia moving over a terrain. The current gradient determines the new force direction, while the historical velocity determines whether the model continues moving in its previous direction. When gradients in a certain direction remain consistent over time, momentum accumulates and accelerates the model through flat regions. When gradients fluctuate back and forth in a direction, historical information can offset part of the oscillation.
This idea corresponds to the classical heavy-ball method. Its key value is that the optimization process no longer turns instantly without mass; instead, it has a degree of continuity and inertia. For narrow ravines and loss surfaces with large curvature differences, momentum can often significantly improve training efficiency.
However, momentum also carries risks. If too much historical direction accumulates while the current objective has already changed, the model may suffer from excessive inertia and overshoot a suitable region. Momentum coefficients and learning rates therefore still need to be set appropriately.
3. Core Ideas of Adaptive Optimization Methods
To further address inconsistencies in the scale of different parameter directions, adaptive optimization methods maintain independent statistics for different parameters.
One typical approach records first-order and second-order information from gradients:
[
mt=\beta_1m{t-1}+(1-\beta_1)g_t
]
[
vt=\beta_2v{t-1}+(1-\beta_2)g_t^2
]
The update magnitude is then adjusted according to the historical mean and mean square of gradients. Intuitively, if a parameter direction consistently produces large gradients, the algorithm appropriately reduces the step size in that direction; if gradients in a direction are small, the update can be relatively enlarged.
The advantages of this approach include:
- Using differentiated step sizes for different parameters;
- Providing some smoothing of small-batch gradient noise;
- Being less sensitive to the initial learning rate;
- Usually making it easier to obtain stable descent in the early stage of training.
But the costs are also obvious. Because additional first-order and second-order states must be stored for parameters, optimizer states may consume a large amount of memory. For models with billions or more parameters, the parameters themselves, gradients, and optimizer states often together create the main memory pressure.
In addition, adaptive methods do not necessarily achieve the best generalization on all tasks. Faster training loss reduction does not necessarily mean better performance on unseen data. In practical projects, it is therefore necessary to consider convergence speed, final accuracy, training stability, and resource cost together.
4. Breakthrough Directions of New Matrix Optimization Approaches
In recent years, some new optimization methods have begun to re-examine the traditional practice of “element-wise updates.” For large neural networks, parameters usually exist in matrix form. Although element-wise processing is simple to implement, it does not fully exploit the overall structure of matrices.
One representative idea is to first transform the gradient matrix so that its direction and scale become more regular, and then use it for parameter updates. The core goal is not simply to scale the step size of each element separately, but to extract a more stable update direction from the overall geometric structure of the matrix.
These methods usually focus on the following issues:
4.1 Preserve the Overall Geometric Relationships of the Matrix
Different columns and feature directions in a matrix may be correlated. Element-wise normalization can easily ignore this structure, while matrix-level processing can better reflect the overall direction in parameter space.
4.2 Reduce Optimizer State Overhead
If complex second-order statistics no longer need to be stored for every parameter, there is an opportunity to reduce additional memory usage. This is especially important for large-scale training, because the saved memory can be used to increase batch size, extend sequence length, or support larger models.
4.3 Improve Hardware Execution Efficiency
Matrix operations are usually easier to map onto accelerated hardware. Compared with large numbers of fine-grained, element-wise operations, regular matrix multiplication, normalization, and batch computation are more conducive to improving parallelism.
4.4 Balance Stability and Generalization
New methods do not merely pursue faster descent; they also need to avoid excessive bias in the update direction. Ideally, an optimizer should explore quickly in the early stage of training, remain stable near a relatively good region, and reduce overfitting to noise from specific batches.
It is important to emphasize that matrix-level optimization is not naturally suitable for all parameters. Vector parameters, scalar parameters, normalization layer parameters, and embedding-type parameters may have different structures. Practical implementations often need grouping strategies: use matrix-level updates for weights suitable for matrix operations, while retaining simpler update methods for other parameters.
5. How to Evaluate a New Optimizer
To judge whether an optimizer is truly effective, it is not enough to look only at the loss curve from a single experiment. It is advisable to evaluate it from the following dimensions.
5.1 Convergence Speed
Observe the number of training steps required to reach the same training loss or validation metric. Fewer steps may imply lower computational cost, but this must be judged together with the actual computational overhead of each step.
5.2 Memory Footprint
Record the memory consumption of parameters, gradients, optimizer states, and temporary tensors. For large model training, reducing optimizer states often has more engineering value than simply reducing computation.
5.3 Numerical Stability
Focus on gradient explosion, abnormal loss spikes, sudden increases in update magnitude, and overflow issues under mixed precision. An optimizer with insufficient stability may be difficult to use for long training runs, even if its average convergence speed is faster.
5.4 Final Generalization Ability
Training loss is only a process metric. Validation set performance, downstream task results, and stability under different data distributions better reflect the practical value of an optimizer.
5.5 Sensitivity to Hyperparameters
If a method works only within a very narrow parameter range, its practical maintenance cost will be high. A good optimizer should offer relatively tolerant configuration space for learning rate, momentum, and weight decay.
6. Configuration Recommendations in Engineering Practice
When using any new optimization method, it is not advisable to replace the existing optimizer directly and immediately scale up training. A more reliable process is:
- First validate the loss curve and gradient stability with a small-scale model;
- Fix the data, model structure, and number of training steps to conduct fair comparisons;
- Measure computation time, memory usage, and communication overhead separately;
- Check result fluctuations across different random seeds;
- Expand model and data scale only after confirming that basic metrics are stable;
- Set independent update rules for special parameter groups;
- Keep training logs, gradient norms, and learning rate changes to facilitate troubleshooting.
A general training pseudocode is as follows:
for batch in data_loader:loss = model(batch)gradients = backward(loss)optimizer_state = update_state(gradients,optimizer_state)updates = compute_parameter_update(gradients,optimizer_state,learning_rate)apply_updates(model, updates)
The parts that truly reflect differences between optimizers are mainly concentrated in state updates and parameter update rules. Engineering implementations also need to consider gradient clipping, weight decay, learning rate warmup, learning rate decay, and mixed precision.
7. Conclusion
The optimizer is not an auxiliary component in the training pipeline. It is the core mechanism connecting gradient information with changes in model parameters. From stochastic gradient descent to momentum methods, and then to optimizers with adaptive statistics, technical evolution has consistently centered on several goals: making update directions more reliable, making step sizes more reasonable, making training more stable, and reducing the resources required for large model training.
The value of new matrix-level optimization methods is mainly reflected in three aspects: using the overall structure of parameter matrices, reducing memory pressure caused by additional states, and improving hardware execution efficiency. Whether they are suitable for a specific task, however, still needs to be verified through rigorous experiments; theoretical advantages alone are not enough.
For developers, the key to understanding optimizers is not to memorize the name of a particular method, but to grasp the questions behind it: Is the current gradient reliable? Should historical information be retained? Do different directions need different step sizes? Is the additional state worth the cost? And how should training speed be balanced against final generalization? Only by combining algorithm mechanisms, model structure, and engineering resources can one truly choose a training solution suitable for the actual scenario.
