Sparse Mixture of Experts at Scale
1. Key Concepts and Definitions
1.1 Key Concepts and Definitions
Mixture of Experts (MoE) Architecture
The Mixture of Experts (MoE) model is a neural network architecture that dynamically routes input data to specialized subnetworks ("experts") via a gating mechanism. Unlike dense models where all parameters are active for every input, MoE enables conditional computation by activating only a subset of experts per forward pass. The gating function G(x) computes sparse weights to select the top-k experts for input x:
where Wg is the gating weight matrix, ϵ is noise for load balancing, and N is the total number of experts. The sparsity constraint (k ≪ N) reduces computational cost from O(N) to O(k) while maintaining model capacity.
Sparse Activation and Expert Parallelism
Sparse MoEs achieve scalability through two mechanisms:
- Conditional Execution: Only the selected experts' forward passes are computed, with gradients backpropagated solely through active paths.
- Distributed Expert Placement: Experts are sharded across devices (GPUs/TPUs), requiring all-to-all communication for token routing. The communication volume scales as:
where B is batch size and d is the token dimension. Modern systems like GLaM optimize this via hierarchical routing and expert caching.
Load Balancing and Auxiliary Losses
Imbalanced expert utilization causes underfitting and hardware inefficiency. The auxiliary load balancing loss Lbalance encourages uniform routing:
where Pi is the routing probability for expert i, CV is the coefficient of variation, and α is a scaling hyperparameter. Google's Switch Transformer introduces capacity factors to limit tokens per expert, preventing overload.
Expert Specialization Emergence
At scale, experts self-organize into specialized feature extractors. Analysis of Expert Choice Routing reveals:
- Low-level experts process syntactic features (e.g., part-of-speech tags)
- High-level experts capture semantic concepts (e.g., named entities)
This specialization is quantified via expert embedding similarity in the gating space, where cosine distance between expert centroids shows clear clustering.

1.2 Historical Evolution and Motivation
The concept of Mixture of Experts (MoE) traces its origins to the early 1990s, with foundational work by Jacobs et al. (1991) and Jordan & Jacobs (1994). The original formulation aimed to decompose complex learning tasks into subtasks handled by specialized "expert" networks, combined via a gating mechanism. This modular approach was motivated by the need for scalable and efficient learning in high-dimensional spaces, where monolithic models struggled with computational and statistical inefficiencies.
Early Theoretical Foundations
The initial MoE framework was rooted in divide-and-conquer principles, formalized as a probabilistic mixture model. Given input x, the output y is modeled as:
where gi(x) represents the gating network's probability of selecting expert i, and pi(y|x) is the expert's conditional distribution. The gating function was typically a softmax over learned weights:
Scalability Challenges and Sparse Innovations
Early MoE models faced two critical limitations: (1) computational costs grew linearly with the number of experts due to dense gating, and (2) training instability arose from expert specialization imbalances. The breakthrough came with Shazeer et al. (2017)'s sparse gating modification in Outrageously Large Neural Networks, which enforced top-k expert selection:
This sparsity reduced computation from O(N) to O(k) per example while maintaining model capacity. The innovation was driven by hardware-aware design—GPUs optimized for batch processing could efficiently handle irregular sparse activations.
Modern Large-Scale Applications
The paradigm shifted with Google's GLaM (2021) and subsequent work, demonstrating that sparse MoEs could scale to trillions of parameters while maintaining practical training costs. Key enabling factors included:
- Dynamic routing algorithms to balance expert utilization (e.g., load balancing losses).
- Hardware-specific optimizations like expert parallelism in distributed systems.
- Conditional computation frameworks that exploit input-dependent sparsity.
Current research extends these ideas to cross-domain applications, from multilingual NLP (e.g., Switch Transformers) to multimodal systems where different experts process vision, text, or audio modalities.

1.3 Comparison with Dense Models and Traditional Mixture of Experts
Computational Efficiency and Scaling
Sparse Mixture of Experts (SMoE) architectures fundamentally differ from dense models in their activation patterns. While dense models apply all parameters to every input, SMoE dynamically routes inputs to a subset of experts. For a model with N experts and a sparsity factor k (where typically k ≪ N), the computational cost scales as O(kd2) per token compared to O(Nd2) for dense models, where d is the hidden dimension. This enables sublinear parameter-to-FLOPs scaling.
Parameter Utilization and Model Capacity
Traditional Mixture of Experts (MoE) often suffers from expert imbalance, where a few dominant experts handle most inputs. SMoE addresses this through:
- Load balancing constraints (e.g., auxiliary losses in Switch Transformers)
- Expert capacity buffers to prevent overflow
- Differentiable routing with temperature annealing
In contrast, dense models uniformly distribute learning capacity, which can be inefficient for tasks with heterogeneous subproblems. The table below compares key characteristics:
| Model Type | Activation Pattern | Parameter Efficiency | Typical Use Case |
|---|---|---|---|
| Dense | Fully-connected | Low (100% active) | Small-scale homogeneous tasks |
| Traditional MoE | Static routing | Medium (expert underutilization) | Early multi-task learning |
| SMoE | Dynamic sparse routing | High (k/N% active) | Large-scale heterogeneous data |
Training Dynamics and Convergence
The gradient flow in SMoE exhibits distinct properties compared to dense networks. Since only activated experts receive gradients for a given batch, the effective batch size per expert is reduced by factor k/N. This necessitates:
for equivalent convergence rates, where η is the learning rate. The routing mechanism also introduces second-order effects - poorly initialized routers can trap experts in underutilized states, requiring techniques like:
- Expert dropout during warmup
- Noisy top-k gating
- Curriculum learning on routing difficulty
Memory Hierarchy Considerations
While SMoE reduces compute FLOPs, it introduces memory access challenges. The sparse activation pattern causes irregular memory accesses when fetching expert parameters, contrasting with dense models' predictable access patterns. Modern implementations use:
- Expert-aware sharding across devices
- Block-sparse weight matrices
- Prefetching based on routing predictions
For a 1.6 trillion parameter SMoE model (e.g., Google's GLaM), this results in 8-10× higher memory bandwidth requirements compared to equivalent dense models, but with 5-7× lower FLOPs per token.

2. Expert Selection Mechanisms
Expert Selection Mechanisms
Expert selection in sparse mixture of experts (MoE) models is governed by a gating mechanism that dynamically routes input tokens to a subset of experts. The primary objective is to maximize computational efficiency while maintaining model performance. Two dominant approaches exist: top-k gating and noisy top-k gating, each with distinct trade-offs in sparsity, load balancing, and gradient stability.
Top-k Gating
Given an input x, the gating network computes expert scores using a learned weight matrix W_g followed by a softmax:
The top-k experts are selected based on the highest scores in G(x), where k is typically 1 or 2 for sparsity. The output y is a weighted sum of the selected experts' outputs E_i(x):
This approach introduces a challenge: the gating function's gradient is non-zero only for the selected experts, leading to potential training instability. To mitigate this, straight-through estimators (STE) are often employed during backpropagation.
Noisy Top-k Gating
Proposed in Shazeer et al. (2017), noisy top-k gating adds tunable Gaussian noise to the expert scores before applying top-k selection:
The noise term σ is annealed during training, initially encouraging exploration across experts and later converging to deterministic routing. This method improves load balancing by preventing expert underutilization, a common issue in vanilla top-k gating.
Load Balancing
Uneven expert utilization can degrade model performance. Two auxiliary losses are often incorporated:
- Importance loss: Encourages uniform expert selection across batches by minimizing the squared difference between batch-averaged gating scores and a uniform distribution.
- Load loss: Directly penalizes imbalances in the number of tokens assigned to each expert per batch.
Switch Routing
A variant of top-k gating, switch routing (Fedus et al., 2021) uses k=1 for extreme sparsity. The gating function becomes:
This reduces computation but requires careful initialization and larger expert counts to compensate for reduced capacity per token. Switch routing is particularly effective in models with thousands of experts, where even a single-expert selection per token provides sufficient expressivity.
Expert Capacity
To handle variable token loads, each expert is allocated a fixed capacity C, defined as the maximum number of tokens it can process per batch. Tokens exceeding C are either dropped or routed to a fallback expert. The capacity is typically set as:
where N is batch size, E is total experts, and δ is a buffer factor (e.g., 0.1). This ensures most tokens are processed while avoiding excessive memory overhead.

Routing Algorithms and Sparsity Constraints
In sparse Mixture of Experts (MoE) models, routing algorithms determine how input tokens are dynamically assigned to expert networks while enforcing sparsity constraints to maintain computational efficiency. The two dominant approaches are top-k routing and noisy top-k gating, each with distinct trade-offs in load balancing and gradient stability.
Top-k Routing
Given an input token x, the router computes expert scores using a learned gating function G(x), typically implemented as a linear layer followed by softmax:
where Wg and bg are trainable parameters. The top-k experts with highest scores are selected, and the output becomes a weighted sum of their computations:
Here, gi(x) is the gating score for expert i, and Ei(x) is the expert's output. The sparsity constraint arises because only k experts (typically k=1 or k=2) are active per token, reducing FLOPs by a factor of n/k where n is the total number of experts.
Noisy Top-k Gating
To address the load imbalance problem in vanilla top-k routing, noisy top-k gating adds tunable Gaussian noise to the logits before computing gating scores:
The noise term ε is annealed during training, initially encouraging exploration across experts before converging to deterministic assignments. This method achieves better load balancing while maintaining sparsity, as demonstrated in GShard (Lepikhin et al., 2020) and Switch Transformers (Fedus et al., 2021).
Sparsity-Aware Gradient Estimation
Since the top-k operation is non-differentiable, gradient estimation techniques are required for training:
- Straight-Through Estimator (STE): Treats the discretized routing decisions as identity functions during backpropagation
- REINFORCE: Uses policy gradient methods to estimate gradients through stochastic sampling
- Differentiable Sorting: Approximates ranking operations using differentiable relaxations like neural sorting
The choice of estimator affects both training stability and final model performance. Recent work has shown that combining STE for gating gradients with auxiliary load balancing losses yields the best practical results.
Capacity Factor and Load Balancing
To prevent expert overload, a capacity factor C is introduced, defining the maximum number of tokens each expert can process per batch:
Typical values range from C=1.0 (strict balance) to C=2.0 (tolerant imbalance). Tokens exceeding an expert's capacity are dropped or passed to the next available expert, creating a trade-off between computational efficiency and information preservation.
The diagram illustrates token routing in a 4-expert system with k=2 selection. Colored paths show how input tokens are distributed to experts and recombined in the output, with the router enforcing both sparsity (limited expert participation) and load balancing (even token distribution).

Dynamic Capacity Allocation
Dynamic capacity allocation in sparse mixture of experts (MoE) models addresses the challenge of uneven token-to-expert assignment by adaptively adjusting computational resources based on input distribution. Unlike static routing, where each expert handles a fixed capacity, dynamic methods rebalance load during forward passes to prevent underutilization or overload.
Token Routing with Capacity Constraints
The fundamental constraint is expressed through an expert capacity multiplier C, defining the maximum number of tokens an expert can process per batch. For N experts and batch size B, the baseline capacity per expert is:
In practice, this is scaled by an overcapacity factor (typically 1.0-2.0) to handle imbalance:
Top-k Gating with Load Balancing
The gating network outputs probabilities for each token-expert pair. For top-2 routing:
Tokens are assigned to the top-2 experts by G(x), but the second expert is only used if the primary expert exceeds capacity. This creates a cascading overflow mechanism.
Importance Loss and Load Balancing
To prevent expert collapse, an auxiliary loss term encourages uniform utilization:
where CV is the coefficient of variation across expert loads and λ is a hyperparameter (typically 0.01-0.1). The total loss combines task loss and balancing loss:
Dynamic Capacity Algorithms
Advanced implementations use:
- Expert Choice Routing: Experts select top tokens rather than tokens selecting experts, ensuring exact capacity fulfillment
- Adaptive Computation Time: Allocating more capacity to experts processing difficult tokens
- Learned Capacity: Predicting required capacity per expert using a secondary network
The expert choice variant reformulates the assignment as a bipartite matching problem:
where ℳ is a matching ensuring each expert gets exactly C tokens.
Implementation Considerations
Key practical aspects include:
- Gradient stopping for unselected experts to reduce memory
- Asynchronous communication for distributed expert placement
- JIT-compiled kernels for efficient top-k operations

3. Distributed Training Strategies
3.1 Distributed Training Strategies
Training sparse mixture of experts (MoE) models at scale requires specialized distributed strategies to handle the unique computational patterns introduced by expert parallelism. The primary challenge stems from the dynamic routing of tokens to experts, which creates irregular communication patterns that traditional data or model parallelism cannot efficiently address.
Expert Parallelism
Expert parallelism partitions experts across devices while replicating all other model components. For a model with E experts distributed across N devices, each device hosts approximately E/N experts. The forward pass involves:
where routing decisions are made locally, but tokens may need to be transferred between devices when their assigned expert resides elsewhere. The all-to-all communication pattern that emerges scales as O(T) where T is the number of tokens.
Combined Data and Expert Parallelism
For large-scale training, expert parallelism is typically combined with data parallelism. Each data parallel group shares the same expert assignments, allowing gradient synchronization to occur only within subsets of devices. The communication volume C for a hybrid approach is:
where P is the total parameter count, G is the number of data parallel groups, and α, β are architecture-dependent constants.
Dynamic Load Balancing
The sparse nature of expert activation creates imbalanced computational loads across devices. Two primary strategies address this:
- Expert capacity factor: Overprovisions expert buffer sizes by a multiplicative factor (typically 1.1-2.0) to handle token overflow
- Auxiliary loss terms: Adds regularization to encourage balanced routing, such as the load balancing loss from Shazeer et al.:
where f_i is the fraction of tokens routed to expert i, P_i is the fraction of total capacity allocated to expert i, and λ is a hyperparameter.
Communication Optimization
Modern implementations use several optimizations to reduce communication overhead:
- Fused all-to-all: Combines multiple small transfers into larger contiguous buffers
- Top-k gating with k > 1: Allows overlapping communication for multiple expert assignments
- Hierarchical routing: Implements two-level routing (device-local then global) to reduce cross-node communication
The communication-computation overlap can be modeled as:
where ε represents the non-overlapped portion of operations.
Memory Considerations
Sparse MoE models introduce unique memory constraints due to the need to maintain:
- Expert parameters replicated across data parallel groups
- Routing state information for backward passes
- Intermediate buffers for token exchange
The peak memory usage M per device scales as:
where H is the hidden dimension, d is the model depth, and c is a constant representing per-token expert overhead.

3.2 Memory and Computational Efficiency
The sparse mixture of experts (MoE) architecture achieves scalability by activating only a subset of experts per input, but its memory and computational efficiency depend critically on the routing mechanism, expert capacity, and gradient sparsity. Unlike dense models where all parameters participate in every forward pass, sparse MoEs decouple model size from computational cost through conditional computation.
Parameter Efficiency vs. Activation Cost
The total memory footprint of a sparse MoE layer decomposes into two components:
Where Mparams grows linearly with the number of experts N (since all expert parameters must be stored), while Mactivations scales with the active expert count k and token count T:
This creates a fundamental tradeoff - while increasing N improves model capacity with sublinear memory growth for activations, the routing overhead and parameter memory grow linearly.
Computational Complexity Analysis
The computational cost of a MoE layer breaks down as:
- Routing computation: O(T × N × dmodel) for calculating gating scores
- Expert computation: O(k × T × dmodel2) for the active experts
- All-to-all communication: O(T × dmodel) in distributed settings
The quadratic dependence on dmodel in expert computation dominates when k × T ≫ N, making expert capacity the critical bottleneck.
Expert Capacity Balancing
To prevent memory overflow from imbalanced routing, most implementations enforce expert capacity C - the maximum number of tokens an expert can process. The capacity factor f = C × N / T determines how much slack exists in the system. When f < 1, some tokens may be dropped or spilled to other experts, creating a tradeoff between computational efficiency and model quality.
Modern systems like GShard use adaptive capacity factors that scale with batch size, while Switch Transformer employs auxiliary losses to balance expert utilization.
Gradient Sparsity and Training Dynamics
Backpropagation in sparse MoEs exhibits unique properties:
- Only active experts receive gradient updates, creating sparsity in parameter updates
- The gating network gradients flow through all experts, creating a competition dynamic
- Expert specialization emerges from the combination of sparse forward passes and dense gradient signals
This partial gradient flow enables efficient distributed training, as expert parameters can be sharded across devices with communication limited to the routed tokens.
Hardware Considerations
Efficient MoE implementation requires:
- Memory bandwidth optimization: Expert parameters must be fetched on-demand for activated tokens
- Kernel fusion: Combining routing, expert computation, and gradient operations into single kernels
- Topology-aware routing: In distributed settings, minimizing cross-device communication
Systems like Megablocks use block-sparse matrix operations and expert-specific CUDA kernels to achieve >50% FLOP utilization on GPUs, compared to <10% for naive implementations.
Handling Heterogeneous Data Streams
Modern large-scale machine learning systems must process input data that varies significantly in structure, dimensionality, and statistical properties. The sparse mixture of experts (MoE) architecture provides an elegant solution through dynamic routing mechanisms that adapt to these variations without requiring manual feature engineering.
Dynamic Capacity Allocation
The key innovation in MoE architectures is the ability to allocate computational resources proportionally to the complexity of each input sample. For an input x with feature vector dimensionality d, the gating network computes expert selection probabilities:
where Wg ∈ ℝn×d is the gating weight matrix for n experts. The top-k experts are selected based on these probabilities, with k typically being 1-4% of total experts for sparsity.
Feature-Dependent Routing
Heterogeneous data requires specialized handling of different feature modalities. For multimodal inputs x = [x1, x2, ..., xm] where each xi represents a distinct data type (text, image, time-series), the routing function becomes:
The coefficients αi are learned attention weights that determine each modality's contribution to the routing decision. This allows the model to automatically adjust its behavior based on which input features are most salient for a given sample.
Handling Variable-Length Sequences
For sequential data where input length varies, the MoE architecture employs two key modifications:
- Position-wise expert selection: Each timestep makes independent routing decisions
- Memory-efficient attention: Sparse attention patterns reduce the quadratic cost of processing long sequences
The computational cost for a sequence of length L becomes O(kL) rather than O(L2), enabling processing of extremely long sequences (100k+ tokens) that commonly occur in real-world streaming data.
Practical Implementation Considerations
Large-scale deployment requires several engineering optimizations:
- Hierarchical routing: Two-level gating reduces communication overhead in distributed systems
- Expert load balancing: Auxiliary losses prevent token collapse where few experts receive most inputs
- Dynamic batching: Grouping similar-length sequences minimizes padding waste
These techniques allow MoE models to maintain high throughput (100k+ tokens/sec) while processing highly variable input streams in production environments.

4. SMoE in Natural Language Processing
4.1 SMoE in Natural Language Processing
Sparse Mixture of Experts (SMoE) architectures have emerged as a powerful paradigm in natural language processing (NLP), enabling models to scale efficiently while maintaining computational tractability. The core idea leverages conditional computation, where only a subset of expert networks is activated per input token, reducing the effective computational cost while preserving model capacity.
Architectural Foundations
The SMoE layer in transformer-based NLP models typically replaces the dense feed-forward network (FFN) with multiple parallel expert FFNs. For an input token representation x ∈ ℝd, a gating network G(x) computes sparse weights to select k out of N experts:
where Wg ∈ ℝN×d is the gating weight matrix and ϵ is noise added for load balancing. The output y becomes a weighted sum of the selected experts' outputs:
Key Advantages in NLP
- Efficient Scaling: SMoE models achieve better performance-per-FLOP compared to dense transformers, with empirical results showing 4-7x efficiency gains at inference time.
- Specialization: Experts naturally develop domain-specific skills, with linguistic analysis revealing distinct syntactic and semantic processing specializations.
- Multi-Task Learning: The architecture inherently supports multi-task learning as different experts can handle different linguistic phenomena or domains.
Practical Implementation Challenges
Effective SMoE deployment in NLP requires addressing several technical challenges:
where CV(f) is the coefficient of variation in expert usage and SB(f) is the balance between experts. Typical values for hyperparameters are α ≈ 10-2 and β ≈ 10-1.
Case Study: Large-Scale Language Modeling
In the Switch Transformer architecture, scaling to 1.6 trillion parameters demonstrated the effectiveness of SMoE for NLP. Key findings included:
- 2048 experts with k=1 routing achieved 7x faster inference than dense models of comparable quality
- Experts developed specialized skills for different linguistic phenomena (e.g., named entities, syntactic structures)
- The gating network showed strong correlation with linguistic features in input tokens
Emerging Research Directions
Recent advances in SMoE for NLP include:
- Dynamic expert sizing based on input complexity
- Hierarchical gating networks for multi-granular routing
- Cross-layer expert sharing to improve parameter efficiency
- Differential privacy guarantees in expert routing
where τ controls the privacy-utility tradeoff in differentially private SMoE variants.

SMoE for Computer Vision Tasks
Architectural Adaptations for Vision
Sparse Mixture of Experts (SMoE) models applied to computer vision require modifications to handle the high-dimensional, spatially correlated nature of image data. Unlike language models where tokens are processed sequentially, vision tasks demand local and global feature integration. The most effective approach replaces dense feed-forward layers in Vision Transformers (ViTs) with expert layers that specialize in different visual patterns.
The gating network in vision SMoEs typically operates on patch embeddings rather than token embeddings. For an input image I ∈ ℝH×W×C divided into N non-overlapping patches pi ∈ ℝP×P×C, the gating weights G are computed as:
where Wg ∈ ℝE×d is the gating weight matrix for E experts, and d is the embedding dimension. The top-k experts are selected per patch, with k typically between 1-4 for computational efficiency.
Specialized Experts for Visual Features
Vision SMoEs employ heterogeneous experts designed to capture different aspects of visual information:
- Local feature experts with small receptive fields (3×3 or 5×5 convolutions)
- Global context experts using self-attention mechanisms
- Frequency domain experts processing DCT-transformed patches
- Cross-scale experts combining features from multiple resolutions
The expert diversity is enforced through auxiliary losses during training. For a set of experts {Ej}Mj=1, the importance loss Limp encourages balanced utilization:
where CV is the coefficient of variation across expert usage, λ controls the balancing strength, and 𝔹 is the current batch.
Efficient Routing Strategies
Vision-specific routing algorithms must account for spatial coherence - nearby patches often benefit from similar experts. The Spatially-Aware Router modifies standard top-k routing by:
- Computing initial gating scores G0(pi) for each patch
- Applying a 2D Gaussian blur to the score maps across spatial dimensions
- Renormalizing scores within local windows of size w×w
This approach reduces computational overhead while maintaining spatial consistency. For a 224×224 image with 16×16 patches, the routing complexity drops from O(196) to O(196/w2) with minimal accuracy loss.
Case Study: SMoE-ViT for Image Classification
When applied to ImageNet-1k classification, a 12-layer SMoE-ViT with 32 experts achieves:
| Model | Top-1 Acc | FLOPs | Active Params |
|---|---|---|---|
| Dense ViT-B | 81.2% | 17.6G | 86M |
| SMoE-ViT (k=2) | 82.7% | 13.4G | 24M |
The performance gain comes from expert specialization - analysis shows distinct experts activate for different image categories (texture experts for animals, shape experts for objects).
Multi-Task Vision Applications
SMoEs naturally extend to multi-task vision scenarios. In a joint segmentation/detection/classification setup:
where k indexes tasks and Ej(k) are task-specific expert components. This allows 89% parameter sharing across tasks while maintaining 97% of single-task performance levels.
Hardware Considerations
Efficient deployment requires addressing vision-specific challenges:
- Memory bandwidth: Patch-wise routing generates irregular memory access patterns
- Expert imbalance: Certain experts (e.g., edge detectors) activate more frequently
- Synchronization overhead: Distributed training requires careful batch construction
Recent solutions include expert caching (keeping frequently-used experts in faster memory) and dynamic batching (grouping inputs by expert selection patterns).

4.3 Real-World Deployment Challenges
Dynamic Load Balancing
In production environments, sparse MoE models face significant challenges in maintaining balanced computation across experts. The gating network's routing decisions often lead to imbalanced expert utilization, where some experts receive disproportionately more tokens than others. This imbalance creates computational bottlenecks, as the system must wait for the most overloaded expert to finish processing before proceeding. The problem intensifies with increasing model scale, where the variance in expert utilization grows as:
where ui represents the utilization of expert i and N is the total number of experts. Practical solutions involve dynamic capacity factors that adjust expert capacity based on real-time load, or auxiliary loss terms that penalize unbalanced routing during training.
Communication Overhead in Distributed Systems
When deployed across multiple devices or nodes, sparse MoE models incur substantial communication costs from routing tokens between experts. The all-to-all communication pattern required for token redistribution scales quadratically with the number of devices, becoming the dominant bottleneck in large-scale deployments. For K experts distributed across D devices, the communication complexity is:
State-of-the-art implementations use hierarchical communication strategies, where tokens are first aggregated within device groups before cross-group exchange, reducing the effective fan-out. Recent work has also explored learned routing policies that optimize for both model performance and communication locality.
Memory Bandwidth Constraints
The sparse activation pattern in MoE models leads to irregular memory access patterns that stress memory subsystems. Unlike dense models where weights are accessed contiguously, MoE models require random access to expert parameters based on gating decisions. This results in poor cache utilization and frequent memory stalls. The effective memory bandwidth Beff can be modeled as:
where B is the peak memory bandwidth and E[h] is the expected number of hops between expert memory accesses. Techniques like expert parameter caching and prefetching based on gating network predictions have shown promise in mitigating this issue.
Latency Variability
Real-time applications require consistent inference latency, but sparse MoE models exhibit significant per-request latency variability due to dynamic routing. The tail latency (e.g., p99) often exceeds the median by 3-5x in production settings. This stems from several factors:
- Long-tailed distribution of expert utilization
- Synchronization points in distributed implementations
- Memory access contention during expert computation
Current solutions employ latency-aware gating networks that explicitly optimize for both accuracy and inference time, along with speculative execution techniques that predict likely expert usage patterns.
Failure Resilience
In large-scale deployments, hardware failures are inevitable. Traditional fault tolerance mechanisms like checkpointing become prohibitively expensive for MoE models due to their massive parameter counts. The challenge is compounded by the dynamic nature of expert activation - a failed expert may not be detected until runtime when the gating network attempts to route tokens to it. Advanced approaches include:
- Expert replication with consensus protocols
- Dynamic expert substitution policies
- Learned failure recovery mechanisms that adapt routing on-the-fly
These solutions must carefully balance redundancy costs with system reliability, particularly when dealing with rare but critical experts that handle specialized input domains.
Quantization and Compression
While quantization is standard for dense models, sparse MoE architectures present unique challenges due to their hybrid sparse-dense computation patterns. Experts often require different quantization strategies than the gating network, and the interaction between quantized routing and expert computation can lead to unexpected accuracy degradation. The optimal bit allocation problem becomes:
where bg and be are the bit-widths for gating and expert parameters respectively, and N represents the corresponding parameter counts. Recent work has shown that mixed-precision strategies with 4-bit experts and 8-bit gating networks often provide the best tradeoff for production systems.

5. Benchmarking SMoE Models
5.1 Benchmarking SMoE Models
Key Performance Metrics for SMoE Models
Evaluating Sparse Mixture of Experts (SMoE) models requires tracking multiple dimensions of performance. The primary metrics include:
- Model Quality: Measured via task-specific evaluation (e.g., perplexity for language models, accuracy for classification).
- Computational Efficiency: FLOPs utilization, memory footprint, and latency per token or sample.
- Expert Utilization: Sparsity patterns and load balancing across experts.
The quality-efficiency trade-off is formalized by the Pareto frontier, where optimal models minimize computational cost while maximizing accuracy. For a model with N experts, the effective compute per forward pass is:
where Cbase is the shared network cost, k is the number of active experts per sample, and Cexpert is the compute per expert.
Standardized Benchmarking Protocols
Comparisons require controlled experimental setups:
- Hardware Consistency: Fixed GPU/TPU configurations with identical memory bandwidth.
- Baseline Matching:
- Dense models with equivalent total parameters
- Alternative sparse architectures (e.g., Switch Transformers)
- Dynamic Routing Analysis: Tracking expert selection entropy and gradient flow stability.
Case Study: Language Modeling Benchmarks
Recent large-scale evaluations on the C4 corpus demonstrate:
| Model Type | Params (B) | Active Params/Sample (B) | Perplexity |
|---|---|---|---|
| Dense Transformer | 10.0 | 10.0 | 24.3 |
| SMoE (k=2) | 52.0 | 3.1 | 22.8 |
The 4.8× total parameter increase yields only 3.1× active compute with 6% better perplexity, showcasing SMoE's efficiency.
Routing Dynamics Analysis
The expert selection process can be quantified through routing entropy:
where pi is the probability of selecting expert i. Well-balanced models maintain entropy near logk, while collapsed routing approaches zero.
System-Level Bottlenecks
At scale, three dominant constraints emerge:
- All-to-All Communication: Expert parallelism requires cross-device gradient synchronization.
- Memory Bandwidth: Loading expert weights dominates runtime for small batch sizes.
- Load Imbalance: Skewed expert utilization creates stragglers in distributed settings.
These are measured via profiling tools like NVIDIA Nsight or PyTorch Profiler, with attention to:
- Kernel launch overhead
- PCIe/NVLink saturation
- Memory-bound vs compute-bound regimes

5.2 Hyperparameter Tuning and Ablation Studies
Critical Hyperparameters in Sparse MoE Systems
The performance of sparse mixture of experts models is highly sensitive to several key hyperparameters. The expert capacity factor C determines how many tokens each expert can process, calculated as:
where k typically ranges between 1.0-2.0. Values below 1.25 often lead to underutilization, while values above 1.75 may cause excessive computation. The load balancing loss coefficient λ balances expert utilization, with optimal values empirically found between 0.01-0.1 in large-scale models.
Ablation Study Design
Effective ablation studies for sparse MoEs should isolate three key components:
- Routing mechanism: Compare top-k routing vs. learned routing strategies
- Expert specialization: Measure mutual information between expert outputs and input features
- Capacity allocation: Sweep capacity factors while monitoring both quality metrics and FLOP utilization
The routing loss Lroute can be decomposed into:
Practical Tuning Strategies
For models with >64 experts, we recommend a three-phase tuning approach:
- Architecture sweep: Fix model FLOPs while varying expert count and width
- Routing optimization: Tune k-values and loss coefficients with frozen experts
- Joint fine-tuning: Optimize all parameters with reduced learning rate
The expert gradient norm ratio rexp serves as a useful diagnostic metric:
where values outside [0.8, 1.2] typically indicate optimization instability. In production systems, we observe that periodic expert resetting (every 10-20k steps) helps maintain healthy gradient flow.
Large-Scale Optimization Insights
Recent results from models with >1T parameters reveal several non-intuitive findings:
- Optimal expert dropout rates follow a U-shaped curve, with highest performance at 5-15%
- The relationship between expert count and model quality is log-linear up to ~4k experts
- Gradient accumulation steps should scale inversely with expert count to maintain stable updates
The effective batch size per expert Beff must be carefully managed:
where values below 32 often lead to noisy updates, while values above 256 may cause optimization stagnation.
5.3 Trade-offs Between Sparsity and Accuracy
The fundamental tension in sparse mixture of experts (MoE) models lies in balancing computational efficiency (sparsity) against model performance (accuracy). As sparsity increases—fewer experts activated per input—the computational cost decreases, but this often comes at the expense of representational capacity. The trade-off can be formalized through the lens of expert utilization and gradient flow.
Expert Utilization vs. Model Capacity
In a MoE layer with N experts and sparsity factor k (where only k experts process each input), the effective model capacity scales sublinearly with N. The theoretical upper bound on representational power is given by:
where di is the capacity of each expert. However, in practice, the realized capacity is lower due to:
- Expert imbalance: The "rich-get-richer" phenomenon where a few experts dominate the selection process
- Gradient sparsity: Only the selected experts receive gradient updates during backpropagation
- Routing noise: Imperfections in the gating mechanism's decision boundaries
The Sparsity-Accuracy Pareto Frontier
Empirical studies reveal a nonlinear relationship between sparsity and task performance. For language modeling, the perplexity degradation follows:
where α, β, γ are dataset-dependent constants. This suggests diminishing returns when increasing k beyond a critical threshold. The optimal operating point depends on:
- Task complexity: High-entropy tasks (e.g., multilingual translation) require larger k
- Expert specialization: Well-optimized experts can maintain accuracy at higher sparsity
- Hardware constraints: Memory bandwidth often limits practical k values
Mitigation Strategies
Advanced architectures employ several techniques to improve the sparsity-accuracy trade-off:
- Adaptive sparsity: Dynamic adjustment of k based on input difficulty
- Expert buffering: Cache frequently used experts to reduce recomputation
- Gradient redistribution: Apply auxiliary losses to unselected experts
where S is the set of selected experts and λ controls the redistribution strength. This helps maintain dormant experts in a trainable state.
Hardware-Aware Optimization
The practical sparsity threshold is often determined by hardware characteristics rather than model requirements. For example, on TPUv4 clusters, the break-even point between computation and communication costs follows:
where tcomm and tcomp are the characteristic times for inter-chip communication and expert computation respectively.
6. Bias and Fairness in Expert Selection
6.1 Bias and Fairness in Expert Selection
In sparse mixture of experts (MoE) models, expert selection is typically governed by a gating mechanism that routes input tokens to specialized subnetworks. While this architecture improves computational efficiency, the gating function can inadvertently introduce bias in expert utilization, leading to fairness concerns. The selection process often follows a softmax-based probability distribution:
where gi(x) represents the gating logit for expert i given input x. When trained on imbalanced datasets, this mechanism can develop preferential routing patterns that systematically underutilize certain experts for specific input subgroups.
Sources of Bias in Expert Selection
Three primary factors contribute to biased expert selection:
- Data distribution skew: Underrepresented features in training data lead to weaker gating signals for corresponding experts.
- Expert initialization variance: Random initialization differences can compound during training via the Matthew effect.
- Gradient competition: Experts receiving more traffic accumulate stronger gradients, creating a positive feedback loop.
The bias manifests mathematically as divergence between the ideal and actual expert selection distributions. For a fair system, we want the Kullback-Leibler divergence:
to approach zero across all input subgroups.
Mitigation Strategies
1. Load Balancing Constraints
Hard constraints can enforce minimum usage thresholds per expert. The modified gating function becomes:
where ui is expert i's current utilization rate, τ is the minimum threshold, and λ controls the balancing strength.
2. Gradient Compensation
Reweighting gradients during backpropagation based on expert usage statistics:
where μu is the mean utilization across experts and α controls the compensation intensity.
3. Input-Aware Gating
Incorporating demographic parity constraints by conditioning the gating mechanism on sensitive attributes:
where s represents protected attributes and φ(·) is an embedding function.
Evaluation Metrics
Quantifying fairness requires multiple complementary measures:
- Expert Utilization Gini Coefficient: Measures inequality in expert selection rates.
- Subgroup Performance Variance: Compares task accuracy across protected groups.
- Routing Disparity: KL divergence between routing distributions for different subgroups.
In large-scale deployments, these metrics should be monitored continuously as data distributions evolve over time. The trade-off between model performance and fairness constraints can be visualized as a Pareto frontier, requiring careful tuning based on application requirements.
Environmental Impact of Large-Scale SMoEs
The computational demands of sparse mixture of experts (SMoE) models scale with the number of experts and the sparsity factor, leading to significant energy consumption. The carbon footprint of training and inference in large-scale SMoEs depends on three primary factors: computational complexity, hardware efficiency, and data center energy sources.
Energy Consumption During Training
The energy cost of training an SMoE model can be approximated by:
where Pavg is the average power consumption per device, Ttrain is the training time, and Ndevices is the number of accelerators used. For a model with E experts and sparsity factor k, the computational complexity grows as:
This quadratic dependence on model dimension dmodel means that doubling the model size quadruples the energy requirement, even with sparse activation.
Inference Efficiency Trade-offs
While SMoEs reduce FLOPs during inference through expert sparsity, the overhead of routing computations and maintaining expert parameters in memory can offset these gains. The total energy per inference is:
where Ecomp is computation energy, Ecomm is inter-device communication energy, and Emem is memory access energy. Studies show that for models with >100 experts, Ecomm can dominate due to cross-device synchronization.
Carbon Emission Estimates
Recent large-scale SMoEs like Google's Switch Transformer (1.6 trillion parameters) emitted approximately 50-100 metric tons of CO2 during training, assuming grid-average U.S. energy mix. The emissions scale linearly with training time and can be estimated by:
where CIgrid is the carbon intensity of the local power grid (typically 0.3-0.5 kg CO2/kWh). Using renewable energy can reduce this by 10-30x.
Mitigation Strategies
- Dynamic expert pruning: Removing rarely-used experts during training reduces memory bandwidth requirements by up to 40%.
- Geographically-aware routing: Scheduling computations based on renewable energy availability can cut emissions by 15-25%.
- Quantized experts: Using 8-bit precision for expert weights decreases energy per operation by 4x with minimal accuracy loss.
The energy proportionality of modern accelerators means that optimizing SMoE architectures for hardware efficiency (e.g., reducing cross-chip communication) often has greater environmental impact than algorithmic improvements alone.
6.3 Interpretability and Transparency Issues
Sparse Mixture of Experts models introduce unique interpretability challenges due to their conditional computation nature. Unlike dense models where all parameters contribute to every prediction, SMoEs activate only subsets of experts, making it harder to trace decision pathways. The gating network's routing decisions often lack transparency, operating as a black-box selector between expert sub-networks.
Expert Activation Patterns
The sparsity pattern in SMoEs creates interpretability gaps because:
- Input-dependent routing means different samples activate different expert combinations
- Expert specialization emerges rather than being explicitly constrained
- The gating network's confidence scores don't always correlate with human-understandable features
where G(x) is the gating network's logits for input x. The top-k experts are selected based on these probabilities, but the relationship between input features and expert selection remains opaque.
Gradient-Based Attribution Challenges
Standard interpretability methods like Integrated Gradients or LIME struggle with SMoEs because:
- Gradients backpropagate only through active experts, creating attribution discontinuities
- The gating network's decision surface is highly non-linear
- Expert contributions are non-additive due to conditional execution
Expert Specialization Analysis
Post-hoc analysis techniques for understanding expert roles include:
- Cluster analysis of inputs routed to each expert
- Expert output similarity metrics across different input domains
- Path visualization of common expert activation sequences
where higher values indicate more specialized experts. However, these metrics don't necessarily translate to human-interpretable explanations.
Scalability vs Interpretability Tradeoff
As SMoEs scale to thousands of experts:
- Manual inspection of individual experts becomes impractical
- Emergent hierarchical routing structures develop without explicit design
- The combinatorial space of possible expert combinations grows exponentially
Recent approaches like concept bottleneck experts attempt to enforce interpretable intermediate representations, but these often come at the cost of model flexibility or performance.
7. Key Research Papers and Surveys
7.1 Key Research Papers and Surveys
- PDF MegaScale-Infer: Serving Mixture-of-Experts at Scale with Disaggregated ... — MegaScale-Infer: Serving Mixture-of-Experts at Scale with Disaggregated Expert Parallelism Ruidong Zhu 1 ,2 ∗,Ziheng Jiang,Chao Jin1 ,2 ∗,Peng Wu1,Cesar A. Stuardo1, Dongyang Wang 1,Xinlei Zhang1,Huaping Zhou,Haoran Wei1,Yang Cheng1, Jianzhe Xiao1,Xinyi Zhang 1,Lingjun Liu,Haibin Lin1,Li-Wen Chang,Jianxi Ye1, Xiao Yu1,Xuanzhe Liu 2,†,Xin Jin,Xin Liu1,†
- PDF Mod-Squad: Designing Mixtures of Experts As Modular Multi-Task Learners — a subset of experts that learn specific features (as needed by some tasks) and do not interfere with each other (spe-cialization). Such an assignment of tasks to experts can be represented via a sparse but strong dependence between experts and tasks. Fig.1illustrates this key difference be-tween our model and previous MoE work, showing how our
- Embedded local feature selection within mixture of experts — The mixture of experts (MoE) technique makes use of this strategy by jointly training a set of classifiers, or experts, that are specialized in different regions of the input space. ... As in the case of synthetic datasets, Table 7 shows that RMoE favors sparse solutions with a competitive or superior accuracy than the traditional MoE technique ...
- PDF A Mixture-of-Experts Approach for Code Generation — their size as a key strategy to consistently push performance boundaries, across a multitude of natural language processing tasks. These scaling efforts however are met with hardware restrictions that limit them, due to elevated demands for memory and computation. The sparse Mixture-of-Experts (MoE) approach is seen as a novel way to
- Mixture of experts leveraging Informer and LSTM variants for enhanced ... — Specifically, this study consists of the following components: (1) applying four expert models for streamflow prediction with lead times of 1, 3, 5, 7, and 8 days in the study area; and (2) constructing a mixture of experts (MoE) with RF, LSTM, and Transformer as routers for both 4-class and 2-class classifications.
- Training Sparse Mixture Of Experts Text Embedding Models - arXiv.org — token to a subset of experts using Top-K routing: the router outputs logits for all experts, applies softmax normalization, and routes each token to the top kexperts with the highest probabilities (Fedus et al.,2022). A key challenge in training MoE models is expert collapse, where certain experts receive disproportionate traffic and
- PDF A Efficient Reflectance Capture with a Deep Gated Mixture-of-Experts — materials, to constrain the reconstruction from a sparse number of flash-lit images. Wang et al. [20] exploit the spatial similarity of reflectance and the spatial variation of local frames, to complete the microfacet distributions of BRDFs from single-view measurements. The reflectance is assumed to lie on a low-dimensional manifold for recon-
- GLaM: Efficient Scaling of Language Models with Mixture-of-Experts - ar5iv — Finally, although MoE-based sparse models are not yet common in the NLP community, our work shows that sparse decoder-only language models can be more performant than the dense architectures of similar compute FLOPs for the first time within the few-shot in-context learning setting at scale, suggesting that sparsity is one of the most promising directions to achieve high-quality NLP models ...
- Parameters vs FLOPs: Scaling Laws for Optimal Sparsity for Mixture-of ... — Sparse Mixture-of-Experts (MoE) models (Shazeer et al.,2017) introduce "FLOP-free parameters" by leveraging sparsity, where only a subset of expert modules is activated for each input. When studying scaling laws for specific classes of models, e.g., vanilla transformers, the total num-
- Extreme Mixture of Experts: Pushing the Boundaries for Mobile and ... — A Mixture of Experts (M oE) is an ensemble learning technique in m achine learning w here multiple expert models ( also known as experts) are trained on di er ent p arts of the input space or to
7.2 Open-Source Implementations and Tools
- Training Sparse Mixture Of Experts Text Embedding Models - arXiv.org — We open-source all code, models, and evaluation data to ... cient block-sparse implementations (Gale et al.,2022), have 1 arXiv:2502.07972v3 [cs.CL] 9 Mar 2025. Training Sparse Mixture Of Experts Text Embedding Models Table 1. Evaluation of Multilingual Text Embedding Models ... Training Sparse Mixture Of Experts Text Embedding Models ...
- PDF arXiv:2202.08906v1 [cs.CL] 17 Feb 2022 — 6. A 269B sparse model (the Stable Transferable Mixture-of-Experts or ST-MoE-32B) which achieves state-of-the-art performance across a diverse set of natural language benchmarks. 2 BACKGROUND Sparse expert models typically substitute a neural network layer with a set of experts, each having unique weights (Jacobs et al.,1991;Jordan and Jacobs ...
- M -EXPERTS MEETS INSTRUCTION TUN ING: A W COMBINATION FOR ... - OpenReview — Sparse Mixture-of-Experts (MoE) is a neural architecture design that adds learnable parameters to Large Language Models (LLMs) without increasing FLOPs. ... effectively and efficiently scales up language models, without necessitating a rise in carbon footprint. We subject our model, ... SMALL 0.06G 80M 28.7 12.1 29.1 19.2 15.0 40.9 28.7 (+2.4) T5
- GitHub - LINs-lab/DynMoE: [ICLR 2025] Dynamic Mixture of Experts: An ... — Sparse MoE (SMoE) has an unavoidable drawback: the performance of SMoE heavily relies on the choice of hyper-parameters, such as the number of activated experts per token (top-k) and the number of experts. Also, identifying the optimal hyper-parameter without a sufficient number of ablation studies is challenging. As the size of the models continues to grow, this limitation could result in a ...
- ST-MoE: Designing Stable and Transferable Sparse Expert Models - ar5iv — We design a large-scale stability study of sparse models FLOP-matched to the T5-XL version (Raffel et al., 2019) pre-trained on the multilingual corpus mC4 (Xue et al., 2020). Each sparse model has 32 experts and we introduce a sparse MoE layer for every fourth FFN. The train capacity factor is 1.25 and the eval capacity factor is 2.0.
- Parameters vs FLOPs: Scaling Laws for Optimal Sparsity for Mixture-of ... — For instance, Sparse Mixture-of-Experts (MoE) models (shazeer2017) introduce "FLOP-free parameters" by leveraging sparsity, where only a subset of expert modules is activated for each input. When studying scaling laws for specific classes of models, e.g., vanilla transformers, the total number of parameters can serve as a reasonable ...
- Training Sparse Mixture Of Experts Text Embedding Models - ResearchGate — The Mixture of Experts (MoE) architecture was first intro- duced by Shazeer et al. ( 2017 ) as a method to increase model capacity and performance without a proportional increase
- 1 Introduction - arXiv.org — The Mixture of Experts (MoE) architecture was first introduced by Shazeer et al. as a method to increase model capacity and performance without a proportional increase in computation by stacking sparsely gated LSTM blocks (Hochreiter & Schmidhuber, 1997). Lepikhin et al. utilized MoE layers in Transformers for machine translation and showed improvements in multilingual translation as the model ...
- PDF Designing Mixture of Deep Experts - UPC Universitat Politècnica de ... — The experts can be any machine learning algorithm. The underlying idea of Mixture of Expert (MoE) is that a complex func-tion can be decomposed to several simpler function where each expert learns on a di erent input space. We experiment changing of expert from Support Vector Machine (SVMs) to a NN / Convo-lutional Neural Network (CNN).
- PDF A Mixture-of-Experts Approach for Code Generation — as Sparse Upcycling, to reuse the trained parameters of existing dense models have emerged as a solution to this drawback, making training sparse models more feasible.
7.3 Recommended Courses and Tutorials
- MegaScale-Infer: Serving Mixture-of-Experts at Scale with Disaggregated ... — Mixture of experts. From an algorithmic perspective, mixture-of-experts (MoE) models show significant potential in enhancing the performance of LLMs with sub-linear scaling computational complexity and are gaining popularity in large-scale model implementations [44, 29, 27, 47]. We focus on MoE in Transformer-based LLMs in this work.
- Embedded local feature selection within mixture of experts — The mixture of experts (MoE) technique makes use of this strategy by jointly training a set of classifiers, or experts, that are specialized in different regions of the input space. A global model, or gate function, complements the experts by learning a function that weighs their relevance in different parts of the input space.
- PDF Designing Mixture of Deep Experts — This Mixture of Expert learnt to develop location dependent experts at the rst layer and class speci c experts at the second layer. This work was known as Learning Factored Repre-sentations in a deep mixture of experts[9].
- PDF Lancet: Accelerating Mixture-of-Experts Training via Whole Graph ... — ABSTRACT The Mixture-of-Expert (MoE) technique plays a crucial role in expanding the size of DNN model parameters. However, it faces the challenge of extended all-to-all communication latency during the training process. Existing methods attempt to mitigate this issue by overlapping all-to-all with expert computation. Yet, these methods frequently fall short of achieving suficient overlap ...
- PDF A Efficient Reflectance Capture with a Deep Gated Mixture-of-Exp — in a pixel-independent fashion, using a deep gated mixture-of-experts. While existing work employs a unified network to handle all possible input, our network automatically learns to condition on the input for enhanced reconstruction. We train a gating module that takes photometric measurements as input and selects one out of a number of specialized decoders for reflectance reconstruction ...
- Training Sparse Mixture Of Experts Text Embedding Models — In this work, we introduce the first general-purpose Mixture of Experts text embedding model. We demonstrate that scaling text embedding models with Mixture of Experts in both monolingual and multilingual settings outperforms existing approaches while using fewer active parameters.
- PDF A Mixture-of-Experts Approach for Code Generation — The sparse Mixture-of-Experts (MoE) approach is seen as a novel way to circumvent these restrictions. In an MoE setting, for Transformers, we replace all or a subset of feed-forward network (FFN) layers within Transformer blocks by multiple parallel copies of the layer, which we refer to as experts.
- DeepSpeed-MoE: Advancing Mixture-of-Experts Inference and Training to ... — Abstract As the training of giant dense models hits the boundary on the availability and capability of the hardware resources today, Mixture-of-Experts (MoE) models become one of the most promising model architectures due to their significant training cost reduction compared to a quality-equivalent dense model.
- PDF Janus: A Unified Distributed Training Framework for Sparse Mixture-of ... — ABSTRACT Scaling models to large sizes to improve performance has led a trend in deep learning, and sparsely activated Mixture-of-Expert (MoE) is a promising architecture to scale models. However, training MoE models in existing systems is expensive, mainly due to the All-to-All communication between layers.
- paper/Sparse_Expert_review.md · gaotianpu/antiAI - Gitee.com — Abstract Sparse expert models are a thirty-year old concept re-emerging as a popular architecture in deep learning. This class of architecture encompasses Mixture-of-Experts, Switch Transformers, Routing Networks, BASE layers, and others, all with the unifying idea that each example is acted on by a subset of the parameters.







