Conditional compute: choose experts, skip work, or retrieve stored knowledge?¶
简体中文 · English
Updated 2026-11-24 · 28 topic entries / 8 representative comparisons
Parameter capacity, active computation per token, and serving latency are distinct. Switch selects experts; Engram and Memory Grafting retrieve local patterns. AdaDSF, Telescopic LM, and WIDE allocate work by token and layer, full depth, and group width respectively. Identify the routing unit before discussing capacity or savings.
Mechanisms · Trade-offs · Cross-paper questions · Updates
How to read this card
The table compares representative methods. It is not a shared-benchmark leaderboard. Teaching examples are not measured results.
Mechanism comparison¶
Axes: Experts, layers, head/channel groups, or discrete memory entries · Capacity in trainable networks or frozen lookup values · Budgets per token, layer, request, or deployment depth · Whether sparse branches actually skip kernels
| Paper and source | Mechanism | Benefits and trade-offs |
|---|---|---|
| Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity · Original source Sections in the Chinese source: 背景与主要改动, 核心公式, 复现边界 |
Activate one FFN expert per token to increase total capacity with sparse compute; an auxiliary objective balances load. | Storage, expert capacity, and cross-device communication remain. Local top-1 MoE omits overflow and all-to-all. |
| Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models · Original source Sections in the Chinese source: 背景与主要改动, 核心公式, 复现边界 |
Hash normalized n-grams into trainable memory and context-gate the retrieved vectors into early layers. | Local patterns do not replace compositional reasoning; hash collisions and table size matter. The local trainable lookup runs, but short-budget results are not paper gains. |
| Memory Grafting: Scaling Language Model Pre-training via Offline Conditional Memory · Original source Sections in the Chinese source: 背景与主要改动, 核心公式, 复现边界 |
Encode frequent phrases offline with a pretrained model and freeze them. At serving, match the longest exact suffix or fall back to hashed Engram. | Offline bank construction amortizes knowledge acquisition, with new coverage and interface requirements. The local bank does not test scaling gains over Engram. |
| Adaptive Depth Sparse Framework: Similarity-Driven Resource Allocation for Pre-Trained LLMs · Original source Sections in the Chinese source: 背景与主要改动, 核心公式, 复现边界 |
Allocate layer budgets from changes between dense teacher layers; each router computes only for Top-K tokens, bypassing others through residuals. | Calibrate global active ratio and align routing to the teacher. Active-token counts are not measured GPU FLOPs or latency. |
| Telescopic Language Models · Original source Sections in the Chinese source: 背景与主要改动 |
Train random depth prefixes while keeping a full-depth anchor so one checkpoint runs at several complete depths. | Deployment depth is not fine-grained per-token routing. Local checks cover random depth and anchor gradients only. |
| WIDE: Boosting Adaptive LLM Inference via Token-level Dynamic Width Pruning · Original source Sections in the Chinese source: 背景与主要改动, 核心公式, 复现边界 |
Select attention head groups and FFN channel groups separately for each token, at finer granularity than a layer. | Mask reordering and device-level block skipping are needed for speed. Dense-kernel local sparsity is not acceleration. |
| Smart Model Routing for Order-of-Magnitude LLM Cost Reduction · Original source Sections in the Chinese source: 背景与主要改动, 核心公式, 论文离线与线上效果, 结果、负控与边界 |
Select complete models by cost/predicted quality, pricing router/checker overhead, residual hard traffic and token skew; cascade acceptance must clear strict whole-path breakeven. | Switch performs token-level top-1 expert selection and balancing inside one network; Smart Routing chooses complete endpoints. Activated FLOPs and API bills are different units. Cheap calls or calibrated averages alone do not identify easy requests or ensure savings. |
| DeepCrossAttention: Supercharging Transformer Residual Connections · Original source Sections in the Chinese source: 背景与主要改动, 核心公式, 同主题比较与边界 |
Standard residuals sum the input and previous incremental layer outputs. DCA retains that history and combines feature-by-history base weights with token/history-dependent terms. Q, K and V have independent GRN-v3 modules. Depth routing is an unnormalized weighted sum, not a layer-wise softmax; ordinary attention still operates across tokens. | RD-AttnRes starts from Block AttnRes, retains one QK route and separates V through its attention-residual mechanism. DCA instead separates all three Q/K/V routes and uses feature-dependent base weights plus ReLU dynamic terms in a linear sum. It is not three copies of RD's V route. Their normalization, historical storage and full-training evidence are not interchangeable. |
Trade-off analysis¶
Expert computation and conditional memory are different capacities¶
Switch executes a nonlinear expert on the hidden input. Engram retrieves discrete local-pattern entries and gates them by context. Memory Grafting gets some entries from frozen offline pretrained representations. Sparse capacity therefore means different things for expert weights, learned tables, and frozen banks. Expected constant-time addressing does not eliminate lookup transfer and fusion costs.
Sources: Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity · Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models · Memory Grafting: Scaling Language Model Pre-training via Offline Conditional Memory
State the unit of a conditional budget¶
AdaDSF sets how many tokens enter each layer; Telescopic LM runs a complete depth prefix; WIDE selects each token's attention and FFN groups. Similar active ratios conceal different dependencies, workloads, and kernels. Dense computation followed by zero masking saves no latency. Consider training compatibility and actual deployment skip granularity.
Sources: Adaptive Depth Sparse Framework: Similarity-Driven Resource Allocation for Pre-Trained LLMs · Telescopic Language Models · WIDE: Boosting Adaptive LLM Inference via Token-level Dynamic Width Pruning
Counting activated experts is not counting paid model calls¶
Switch reduces per-token activated compute; external cascades pay cheap-answer/checker calls even when discarded. The paper's inflated 2.70x versus accounted 2.19x and residual-quality overstatement expose terminal-answer-only accounting. The learned-router follow-up also fails to beat cost-matched blind mixing. CPU Equations 5/6/7 check arithmetic, not gold-based routing or a trained useful router.
Sources: Smart Model Routing for Order-of-Magnitude LLM Cost Reduction · Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity
DeepCrossAttention: Supercharging Transformer Residual Connections¶
RD-AttnRes starts from Block AttnRes, retains one QK route and separates V through its attention-residual mechanism. DCA instead separates all three Q/K/V routes and uses feature-dependent base weights plus ReLU dynamic terms in a linear sum. It is not three copies of RD's V route. Their normalization, historical storage and full-training evidence are not interchangeable. The fixed-v2 Section3.1 text specifies b+ReLU(wᵀG), initializing b to one and w to zero. Under PyTorch's ReLU'(0)=0 convention, the initial dynamic-w gradient is zero. We expose that negative control instead of changing activation or initialization. Figure3 additionally depicts normalization and a different activation ordering not explicit in the text equation. Local code declares the text-formula interpretation, not the authors' training implementation. Three LayerNorms follow the Q/K/V routes as in Figure4.
Sources: DeepCrossAttention: Supercharging Transformer Residual Connections · Role-Decoupled Attention Residuals
Cross-paper questions¶
Try answering before expanding the explanation. Each question relates at least two papers.
What do a Switch expert and an Engram or Memory Grafting lookup add for a repeated phrase?¶
Show answer and example
Answer: Switch adds a routed function executed on the current hidden input. Engram learns discrete n-gram values; Memory Grafting reuses frozen external phrase representations with fallback. Conditional computation and local lookup both help capacity but do not guarantee compositional answers.
Illustrative example: A repeated product name can retrieve a stable hint; comparing two products' uses still needs context and computation.
Sources: Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity · Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models · Memory Grafting: Scaling Language Model Pre-training via Offline Conditional Memory
Why do AdaDSF, Telescopic LM, and WIDE produce different execution graphs even at half the compute?¶
Show answer and example
Answer: AdaDSF can route tokens differently across layers; Telescopic LM runs one complete prefix; WIDE routes groups within a layer per token. Equal averages do not fix slowest paths, group shapes, or memory traffic. Log token-layer assignment, actual depth, and group activation separately.
Illustrative example: Half the tokens at full depth, all tokens at half depth, and each token at half width are different forward passes.
Sources: Adaptive Depth Sparse Framework: Similarity-Driven Resource Allocation for Pre-Trained LLMs · Telescopic Language Models · WIDE: Boosting Adaptive LLM Inference via Token-level Dynamic Width Pruning
Why can't Switch and WIDE speedups be inferred from mask counts?¶
Show answer and example
Answer: Experts can require dispatch and imbalance handling; grouped masks need hardware skipping with different matrix and memory patterns. Dense computation then masking only changes values. Even genuine skips require counting routing, reordering, and communication. Measure the end-to-end workload.
Illustrative example: Half the FFN channels can be slower if extra rearrangement and small matrix calls replace one efficient dense matrix.
Sources: Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity · WIDE: Boosting Adaptive LLM Inference via Token-level Dynamic Width Pruning
Can Switch's one-expert-per-token sparsity directly predict external cascade savings?¶
Show answer and example
Answer: No. External routing pays complete answer, checker, fallback and router costs conditioned on actual token use and acceptance history. Switch load balancing provides no endpoint-level accounting or quality guarantee.
Illustrative example: Teaching example: cheap1+checker1+router0.5 against frontier10 only breaks even at 0.25 acceptance. Internal top-1 sparsity does not erase these bills.
Sources: Smart Model Routing for Order-of-Magnitude LLM Cost Reduction · Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity
How does DCA's Q/K/V separation differ from RD-AttnRes?¶
Show answer and example
Answer: RD-AttnRes retains shared QK routing and separates V. DCA has three independent GRN-v3 modules and a different depth-mixing formula.
Illustrative example: Illustration: changing only DCA's Q base weights must leave K/V route outputs bitwise unchanged; RD shares the Q/K route.
Sources: DeepCrossAttention: Supercharging Transformer Residual Connections · Role-Decoupled Attention Residuals
Update log¶
Updates record new approaches, changed trade-offs, and follow-up evidence.
2026-11-24 · RD-AttnRes starts from Block AttnRes, retains one QK route and separates V through its attention-residual mechanism. DCA instead separates all three Q/K/V routes and uses feature-dependent base weights plus ReLU dynamic terms in a linear sum. It is not three copies of RD's V route. Their normalization, historical storage and full-training evidence are not interchangeable. Full-experiment non-reproduction remains separate from L1 components; no Evolve promotion.
Affected: DeepCrossAttention: Supercharging Transformer Residual Connections · Role-Decoupled Attention Residuals
2026-11-18 · Add application-level model-routing arithmetic separately from token-expert routing. Preserve negative learned-router results and price checker/router overhead, token skew and conditional fallback quality; full inference/collection is not reproduced.
Affected: Smart Model Routing for Order-of-Magnitude LLM Cost Reduction · Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity
2026-10-27 · Initial version: compared expert execution, discrete lookup, frozen phrase grafting, and depth/width routing, separating capacity, budget units, and hardware requirements.
Covers 26 topic entries; see the full list below.
All 28 topic entries
The full catalog follows. The main comparison covers the representative papers listed above.
- Adaptive Depth Sparse Framework: Similarity-Driven Resource Allocation for Pre-Trained LLMs
- Byte Latent Transformer: Patches Scale Better Than Tokens
- Cross-Entropy Guided Routing in Mixture-of-Experts Large Language Models
- CoTS: Competitive Token Selection for Latent Reasoning in Large Language Models
- Smoothing the Top-k Exposure Boundary for Sparse Mixture-of-Experts
- Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models
- Pretraining Latent Information Feedback Transformers with Teacher Supervision
- Lngram v2: Latent N-Gram Memory with Interpretable Discrete Representations
- Looped Latent Attention: Cross-Loop KV Compression for Looped Transformers
- MACRO: Markov Chain Routing of Transformer Layers
- Memory Grafting: Scaling Language Model Pre-training via Offline Conditional Memory
- mHC: Manifold-Constrained Hyper-Connections
- Optimized Deferral for Imbalanced Settings
- Rethinking Routing Exploration in Modern Mixture-of-Experts
- Multi-Stream Attention Residuals
- Patch where the text is new: a compression view of where byte-level models should spend compute
- Penelope: Localized Latent Recurrence for Efficient Structured Reasoning
- Persistent Recurrent Memory Between Transformer Layers Improves Language Model Generalization
- RARE: Decoupling Representation Steering from Expert Routing in Mixture-of-Experts Language Models
- Role-Decoupled Attention Residuals
- Data Scarcity and Model Sparsity: Mixtures-of-Experts Overfit More to Repeated Data
- SparseDecoding: Decoding-Aware Pruning for Accurate and Efficient LLM Inference
- Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity
- SWRouter: Similarity-Contractive Window Routing for Multi-Turn Large Language Model Conversations
- Telescopic Language Models
- WIDE: Boosting Adaptive LLM Inference via Token-level Dynamic Width Pruning
- Smart Model Routing for Order-of-Magnitude LLM Cost Reduction
- DeepCrossAttention: Supercharging Transformer Residual Connections