[Paper Review] Routing Absorption in Sparse Attention: Why Random Gates Are Hard to Beat
End-to-end training of per-query sparse attention gates is largely ineffective because Q/K/V co-adapt to absorb the gating signal; post-hoc distillation or decoupled training can achieve near-dense performance, while random routing often matches learned routing.
Can a transformer learn which attention entries matter during training? In principle, yes: attention distributions are highly concentrated, and a small gate network can identify the important entries post-hoc with near-perfect accuracy. In practice, barely. When sparse attention is trained end-to-end, the model's Q/K/V projections co-adapt to whatever mask is imposed, absorbing the routing signal until learned gates perform little better than frozen random gates. We call this routing absorption and present four independent lines of evidence for it in a controlled 31M-parameter transformer: (1) differentiable soft gating converges to nearly the same perplexity whether the gate is learned or random (48.73 +/- 0.60 vs. 49.83 +/- 0.04 over 3 seeds); (2) hard top-k gating receives exactly zero gradient through the mask; (3) a gate distilled onto co-adapted Q/K/V achieves high F1 against oracle masks but catastrophic perplexity when deployed (601.6 vs. 48.6 on mask-agnostic Q/K/V); and (4) stochastic mask randomization during training fails to prevent co-adaptation (78.2 ppl deployed dense vs. 37.3 baseline). We connect routing absorption to the same phenomenon in Mixture-of-Experts, where random routing matches learned routing because experts co-adapt to any router, but show that attention exhibits a structurally more severe form: shared Q/K/V parameters enable cross-layer compensation pathways absent in MoE, where experts are self-contained modules. The implication is that end-to-end sparse attention methods employing per-query token-level gating face absorption pressure proportional to the parameter asymmetry between the gate and the model, and that post-hoc approaches, which decouple representation learning from sparsification, sidestep this entirely.
Motivation & Objective
- Demonstrate that end-to-end training of per-query sparse attention gates yields little routing benefit due to absorption by Q/K/V
- Quantify how gate learning compares to random or oracle masking under various training regimes
- Show that decoupling routing from representation learning enables effective sparse attention
- Relate absorption in attention to similar phenomena in Mixture-of-Experts and discuss practical implications for sparse attention methods
Proposed method
- Train a 6-layer, 256-dim, 4-head transformer (~31M params) on WikiText-103 with differentiable soft gating for sparsity level k=64
- Compare end-to-end learned gates vs frozen random gates across multiple seeds
- Conduct hard top-k gating to verify gradient flow through the mask
- Distill gates on dense and co-adapted Q/K/V checkpoints to test deployment behavior
- Evaluate stochastic mask training to test co-adaptation prevention
- Perform scale-up tests (Qwen3-1.7B) and limited single-layer/few-layer absorption experiments to assess robustness to scale

Experimental results
Research questions
- RQ1Does end-to-end training of a per-query gating mechanism improve routing compared to random or oracle masks?
- RQ2Is the gradient signal through the gate sufficient to overcome co-adaptation between Q/K/V and the gate?
- RQ3Can decoupled (post-hoc) routing learning recover near-dense performance, and why does it succeed?
- RQ4How does scale affect routing absorption and the strength of co-adaptation?
- RQ5What are the implications for existing sparse attention and MoE methods that rely on learned routing?
Key findings
- End-to-end soft gating yields perplexities nearly identical to frozen random gates (48.73±0.60 vs 49.83±0.04; dense is 37.32), indicating most routing benefit is absorbed by Q/K/V co-adaptation
- Hard top-k gating provides zero gradient through the mask and yields essentially the same performance as learned gates when gradients are absent
- Gate distilled onto co-adapted Q/K/V collapses deployment performance (601.6) versus dense (48.6) despite high F1 against the oracle mask, showing strong mask-specific co-adaptation
- Stochastic mask randomization during training does not prevent absorption and degrades representations (78.2 ppl deployed dense vs 37.3 baseline)
- Post-hoc distillation (decoupled routing) can achieve near-dense performance with far fewer gate-training steps (e.g., 1,000 steps with KL distillation at k=64 or 128–256) unlike long end-to-end training
- Absorption strengthens with scale: at Qwen3-1.7B, oracle perplexity is within 0.4% of dense at k=64, yet end-to-end routing remains fragile under co-adaptation; parameter asymmetry (gate vs model) drives the effect

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.