TECHNOLOGY

ALAM activation compression: group averages reduce saved state, not every part of training memory

In this article
THE QUICK TAKE

ALAM compresses saved activations with group averages and sensitivity-based allocation; its reported activation ratio must stay separate from total memory, quality changes and the chosen adapter method.

Saving fewer trainable parameters does not remove the intermediate values needed by backpropagation. ALAM, published at ICLR in 2024, targets that saved activation state. Its full paper supports substantial memory savings, while also providing the task-level results needed to qualify a broad claim of unchanged accuracy.

What average quantization stores

The full primary paper groups adjacent flattened activation elements and retains a quantized group mean. During backward computation, that mean is repeated to approximate the original elements. For example, a 2-bit value representing four elements has an effective storage precision of 0.5 bits per element.

That accounting does not mean hardware performs every operation using a fractional-bit arithmetic type. It describes a representation of saved data. Floating tensors are compressed, while other retained values such as indices and masks remain outside that transformation. Their presence helps explain why a nominal precision ratio differs from the measured activation-memory ratio.

Sensitivity changes the allocation

ALAM assigns different compression levels according to estimated sensitivity. Its proposed estimator retains gradient norms rather than complete gradients from repeated sensitivity calculations, reducing that estimator’s own storage requirement. The resulting memory benefit is distinct from compressing the activations themselves.

Approximation still changes the information used during backward. A mathematical bound and favorable tests do not guarantee identical gradients or unchanged accuracy for arbitrary tasks. Activation checkpointing provides a useful comparison: recomputation and lossy retained-state compression address the same storage pressure through different mechanisms.

Read the large-model tables precisely

For LLaMA2-7B, the paper evaluates LoRA; its larger examples use QLoRA. Those adapter choices should not be flattened into one common recipe. Under the reported setup, activation compression reaches 10.6 times for the smaller model and 10.3 times for the larger example.

The single-A6000 comparison reports total accounted memory of 34 GB versus 15 GB for LoRA with and without ALAM on the smaller model. The QLoRA example is 40 GB versus 10 GB. These reductions are not the same ratios as activation compression, because model state remains. They should not be promoted to a universally measured allocator peak or minimum GPU capacity without the matching measurement definition.

Similar quality is not identical quality

In the smaller-model comparison, the reported average score changes from 62.5 to 62.2; the larger example changes from 65.1 to 65.0. Individual tasks can move differently. The paper’s more detailed table includes both improvements and regressions, so a literal guarantee of no accuracy loss would overstate the evidence.

The experiment uses a limited sequence length and selected adaptation datasets. Another batch size, longer context or task can change both the saved-state fraction and sensitivity to approximation. The guide to LoRA and QLoRA memory explains the other training allocations. ALAM is therefore a particular activation-memory technique with author-reported quality tradeoffs, rather than a conversion factor that makes every training job fit a proportionally smaller card.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles