DEMix Layers: Disentangling Domains for Modular Language Modeling

By Suchin Gururangan, Michael Lewis, Ari Holtzman, Noah A. Smith, Luke S. Zettlemoyer. 2021

183 citations recorded by the source corpus.

We introduce a new domain expert mixture (DEMix) layer that enables conditioning a language model (LM) on the domain of the input text. A DEMix layer includes a collection of expert feedforward networks, each specialized to a domain, that makes the LM modular: experts can be mixed, added, or removed after initial training. Extensive experiments with autoregressive transformer LMs (up to 1.3B parameters) show that DEMix layers reduce test-time perplexity (especially for out-of-domain data), increase training efficiency, and enable rapid adaptation. Mixing experts during inference, using a parameter-free weighted ensemble, enables better generalization to heterogeneous or unseen domains. We also show it is possible to add experts to adapt to new domains without forgetting older ones, and remove experts to restrict access to unwanted domains. Overall, these results demonstrate benefits of domain modularity in language models.

Subfields: Artificial Intelligence, Large Language Models, Natural Language Processing

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. Hannaneh Hajishirzi
  3. Mohit Bansal
  4. Noah A. Smith
  5. Quoc V. Le
  6. Graham Neubig
  7. Percy Liang
  8. Yejin Choi

In Large Language Models

  1. Luke S. Zettlemoyer
  2. Hannaneh Hajishirzi
  3. Noah A. Smith
  4. Hinrich Schütze
  5. Xiang Ren
  6. Daniel Khashabi
  7. Zhiyuan Liu
  8. Sebastian Riedel

In Natural Language Processing

  1. Luke S. Zettlemoyer
  2. Hannaneh Hajishirzi
  3. Mohit Bansal
  4. Graham Neubig
  5. Noah A. Smith
  6. Yejin Choi
  7. Sebastian Riedel
  8. Xiang Ren

Citations in the corpus