Every word in a sentence is different. "The" carries almost no surprise; "antidisestablishmentarianism" is packed with information. Yet inside a standard transformer, every token travels through exactly the same stack of layers, consuming the same amount of compute regardless of how much thinking it actually needs.
Mixture-of-Depths (MoD) breaks that rule. Published by Raposo et al. at Google DeepMind in 2024, MoD adds a lightweight router at each transformer layer. The router scores each token and decides: process it fully here, or skip this layer entirely and pass through unchanged. A budget controls how many tokens get processed â for example, only 12.5 % of tokens might enter the most expensive layers.
The result is a model that uses the same number of parameters as a standard transformer but can run significantly faster at inference, because whole slices of the compute graph simply never execute for easy tokens. The router learns its routing policy jointly with the rest of the model â no hand-engineering required.
This connects to a broader family of ideas: see Mixture-of-Experts for the related technique that routes tokens to different experts rather than skipping layers.
Comments
Loading comments...