Optimizer Evolution Behind Large Model API Upgrades

    This article explains how training optimizers shape the capabilities exposed by large model APIs. It covers the descent analogy, the core problems optimizers solve, the progression from SGD and momentum to adaptive and matrix-based methods, and practical engineering guidance for stable, reproducible training.

    Introduction: Behind API Capabilities Is the Continued Evolution of Training Paradigms

    Whenever a large model releases a new API format or capability description, outside attention tends to focus on surface features such as call patterns, context length, and structured output. What actually determines the upper bound of these capabilities is the accumulation of engineering and mathematical decisions made during training and post-training, and the choice of optimizer is especially critical. This article does not center on any specific product. Instead, it takes “training optimizers” as a general technical topic and systematically reviews their principles, evolution, and engineering practice.

    Optimizers are often called the “navigation system” of deep learning. They do not produce gradients themselves, nor do they define the model architecture, yet they determine how parameters move across the loss surface. Understanding them means understanding the most fundamental step in how model capabilities are formed.

    1. The Descent Metaphor: Formalizing the Training Process

    The classic analogy is this: you are blindfolded and placed in a continuous mountain range, with the goal of reaching the lowest valley. You have only two tools at hand:

    • Loss value: tells you the altitude of your current position;
    • Gradient: by probing the slope beneath your feet, tells you which direction is downhill.

    The optimizer is the strategy in your mind, deciding two things: which way to go and how far to go. Formally, the parameter update can be abstracted as:

    1. θ_{t+1} = θ_t + Δ_t
    2. Δ_t = f(∇L(θ_t), historical state, hyperparameters)

    The differences between optimizers are almost entirely reflected in the design of the function f: whether it uses historical information, whether it scales each parameter individually, and whether it introduces additional geometric structure beyond the parameter space.

    2. Three Problems Every Optimizer Must Solve

    1. Step Size Control: Learning Rate and Convergence Stability

    If the step is too large, it can leap over the valley floor, oscillating back and forth on both sides of the optimum or even diverging. If the step is too small, convergence becomes extremely slow and compute costs rise sharply. The ideal strategy is to “accelerate in flat regions and slow down in steep regions near the valley floor.” Modern methods generally introduce adaptive scaling per parameter dimension, giving parameters with different gradient scales different effective step sizes. This is also the main advantage of adaptive methods over plain stochastic gradient descent.

    2. Escaping Local Optima and Saddle Points

    High-dimensional non-convex surfaces contain many small “pits” halfway up the mountain and saddle points where the gradient is close to zero but the point is not optimal. Relying only on the instantaneous gradient direction can easily get stuck. Introducing a historical direction (inertia) or introducing randomness can both significantly improve the ability to escape.

    3. Condition Number and Anisotropy

    In a long, narrow canyon terrain, curvature differs greatly across directions, and plain gradient descent oscillates repeatedly in the steep directions. This is a condition number problem: if the update uses the same scale in all directions, efficiency is inevitably limited. Subsequent momentum methods and adaptive methods are essentially doing some form of preconditioning.

    3. Evolution: From Inertia to Adaptive Methods, Then to Matrix Structure

    Stage 1: Plain Stochastic Gradient Descent

    The idea can be traced back to nineteenth-century research on solving for extrema. Its limitation is that it models the parameter update as a “massless particle”: it can start and stop instantly, lacks inertia, and performs poorly under ill-conditioned curvature.

    Stage 2: The Heavy Ball Method and the Idea of Inertia

    In the twentieth century, in the 1960s, researchers pointed out the inefficient oscillation in canyon terrain within optimization theory and proposed adding mass and inertia to a “sliding object,” which is the heavy ball method. Its discrete form can be written as:

    1. v_{t+1} = μ · v_t - η · ∇L(θ_t)
    2. θ_{t+1} = θ_t + v_{t+1}

    Here μ controls the strength of inertia. This idea later evolved into the momentum method in deep learning and is a default component in almost all modern training configurations.

    Stage 3: A Compromise Between Adaptive Step Size and Second-Order Information

    A subsequent class of methods maintains estimates of the first and second moments of the gradient, scales each parameter independently, and incorporates bias correction. They are not true second-order methods, yet they obtain an approximately preconditioned effect at first-order cost, making them the mainstay of large model training. In engineering, they are often used together with decoupled weight decay, gradient clipping, and warmup scheduling.

    Stage 4: Matrix-Based (Structured) Optimizers

    An important recent direction is to elevate momentum from the “vector level” to the “matrix level”: treating the gradient of the same layer as a matrix, performing orthogonalization or approximate orthogonalization on it, and then using it for the update. Intuitively, this amounts to a more reasonable normalization of the geometry of the parameter space, making updates more balanced across singular directions. Because direct decomposition is costly, practice generally adopts low-cost approximate orthogonalization iterations and allows mixing with vector-level adaptive methods. It should be emphasized that these methods carry additional costs in hyperparameter sensitivity, memory overhead, and implementation complexity, and their effectiveness depends on the specific task and scale, so no blanket generalization is possible.

    4. Engineering Practice Recommendations

    • Ensure the baseline first: a stable data pipeline, gradient clipping, logging, and monitoring alerts often yield more benefit than switching optimizers.
    • Set learning rates by group: embedding layers, normalization layers, the output head, and the backbone network often need different learning rates and decay strategies.
    • Pay attention to the effective learning rate: under adaptive methods, the real step size is affected by the second moment, so tuning should observe the update norm rather than only the nominal learning rate.
    • Mixed precision and numerical stability: pay attention to the position of epsilon, state precision, and overflow handling.
    • Reproducible experiments: fix random seeds, record complete hyperparameters and data versions, and compare using a unified evaluation and experiment tracking system.
    • Cost control: large model training can combine elastic scheduling from container platforms, data distribution from object storage, and process traceability from logging services to reduce the cost of trial and error.

    5. Conclusion

    Capability upgrades at the API level are only the result; the real technical accumulation happens in every parameter move across the loss surface. From inertia to adaptive methods, and then to matrix-level structured updates, the history of optimizer evolution is a history of “how to take a smarter step.” For developers, the practical value of understanding these mechanisms is that when facing non-convergence, oscillation, or excessive cost during training, they can accurately identify whether the problem lies in step size, condition number, or gradient noise, and make well-founded adjustments rather than blindly swapping components.