AGoQ: Activation and Gradient Quantization for Memory-Efficient Distributed Training of LLMs
Abstract
Lay Summary
Training large language models (LLMs) requires massive GPU memory. Most of that memory is eaten up by activations and gradients — like trying to move a whole house with a tiny van. We introduce AGoQ, a method that squeezes both activations and gradients into much smaller formats without hurting the model’s learning ability. 1. For activations, we assign just 4 bits on average (instead of the usual 16) by treating different layers of the model according to their sensitivity. 2. For gradients, we store and communicate them using a special 8‑bit format that avoids overflow when summing gradients across many GPUs. The result: up to 52% less GPU memory and up to 34% faster training, while keeping the same accuracy as standard full‑precision training. AGoQ makes LLM training possible on more affordable hardware, opening up large‑scale AI research to groups with limited resources.