Deep Learning Optimizers: From Heavy-Ball Momentum to Muon
Explore how deep learning optimizers evolved from gradient descent and heavy-ball momentum to Adam and newer matrix-based methods such as Muon. This article explains learning-rate control, momentum, adaptive updates, and the engineering considerations involved in deploying optimizers for large-scale distributed training.
Recent interest in a new optimizer used to train a large language model has renewed discussion about how optimization algorithms influence model training. As parameter counts grow, optimizer selection and tuning become increasingly important to efficient, stable convergence.
The optimizer family spans stochastic gradient descent (SGD), widely used methods such as Adam, and newer approaches that draw on matrix operations. Understanding this progression reveals how mathematical techniques and physical intuition have shaped deep learning—and where emerging optimizers seek to improve on established methods.
1. What an Optimizer Does: Navigation for Model Training
An optimizer acts as the navigation system for training a neural network. A useful analogy is descending a mountain while blindfolded: your goal is to reach the bottom of a valley, but you can only assess your current height and the slope beneath your feet.
In this analogy:
- The loss function measures your current elevation: the error between the model’s predictions and the target values.
- Gradients, computed through backpropagation, describe the local slope: how the loss changes with respect to each model parameter.
The optimizer determines which direction to move and how large a step to take. Two central challenges are controlling the update size through the learning rate and navigating a complex loss landscape without becoming trapped or making little progress.
2. Step-Size Control: Learning Rates and Adaptive Updates
Choosing an appropriate step size is fundamental to optimization.
A step that is too large can carry you past the valley floor and up the opposite slope. During training, this can produce oscillating loss or prevent convergence altogether. A step that is too small makes progress slow and wastes computation.
Basic gradient descent uses a fixed learning rate, which can be difficult to tune for a loss landscape with varying slopes and curvature. Adaptive methods address this limitation by using gradient history to adjust the effective step size for individual parameters.
AdaGrad and RMSProp are examples of this approach. Both use accumulated gradient information to scale parameter updates, although they manage that history differently. The general objective is to make progress without allowing uneven gradient magnitudes to destabilize training.
Learning-rate schedules provide another layer of control. Large-model training commonly combines warmup with a decay schedule, such as cosine decay. Warmup supports stability early in training, while a lower learning rate later in training allows more refined convergence.
Adaptive updates and learning-rate schedules are complementary: one adjusts updates according to gradient statistics, while the other controls how the overall learning rate changes over time.
3. Momentum: From Gradient Descent to the Heavy-Ball Method
Step size is not the only difficulty. Real loss landscapes contain narrow valleys and local minima, which can make a strategy based solely on the current gradient inefficient.
The roots of gradient descent trace back to the method of steepest descent introduced by French mathematician Augustin-Louis Cauchy in 1847. SGD later became a foundational approach to deep learning, applying gradient-based updates using stochastic estimates.
A physical analogy helps explain a limitation of basic gradient descent. Imagine a particle moving downhill without inertia: its motion responds immediately to the local slope, with no memory of its previous direction. In a narrow valley, the gradient may point strongly from one side to the other. The resulting updates can zigzag across the valley rather than move efficiently along it.
In 1964, Soviet mathematician Boris Polyak introduced the heavy-ball method, bringing the idea of inertia into optimization.
The method incorporates momentum, so each update depends not only on the current gradient but also on the previous update direction. Instead of a particle reacting independently at every step, imagine a heavy bowling ball rolling downhill.
This accumulated motion can help carry an optimizer through shallow depressions and reduce oscillation in narrow valleys. When successive gradients agree on a direction, momentum reinforces progress; when they alternate across the valley walls, their effects can partially cancel.
Momentum can therefore accelerate convergence and help navigate difficult terrain. It does not, however, guarantee escape from every local minimum or convergence to a global optimum.
4. Modern Optimizers: Combining Adaptivity with Matrix-Based Updates
The heavy-ball method established an influential foundation for later optimizers. Adam combines momentum-like behavior with adaptive parameter scaling.
Specifically, Adam maintains estimates of the first and second moments of the gradients. These estimates provide a smoothed update direction and parameter-specific scaling, making Adam a common choice across many deep learning workloads.
As models reach hundreds of billions or even trillions of parameters, the efficiency and stability of updates to large parameter matrices receive greater scrutiny. Newer optimizers, including Muon, explore a different approach to shaping those updates.
Matrix Orthogonalization
A central idea in these methods is matrix orthogonalization. Rather than applying a matrix-shaped update directly, an optimizer can transform it through an orthogonalization procedure before updating the parameters.
For Muon, the relevant object is a momentum-based update matrix rather than simply the raw gradient. The orthogonalization step reshapes the update so that its action is more balanced across matrix directions.
Geometrically, this differs from relying only on coordinate-wise scaling. It seeks to reduce the extent to which a few dominant directions determine the entire update.
Orthogonalization should not be understood as a universal guarantee of stability. Numerical implementations may approximate the operation, and it does not automatically eliminate exploding or vanishing gradients. Its potential value lies in producing better-conditioned updates that can support more stable or efficient training in suitable settings.
These properties explain the growing interest in matrix-based optimizers as alternatives to traditional Adam-based training. Their practical benefits still depend on the model, training configuration, and implementation.
5. Enterprise Practice: Optimizers in Distributed Cloud Training
At enterprise scale, optimizer deployment is not just an algorithmic choice. It also involves compute scheduling, numerical kernels, observability, and distributed communication.
When running distributed training on cloud infrastructure, including platforms such as Baidu AI Cloud where available, developers need to make effective use of container platforms and accelerator clusters. The optimizer must fit within the broader training system rather than be evaluated in isolation.
Accelerating Matrix Operations
Orthogonalization and related matrix operations introduce additional computation. Efficient operator libraries are therefore important for reducing the cost of these linear algebra steps.
The practical question is whether the optimizer’s training benefits outweigh that added overhead. An update rule that performs well mathematically still requires an efficient implementation to deliver value at scale.
Monitoring Training Behavior
Logging, monitoring, and alerting systems help teams track loss curves and learning-rate changes throughout a run.
These signals can reveal instability or emerging divergence, allowing developers to intervene before a training job consumes substantially more compute without useful progress. Observability is especially important when introducing an unfamiliar optimizer or changing an established configuration.
Managing Distributed Communication
Training across hundreds, thousands, or tens of thousands of GPUs also places substantial demands on network bandwidth.
Distributed training must coordinate gradients and, depending on the parallelism strategy, optimizer state. In conventional data-parallel training, AllReduce is commonly used to aggregate gradients; optimizer-state management depends on how the workload is partitioned.
Optimizer selection and parallelism configuration therefore need to be considered together. Both affect communication costs, resource use, and the ability to keep GPUs productively occupied.
Conclusion
The evolution of deep learning optimizers connects several enduring ideas: Cauchy’s steepest descent, Polyak’s heavy-ball momentum, adaptive methods such as Adam, and newer approaches that use matrix orthogonalization to reshape updates.
Each stage addresses a different aspect of training dynamics, from step-size control and oscillation to parameter-wise scaling and matrix-level update structure.
For developers, understanding these principles provides more than a basis for hyperparameter tuning. It helps explain why a training run progresses slowly, becomes unstable, or responds differently to a new optimizer. As model scale continues to grow, optimizer development—and the engineering required to deploy it efficiently—will remain an important part of advances in AI training.
