ICML 2025

Principled Data Selection for Alignment: The Hidden Risks of Difficult Examples

Chengqian Gao1, Haonan Li1, Liu Liu2, Zeke Xie3, Peilin Zhao2,4, Zhiqiang Xu1
1MBZUAI   2Tencent   3HKUST (Guangzhou)   4SJTU

Small models fail on hard problems at inference time. Do hard examples also hurt them at training time?

Line chart of WR′ against the percentage of training data used. Training on examples sorted from easy to difficult peaks near 0.30 at 50% of the data, then falls to about 0.18 at 100%. Random ordering rises slowly to about 0.20.
Yes. With examples sorted from easy to difficult, DPO keeps improving through the first half of the data, then degrades once the difficult half arrives, ending below standard DPO. Four SFT models on UltraFeedback-binarized.

Abstract

The alignment of large language models (LLMs) often assumes that using more clean data yields better outcomes, overlooking the match between model capacity and example difficulty. Challenging this, we propose a new principle: “Preference data vary in difficulty, and overly difficult examples hinder alignment, by exceeding the model's capacity.” Through systematic experimentation, we validate this principle with three key findings: (1) preference examples vary in difficulty, as evidenced by consistent learning orders across alignment runs; (2) overly difficult examples significantly degrade performance across four LLMs and two datasets; and (3) the capacity of a model dictates its threshold for handling difficult examples, underscoring a critical relationship between data selection and model capacity. Building on this principle, we introduce Selective DPO, which filters out overly difficult examples. This simple adjustment improves alignment performance by 9–16% in win rates on the AlpacaEval 2 benchmark compared to the DPO baseline, surpassing a series of DPO variants with different algorithmic adjustments. These results together illuminate the importance of aligning data difficulty with model capacity, offering a transformative perspective for improving alignment strategies in LLMs.

Finding 1

Models learn examples in the same order across runs

Heatmap of learned step for 300 test examples (rows) across 40 runs (columns) for Gemma-2-9B-it, Llama-3-8B-Instruct, Mistral-7B-SFT and Gemma-2-2B-it. Rows are sorted by average learned step; the dark late-learned band sits in the same rows for every model.
We align four models (Gemma-2-2B, Gemma-2-9B, Llama-3-8B, Mistral-7B) with DPO, each on ten different subsets of UltraFeedback-binarized, and record when each of 300 held-out examples is learned: the step after which the implicit reward model keeps preferring the chosen response. Rows are examples sorted by this learned step; columns are the 40 runs; darker means later. The rows line up across all runs, so the same examples are hard for every model and data subset: difficulty is a property of the example. Tracking learned steps is costly, so the rest of the page measures difficulty by validation loss, the DPO loss of an example under reference models that never trained on it.
Finding 2

Overly difficult examples hinder alignment

Four panels, one per model, on UltraFeedback-binarized. WR′ against data percentage: the easy-first curves peak around 50% of the data well above random ordering, then drop as harder data is added.
Dropping the hardest examples helps all four models on both datasets. We align Mistral-7B, Qwen-2.5-7B, Llama-3-8B and Gemma-2-9B SFT models with one recipe and change only the data: random order (standard DPO), easy to difficult by validation loss, or the easiest 50–60% in random order. Both easy-data runs beat standard DPO everywhere and score about the same, so the gain comes from leaving the hardest examples out, not from the order. Win rate is WR′ against GPT-4-Turbo on AlpacaEval 2 prompts, judged by ArmoRM; bars show the validation loss of the data added at each step.

So what makes an example hard? We pick examples from Mistral-7B-SFT on Argilla-7k at three validation-loss quantiles. Easy examples have clean labels and simple tasks. Around the 0.6 quantile, where win rate starts to fall, labels are still correct but the tasks need skills the model lacks, such as exact arithmetic or translation into a low-resource language. The hardest examples are often mislabeled.

Prompt

Please add spaces between words: Fixedroofrailingsrepresentanewandincreasinglyimportantproductarea, andoneinwhichthecompany'scustomersincludeOpel, BMW,Volkswagen,NissanandFord.

Chosen

Fixed roof railings represent a new and increasingly important product area, and one in which the company's customers include Opel, BMW, Volkswagen, Nissan and Ford

Rejected

Ooh ooh ah ah! *giggle* Hi there! *bounce bounce* Do you want to know about something cool? *twirl twirl* It's called "Fixed Roof Railings"! *excited squeal* They're like special rails that go on cars! *bounce bounce* …

“Clean label, simple task: the rejected reply is plainly worse.”

Finding 3

What counts as too difficult depends on model capacity

Three panels for Qwen-2.5 3B, 7B and 14B. Each shows WR′ against data percentage sorted by difficulty with fitted parabolas; the peaks sit near 60–65% for 3B, about 70–75% for 7B and about 80% for 14B.
If difficulty were a fixed property of the data, the same examples would be too hard for every model. We test this with Qwen-2.5 at 3B, 7B and 14B: same family, same data (Argilla-7k), same recipe. Each model ranks the examples by its own validation loss and trains on a growing share of them, from easy to difficult, ten runs per size. Every curve rises and then falls: examples help until they become too hard, then start to hurt. The peak of a fitted parabola, the sweet spot, moves from 64% of the data at 3B to 71% at 7B and 81% at 14B. Examples that hurt the 3B model still help the 14B model, so what counts as too difficult must be judged against the model being trained. This is why Selective DPO ranks examples with reference models built from the model it aligns.
Method

Selective DPO trains only on what the model can learn

Selective DPO keeps the DPO loss unchanged and adds a data-selection step before it.

  1. 1
    Train reference modelsSplit the training set into two random halves and train an SFT model with DPO on each. Repeat three times for six reference models.
  2. 2
    Rank examples by validation lossScore every example with the reference models that did not see it and average the three scores.
  3. 3
    Align on the easiest τ%Run DPO on the examples below the τ-quantile, from easy to difficult. τ depends on the data and the model; we use τ = 50 on UltraFeedback-binarized.
Results

Choosing the right data beats changing the loss

MethodMistral-7B-SFTLlama-3-8B-SFT
AE2 LCAE2 WRArena-HardAE2 LCAE2 WRArena-Hard
SFT8.46.21.36.24.63.3
DPO15.112.510.418.215.515.9
SimPO21.520.816.622.020.323.4
WPO24.423.716.723.122.223.1
Selective DPO27.1 ±0.628.9 ±1.317.024.9 ±0.825.3 ±1.424.1

Selective DPO keeps plain DPO and still outperforms its algorithmic variants. It trains with the unchanged DPO loss on the easier half of UltraFeedback-binarized and beats SimPO and WPO, which redesign the loss, on both base models and all three metrics.

AE2: AlpacaEval 2 length-controlled (LC) and raw (WR) win rate against GPT-4-Turbo. Arena-Hard: win rate against GPT-4-0314. Full-parameter fine-tuning. Bold is best, underlined second best. Selective DPO is mean ± std over three runs. More baselines, MT-Bench, and results on Qwen and Gemma are in the paper.

Looking ahead

It is widely accepted that a model's size bounds what it can do at inference time. At training time, though, the same limit is largely ignored: a smaller model can absorb fewer difficult examples. This paper looks at one case, preference alignment, where overly difficult examples hold a model back.

I suspect the same mismatch matters across post-training. In SFT, for example, forcing a small model to imitate complex reasoning traces that demand more memorization or reasoning than it has may cause harm, such as hallucination or doom loops, where the model repeats the same reasoning without end. I hope to see more post-training work examine the match between model capacity and data difficulty. If this direction interests you, feel free to reach out to me, Chengqian Gao. I welcome collaboration.

BibTeX

@article{gao2025principled,
  title={Principled data selection for alignment: The hidden risks of difficult examples},
  author={Gao, Chengqian and Li, Haonan and Liu, Liu and Xie, Zeke and Zhao, Peilin and Xu, Zhiqiang},
  journal={arXiv preprint arXiv:2502.09650},
  year={2025}
}