Perfect Parallelization in Mini-Batch SGD with Classical Momentum Acceleration
Sachin Garg, Michal Derezinski
NeurIPS page · Open on the map
Category: Optimization & Federated Learning › Optimization Algorithms · Type: theory · Keywords: mini-batch SGD, classical momentum, parallelization, theoretical analysis, acceleration scaling
Areas: Optimization & Algorithms › Optimization Dynamics › Zeroth-Order Optimization
Summary
The paper develops a general theory showing that classical momentum acceleration yields perfect parallelization of mini-batch computations, with acceleration scaling linearly with mini-batch size up to a saturation point.
Explained to a 5-year-old
Imagine a robot that wants to learn how to do a task by trying many small adjustments. It usually does these adjustments one at a time, which can be slow. The robot can also use a trick called momentum that helps it keep moving in the right direction. When the robot works with a larger group of adjustments at once, this trick works even better. This means the robot can do many adjustments together without slowing down, which saves time and computer power.
Explained to a 5-year-old, longer
Imagine a robot that wants to learn how to do a task by trying many small adjustments. It usually does these adjustments one at a time, which can be slow. The robot can also use a trick called momentum that helps it keep moving in the right direction. When the robot works with a larger group of adjustments at once, this trick works even better. The paper shows that the speed of learning grows as the group size grows, until it reaches a limit. They also found a simple rule for how big the momentum should be to make everything work smoothly. This means the robot can do many adjustments together without slowing down, which saves time and computer power. The theory explains why this happens, and experiments confirm that the rule works in practice. This helps engineers design faster learning systems for robots and computers. It also makes training big AI models easier because they can use many examples at the same time. The idea is simple: more helpers, faster learning, but only up to a point. By following the simple rule, the robot can keep learning efficiently.
For a technical reader
The work provides a theoretical analysis of how classical momentum interacts with mini-batch stochastic gradient descent. It shows that the acceleration achieved by momentum scales linearly with the mini-batch size, allowing full parallelization of the gradient computation up to a saturation point. The authors derive a simple, provably effective rule for choosing the momentum parameter and validate it empirically. This insight enables engineers to design more efficient training pipelines by selecting appropriate batch sizes and momentum settings. The results are applicable to any large-scale model training scenario where hardware-friendly mini-batches are used.
Problem
Classical momentum acceleration in stochastic mini-batch optimization lacks a comprehensive theoretical understanding, especially regarding its parallelization properties and scalability with mini-batch size.
Method
The authors develop a theoretical framework for stochastic momentum acceleration over quadratic objectives in the interpolation regime, covering both heavy-ball and Nesterov-style momentum, and allowing arbitrary mini-batch sizes with minimal noise assumptions. They derive that the acceleration scales linearly with the mini-batch size up to a saturation point, and propose a simple momentum parameter choice. Empirical validation confirms the theoretical predictions.
Results
The theory predicts linear scaling of acceleration with mini-batch size and demonstrates empirically that the proposed momentum parameter choice works well.
Contributions
A general theory of stochastic momentum acceleration for mini-batch SGD that unifies heavy-ball and Nesterov momentum, shows perfect parallelization with respect to mini-batch size, and provides a simple momentum parameter selection rule validated empirically.
Limitations and assumptions
The analysis is restricted to quadratic objectives in the interpolation regime, which may not capture all deep learning scenarios.
Practical relevance
The results enable practitioners to scale momentum-based stochastic optimization efficiently across large mini-batches, improving hardware utilization in large-scale model training.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction