Home Knowledge Base Conditional Computation

Conditional Computation is the neural network design paradigm where only a fraction of the model's total parameters are activated for any given input, fundamentally decoupling model capacity (total knowledge stored) from inference cost (FLOPs per prediction) — enabling the construction of trillion-parameter models that access only the relevant 1–2% of parameters per query, transforming the scaling economics of large language models by allowing knowledge to grow without proportional compute growth.

What Is Conditional Computation?

Why Conditional Computation Matters

Conditional Computation Implementations

ApproachMechanismScale Example
Sparse MoEToken routing to top-k experts per layerSwitch Transformer (1.6T params, 1 expert active)
Product Key MemoryFast learned hash lookup to retrieve relevant memory entriesPKM replaces feed-forward layers with learned memory
Adaptive DepthTokens skip layers based on confidence, reducing effective depthMixture of Depths (30–50% layer skip)
Dynamic HeadsSelectively activate attention heads based on input relevanceHead pruning or per-token head routing

Conditional Computation is the massive library paradigm — storing a million books of knowledge across trillions of parameters but reading only the one relevant page per query, enabling AI systems to be simultaneously vast in knowledge and efficient in execution.

conditional computation advancedneural architecture

Explore 500+ Semiconductor & AI Topics

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