[Paper Review] QuRating: Selecting High-Quality Data for Training Language Models
QuRating uses pairwise LLM judgments to learn scalar quality ratings (QuRater) for texts across four criteria, then samples data by these ratings to train 1.3B-parameter LMs on 30B tokens, improving in-context learning and perplexity compared to baselines.
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.
Motivation & Objective
- Capture abstract text qualities that humans perceive to guide data selection for LLM pre-training.
- Develop pairwise judgment collection via LLMs and learn scalar quality ratings with a QuRater model.
- Annotate a large corpus with four quality criteria (writing style, facts & trivia, educational value, required expertise).
- Evaluate how quality-guided data selection and curricula impact model performance and coverage across tasks.
Proposed method
- Formulate quality criteria as pairwise comparisons between texts for each criterion.
- Collect pairwise judgments from an LLM and convert them to scalar ratings using the Bradley-Terry model.
- Train a 1.3B parameter QuRater (Sheared-Llama) with multi-task heads to predict four quality ratings from text inputs.
- Annotate a 260B-token SlimPajama-derived corpus to produce QuRatedPajama with ratings for all four criteria.
- Sample 30B tokens from QuRatedPajama according to ratings using a temperature-controlled sampling (tau) to balance quality and diversity.
- Train 1.3B-parameter LMs on the selected data and evaluate via perplexity and in-context learning across 10 tasks; explore a training curriculum using quality rankings.
Experimental results
Research questions
- RQ1Can LLM-derived pairwise judgments reliably capture abstract text qualities across distinct criteria?
- RQ2How do four quality criteria correlate with downstream LM performance when used for data selection?
- RQ3Does sampling with quality-based logits (with temperature) outperform uniform sampling and perplexity-based filtering?
- RQ4Can education value, writing style, facts & trivia, and expertise requirements guide effective curriculum design in LM training?
- RQ5What biases or limitations arise in applying QuRating to diverse domains and social content?
Key findings
- Pairwise judgments yield more stable quality signals than direct ratings for texts.
- Educational value consistently improves in-context learning across tasks when sampling with tau=2.0.
- Facts & trivia and written style improve certain tasks but are not universally superior for ICL; writing style most strongly improves perplexity.
- Selecting only highest-rated documents can hurt performance; balancing quality and diversity via temperature is beneficial.
- Curriculum ordering by quality ratings (e.g., increasing expertise) can improve performance without changing the data pool.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.