Curriculum Learning for Safety Alignment
Sandeep Kumar, Virginia Smith, Chhavi Yadav
NeurIPS page · Open on the map
Category: AI Safety, Security & Alignment › LLM Safety Alignment Methods · Type: new method · Keywords: curriculum learning, safety alignment, robustness, preference data, reference model, out-of-distribution generalization
Areas: Safety & Security › Safe Alignment › Fragility of Safety Alignment; RL for LLMs & Agents › Language Model Alignment › Safety Alignment
Summary
Staged-Competence introduces a curriculum-based framework that organizes preference data by difficulty and progressively updates the reference model, improving the robustness of DPO-based safety alignment.
Explained to a 5-year-old
We want a computer program that doesn't give bad answers. It learns from examples where people show which answers are good and which are bad. Some examples are easier to understand than others, so we teach the easy ones first. After it gets good at the easy ones, we move on to the harder examples. During training, we also keep updating a reference model that helps guide the learning.
Explained to a 5-year-old, longer
We want a computer program that doesn't give bad answers. It learns from examples where people show which answers are good and which are bad. Some examples are easy to understand, while others are harder. We teach the program the easy examples first, like learning simple shapes before complex ones. After it gets good at the easy ones, we move on to the harder examples. During training, we also keep updating a reference model that helps guide the learning. This way, the program gradually builds competence and becomes more robust. When the program sees new or unseen situations, it is less likely to produce harmful responses. It also reduces the chance of being tricked into saying bad things. The program keeps its general abilities and doesn't become overly cautious. It also uses less data because it matches baseline safety with only 75% of the training examples. Overall, this curriculum learning approach makes the safety alignment more effective and data-efficient.
For a technical reader
The paper addresses the brittleness of Direct Preference Optimization in safety alignment by introducing a curriculum learning scheme. It organizes preference data by difficulty, samples based on model competence, and updates a reference model progressively. Experiments across three model families show a 16% reduction in OOD harmful responses and a 20% drop in jailbreak success, while preserving normal capabilities and data efficiency. The method is generic and can be applied to other DPO variants and alignment tasks.
Problem
Safety alignment methods such as Direct Preference Optimization can be brittle and exhibit poor out-of-distribution generalization, leading to harmful responses when encountering unseen inputs.
Method
The approach organizes preference data by difficulty, employs competence-based sampling to select examples, and progressively updates the reference model during training, forming a curriculum learning scheme.
Results
The approach reduces out-of-distribution harmful response rates by 16% and jailbreak attack success rates by 20% across three model families, while preserving general capabilities and maintaining near-zero over-refusal. It also matches baseline safety using only 75% of the training data and improves separation between safe and unsafe responses.
Contributions
The paper proposes a curriculum learning framework for safety alignment that improves robustness, data efficiency, and separation of safe/unsafe responses. It also demonstrates that the framework is agnostic to the underlying policy optimization loss and can be applied to other alignment domains.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction