TL;DR
Teaching a language model to be safe by randomly throwing complex ethical edge-cases and obvious dangers at it simultaneously is like teaching calculus before arithmetic—the student just memorizes superficial tricks to pass the test. By organizing safety training into an easy-to-hard curriculum called Staged-Competence, researchers show that models develop much deeper, more resilient safety guardrails. Without changing the underlying optimization math, simply structuring when a model sees what data slashes jailbreak success rates and out-of-distribution failures while requiring less training data.
What Problem Does This Paper Address?
To stop Large Language Models (LLMs) from generating harmful content, engineers commonly use Direct Preference Optimization (DPO). DPO feeds the model pairs of responses to a prompt—one safe ("chosen"), one unsafe ("rejected")—and nudges the model to favor the safe one while staying anchored to a frozen copy of its original self (the "reference model").
The catch? Standard DPO safety is brittle. It struggles with unfamiliar, out-of-distribution (OOD) prompts and crumbles under simple adversarial "jailbreaks." Worse, prior research shows DPO safety is often skin-deep, concentrating its refusal instincts solely in the first few output tokens. While curriculum learning (ordering training examples from easy to hard) is known to help neural networks learn robust features in other domains, applying it to safety preference pairs is tricky: what actually makes a safety dilemma "easy" or "hard" for a specific unaligned model?
Methods
The authors introduce Staged-Competence, a two-phase pipeline that leaves the standard DPO loss function untouched, focusing entirely on data ordering and training dynamics.
- Difficulty Scoring (What's New): Instead of relying on static linguistic heuristics, difficulty is tailored to the specific base model. Every training prompt is passed through the unaligned model to get a zero-shot response. Using sentence embeddings, the authors calculate a preference alignment margin: how close the model's natural output is to the safe response minus how close it is to the unsafe one. If the model already leans toward the safe answer, the example is "easy"; if it leans unsafe, it's "hard." This creates a global difficulty ranking across the entire dataset.
- Curriculum DPO Training (Combining & Extending): The sorted dataset is divided into $K=3$ difficulty buckets (Easy, Medium, Hard), trained across three sequential stages:
- Between stages: Borrowing from prior work (Curri-DPO), the reference model is updated at the end of each stage ($\pi_{\text{ref}}^{(k+1)} = \pi^{(k)}$). Once the model masters the "Easy" bucket, that newly aligned model becomes the baseline anchor for the "Medium" stage, freeing it from re-learning basic safety.
- Within stages: Instead of shuffling examples randomly inside each bucket, the authors adapt competence-based sampling. Within each stage, the pool of eligible training examples starts with the easiest items and gradually expands via a square-root schedule, introducing harder examples at a decelerating rate so the model has time to consolidate what it learns.
Datasets
While building their experiments, the authors discovered widespread label noise in two standard safety datasets: PKU-SafeRLHF (where 82.2% of "chosen" responses were merely the less harmful of two bad options, and still unsafe) and Anthropic HH-RLHF (where 87.2% of "rejected" responses were actually safe, penalized only for being unhelpful).
- New Training Dataset (
PiKacHHU): They used a GPT-4o-mini judge to filter both datasets—retaining only pairs with genuinely safe chosen responses and unsafe rejected responses—and released the cleaned combination. They also tested scalability on a larger cleaned corpus from BeaverTails. - Evaluation: Models were tested for OOD safety (AdvBench, SorryBench, HEx-PHI), jailbreak resistance (Prefill, GCG, BEAST, PAIR, and adaptive random-search), general capabilities (MMLU, HellaSwag), and over-refusal on benign prompts (XSTest).
Key Insights and Ideas
- Safety goes deeper than the first few tokens: If an attacker forces a standard DPO model to start its reply with "Sure, here is how...", the model often happily completes the harmful request. Measuring token-by-token probability suppression reveals that Staged-Competence actively suppresses unsafe tokens ~2.7x more strongly deep into the response (positions 20–100), explaining why it resists prefill attacks.
- Stepping-stone updates unlock massive confidence: Updating the reference model between difficulty tiers acts like a ratchet. Each stage boundary provides a fresh gradient signal, driving the reward margin (the log-probability gap between safe and unsafe responses) to ~2.5x that of standard DPO.
- Curriculum helps most where data is scarce: Harm categories making up less than 5% of the training data (like malware/cyberattacks) saw the biggest OOD improvements, with harmful responses dropping by 22.2 percentage points. Teaching core safety concepts progressively helps the model generalize to rare threats.
- Larger models need curricula more: Testing across 1.7B, 4B, and 8B Qwen3 models revealed that standard DPO safety actually degraded as models grew larger and more capable. Staged-Competence kept safety violations flat (2–8%) across all scales.
Key Results
Evaluated across "abliterated" (guardrail-stripped) versions of LLaMA-3-8B, Qwen3-8B, and Yi-1.5-9B:
- OOD Safety & Jailbreaks: Staged-Competence reduced OOD harmful response rates by an average of 13.6 percentage points (from 23.5% down to 9.9%) and lowered attack success rates across five jailbreaks by 16.5 percentage points (37.4% to 20.9%) compared to standard DPO.
- Data Efficiency: Using just 75% of the training data, Staged-Competence matched or beat full-data standard DPO across all OOD benchmarks (and beat it with just 50% data on the larger BeaverTails corpus).
- No Alignment Tax: General knowledge scores (MMLU, HellaSwag) shifted by at most ~3 points, with near-zero false refusals on XSTest.
Limitations and Future Work
Due to compute constraints on a single GPU, experiments were limited to the 8B–9B parameter range and relied on LoRA adapter fine-tuning rather than full-weight updates. Future work aims to test whether these dynamics hold under full fine-tuning and at frontier model scales, as well as extending Staged-Competence—which is completely agnostic to the underlying loss function—to newer DPO variants and non-safety alignment tasks.
Summary updated