Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Efficient Online Data Mixing For Language Model Pre-Training

About

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.

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

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningWinoGrande
Accuracy59.65
1581
Physical Commonsense ReasoningPIQA
Accuracy68.33
724
Code GenerationHumanEval
pass@132.51
329
Language UnderstandingMMLU
MMLU Accuracy28.416
307
Common Sense ReasoningCOPA
Accuracy68
288
Science Question AnsweringSciQ
Accuracy (SciQ)68.9
134
Language ModelingThe Pile (val)
PPL7.32
41
Language Model EvaluationTULU-3 (dev)
Knowledge Score60.25
35
Generalization EvaluationAM-Thinking Distilled-math&code v1 (Unseen)
Average Unseen Score48
35
Mathematical ReasoningMATH
MATH Score41.16
22
Showing 10 of 17 rows

Other info

Follow for update