Untangling Component Imbalance in Hybrid Linear Attention Conversion Methods

Martin Benfeghoul, Teresa Delgado, Adnan Oomerjee, Haitham Bou Ammar, Jun Wang, Zafeirios Fountas

TL;DR

Hybrid attention conversion methods—which transform pre-trained Transformers into efficient models by combining linear attention (LA) with sliding-window softmax attention (SWA)—suffer from a hidden "component collapse." Models learn to completely bypass the linear attention path, relying entirely on the local softmax window. This paper exposes this imbalance and introduces three practical remedies, including Scheduled Sliding-window Dropout (SSD), to force balanced component usage and restore genuine linear attention functionality.

What Problem Does This Paper Address?

Standard Transformers scale quadratically ($O(T^2)$) with sequence length, making long-context processing incredibly expensive. Linear attention (LA) alternatives reduce this to linear complexity ($O(T)$), but training them from scratch is prohibitively costly. To circumvent this, researchers use post-training linearization to swap the softmax kernel of a pre-trained model with a linear one, followed by a brief fine-tuning stage.

To preserve accuracy, state-of-the-art methods often use a hybrid approach: they combine global Linear Attention with a local Sliding-Window Softmax Attention (SWA). However, this paper identifies a critical flaw: because the softmax path is highly expressive, the model takes the path of least resistance during fine-tuning. It adapts entirely to the SWA component and completely ignores the LA pathway. This means the reported performance gains of these hybrid models are an illusion—the linear attention component is effectively dead weight.

Methods

The authors propose three distinct solutions to prevent path collapse and ensure both components contribute to the network:

  1. Inference-Time Hybrid: Instead of training a hybrid model, the model is trained or fine-tuned only on linear attention. SWA is then reintroduced strictly at inference time without any additional training.
  2. HedgeCATs: This method combines HedgeHog-style attention-weight transfer (distilling softmax attention weights into linear weights) with brief LoRA fine-tuning. Crucially, it leverages early stopping because prolonged hybrid fine-tuning causes the model to drift back toward relying solely on SWA.
  3. Scheduled Sliding-window Dropout (SSD): A novel training intervention that stochastically drops out the SWA branch during LoRA fine-tuning. By heavily suppressing SWA early in training (e.g., dropping it 90% of the time in the first epoch) and gradually relaxing the dropout rate, the model is forced to utilize and optimize the LA pathway.

Datasets

  • Training/Fine-tuning: Truncated samples of 1024 tokens from the FineWeb-Edu dataset (approximately 25M tokens per epoch).
  • Evaluation: Zero-shot performance was evaluated across six standard common-sense and language benchmarks via lm-evaluation-harness: PIQA, ARC-Easy, ARC-Challenge, HellaSwag, WinoGrande, and MMLU.

Key Insights and Ideas

  • The "Dead" Linear Layer: Component-level diagnostics revealed that disabling the LA component in existing state-of-the-art hybrid models (like LoLCATs) caused virtually no drop in downstream benchmark accuracy. Conversely, disabling the SWA component caused performance to completely collapse to the level of a model with no attention mechanism at all.
  • Objective Functions Matter: Training with a hybrid attention output objective (e.g., minimizing MSE between full softmax outputs and hybrid outputs) allows the model to cheat by scaling up the SWA path. Training on full LA outputs or explicit attention-weight transfer forces the linear layer to actually learn.
  • Activation Spikiness: Exponential-based activation functions (like exponential or softmax feature maps) significantly outperform alternatives like ReLU or 1+ELU when trying to mimic the characteristic "spikiness" of standard quadratic attention.

Key Results

Ablation testing on existing SOTA hybrid checkpoints (Llama3.1-8B) proved the severity of the imbalance: the full hybrid model scored 71.08% on average, but running it with SWA-only actually increased performance slightly to 71.45%. Running it LA-only dropped accuracy to 33.96%, which is statistically identical to completely removing the attention mechanism (33.93%).

Figure 1: Measuring the performance of HedgeHog conversion at various points during the conversion process. LoRA refers to a LA-only fine-tuning.

By contrast, the authors' proposed Scheduled Sliding-window Dropout (SSD) successfully balanced the architecture. As fine-tuning progressed with SSD, the combined Linear+SWA performance steadily improved, while the SWA-only performance dropped significantly below it. This proved that the network was finally extracting meaningful global context from the linear attention path rather than relying solely on the local window.

Performance comparison of dropout and sliding-window size schedules for a different number of fine-tuning epochs.

Limitations and Future Work

The study relied on a simplified, fixed mixing term ($g = 0.5$) to combine the SWA and LA outputs. The authors note that replacing this with learned or data-dependent dynamic mixing mechanisms would likely boost performance further. Additionally, linear attention inherently suffers from capacity limitations in associative memory; the authors suggest that future work should explore integrating gating mechanisms or using LA to compress individual memory blocks rather than applying it uniformly across entire sequences.

Summary updated

BibTeX
@misc{benfeghoul2025untangling,
  author = {Martin Benfeghoul and Teresa Delgado and Adnan Oomerjee and Haitham Bou Ammar and Jun Wang and Zafeirios Fountas},
  title = {{Untangling Component Imbalance in Hybrid Linear Attention Conversion Methods}},
  year = {2025},
  eprint = {2510.05901},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.05901},
}
Figure