Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

QuRating: Selecting High-Quality Data for Training Language Models

About

Selecting high-quality pre-training data is important for creating capable language models, but existing methods rely on simple heuristics. We introduce QuRating, a method for selecting pre-training data that can capture human intuitions about data quality. In this paper, we investigate four qualities - writing style, required expertise, facts & trivia, and educational value - and find that LLMs are able to discern these qualities, especially when making pairwise judgments of texts. We train a QuRater model to learn scalar ratings from pairwise judgments, and use it to annotate a 260B training corpus with quality ratings for each of the four criteria. In our experiments, we select 30B tokens according to the different quality ratings and train 1.3B-parameter language models on the selected data. We find that it is important to balance quality and diversity. When we sample using quality ratings as logits over documents, our models obtain lower perplexity and stronger in-context learning performance than baselines. Our best model is based on educational value and performs similarly to a model trained with uniform sampling for 50% more steps. Beyond data selection, we use the quality ratings to construct a training curriculum which improves performance without changing the training dataset. We extensively analyze the quality ratings and discuss their characteristics, biases, and wider implications.

Alexander Wettig, Aatmik Gupta, Saumya Malik, Danqi Chen• 2024

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningHellaSwag
Accuracy34.4
1460
Mathematical ReasoningGSM8K
Accuracy36.32
983
Commonsense ReasoningPIQA
Accuracy67.9
647
Mathematical ReasoningMATH
Accuracy12.9
643
ReasoningBBH
Accuracy55.63
507
Question AnsweringSciQ
Accuracy87.1
226
ReasoningARC Easy
Accuracy57.2
183
Commonsense ReasoningPIQA 1.0 (test)
Accuracy81.99
48
ReasoningARC Challenge
Accuracy26.4
45
Commonsense ReasoningStoryCloze
Accuracy66.7
34
Showing 10 of 22 rows

Other info

Follow for update