the.ai

Inference / Adaptive

verified

Mixture of Depths

Let each token choose how many layers it passes through. Some tokens in a sequence carry most of the meaning and some are punctuation and filler, and processing both to full depth spends the same on each. A router at every block picks which tokens it will actually process, and the rest skip past it.

Viz primitive · budget-splitskipped-tokens = 40

skipped-tokens holds 50% of the budget; rest holds the remaining 50%.

Tokens a block skips, against the ones it processes, in tokens. Drag the skipped share up to watch the block's cost fall in proportion — the capacity is fixed in advance, so this saving is exact rather than predicted.

40

Reviewed by opendroid · 2026-08-18

  • arXiv:2404.02258 — Mixture-of-Depths: Dynamically allocating compute in transformer-based language models
  • arXiv:2207.07061 — Confident Adaptive Language Modeling