arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2208.03306cs.CL
收藏

Branch-Train-Merge:专家语言模型的尴尬并行训练

Branch-Train-Merge: Embarrassingly Parallel Training of Expert Language Models

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

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

摘要:

我们提出了分支-训练-合并(BTM),一个高效的通信算法的并行训练的大语言模型(LLM)。我们表明,它是可以独立的训练子部分的一个新的类LLM的不同子集的数据,消除了大规模的多节点同步目前所需的训练LLM。BTM学习一组独立的专家LM(ELM),每一个都专门针对不同的文本领域,例如科学或法律文本。这些ELM可以被添加和删除以更新数据覆盖,集成以泛化到新的域,或者平均以折叠回单个LM以进行有效的推理。新的ELM是通过从当前集合中的ELM(混合)分支来学习的,进一步训练新领域数据的参数,然后将所得模型合并回集合中以供将来使用。实验表明,当控制训练成本时,与GPT风格的Transformer LM相比,BTM改善了域内和域外的困惑。通过广泛的分析,我们表明,这些结果是强大的不同的ELM初始化方案,但需要专家领域的专业化,LM合奏与随机数据分裂不表现良好。我们还研究了将BTM扩展到64个域的新语料库中(总共192 B空白分隔的令牌);由此产生的LM(22.4 B总参数)的性能与Transformer LM的性能一样好,后者的计算量是前者的2.5倍。这些收益随着域的数量而增长,这表明在未来的工作中可以使用更积极的并行性来有效地训练更大的模型。

英文摘要:

We present Branch-Train-Merge (BTM), a communication-efficient algorithm for embarrassingly parallel training of large language models (LLMs). We show it is possible to independently train subparts of a new class of LLMs on different subsets of the data, eliminating the massive multi-node synchronization currently required to train LLMs. BTM learns a set of independent expert LMs (ELMs), each specialized to a different textual domain, such as scientific or legal text. These ELMs can be added and removed to update data coverage, ensembled to generalize to new domains, or averaged to collapse back to a single LM for efficient inference. New ELMs are learned by branching from (mixtures of) ELMs in the current set, further training the parameters on data for the new domain, and then merging the resulting model back into the set for future use. Experiments show that BTM improves in- and out-of-domain perplexities as compared to GPT-style Transformer LMs, when controlling for training cost. Through extensive analysis, we show that these results are robust to different ELM initialization schemes, but require expert domain specialization; LM ensembles with random data splits do not perform well. We also present a study of scaling BTM into a new corpus of 64 domains (192B whitespace-separated tokens in total); the resulting LM (22.4B total parameters) performs as well as a Transformer LM trained with 2.5 times more compute. These gains grow with the number of domains, suggesting more aggressive parallelism could be used to efficiently train larger models in future work.

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

↑