Optimizer Techniques for Large Model Training: Momentum and Matrix Orthogonalization
This article explains the role of optimizers in deep learning training, covering learning-rate control, momentum and the heavy-ball method, matrix orthogonalization for large-model updates, and practical guidance for choosing and validating optimizer strategies. It helps readers understand the technical lineage behind modern optimizers and make more informed engineering decisions in large-model training.
1. Optimizers: The Navigation System of Deep Learning Training
In deep learning training, the optimizer plays the role of a navigation system. The classic descent analogy remains the best way to understand it: imagine you are blindfolded and placed in a range of mountains, and your goal is to reach the valley with the lowest elevation. The information available to you includes:
- Loss function: tells you your current “elevation”, i.e., the gap between model predictions and true labels;
- Gradient: computed through backpropagation, equivalent to feeling the slope of the ground around you with your feet and indicating which direction is downhill;
- Optimizer: the decision strategy in your mind that determines where to step next and how large the step should be.
Specifically, an optimizer must answer three core questions: what the update direction is, how large the step size is, and how to avoid traps. These correspond to learning-rate control, convergence stability, and escaping local optima, which form the three main lines of optimizer design.
2. Learning-Rate Control: The Dilemma of Steps Too Large or Too Small
The learning rate determines the magnitude of each parameter update and is one of the most sensitive hyperparameters in training:
- Too large a step: it may overshoot the valley bottom and jump directly to the opposite slope, manifesting as severe oscillation in the loss curve, failure to converge, or even numerical divergence;
- Too small a step: training efficiency is extremely low, and the model may never reach the valley bottom within a limited compute budget, which amounts to wasted resources.
Advanced optimizers pursue “adaptive step sizes”: increasing the step size on flat plateau regions to pass through quickly, and automatically slowing down in steep regions near the valley bottom. This adaptive capability is also the core driver of the evolution from basic gradient descent to momentum methods and adaptive learning-rate methods.
3. From Massless Particles to Heavy Balls: The Birth of Momentum
The simplest optimizer is stochastic gradient descent (SGD), whose mathematical idea can be traced back to the steepest descent method proposed by French mathematician Cauchy in 1847. However, standard gradient descent has an implicit physical assumption problem: it models a “massless particle” that can instantly accelerate to maximum speed and instantly brake, which completely violates physical intuition. This also causes it to perform poorly on real loss surfaces.
In 1964, Soviet mathematician Boris Polyak discovered a key defect of standard gradient descent while studying optimization theory: when the loss surface has a narrow, elongated “ravine” shape, the gradient direction is almost perpendicular to the optimal direction, and the particle bounces back and forth between the two walls of the ravine, converging extremely slowly.
Polyak’s insight was highly physical: what if we forcibly add mass and inertia to this particle? This led to the famous Heavy Ball Method. Its core update logic can be expressed as:
# Momentum method illustrationv = beta * v + gradient # Inertia term: retain historical velocityparam = param - lr * v # Move along the accumulated direction
Here beta is usually around 0.9. The role of the momentum term is that the oscillating components across the ravine cancel each other out, while the component along the valley bottom accumulates continuously, creating an “acceleration” effect. This idea later became a standard component of almost all mainstream optimizers.
4. Matrix Orthogonalization: A New Optimization Approach for Large Models
As model scale expands to hundreds of billions of parameters, traditional element-wise update optimization exposes new bottlenecks. Recently, a new line of thinking has emerged in the industry: instead of treating a weight matrix as a collection of independent scalar parameters, orthogonalize the update as a whole so that the singular components of each update are more balanced.
The intuition is that weight matrices in large models essentially perform linear transformations. If the update energy is overly concentrated in certain directions, it will cause distortion in hidden-layer representations. An orthogonalized update is like stretching an “elliptical” step size into a “circular” one, so that all directions advance in sync and training is not dominated by a few anomalous dimensions. Experimental observations indicate that such methods can bring faster convergence and lower final loss in language model pretraining, while communication and computation overhead remain controllable.
5. Practical Recommendations
- Start with a baseline: use an adaptive optimizer with momentum as the baseline, then try new methods and switch only after confirming gains;
- Pay attention to loss-surface shape: narrow-ravine problems are more sensitive to momentum and orthogonalization methods;
- Pair with learning-rate scheduling: warmup plus cosine decay remains a reliable combination with any optimizer;
- Validate at small scale: verify optimizer behavior on a proportionally scaled-down model before scaling up to production.
Conclusion
From Cauchy’s steepest descent to Polyak’s heavy-ball method, and then to matrix-level optimization ideas for large models, the evolution of optimizers has always revolved around the same question: how to walk downhill more intelligently. Understanding this technical lineage not only helps developers choose the right tools but also enables more evidence-based engineering decisions in large-model training practice.
