Optimizer Evolution Behind Large Model API Upgrades

    This article explains how optimizer choices during training shape the capability limits and cost of large models, and why API changes often trace back to the training side. It walks through the core idea of optimizers, the progression from plain SGD to momentum and adaptive methods, and the shift toward orthogonalized matrix updates. It closes with practical guidance for developers on model evaluation, fine-tuning, cost control, and common misconceptions.

    1. Introduction: Why API Documentation Updates Start on the Training Side

    When a new version of a large model API is released, developers usually notice changes in request parameters, authentication, rate limits, and billing first. But stopping at the call layer hides a more important question: capability boundaries and response characteristics are often determined by algorithmic choices made during training. One training-side change that has drawn attention recently is the introduction of a new class of optimizers, commonly described as orthogonalized update methods. This article does not focus on any specific product. Instead, it frames the topic as a general technical question: how optimizers affect the capability ceiling and training cost of large models, and how developers should evaluate them when selecting and integrating a model.

    2. What an Optimizer Really Is: A Blindfolded Descent Strategy

    Think of training as being blindfolded and placed in a continuous mountain range, with the goal of reaching the lowest valley. You have only two tools:

    • The loss value, which tells you your current altitude.
    • The gradient, which lets you probe the slope underfoot and points toward the downhill direction.

    The optimizer is the strategy in your head, and it usually answers three questions.

    First, how large is each step, which is learning rate control. Steps that are too large overshoot the valley and oscillate between the two sides, showing up as a loss that fails to converge. Steps that are too small converge very slowly, and compute cost rises linearly. The ideal strategy is adaptive: speed up in flat regions and slow down in steep regions near the valley floor.

    Second, how to avoid falling into small pits on the hillside, which means escaping local optima and saddle points. Judging by instantaneous slope alone, it is easy to mistake a local minimum for the global valley.

    Third, how to preserve the “quality” of the update direction under a limited compute budget. This is the main battleground of recent optimizer research: not walking faster, but making each step more useful.

    3. The Evolution: From Instantaneous Slope to Physical Intuition with Inertia

    The most basic stochastic gradient descent traces back to mid-nineteenth-century work on steepest descent. Its implicit assumption is a “massless particle” that can instantly accelerate to top speed and instantly stop, which clearly defies physical intuition.

    The assumption was broken by the idea of inertia. In 1964, the Soviet mathematician Boris Polyak, while studying optimization theory, observed that in long, narrow canyon terrain, plain gradient descent repeatedly bounces off the two walls and is highly inefficient. He proposed adding mass and inertia to the particle, known as the heavy ball method. Its engineering meaning can be expressed with a minimal sketch:

    1. v_t = beta * v_{t-1} + grad_t # accumulate historical direction to form inertia
    2. theta_t = theta_{t-1} - lr * v_t # update parameters along the inertial direction

    The benefit of inertia is that in the direction perpendicular to the valley floor, positive and negative gradients cancel out, while along the valley floor the gradient keeps accumulating, so the particle “charges” through flat regions and suppresses oscillation. The widely used adaptive optimizers that followed build on this by introducing second-order statistics, estimating the gradient scale for each parameter dimension separately to achieve per-dimension step scaling, while using first-order momentum to smooth the direction. In practice, decoupled weight decay, gradient clipping, and warmup schedules are usually added to keep large-scale training stable.

    4. Orthogonalized Updates: The Highlight Drawing Attention Now

    The new generation of optimizers mentioned repeatedly recently upgrades “element-wise scaling” to “orthogonalizing the update matrix.” Intuitively: treat the parameter gradient of each layer as a matrix, apply momentum smoothing first, then orthogonalize it (roughly, keep only the most representative directions and balance the scale across directions), and only then apply the learning rate.

    It aims to solve two structural problems of adaptive optimizers:

    1. Independent per-dimension scaling breaks the overall geometric structure of the parameter matrix and makes update directions redundant.
    2. Element-wise second-order statistics carry significant storage and compute overhead on large matrices.

    After orthogonalization, updates are more balanced in their direction distribution and are theoretically closer to “steepest descent on a manifold,” so they often yield a more stable loss curve for the same number of training steps. It is worth stressing that this is a general algorithm-level description. Implementation details, memory usage, and throughput gains should be based on the public documentation and your own measurements on the platform you use, and unverified numbers should not be trusted.

    5. What This Means for Developers

    • API capability evaluation: performance on long context, complex reasoning, and code tasks is related to the convergence quality produced by the training-stage optimization strategy, so selection should rely on your own evaluation set.
    • Fine-tuning practice: if the platform offers fine-tuning, pay attention to its recommended ranges for learning rate, batch size, and training steps, and start with small steps before scaling up.
    • Cost perspective: faster convergence means less compute for the same result, which shows up directly as resource usage in batch inference and private deployment scenarios.
    • Engineering support: regardless of the optimizer, gradient clipping, mixed precision, and monitoring alerts (such as loss spikes and abnormal gradient norms) are all required, and cost control can be combined with logging services and the elastic scaling of container platforms.

    6. Common Misconceptions

    One is treating the optimizer as a “universal accelerator” while ignoring the dominant role of data quality and learning rate scheduling. Another is chasing new optimizers without running controlled experiments under the same budget. A third is looking only at final metrics while ignoring the stability and variance of the training curve. The recommended approach is to fix the data and random seed, keep total compute constant, and then compare the effectiveness and stability of different update strategies.

    7. Conclusion

    The optimizer is the navigation system of deep learning. From plain gradient descent to the heavy ball method, then to per-dimension adaptive methods and matrix orthogonalization, the main thread has always been to make each update carry more information and less noise. For teams using large model APIs, understanding this thread is more valuable than memorizing any single term: it determines how you design evaluations, how you allocate your fine-tuning budget, and how you build stable, controllable model applications on top of the general capabilities of platforms such as Baidu AI Cloud.