BASE Layers: Simplifying Training of Large, Sparse Models

By Michael Lewis, Shruti Bhosale, Tim Dettmers, Naman Goyal, Luke S. Zettlemoyer. 2021

411 citations recorded by the source corpus.

We introduce a new balanced assignment of experts (BASE) layer for large language models that greatly simplifies existing high capacity sparse layers. Sparse layers can dramatically improve the efficiency of training and inference by routing each token to specialized expert modules that contain only a small fraction of the model parameters. However, it can be difficult to learn balanced routing functions that make full use of the available experts; existing approaches typically use routing heuristics or auxiliary expert-balancing loss functions. In contrast, we formulate token-to-expert allocation as a linear assignment problem, allowing an optimal assignment in which each expert receives an equal number of tokens. This optimal assignment scheme improves efficiency by guaranteeing balanced compute loads, and also simplifies training by not requiring any new hyperparameters or auxiliary losses. Code is publicly released at https://github.com/pytorch/fairseq/

Subfields: Artificial Intelligence, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Mohit Bansal
  3. Graham Neubig
  4. Jianfeng Gao
  5. Quoc V. Le
  6. Noah A. Smith
  7. Jason Aaron Edward Weston
  8. Yejin Choi

In Efficiency & Compression

  1. Barret Zoph
  2. Luke S. Zettlemoyer
  3. Joseph Dean
  4. Quoc V. Le
  5. Canwen Xu
  6. Julian McAuley
  7. William Fedus
  8. Neil Houlsby

Citations in the corpus