Towards Being Parameter-Efficient: A Stratified Sparsely Activated Transformer with Dynamic Capacity

Haoran Xu, Maha Elbayad, Kenton Murray, Jean Maillard, Vedanuj Goswami

Introduction

In the pursuit of scaling artificial intelligence, Mixture-of-Experts (MoE) has emerged as a critical architecture. By activating only a subset of parameters for each input, MoE models can scale to billions of parameters while maintaining manageable computational costs. However, traditional MoE models suffer from significant parameter inefficiency. Recent research indicates that increasing the number of experts often yields diminishing returns in accuracy.

The authors of this paper identify "equal capacity assignment" as the primary bottleneck. In standard MoE, every token—from a simple punctuation mark to a complex technical term—is processed by the same number of experts. This rigid structure fails to account for the varying difficulty of tokens, leading to wasted parameters on simple inputs and insufficient processing for complex ones.

Stratified Mixture of Experts (SMoE)

To address these inefficiencies, the researchers propose the Stratified Mixture of Experts (SMoE). Unlike the "flat" structure of vanilla MoE, SMoE organizes experts into multiple layers, or strata.

Comparison of Vanilla MoE and SMoE architectures, including the detailed design of a SMoE block.

The SMoE architecture introduces several key innovations:

  1. Dynamic Routing: Each stratum contains its own gating mechanism. When a token enters a stratum, the gate determines whether to route it to an expert within that layer or skip it to a subsequent stratum.
  2. Cumulative Capacity: Tokens requiring more "brainpower" can be routed through experts in multiple strata, effectively utilizing a larger number of parameters. Conversely, simpler tokens may skip directly to the final layer, using only a single expert.
  3. Architectural Stability: To ensure training stability in deep MoE stacks, the authors implement Layer Normalization before each dispatch and residual connections after each expert activation.

This design allows the model to learn a Requested Capacity (RC)—the average number of experts a token traverses—dynamically adjusting its computational effort based on input complexity.

Experimental Setup and Datasets

The SMoE framework was evaluated on three multilingual machine translation (MMT) benchmarks:

  • NLLB M4: A small-scale set of 4 languages (Northern Sotho, Malay, Tagalog, Catalan) representing diverse resource levels.
  • NLLB M15: A medium-scale set of 15 languages balanced across high, low, and very low-resource categories.
  • OPUS-100: A large-scale benchmark covering 94 language pairs to test scalability in massively multilingual environments.

Key Insights: Analyzing Requested Capacity

A core finding of the study is that Requested Capacity (RC) serves as an effective proxy for token and language difficulty. The model naturally learns to allocate more experts to rarer or more linguistically complex tokens.

Requested Capacity (RC) in the encoder across various language pairs, showing higher capacity needs for certain linguistic mappings.

Analysis of the RC patterns revealed several insights:

  • Encoder Intensity: Early encoder layers typically request the highest capacity, suggesting they perform the heavy lifting of mapping diverse scripts and languages into a shared conceptual space.
  • Target Language Dependency: In the decoder, the required capacity is heavily influenced by the target language. Translating into high-resource languages like English generally requires less capacity than translating into lower-resource languages.
  • Frequency Correlation: High-frequency tokens, such as punctuation or common subwords, consistently receive lower RC assignments compared to rare technical terms.

Performance and Efficiency Results

SMoE consistently outperformed both Switch Transformers and vanilla MoE baselines across all tested scales:

  • Translation Quality: On the M15 benchmark, an SMoE configuration with 4 experts in the first stratum and 12 in the second (SMoE-4-12) outperformed vanilla MoE by +0.93 BLEU. On the large-scale OPUS-100, SMoE surpassed the Switch Transformer by +1.63 BLEU.
  • Parameter Efficiency: SMoE demonstrates superior efficiency; a vanilla MoE model would require approximately double the number of experts (32 vs. 16) to match the performance of an SMoE model.

Conclusion and Future Work

While SMoE significantly improves parameter efficiency, it introduces a modest increase in computational cost—approximately 8% higher FLOPs per token compared to top-2 gating MoE models—due to the sequential nature of multi-strata processing.

Future research may explore more granular stratification or alternative load-balancing techniques. Beyond translation, the stratified approach holds promise for other domains, such as vision transformers and general-purpose large language models, offering a path toward more intelligent and resource-efficient AI architectures.

Summary updated

BibTeX
@inproceedings{xu2023towards,
  author = {Haoran Xu and Maha Elbayad and Kenton Murray and Jean Maillard and Vedanuj Goswami},
  title = {{Towards Being Parameter-Efficient: A Stratified Sparsely Activated Transformer with Dynamic Capacity}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.856},
}
Figure