atlas

Research map / Architectures and efficiency / Attention and transformers

Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse attention for long-context LLMs · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Mixture-of-Recursions (MoR), a weight-tied recursive Transformer with learned per-token routers that choose recursion depth and recursion-wise KV caching, pretrained from scratch at 135M–1.7B scale.

Problem

Recursive Transformers save parameters via layer tying but apply fixed compute per token, and prior dynamic-depth methods need post-hoc routing or extra training; combining parameter efficiency with token-level adaptive computation and efficient KV caching remains open.

Approach

Learn token-specific recursion depths end-to-end during pretraining via expert-choice or token-choice routers over a shared block, with hierarchical filtering so only tokens selected at one depth proceed to the next, and cache KV pairs per recursion depth (or share first-depth KV) to cut memory and attention cost.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use expert-choice adaptive routing with two recursions and recursion-wise caching instead of vanilla Transformer layersMoR · FineWeb-Edu validation, 16.5e18 FLOPsNLL: 2.7824 -> 2.7511Helped
Use expert-choice adaptive routing with two recursions and recursion-wise caching instead of vanilla Transformer layersMoR · Few-shot average accuracy, 16.5e18 FLOPsaccuracy: 42.3 -> 43.1Helped
Use MoR expert-choice routing with two recursions instead of vanilla at fixed 20B tokensMoR · FineWeb-Edu validation, 20B tokensNLL: 2.7824 -> 2.7749Helped
Use token-choice routing instead of expert-choice routing (ablation)MoR, N_r=3, Cache · Few-shot average accuracy, 16.5e18 FLOPsaccuracy: 42.6 -> 40.0Hurt
Use recursive KV sharing instead of recursion-wise caching (ablation)MoR expert-choice · FineWeb-Edu validationNLLHurt
Use recursive KV sharing instead of recursion-wise caching (ablation)MoR token-choice · FineWeb-Edu validationNLLHelped
Use auxiliary loss rather than an auxiliary router (ablation)Expert-choice MoR · Inference-time routing behaviorfew-shot accuracyHelped
Use sigmoid normalization instead of tanh (ablation)Expert-choice MoR · FineWeb-Edu validationNLL: 2.9933 -> 2.8667Helped
Use a Linear router instead of an MLP router with auxiliary loss and sigmoid (ablation)Expert-choice MoR · Few-shot accuracyaccuracy: 40.0 -> 40.1Helped
Add auxiliary z-loss (ablation)Expert-choice MoR with auxiliary loss, sigmoid, Linear router · Few-shot accuracyaccuracy: 40.1 -> 40.0Hurt
Add auxiliary z-loss (ablation)Expert-choice MoR with auxiliary loss, sigmoid, Linear router · Dead token ratiodead token ratio: 0.1 -> 0.0Helped
Use explicit balancing loss instead of loss-free router bias (ablation)Token-choice MoR · Router load balanceMaxVio: 0.852 -> 0.266Helped

Surprising findings

Limitations

Experimental setup

Datasets: FineWeb-Edu (deduplicated subset, SmolLM-Corpus)

Benchmarks: FineWeb-Edu validation NLL LAMBADA HellaSwag PIQA WinoGrande ARC MMLU

Metrics: negative log-likelihood few-shot accuracy throughput (tokens/s) MaxVio

Baselines: Vanilla Transformer Recursive Transformer (Middle-Cycle) Relaxed Recursive Transformer

Builds on: Universal Transformer Mixture-of-Depths Relaxed Recursive Transformers expert-choice routing continuous depth-wise batching

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy