mlsanityData to 14 Oct 2026

Adaptive Computation Depth via Learned Token Routing in Transformers

arXiv 2605.05222 ↗First posted 18 Apr 2026cs.LG cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Standard transformer architectures apply the same number of layers to every token regardless of contextual difficulty. We present Token-Selective Attention (TSA), a learned per-token gate on residual updates between consecutive transformer blocks. Each gate is a lightweight two-layer multi-layer perceptron (MLP) that produces a continuous halting probability, making the mechanism end-to-end differentiable with 1.7% parameter overhead and no changes to the base architecture. Notably, TSA learns difficulty-proportional routing without any explicit depth pressure: even at λ=0 (no depth regularisation), the task-loss gradient alone drives the router to skip 20% of token-layer operations. On character-level language modeling, TSA saved 14-23% of token-layer operations (TLOps) across Tiny-Shakespeare and enwik8 at <0.5% quality loss. At matched efficiency, TSA achieved 0.7% lower validation loss than early exit, and the learned routing transfers directly to inference-time sparse execution for real wall-clock speedup.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 11 of its 14 references that are in the map. First posted on arXiv 18 Apr 2026.

Builds on

11 of 14 references.

References · 11

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2016Layer Normalizationcited by 5,669
  4. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
  5. 2018Universal Transformerscited by 647
  6. 2016Adaptive Computation Time for Recurrent Neural Networkscited by 506
  7. 2016Using the Output Embedding to Improve Language Modelscited by 272
  8. 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 258
  9. 2019Depth-Adaptive Transformercited by 236
  10. 2025Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computationcited by 133
  11. 2025Inner Thinking Transformer: Leveraging Dynamic Depth Scaling to Foster Adaptive Internal Thinkingcited by 57

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Sparse Token Routing in Efficient Transformers
  2. 2025Learning to Skip the Middle Layers of Transformers
  3. 2026Directional Routing in Transformers
  4. 2026Mixture of Chapters: Scaling Learnt Memory in Transformers
  5. 2025Pause Tokens Strictly Increase the Expressivity of Constant-Depth Transformers
  6. 2021Learned Token Pruning for Transformers
  7. 2026Adaptive Loops and Memory in Transformers: Think Harder or Know More?
  8. 2025Value-State Gated Attention for Mitigating Extreme-Token Phenomena in Transformers