Deep Learning Optimizer Evolution: From Gradient Descent to Muon

    This article reviews the technical evolution of deep learning optimizers, from gradient descent and momentum to adaptive methods such as Adam and AdamW, and the newer Muon optimizer for matrix parameters. It explains the core responsibilities of an optimizer, key design motivations, the shift from element-wise adaptation to matrix-level orthogonalization, and practical guidance for selecting and tuning optimizers in different training scenarios.

    In deep learning training, the optimizer acts as a navigation system. A classic analogy is being blindfolded in a rolling mountain range and trying to reach the deepest valley. You have only two pieces of information:

    • Loss function: like an altimeter, telling you your current elevation.
    • Gradient, computed by backpropagation: like testing the slope of the ground with your feet, telling you which direction goes downhill.

    The optimizer is the decision strategy in your brain. It decides which direction to step next and how large the step should be. The gradient itself only indicates the locally steepest direction. How to turn this raw signal into stable and efficient parameter updates is exactly the problem the optimizer solves.

    Specifically, an optimizer usually has three core responsibilities.

    1. Learning Rate Control: Deciding the Size of the Update Step

    If the step is too large, it may leap over the valley bottom and land on the opposite slope, causing the loss to oscillate or even diverge. If the step is too small, training becomes unacceptably slow. Advanced optimizers adapt the step size to the terrain: taking larger steps on flat regions and smaller steps on steep slopes or near the valley bottom, balancing convergence speed and stability.

    2. Escaping Local Optima: Avoiding Dead Ends

    Real loss surfaces are full of local minima, saddle points, and flat plateaus. Blindly following the current gradient direction can easily trap parameters in a small pit halfway up the mountain, making them look like the valley bottom. A good optimization strategy needs to introduce inertia, noise, or curvature information to help parameters cross shallow pits, pass through saddle points, and explore better regions.

    3. Coordinating Parameter Scales: Moving Different Dimensions Together

    Neural networks often have billions of parameters, and the gradient magnitudes of different parameters can differ by orders of magnitude. If a single learning rate is used for all parameters, dimensions with large gradients may overshoot, while dimensions with small gradients may barely move. Modern optimizers solve this scale mismatch through per-parameter step size normalization.

    From Cauchy to Stochastic Gradient Descent

    The most basic optimization algorithm is gradient descent, whose idea can be traced back to the method of steepest descent proposed by the French mathematician Cauchy in 1847. In the machine learning era, stochastic gradient descent (SGD) became standard: each time, a mini-batch is sampled from the training set to compute the gradient, and parameters are updated along the negative gradient direction:

    1. θ ← θ - η · ∇L(θ)

    Here, η is the learning rate. SGD is simple, stable, and generalizes well, and it remains the first choice for many vision tasks. But it has an implicit assumption: the parameter behaves like a “massless particle” that can start and stop instantly. In a narrow canyon, the negative gradient direction mainly points toward the side walls rather than the valley bottom, so the particle bounces back and forth between the walls, making convergence highly inefficient.

    Momentum: Giving the Particle “Mass”

    In 1964, the Soviet mathematician Boris Polyak proposed the well-known heavy ball method. His physical intuition was that if a sliding particle is given mass and inertia, it will accumulate velocity along the valley bottom as it rolls downhill, while oscillations perpendicular to the valley bottom will cancel each other out because their direction keeps changing. Mathematically, this means maintaining a velocity variable:

    1. v ← β·v + ∇L(θ)
    2. θ ← θ - η·v

    β is usually around 0.9, which is equivalent to an exponential weighted average of historical gradients. This idea later evolved into SGD with Momentum and the variant Nesterov accelerated gradient (NAG), which first “pre-jumps” one step according to the current momentum and then computes the gradient, achieving a degree of “look-ahead correction.” Momentum significantly improves convergence speed at almost zero cost and has become a standard component of almost all mainstream optimizers.

    Adaptive Learning Rates: From AdaGrad to Adam

    Momentum solves the problem of directional oscillation, but the problem of inconsistent per-parameter step sizes remains. AdaGrad, proposed in 2011, accumulates the sum of squared historical gradients for each parameter and scales the step size by its square root: parameters with frequent and large gradients automatically receive smaller steps, while sparse parameters receive larger steps. The drawback is that the accumulated quantity grows monotonically, so the learning rate decays to nearly zero in later stages.

    RMSProp replaces monotonic accumulation with an exponential moving average, alleviating the learning rate vanishing problem. Adam, proposed in 2015, unifies momentum (first-moment estimation) with adaptive scaling (second-moment estimation):

    1. m ← β1·m + (1-β1)·g # First moment: momentum
    2. v ← β2·v + (1-β2)·g² # Second moment: gradient magnitude
    3. θ ← θ - η · m̂ / (√v̂ + ε) # Update after bias correction

    The physical meaning of the Adam update is a “signal-to-noise ratio”: when the gradient direction is stable, the denominator is relatively small compared with the numerator, so the step size is automatically enlarged; when the gradient direction is noisy and oscillates, the denominator is larger, so the step size automatically shrinks. With its out-of-the-box behavior and low sensitivity to hyperparameters, Adam (and its decoupled weight decay version AdamW) has become the de facto standard for large-model training over the past decade.

    Muon: A New Approach for Matrix Parameters

    Adam scales step sizes per parameter, but for the two-dimensional weight matrices that dominate neural networks, it ignores structural information of the matrix as a whole. The newer optimizer Muon is proposed precisely for this point. Its core idea can be summarized in two steps:

    1. Use momentum: first perform standard momentum accumulation on the gradient to obtain a smoothed update direction G.
    2. Orthogonalize the update matrix: use numerical methods such as Newton-Schulz iteration to approximately transform G into a “semi-orthogonal” matrix—that is, flatten its singular values as close to 1 as possible—and then apply the learning rate to update parameters.

    Intuition: Adam compresses each parameter update to an element-wise normalization around ±1, while Muon performs normalization over the entire matrix in the spectral norm sense. It ensures that different singular directions of the update matrix contribute in a balanced way, preventing a few dominant singular directions from “hijacking” the update and making exploration in parameter space more isotropic. In practice, Muon is usually applied only to two-dimensional matrix parameters in the network, while biases, normalization layer parameters, embeddings, and others are still handled by AdamW, forming a hybrid optimization strategy with a division of labor.

    From an engineering results perspective, such methods have shown faster sample efficiency in multiple public training practices: fewer training steps are needed to reach the same loss, and robustness to the learning rate is better. For large-model pretraining that consumes tens of thousands of GPU hours, this means a real reduction in cost.

    Engineering Practice Recommendations

    Based on the evolution above, here are several general recommendations for selection and tuning:

    • Small- and medium-scale tasks or fine-tuning: AdamW remains a safe first choice. Focus on tuning the learning rate and weight decay, and pair it with cosine annealing or linear decay scheduling.
    • Vision tasks: SGD with momentum often generalizes better and can be tried first.
    • Large-scale pretraining: consider a hybrid scheme that uses an orthogonalization-based optimizer for matrix parameters and AdamW for the rest, together with learning rate warmup: small steps for early exploration, larger steps in the middle, and decay for convergence at the end.
    • Pay attention to second-order information: when training is unstable, first check for gradient explosion (gradient clipping can be added) and anomalies in data distribution, then consider changing the optimizer.
    • Unified observation: using general-purpose cloud logging and monitoring/alerting capabilities to continuously track loss curves, gradient norms, and the RMS ratio of updates is key to judging whether the optimizer is working healthily. For example, cloud container platforms and monitoring/alerting capabilities can support end-to-end observation and anomaly localization for large-scale training jobs.

    Conclusion

    From Cauchy’s steepest descent, to Polyak injecting inertia into the heavy ball, to Adam’s adaptive signal-to-noise ratio scaling, and now to Muon using matrix structure for spectral normalization, the history of optimizer evolution is a history of injecting more physical intuition and geometric structure into update rules. Understanding these design motivations is more important than memorizing formulas—it determines whether you can quickly judge which “weapon” to choose when facing a new model or task, and where to start debugging when training anomalies occur.