The Quantization Benefits of Residual-Free Transformers

Yiping Ji, Mahalakshmi Sabanayagam, Peyman Moghadam, Hemanth Saratchandran, Simon Lucey

TL;DR

Standard Transformers naturally develop heavy-tailed, outlier-dominated activations during training due to their residual connections, making them notoriously difficult to compress. By removing these residual paths and employing a tailored training recipe—orthogonal initialization, spectral optimization, and depth-aware attention scaling—the authors introduce "residual-free" Transformers. These models maintain clean, near-Gaussian activations throughout training, making them exceptionally robust to simple, low-bit uniform quantization.

What Problem Does This Paper Address?

As foundation models scale to hundreds of billions of parameters, training and deployment are increasingly bottlenecked by communication overhead—the time and energy spent moving activations, gradients, and optimizer states across distributed accelerators. While low-bit quantization (e.g., converting 16-bit floating-point values to 8-bit or 4-bit integers) offers a clear path to reducing this bandwidth, standard Transformer activations are notoriously uncooperative. They develop extreme, structured outliers and heavy-tailed distributions during training, leading to severe accuracy degradation under straightforward quantization protocols.

To combat this, the AI community has engineered complex post-training workarounds like outlier separation, per-channel scaling, and weight-activation rotations. This paper takes a fundamentally different approach by asking a structural question: What architectural mechanism causes these pathological activations in the first place, and can we fix it at the source? The authors identify residual connections as the primary culprit.

Methods

The authors explore residual-free Transformers, completely removing the additive skip connections that define standard architectures. Because networks without residual paths are historically prone to optimization instability, variance collapse, or signal attenuation, the authors develop a robust three-part training recipe to make deep residual-free Transformers highly trainable:

  1. Orthogonal Initialization: Weight matrices (specifically for the Attention and MLP blocks) are initialized as scaled orthogonal matrices. This ensures that the network preserves norms and maintains isotropic signal propagation at the start of training.
  2. Spectral/Second-Order Optimization: Instead of standard AdamW, the recipe utilizes matrix-preconditioned optimizers such as KL Shampoo, SOAP, or Muon. These optimizers apply updates that preserve the near-isometric geometry of the weights, preventing the anisotropy typically introduced by coordinate-wise adaptive algorithms.
  3. Depth-Aware Attention Temperature Scaling: To prevent attention patterns from saturating or collapsing as the network gets deeper, the authors scale the attention softmax temperature dynamically across layers using a depth-dependent factor ($\tau_\ell = \beta^{-\ell}$).

Datasets

  • Pretraining: All models were pretrained from scratch on the FineWeb-Edu dataset for 50k steps with a batch size of 512 sequences and a sequence length of 512.
  • Evaluation: The models were evaluated downstream on eight zero-shot commonsense reasoning benchmarks: arc_c, arc_e, boolq, hellaswag, openbookqa, piqa, social_iqa, and winogrande.

Key Insights and Ideas

  • The "Gaussianizing" Power of Dense Mixing: Using an excess kurtosis analysis (a statistical measure of tail-heaviness), the authors mathematically demonstrate that dense orthogonal matrix multiplication acts as a natural Gaussianizer. It contracts excess kurtosis by a factor of $1/d$ (where $d$ is the model dimension), pulling activations toward a clean Gaussian distribution.
  • Residuals Accumulate Pathology: In a standard Transformer, the residual connection bypasses this contraction mechanism. Instead of replacing the old representation with a newly mixed, Gaussianized one, the residual path carries forward and accumulates non-Gaussianity layer by layer. This accumulation is what breeds extreme activation outliers over time.
Mechanism of Gaussianization vs Accumulation
  • The Optimization-Architecture Synergy: Eliminating residual connections is not enough on its own. If a residual-free model is trained with AdamW, coordinate-wise updates quickly destroy the weight matrix's orthogonality, ruining the kurtosis contraction effect. Maintaining quantization-friendly activations requires the complete trifecta: a residual-free architecture, orthogonal initialization, and a spectral optimizer.

Key Results

The authors subjected the models to a brutal quantization protocol: simple uniform quantization without any specialized outlier-handling or calibration tricks.

  • Activation Statistics: The residual-free Transformer maintained an excess kurtosis close to 0 across all 24 layers throughout the entire training run, confirming near-Gaussian activations. In comparison, standard residual models trained with AdamW saw their excess kurtosis explode past 40,000.
  • Quantization Robustness:
  • At W8A8 (8-bit weights, 8-bit activations), the residual-free model achieved an average downstream accuracy of 42.9%, significantly outperforming the standard Residual+AdamW baseline, which degraded sharply to 36.9%.
  • At W8A6 (6-bit activations), the performance gap widened dramatically. The residual-free model retained a robust 41.4% accuracy, while the standard residual model collapsed to 34.8% (with KL Shampoo) or 38.0% (with AdamW).
Quantization Robustness and Activation Statistics

Limitations and Future Work

  • Full-Precision Performance Gap: There is an accuracy-compressibility trade-off. At full precision (BF16), the residual-free model exhibits a modest performance penalty, scoring 43.5% average accuracy compared to the 44.9% achieved by the standard Residual+AdamW baseline.
  • Scalability Challenges: The study was conducted on a 194-million parameter, 24-layer architecture. Verifying whether this training recipe holds up at the scale of billions of parameters or extreme depths remains an open question.
  • Interaction with Advanced Quantization Pipelines: The authors deliberately isolated architectural effects using basic uniform quantization. Future work must explore how residual-free models behave when paired with state-of-the-art post-training quantization frameworks like SmoothQuant or QuaRot.

Summary updated

Abstract

Large-scale transformer training and deployment are increasingly constrained by the transfer of activations, gradients, and optimizer states across accelerators. Low-bit quantization offers a natural remedy, but transformer activations are often heavy-tailed and outlier-dominated, making simple quantization highly lossy. We show that this difficulty is not only a property of the quantizer, but also of the architecture. Specifically, residual connections can drive transformer activations away from Gaussianity during training. Using controlled comparisons between residual and residual-free transformers, we demonstrate that this effect leads to substantially higher quantization error and accuracy degradation at low precision in residual models. We explain the phenomenon through an excess kurtosis analysis, showing that residual mixing can amplify non-Gaussianity, whereas dense mixing in residual-free contracts non-Gaussianity. We then show that residual-free transformers can be made trainable using orthogonal initialization, spectral or second-order optimization, and depth-aware scaling of attention temperature. In language tasks, while there is a small drop in full precision performance, these models retain near-Gaussian activations and exhibit significantly improved robustness to low-bit quantization. Our results identify an accuracy--compressibility trade-off in transformer design and motivate architecture-level approaches to quantization-friendly foundation models.
BibTeX
@inproceedings{ji2026quantization,
  author = {Yiping Ji and Mahalakshmi Sabanayagam and Peyman Moghadam and Hemanth Saratchandran and Simon Lucey},
  title = {{The Quantization Benefits of Residual-Free Transformers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=18XtiYe9Gk},
}
Figure