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

用于语言模型预训练的高效在线数据混合

Efficient Online Data Mixing For Language Model Pre-Training

University of California, Santa Barbara(加州大学圣巴巴拉分校);University of Toronto(多伦多大学);Vector Institute(向量研究所)

Alon Albalak, Liangming Pan, Colin Raffel, William Yang Wang

AI总结:

针对预训练数据选择成本高、固定混合比例难适应训练动态的问题,提出基于多臂老虎机的在线数据混合算法ODM,在几乎不增加训练时间的前提下减少19%迭代并提升MMLU性能。

摘要:

用于预训练大型语言模型的数据对模型的下游性能具有决定性影响,这催生了大量关于数据选择方法的研究,这些方法旨在自动确定最适合用于预训练的数据。现有数据选择方法存在过程缓慢且计算成本高昂的问题,而模型和预训练数据集规模的不断扩大又加剧了这一问题。另一方面,数据混合通过将数据点分组并确定整个组的采样概率,降低了数据选择的复杂性。然而,数据混合比例通常在训练前固定,因此无法适应不断变化的训练动态。为了解决这些局限性,我们开发了一种高效的在线数据混合(ODM)算法,该算法结合了数据选择和数据混合两者的要素。基于多臂老虎机算法,我们的在线方法在训练过程中优化数据混合比例。值得注意的是,我们的方法训练出的模型以少19%的训练迭代次数达到了次优方法的最终困惑度,并在5-shot MMLU基准上将性能的相对准确率提高了1.9%,同时在预训练期间仅增加可忽略不计的挂钟时间。

英文摘要:

The data used to pretrain large language models has a decisive impact on a model's downstream performance, which has led to a large body of work on data selection methods that aim to automatically determine the most suitable data to use for pretraining. Existing data selection methods suffer from slow and computationally expensive processes, a problem amplified by the increasing size of models and of pretraining datasets. Data mixing, on the other hand, reduces the complexity of data selection by grouping data points together and determining sampling probabilities across entire groups. However, data mixing proportions are typically fixed before training and therefore cannot adapt to changing training dynamics. To address these limitations, we develop an efficient algorithm for Online Data Mixing (ODM) that combines elements from both data selection and data mixing. Based on multi-armed bandit algorithms, our online approach optimizes the data mixing proportions during training. Remarkably, our method trains a model that reaches the final perplexity of the next best method with 19\% fewer training iterations, and improves performance on the 5-shot MMLU benchmark by 1.9% relative accuracy, while adding negligible wall-clock time during pretraining.

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

↑