Optimizer Breakthroughs Behind the Latest LLM API Upgrades
This article explains why API changes are only surface-level signals of new LLM releases, while optimizer and parallelism choices in training are the real underlying variables. It walks through what optimizers do, how they evolved from plain gradient descent to momentum and adaptive methods, and why matrix-based optimizers are now drawing attention. It also covers engineering considerations for adoption, along with practical selection advice for different training scales.
1. Introduction: API Upgrades Are the Surface, Training Paradigms Are the Underlying Variable
Whenever a new generation of large models shows a clear jump in capability, the discussion usually focuses on surface-level changes such as API shape, context length, and invocation patterns. From an engineering perspective, however, the API is only the external outlet for capability. What really determines whether a model can be trained, trained stably, and trained quickly is the optimizer and parallelism strategy used during training.
In recent industry discussions about the training details of new-generation large models, the focus has not been the API itself, but the introduction of a new class of optimizers. Using neutral and general technical language, this article systematically reviews the evolution and key technical points of the optimizer as an “invisible piece of infrastructure.”
2. What an Optimizer Does: The Decision-Making Core in a Descent Problem
Training can be compared to a blindfolded person placed in a continuous mountain range, with the goal of reaching the lowest valley. Only two types of information are available:
- Loss value: tells you the current altitude;
- Gradient: like probing the slope with your feet, indicating which direction leads downhill.
The optimizer is the walking strategy in the decision-making core: it decides which direction to step in next and how large that step should be. It usually has to solve three things at the same time.
2.1 Step Size Control (Learning Rate Scheduling)
If the step is too large, it can jump straight across the valley and up the opposite slope, showing up as loss oscillation and failure to converge. If the step is too small, convergence becomes extremely slow and a large amount of compute is wasted. An ideal optimizer should adapt automatically: speed up in flat regions and slow down in steep regions or near the valley bottom.
2.2 Escaping Local Minima and Saddle Points
The mountain range is dotted with small pits halfway up the slopes, corresponding to local minima on the loss surface. In high-dimensional spaces, saddle points are even more common. Relying only on “go wherever it is lower” makes it easy to get stuck. The optimizer needs additional mechanisms to help parameters move past these “false valley bottoms.”
2.3 Scale Consistency of Parameter Updates
Gradient magnitudes differ greatly across parameters. A uniform step size can cause some parameters to oscillate while others barely move. The optimizer needs to normalize historical information for each parameter so that updates are more balanced.
3. Evolution: From Plain Gradient Descent to Momentum and Adaptive Methods
3.1 Plain Gradient Descent: The Physical Paradox of a Massless Particle
The idea of stochastic gradient descent can be traced back to Cauchy in the mid-nineteenth century. But standard gradient descent implies an unrealistic assumption: parameter updates behave like a “massless particle” that can instantly reach top speed and instantly stop, completely violating the common sense of inertia. In narrow, canyon-like terrain, it keeps bouncing back and forth between the two walls, which is highly inefficient.
3.2 The Heavy-Ball Method: Adding Mass and Inertia to the Particle
In the 1960s, the Soviet mathematician Boris Polyak proposed the heavy-ball method while studying optimization theory. Its core idea is to introduce “momentum” into the update process: the current direction depends not only on the current gradient but also on the accumulated velocity from before. Its general form can be written as:
v_t = beta * v_{t-1} + grad_ttheta_t = theta_t - lr * v_t
Here, beta controls the proportion of historical information that is retained. The intuitive effect is that gradients with opposite signs cancel each other out in oscillating directions, while speed keeps accumulating in consistent directions, allowing the process to “charge through” small pits and accelerate along the canyon direction.
3.3 Adaptive Learning Rates: A Separate Pair of Shoes for Each Parameter
Later adaptive methods maintain a moving average of squared gradients for each parameter and use its square root to normalize the update, achieving “small steps on steep ground and large steps on gentle ground.” They also introduce bias correction to address the problem that second-moment estimates are too small early in training. For many years, this class of methods was the default choice for large-model training. Its advantages are robustness and simple implementation; its drawback is that it must additionally store first- and second-order statistics for every parameter, which significantly increases memory usage.
4. Matrix-Based Optimizers: From Element-Wise Scaling to Structure-Aware Updates
Matrix-based optimizers are the core of the recent discussion. Their key insight is that neural network weights are naturally structured as matrices, while element-wise adaptive scaling ignores this structural information. Matrix-based methods treat the momentum matrix as a whole and use operations such as orthogonalization to “pull” the update toward an approximately orthogonal direction, giving more balanced update magnitudes across singular directions.
It can be abstracted into three steps:
M_t = beta * M_{t-1} + grad_t # Momentum accumulation (matrix form)O_t = Orthogonalize(M_t) # Structure-aware direction correctiontheta_t = theta_t - lr * O_t # Parameter update
The direct benefits are that second-order statistics no longer need to be stored element by element over the long term, reducing memory usage; and that update directions are more stable, usually performing better in hyperparameter transferability. In other words, a learning rate tuned on a small model can often transfer relatively smoothly to a larger-scale model. It is worth emphasizing that the orthogonalization step introduces extra computation, which in engineering is usually approximated by Newton-Schulz-type iterations, trading off between precision and speed.
5. Key Points for Engineering Implementation
- Mixed-precision strategy: orthogonalization iterations are sensitive to numerical stability, so it is advisable to accumulate key intermediate values at higher precision;
- Distributed partitioning: matrix-based optimizers are naturally partitioned by matrix blocks, aligning more easily with tensor parallelism and pipeline parallelism partitioning and reducing communication fragmentation;
- Memory accounting: although the overhead of second-order statistics is reduced, temporary buffers for the momentum matrix and approximation iterations need to be re-evaluated;
- Parameter grouping: embedding layers, normalization layers, and output heads usually still use adaptive methods, forming a hybrid optimization strategy;
- Observability: combine logging services with monitoring and alerting to track gradient norms, update norms, and loss spikes, so that training anomalies can be detected promptly.
6. Selection Advice and Summary
There is no absolutely best optimizer, only the option that best matches scale, data, and compute budget. In the small-scale experimentation stage, matrix-based methods can be tried first for better hyperparameter transferability; in ultra-large-scale training, a hybrid strategy is often the safer choice. If the training workload runs on a container platform, combining object storage for checkpoint persistence with a message queue to decouple the data pipeline can further improve the stability of the overall training engineering.
Understanding the evolution of optimizers is more valuable than memorizing a specific name. It determines whether, the next time you encounter news about a “model capability upgrade,” you can see through the surface of the API and reach the real technical dividing line of training efficiency and convergence quality.
