Lune

ICML2026Top-tier venue

Understanding Dynamic Compute Allocation in Recurrent Transformers

Ibraheem Muhammad Moosa, Suhas Lohit, Ye Wang, Moitreya Chatterjee, Wenpeng Yin

Abstract

Token-level adaptive computation seeks to reduce inference cost by allocating more computation to harder tokens and less to easier ones. However, prior work is primarily evaluated on natural-language benchmarks using task-level metrics, where token-level difficulty is unobservable and confounded with architectural factors, making it unclear whether compute allocation truly aligns with underlying complexity. We address this gap through three contributions. First, we introduce a complexity-controlled evaluation paradigm using existing algorithmic and synthetic language tasks with parameterized difficulty, enabling direct testing of token-level compute allocation. Second, we propose ANIRA, a unified recurrent Transformer framework that supports per-token variable-depth computation while isolating compute allocation decisions from other model factors. Third, we use this framework to conduct a systematic analysis of token-level adaptive computation across alignment with complexity, generalization, and decision timing. Our results show that compute allocation aligned with task complexity can emerge without explicit difficulty supervision, but such alignment does not imply algorithmic generalization: models fail to extrapolate to unseen input sizes despite allocating additional computation. We further find that early compute decisions rely on static structural cues, whereas online halting more closely tracks algorithmic execution state. Code: https://github.com/merlresearch/ANIRA

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Equilibrium Reasoners: Learning Attractors Enables Scalable Reasoning cites Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach
  • Equilibrium Reasoners: Learning Attractors Enables Scalable Reasoning cites Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation
  • Equilibrium Reasoners: Learning Attractors Enables Scalable Reasoning cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach cites Depth-Adaptive Transformer
  • Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach cites Confident Adaptive Language Modeling
  • Confident Adaptive Language Modeling cites Depth-Adaptive Transformer
  • Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation cites Depth-Adaptive Transformer
  • Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation cites Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach
  • Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation cites Confident Adaptive Language Modeling
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Equilibrium Reasoners: Learning Attractors Enables Scalable ReasoningBenhao Huang, Zhengyang Geng, Zico KolterICML 2026 · 5 citations

Builds on8

  1. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
  2. Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth ApproachJonas Geiping, Sean McLeish, Neel Jain, John Kirchenbauer et al.NeurIPS 2025 · 431 citations
  3. Confident Adaptive Language ModelingTal Schuster, Adam Fisch, Jai Gupta, Mostafa Dehghani et al.NeurIPS 2022 · 394 citations
  4. Depth-Adaptive TransformerMaha Elbayad, Jiatao Gu, Edouard Grave, Michael AuliICLR 2020 · 264 citations
  5. Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level ComputationSangmin Bae, Yujin Kim, Reza Bayat, Sungnyun Kim et al.NeurIPS 2025 · 143 citations

Related papers

  1. Adaptive Computation Modules: Granular Conditional Computation for Efficient InferenceBartosz Wójcik, Alessio Devoto, Karol Pustelnik, Pasquale Minervini et al.AAAI 2025 · 8 citations
  2. AdaPerceiver: Transformers with Adaptive Width, Depth, and TokensPurvish Jajal, Nicholas John Eliopoulos, Benjamin Shiue-Hal Chou, George K Thiruvathukal, Yung-Hsiang Lu, James C. DavisCVPR Findings 2026
  3. CoTFormer: A Chain of Thought Driven Architecture with Budget-Adaptive Computation Cost at InferenceAmirkeivan Mohtashami, Matteo Pagliardini, Martin JaggiICLR 2025
  4. A-ViT: Adaptive Tokens for Efficient Vision TransformerHongxu Yin, Arash Vahdat, José M. Álvarez, Arun Mallya et al.CVPR 2022 · 288 citations
  5. Faster Depth-Adaptive TransformersYijin Liu, Fandong Meng, Jie Zhou, Yufeng Chen et al.AAAI 2021 · 44 citations
Dusk over the sea between two cliffs drawn in fine vertical lines