Backpropagated output momentum cuts optimizer state size and boosts tuning
Backpropagated Output Momentum: Relocating Optimizer History from Parameters to Task Space
Machine LearningComputation and Language
Summary
Momentum in optimization usually keeps a big memory of past steps for every parameter, which can be very large. The authors propose storing this memory more compactly by tracking errors at the model’s output instead and then projecting them back through the network. This saves a lot of memory while keeping performance or even improving it. Their approach speeds up training steps and improves accuracy on language and vision tasks.
What this means in practice
- •For machine learning engineers: Reduce memory and improve accuracy when fine-tuning large language and vision models by using output-level momentum instead of parameter-level momentum.
- •For deep learning framework developers: Integrate a low-memory momentum technique compatible with existing adaptive optimizers to accelerate training iterations with minimal accuracy loss.
Authors
Yuchen Li, Zongqi Fan, Nguyen H. Tran, Ken-Tye Yong
Abstract
Optimizer momentum is usually stored as a parameter-sized moving average of past gradients, which makes history costly and fixes each past signal in the coordinates in which it was computed. We introduce Backpropagated Output Momentum (BOM), which instead stores a compact moving average of prediction errors at the model output and reprojects that history through the current network at every step. A batch-level analysis characterizes the information retained and omitted by this relocation, while the implementation preserves the current supervised gradient and can replace the first-moment component of several adaptive optimizers. As a plug-in for momentum-based optimizers, including ones that already compress their state, BOM reduces parameter-shaped optimizer state by 49.7-99.8% in three compositions and, averaged over three language backbones, paired step time by 4.0%. It also improves mean validation performance across language and vision fine-tuning, by 1.42 points in the primary five-task comparison. Language and vision pretraining studies, together with matched mechanism controls, further test the construction across output spaces and model scales.