Share from 0:00
0:00
/

"DeMo: Decoupled Momentum Optimization"

The podcast on this paper is generated with Google's Illuminate.

DeMo slashes GPU communication costs while maintaining model quality through smart momentum handling.

DeMo introduces a novel optimizer that drastically reduces communication between GPUs during LLM training by decoupling momentum updates across accelerators, while maintaining or exceeding model performance compared to AdamW optimizer.

-----

https://arxiv.org/abs/2411.19870

πŸ€– Original Problem:

Training LLMs requires massive communication between GPUs to synchronize gradients, demanding expensive high-speed interconnects and constraining all accelerators to be in the same data center.

-----

πŸ”§ Solution in this Paper:

β†’ DeMo leverages the insight that gradients and optimizer states during training exhibit high redundancy and are highly compressible.

β†’ It uses Discrete Cosine Transform to efficiently extract and synchronize only the most significant "fast-moving" components of momentum tensors.

β†’ The algorithm decouples momentum updates across accelerators, allowing controlled divergence in optimizer states.

β†’ Slow-moving components are accumulated locally and gradually transmitted over time.

-----

πŸ’‘ Key Insights:

β†’ Fast-moving momentum components show high spatial correlation and concentrate energy in few principal components

β†’ Fast components need immediate application while slow components benefit from temporal smoothing

β†’ Slow-moving components, despite high variance, are crucial for long-term convergence

-----

πŸ“Š Results:

β†’ Reduced inter-accelerator communication by several orders of magnitude (2416.6 MB/step to 3.44 MB/step for 1B model)

β†’ Matched or exceeded AdamW performance on Hellaswag, ARC-Easy, and PiQA benchmarks

β†’ No noticeable slowdown in convergence or training loss

Discussion about this video

User's avatar

Ready for more?