Curriculum Learning for Safety Alignment

Sandeep Kumar, Virginia Smith, Chhavi Yadav
5/25/2026
cs.LGcs.AI
rlhf-rlvr-dpo

Official code: Sandeep5500/curriculum-learning-for-safety (4 stars, Python, last commit 2026-07-04).

Abstract

Direct Preference Optimisation (DPO) is widely used for safety alignment in large language models. However, prior work shows it is brittle and exhibits poor out-of-distribution (OOD) generalisation.

Show full abstract

In this paper, we investigate whether Curriculum Learning can improve the robustness of DPO-based safety alignment. We propose Staged-Competence, a curriculum-based framework that organises preference data by difficulty, employs competence-based sampling, and progressively updates the reference model during training. Averaged across three model families, Staged-Competence reduces OOD harmful response rates by 16% and jailbreak attack success rates by 20%, while preserving general capabilities with near-zero over-refusal. We further show that Staged-Competence (1) matches baseline safety with only 75% of the training data and (2) yields better separation between safe and unsafe responses. Staged-Competence is agnostic to the policy optimisation loss and can extend to other DPO variants and alignment domains. Our code and data are available at https://github.com/Sandeep5500/curriculum-learning-for-safety.

View on arXivView PDF

Code Implementations(1)

Codebase for Curriculum Learning for Safety Alignment paper and associated Cleaned-PKU-HH-SafeRLH dataset.

40Python, ShellMay 25, 20265 months ago

Similar Papers

Cite this paper

@article{kumar2026curriculum,
  title  = {Curriculum Learning for Safety Alignment},
  author = {Sandeep Kumar and Virginia Smith and Chhavi Yadav},
  year   = {2026},
  eprint = {2605.26315},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.26315v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.26315.svg)](https://codeofpaper.com/paper/2605.26315)

Discussion