Scaling Expert Language Models with Unsupervised Domain Discovery

Suchin Gururangan, Margaret Li, Mike Lewis, Weijia Shi, Tim Althoff +2 more
3/24/2023
cs.CLcs.AI

No official code found. Best implementation: kernelmachine/cbtm (109 stars, Apache-2.0, last commit 2023-09-26).

Abstract

Large language models are typically trained densely: all parameters are updated with respect to all inputs. This requires synchronization of billions of parameters across thousands of GPUs. We introduce a simple but effective method to asynchronously train large, sparse language models on arbitrary text corpora. Our method clusters a corpus into sets of related documents, trains a separate expert language model on each cluster, and combines them in a sparse ensemble for inference. This approach generalizes embarrassingly parallel training by automatically discovering the domains for each expert, and eliminates nearly all the communication overhead of existing sparse language models. Our technique outperforms dense baselines on multiple corpora and few-shot tasks, and our analysis shows that specializing experts to meaningful clusters is key to these gains. Performance also improves with the number of experts and size of training data, suggesting this is a highly efficient and accessible approach to training large language models.

View on arXivView PDF

Code Implementations(1)

kernelmachine/cbtmCommunity100%
Apache-2.0

Code repository for the c-BTM paper

1094Cuda, HTMLMar 7, 20233 years agoApache-2.0

Similar Papers

Cite this paper

@article{gururangan2023scaling,
  title  = {Scaling Expert Language Models with Unsupervised Domain Discovery},
  author = {Suchin Gururangan and Margaret Li and Mike Lewis and Weijia Shi and Tim Althoff and Noah A. Smith and Luke Zettlemoyer},
  year   = {2023},
  eprint = {2303.14177},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.14177v1}
}

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/2303.14177.svg)](https://codeofpaper.com/paper/2303.14177)

Discussion