TECHNOLOGY

CompAct: compressed activations and the real training-memory trade

In this article
THE QUICK TAKE

The strongest fine-tuning example halves peak allocated memory on RTE, while quality changes and large-model savings remain an extrapolation.

CompAct reduces training memory by changing what linear layers save for backward computation. It retains a compressed activation representation and uses a low-rank optimizer path before projecting the update back to the full weight shape. This is a training algorithm, so its memory benefit must be evaluated alongside the learned model’s quality.

Compression happens before the weight gradient is formed

The NAACL paper describes projecting a linear layer’s input into a smaller feature space during the forward pass. Backward uses the saved projection to form a compressed weight gradient. The optimizer works in that compressed space and the update is expanded for the full-sized weights.

The method does not simply save a smaller adapter file. Full model weights remain. Its random projection can be regenerated from a seed instead of retaining the entire projection matrix. This makes projection identity part of the training state: changing a seed at the wrong point would change the relationship between saved activations and the intended update.

The clearest fine-tuning result is RoBERTa-Base

The paper’s GLUE table reports peak allocated memory measured on RTE. Full fine-tuning uses 6298 MB, against 3092 MB for CompAct at rank 4 and 3102 MB at rank 8. The corresponding averages across the reported tasks are 86.28, 85.03 and 85.56.

Those averages combine task-specific metrics, including correlation and F1, rather than representing one uniform accuracy measure. They also show that less memory does not mean identical scores. The authors average their method over three runs per task; baseline values are taken from prior work. This is a reported comparison, not an independent reproduction conducted here.

Measured small-model savings differ from extrapolation

The research summary advertises 25–30% pretraining memory reduction. The detailed paper distinguishes an empirical 17.3% result for LLaMA-350M from an estimated 25–30% range for LLaMA-65B. The large-model estimate must not be described as a completed training measurement.

A capacity decision should start with the measured configuration closest to the proposed workload. Applying a percentage to a different model’s weight size would be especially misleading: the quantity being reduced includes saved activations and optimizer-related state, while several other terms remain. Batch size and sequence length can change the balance without changing parameter count.

Checkpointing is a separate, combinable trade

CompAct can be combined with activation checkpointing. Checkpointing recomputes discarded forward intermediates; CompAct changes a retained representation and the update path. The checkpointing explanation develops that different storage-versus-compute exchange.

The paper leaves nonlinear operations and important attention intermediates outside its compression target, and acknowledges random-sampling and multiplication overhead. Consequently, neither a uniform reduction of every tensor nor a free throughput improvement follows from the algorithm’s name.

Judge the complete training outcome

A meaningful local assessment would preserve target layers, rank, projection refresh policy, optimizer and evaluation split, then measure a complete training step and held-out quality. The fine-tuning memory guide provides the broader memory inventory.

The practical question is whether the resulting quality and runtime justify the capacity gained for the intended task. A lower peak can enable an otherwise infeasible experiment, while still changing convergence or requiring a different training budget. The published RoBERTa result demonstrates a concrete trade; it does not establish a universal memory minimum for larger language models.

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