Google DeepMind has unveiled a new technique called Mixture of Depths (MoD) that cuts AI inference costs in half without sacrificing performance—in fact, it slightly improves model quality. The approach rethinks how transformer models process data, moving away from the standard practice of forcing every token through all computational layers.
Instead, MoD employs a dynamic routing mechanism. A lightweight "manager" network evaluates each token and decides which ones need heavy computation. Only the most important tokens—a fixed fraction per layer—are sent through expensive matrix multiplications. The rest take a low-cost residual skip connection, preserving information while saving compute.
In tests, models using MoD matched or exceeded the quality of baseline transformers while using 50% less FLOPs during inference. On several benchmarks, quality actually improved by up to 1.5% , as the model focused compute on truly hard tokens.
MoD is complementary to Mixture of Experts (MoE). Combining both—dubbed Mixture of Depth-Experts (MoDE)—yields even greater efficiency gains. DeepMind has also released open-source implementations and demonstrated that existing pretrained models can be converted to MoD post-hoc, making the technique practical for real-world deployment.
"This is a fundamental change in how we think about transformer efficiency," said a DeepMind researcher. "By dynamically allocating compute where it matters most, we can run larger models at a fraction of the cost."
The impact could be far-reaching, enabling more capable AI systems to run on less hardware, reducing energy consumption, and lowering the barrier to deploying advanced models in production environments.