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

Haoran Xu, Maha Elbayad, Kenton Murray, Jean Maillard, Vedanuj Goswami
5/3/2023
cs.CL

No official code found. Best implementation: fe1ixxu/Stratified_Mixture_of_Experts (6 stars, MIT, last commit 2023-10-22).

Abstract

Mixture-of-experts (MoE) models that employ sparse activation have demonstrated effectiveness in significantly increasing the number of parameters while maintaining low computational requirements per token. However, recent studies have established that MoE models are inherently parameter-inefficient as the improvement in performance diminishes with an increasing number of experts. We hypothesize this parameter inefficiency is a result of all experts having equal capacity, which may not adequately meet the varying complexity requirements of different tokens or tasks. In light of this, we propose Stratified Mixture of Experts (SMoE) models, which feature a stratified structure and can assign dynamic capacity to different tokens. We demonstrate the effectiveness of SMoE on three multilingual machine translation benchmarks, containing 4, 15, and 94 language pairs, respectively. We show that SMoE outperforms multiple state-of-the-art MoE models with the same or fewer parameters.

View on arXivView PDF

Code Implementations(1)

MIT

This is the repository for our EMNLP 2023 paper: Towards Being Parameter-Efficient: A Stratified Sparsely Activated Transformer with Dynamic Capacity.

60C++, LuaMay 3, 20232 years agoMIT

Similar Papers

Cite this paper

@article{xu2023towards,
  title  = {Towards Being Parameter-Efficient: A Stratified Sparsely Activated Transformer with Dynamic Capacity},
  author = {Haoran Xu and Maha Elbayad and Kenton Murray and Jean Maillard and Vedanuj Goswami},
  year   = {2023},
  eprint = {2305.02176},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.02176v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.02176.svg)](https://codeofpaper.com/paper/2305.02176)

Discussion