TL;DR
AttnResidual architectures improve inter-layer routing flexibility but inadvertently amplify attention sinks and activation outliers, making models highly brittle under low-bit quantization. This paper introduces OASIS, a lightweight normalization technique that uses a $\text{Softmax}_1$-based null space and token-to-depth null coupling to provide a structural "no-op" pathway. This simple fix dramatically suppresses outliers and improves post-quantization performance, lowering W8A8 perplexity by over 73%.
What Problem Does This Paper Address?
Modern foundation models are exploring advanced routing mechanisms like AttnResidual to dynamically aggregate outputs across different layers, significantly enhancing model capacity. However, AttnResidual introduces a "dual-normalization" scheme: it applies Softmax both at the token level (standard attention) and at the depth level (to route information across layers).
The authors identify a critical structural flaw in this design. Standard Softmax forces all probability mass to sum to 1 across active tokens or depth branches. When a layer needs to perform a near-zero or "no-op" update (i.e., pass information through unchanged), it cannot explicitly choose a null path. Instead, it must push the logits of non-essential tokens to extreme negative values. This structural constraint forces attention mass onto low-contribution tokens (creating severe "attention sinks") and generates massive activation outliers—heavy-tailed hidden states with massive kurtosis. These outliers make the models highly brittle and prone to severe performance degradation when subjected to post-training quantization (e.g., W8A8 or W4A4 compression).
Methods
To resolve this, the authors propose OASIS (Outlier- and Sink-Aware Inter-layer Signaling), which introduces two primary components:
- Activation-Only Outlier Suppression Technique (AoS): OASIS replaces standard Softmax with $\text{Softmax}_1$ at both the token and depth levels. $\text{Softmax}_1$ adds a constant $1$ to the denominator of the exponential sum, creating an explicit, unlearned "null state" or "null channel." This allows the model to allocate probability mass to a "do nothing" option rather than forcing extreme logits to suppress real tokens or branches.
- Token-to-Depth Null Coupling: While AoS provides a null pathway, token-level and depth-level routing remain decoupled. OASIS introduces a mechanism that aggregates the token-level null posteriors across all attention heads to form a branch-level null statistic. This statistic is mean-centered and injected back into the depth-routing logits. If a residual branch exhibits strong null behavior at the token level, its depth-routing weight is automatically downweighted, redirecting routing mass toward more informative branches or a depth-level null path.
Datasets
- Training/Continued Pre-training: BookCorpus and Wiki40B/en were used to continue training the Llama-3.2-1B and Qwen3-0.6B checkpoints modified with the attention residual architecture.
- Evaluation: WikiText-2 was used to measure language modeling perplexity before and after quantization. GSM8K (Grade School Math) was used to evaluate mathematical reasoning capacity via Pass@1 accuracy under low-bit quantization settings.
Key Insights and Ideas
- Outliers are Structurally Induced, Not Random: The paper mathematically proves that the lack of a null pathway in dual-Softmax architectures forces the emergence of no-op outliers. It is an architectural constraint of standard Softmax, not an optimization artifact.
- The Power of Doing Nothing: By simply allowing the network to assign probability mass to a "null space" via $\text{Softmax}_1$, the structural pressure to amplify logits disappears, stabilizing the activation distributions.
- Inter-layer Communication via Null Signals: Coupling token-level null evidence directly to depth routing creates an elegant feedback loop: if a layer's attention heads decide a token isn't useful, the model uses that information to discount the entire layer's contribution to the depth update.
Key Results
- Massive Outlier Reduction: Compared to the vanilla AttnResidual baseline, OASIS achieves an average reduction of 84.14% in maximum infinity norm and 96.77% in average kurtosis across Llama-3.2-1B and Qwen3-0.6B backbones.
- Quantization Robustness: Under W8A8 (8-bit weight and activation) quantization, OASIS lowers perplexity by 73.55% relative to Vanilla. Under aggressive W4A4 quantization using OmniQuant, it improves GSM8K Pass@1 accuracy by 23.47%.
- Superiority Over Sparse Alternatives: When compared against other normalization techniques designed to handle outliers (like Sparsemax and Entmax15), OASIS consistently delivers the strongest outlier suppression and the lowest post-quantization perplexity degradation.
Limitations and Future Work
- Scale and Scope: The empirical evaluation was limited to smaller backbone models (Llama-3.2-1B and Qwen3-0.6B). Broader validation on larger scale foundation models (e.g., 7B+ parameters) and a wider array of downstream tasks is required.
- Risk of Over-attenuation: While the null channel effectively alleviates no-op pressure, excessive allocation of mass to the null space could potentially suppress useful but weak signals or alter the interpretability of attention maps.
- System Integration: Future work needs to investigate adaptive control mechanisms for null strength, its interplay with fine-tuning/calibration, and the actual deployment/compute overhead in highly optimized inference kernels.
Summary updated