Introduction
In the landscape of Large Language Models (LLMs), scaling up models—both in depth and width—consistently yields better performance. However, this scaling imposes a heavy "compute tax." Specifically, widening the token representation (the model dimension $d$) is computationally expensive because the cost of the Feed-Forward Network (FFN) layers grows quadratically with $d$.
While techniques like Mixture-of-Experts (MoE) have successfully scaled the number of parameters efficiently, scaling the representation width itself without blowing up inference latency remains a challenge. The authors of this paper ask: Can we achieve the representational power of a "fat" model with the speed of a "thin" one?
To address this, they introduce Alternating Updates (AltUp), a method that allows Transformer models to benefit from much wider token representations without the typical quadratic increase in computational cost. By processing only a sub-block of the widened representation at each layer and using a "predict-and-correct" mechanism for the rest, AltUp achieves up to an 87% speedup over dense baselines at the same accuracy level.
The AltUp Method
The core idea behind AltUp is to expand the representation dimension from $d$ to $Kd$ (where $K$ is an expansion factor, typically 2 or 4), but keep the actual heavy Transformer layers working at the original width $d$.
The AltUp layer operates on a three-step Predict-Compute-Correct logic:
- Predict: A very lightweight, learnable linear map is used to predict how all $K$ sub-blocks of the widened representation should change.
- Compute: Only one sub-block is selected to pass through the computationally heavy Transformer layer (Attention + FFN). In a multi-layer model, the selected sub-block "alternates" at each layer.
- Correct: The output from the heavy computation is used to "correct" the predictions made in the first step for all blocks.
Inspired by numerical solvers for differential equations, this approach demonstrates that a cheap "guess" followed by a localized "fix" is significantly more efficient than computing everything from scratch. It proves that the "brain" of the model doesn't need to process the entire "memory" (the full representation vector) at every single step to be effective.
Clever Variants: Recycled and Sequence AltUp
The paper also introduces two extensions of the core AltUp mechanism:
- Recycled-AltUp: To avoid the memory overhead of a $K$-times larger embedding table, this variant "recycles" the original embeddings by concatenating them, requiring virtually no extra parameters while still providing a significant performance boost.
- Sequence-AltUp: This applies the same predict-and-correct logic to the sequence dimension (tokens). It allows the model to process long sequences by only "fully" computing a fraction of the tokens, predicting and correcting the rest.
Experimental Setup and Key Results
The researchers evaluated AltUp using the T5 architecture (ranging from Small to XL sizes), pretraining on the C4 dataset and finetuning on standard NLP benchmarks like GLUE, SuperGLUE, SQuAD, and Trivia-QA.
Key Findings: * Massive Speedups: On SuperGLUE and SQuAD, AltUp-augmented models achieved the same accuracy as dense baselines while being up to 87% faster. * Pareto Dominance: Across almost all tasks and model sizes, AltUp models sit on a better speed-accuracy frontier than standard Transformers. * Synergy with MoE: AltUp is orthogonal to Mixture-of-Experts. While MoE scales the number of parameters, AltUp scales the representation width. Using both together provides additive gains, leading to even more efficient high-capacity models. * Scalability: The relative performance gains of AltUp actually improve as the base model gets larger, suggesting it is a robust technique for the era of giant models.
Limitations and Future Work
While the empirical results are strong, the authors note a lack of deep theoretical understanding of why the predict-and-correct mechanism works so effectively across diverse transformer blocks. Additionally, the expansion factor $K$ and the choice of which blocks to alternate are currently manual choices; future work could involve dynamic or learned selection. Finally, while theoretical FLOPs are lower, actual wall-clock speedups depend on how well these alternating memory patterns are optimized for specific AI accelerators like TPUs or GPUs.
Summary updated