SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.26315 · 2026

Curriculum Learning for Safety Alignment

Virginia Smith, Sandeep Kumar, Chhavi Yadav

arXiv · PDF · Open in the Atlas

Code that ran

10 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 10 failures of our instrument; 9 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.26315.json · badge: /api/ran/2605.26315.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Sandeep5500/curriculum-learning-for-safety canonical (classifier label)
classifier basis: census
10 ran · 9 no recorded run
FunctionStatusWhere it lives
build_prefill_prompts Ran
ran; our contract draft was wrong, not the code
Sandeep5500/curriculum-learning-for-safety/src/eval/evaluate_prefill.py
pointer only (licence: NONE) · get_code("45789c901dd4ce02")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_loss_curve_stitched Ran
ran; our contract draft was wrong, not the code
Sandeep5500/curriculum-learning-for-safety/src/eval/plot_training_loss.py
pointer only (licence: NONE) · get_code("2c4656fcd9b823f3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_alpaca_prompt Ran
ran; our contract draft was wrong, not the code
Sandeep5500/curriculum-learning-for-safety/src/eval/evaluate_harmless.py
pointer only (licence: NONE) · get_code("d6ec0bfb9cfb1384")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_benchmark_loader Ran
ran; our contract draft was wrong, not the code
Sandeep5500/curriculum-learning-for-safety/src/eval/evaluate_safety.py
pointer only (licence: NONE) · get_code("7f6753c7709c7444")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_alpaca Ran
ran; our contract draft was wrong, not the code
Sandeep5500/curriculum-learning-for-safety/src/eval/evaluate_harmless.py
pointer only (licence: NONE) · get_code("271d630e735cf259")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_curri_dpo_trainer_states Ran
ran; our contract draft was wrong, not the code
Sandeep5500/curriculum-learning-for-safety/src/eval/plot_training_loss.py
pointer only (licence: NONE) · get_code("4cd6b92eb2e89956")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_jsonl Ran
ran; our contract draft was wrong, not the code
Sandeep5500/curriculum-learning-for-safety/src/phase1/create_curriculum.py
pointer only (licence: NONE) · get_code("12db38ad37394041")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_pairs Ran
ran; our contract draft was wrong, not the code
Sandeep5500/curriculum-learning-for-safety/src/interpretability/probe_safety.py
pointer only (licence: NONE) · get_code("720e3446a250db15")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_gpt_classifier Ran
ran; our contract draft was wrong, not the code
Sandeep5500/curriculum-learning-for-safety/src/eval/judge_safety_gpt.py
pointer only (licence: NONE) · get_code("73ed615e55c37367")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

score_file Ran
ran; our contract draft was wrong, not the code
Sandeep5500/curriculum-learning-for-safety/src/eval/judge_safety_gpt.py
pointer only (licence: NONE) · get_code("9cdf8248df8a1707")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_activations Not yet run
unverified (harvested, no recorded run)
Sandeep5500/curriculum-learning-for-safety/src/interpretability/probe_safety.py
pointer only (licence: NONE) · get_code("093465f26ea25603")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate_continuations Not yet run
unverified (harvested, no recorded run)
Sandeep5500/curriculum-learning-for-safety/src/eval/evaluate_prefill.py
pointer only (licence: NONE) · get_code("208879c2c344db03")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate_responses Not yet run
unverified (harvested, no recorded run)
Sandeep5500/curriculum-learning-for-safety/src/eval/evaluate_safety.py
pointer only (licence: NONE) · get_code("06c4469609d4a987")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate_responses Not yet run
unverified (harvested, no recorded run)
Sandeep5500/curriculum-learning-for-safety/src/eval/evaluate_harmless.py
pointer only (licence: NONE) · get_code("88b85dc93019c4bb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate_responses Not yet run
unverified (harvested, no recorded run)
Sandeep5500/curriculum-learning-for-safety/src/eval/evaluate_jailbreak.py
pointer only (licence: NONE) · get_code("fb47c61237e83037")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_hellaswag Not yet run
unverified (harvested, no recorded run)
Sandeep5500/curriculum-learning-for-safety/src/eval/evaluate_quality.py
pointer only (licence: NONE) · get_code("8a705943c32837e2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_mmlu Not yet run
unverified (harvested, no recorded run)
Sandeep5500/curriculum-learning-for-safety/src/eval/evaluate_quality.py
pointer only (licence: NONE) · get_code("6e6dbec92e02f2b3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
Sandeep5500/curriculum-learning-for-safety/src/interpretability/probe_safety.py
pointer only (licence: NONE) · get_code("28a23205d560ec6c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_trainer_state Not yet run
unverified (harvested, no recorded run)
Sandeep5500/curriculum-learning-for-safety/src/eval/plot_training_loss.py
pointer only (licence: NONE) · get_code("d2bebfaca70f72f4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sandeep5500/curriculum-learning-for-safety when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 19 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Direct Preference Optimization (DPO) is a widely used approach for safety alignment that aims to reduce harmful behaviors in large language models. However, prior work shows that it can be brittle and exhibits poor out-of-distribution (OOD) generalization [20]. 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 organizes 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 and maintaining near-zero over-refusal. We further show that Staged-Competence: (1) matches baseline safety performance with only 75% of the training data, demonstrating improved data efficiency and (2) yields better separation between safe and unsafe responses. Staged-Competence is agnostic to the underlying policy optimization loss and can extend to other DPO variants and alignment domains beyond safety. Our code and data can be found at: https://github.com/Sandeep5500/curriculum-learning-for-safety.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.26315")
get_code_for_paper("2605.26315")
have("2605.26315")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.26315.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.26315.svg)](https://syntology.ai/paper/2605.26315)

Connect an agent — have() is free.