Home Knowledge Base Mixture of Depths (MoD)

Mixture of Depths (MoD) is the adaptive computation architecture that dynamically allocates transformer layer processing based on input token complexity — allowing easy tokens to skip layers and save compute while difficult tokens receive full-depth processing — the depth-axis complement to Mixture of Experts (width variation) that reduces inference FLOPs by 20–50% with minimal quality degradation by recognizing that not all tokens require equal computational investment.

What Is Mixture of Depths?

Why Mixture of Depths Matters

MoD Architecture

Router Mechanism:

Training:

Inference:

MoD Performance

ConfigurationFLOPs (vs. Dense)Quality (vs. Dense)Throughput Gain
C=0.75 (75% processed)78%99.5%1.25×
C=0.50 (50% processed)55%98.8%1.7×
C=0.25 (25% processed)35%96.5%2.5×

Mixture of Depths is the recognition that computational difficulty varies token-by-token — enabling transformers to invest their compute budget where it matters most, achieving the efficiency gains of model compression without the permanent quality loss, by making depth itself a dynamic, learned property of the inference process.

mixture of depths (mod)mixture of depthsmodllm architecture

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.