arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.14177cs.CLcs.AI
收藏

基于无监督领域发现的专家语言模型扩展

Scaling Expert Language Models with Unsupervised Domain Discovery

University of Washington(华盛顿大学);Meta AI;Allen Institute for Artificial Intelligence(艾伦人工智能研究所)

Suchin Gururangan, Margaret Li, Mike Lewis, Weijia Shi, Tim Althoff, Noah A. Smith, Luke Zettlemoyer

摘要:

大语言模型通常是密集训练的:所有参数都根据所有输入进行更新。这需要在数千个GPU上同步数十亿个参数。我们介绍了一种简单但有效的方法,异步训练大型,稀疏的语言模型在任意文本语料库。我们的方法将语料库聚类成多组相关文档,在每个聚类上训练一个单独的专家语言模型,并将它们组合在一个稀疏集合中进行推理。这种方法通过自动发现每个专家的领域来推广并行训练,并消除了现有稀疏语言模型的几乎所有通信开销。我们的技术在多个语料库和Few-Shot任务上优于密集基线,我们的分析表明,将专家专门用于有意义的集群是这些收益的关键。性能也随着专家数量和训练数据的大小而提高,这表明这是一种高效且易于使用的方法来训练大语言模型。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑