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

DoReMi:优化数据混合比例加速语言模型预训练

DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretraining

Google DeepMind(谷歌DeepMind);Stanford University(斯坦福大学)

Sang Michael Xie, Hieu Pham, Xuanyi Dong, Nan Du, Hanxiao Liu, Yifeng Lu, Percy Liang, Quoc V. Le, Tengyu Ma, Adams Wei Yu

AI总结:

提出DoReMi方法,通过小型代理模型和组分布鲁棒优化生成域权重,无需下游任务知识即可优化预训练数据混合比例,显著提升大模型下游准确率并加速训练。

摘要:

预训练数据域(例如 Wikipedia、books、web text)的混合比例极大地影响语言模型(LM)的性能。在本文中,我们提出了基于 Minimax 优化的域重加权(Domain Reweighting with Minimax Optimization, DoReMi),该方法首先在各域上使用组分布鲁棒优化(Group DRO)训练一个小型代理模型,以在不知道下游任务的情况下生成域权重(混合比例)。然后,我们使用这些域权重对数据集进行重采样,并训练一个更大的、全尺寸的模型。在我们的实验中,我们在 280M 参数的代理模型上使用 DoReMi 来设置域权重,从而更高效地训练一个 8B 参数的模型(大 30 倍)。在 The Pile 上,DoReMi 改善了所有域的困惑度,即使它降低了某个域的权重。与使用 The Pile 默认域权重训练的基线模型相比,DoReMi 将平均少样本下游准确率提高了 6.5 个百分点,并以少 2.6 倍的训练步数达到了基线准确率。在 GLaM 数据集上,不了解下游任务的 DoReMi 甚至匹配了在下游任务上调整的域权重的性能。

英文摘要:

The mixture proportions of pretraining data domains (e.g., Wikipedia, books, web text) greatly affect language model (LM) performance. In this paper, we propose Domain Reweighting with Minimax Optimization (DoReMi), which first trains a small proxy model using group distributionally robust optimization (Group DRO) over domains to produce domain weights (mixture proportions) without knowledge of downstream tasks. We then resample a dataset with these domain weights and train a larger, full-sized model. In our experiments, we use DoReMi on a 280M-parameter proxy model to set the domain weights for training an 8B-parameter model (30x larger) more efficiently. On The Pile, DoReMi improves perplexity across all domains, even when it downweights a domain. DoReMi improves average few-shot downstream accuracy by 6.5% points over a baseline model trained using The Pile's default domain weights and reaches the baseline accuracy with 2.6x fewer training steps. On the GLaM dataset, DoReMi, which has no knowledge of downstream tasks, even matches the performance of using domain weights tuned on downstream tasks.

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

↑