Song Mei, Dawn Song, Xuandong Zhao, Licong Lin, David Huang, Will Cai, Tianneng Shi
5 of 5 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2503.03710.json · badge: /api/ran/2503.03710.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.
| Repository | Role | Ran |
|---|---|---|
| wicai24/door-alignment | canonical (classifier label) classifier basis: classifier_2025 |
5 ran · 0 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| gd_npo_loss | Ran ran, honoured the contract we drafted |
wicai24/door-alignment/utils/loss.py pointer only (licence: NONE) · get_code("b5875c654c16b622") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, wicai24/door-alignment 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_sequence_log_probs | Ran ran, violated the contract we drafted |
wicai24/door-alignment/utils/loss.py pointer only (licence: NONE) · get_code("022d7873bdc12107") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, wicai24/door-alignment 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_conversations | Ran ran; our contract draft was wrong, not the code |
wicai24/door-alignment/gen_response.py pointer only (licence: NONE) · get_code("6c87041f5add95da") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, wicai24/door-alignment 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_multi_turn_conversations | Ran ran; our contract draft was wrong, not the code |
wicai24/door-alignment/gen_response.py pointer only (licence: NONE) · get_code("76b835246a7e53d5") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, wicai24/door-alignment 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. |
| timeit | Ran ran; our contract draft was wrong, not the code |
wicai24/door-alignment/safe_eval.py pointer only (licence: NONE) · get_code("1f8149a84b69a3d9") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, wicai24/door-alignment 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. |
Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 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 5 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.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Existing training-time safety alignment techniques for large language models (LLMs) remain vulnerable to jailbreak attacks. Direct preference optimization (DPO), a widely deployed alignment method, exhibits limitations in both experimental and theoretical contexts as its loss function proves suboptimal for refusal learning. Through gradient-based analysis, we identify these shortcomings and propose an improved safety alignment that disentangles DPO objectives into two components: (1) robust refusal training, which encourages refusal even when partial unsafe generations are produced, and (2) targeted unlearning of harmful knowledge. This approach significantly increases LLM robustness against a wide range of jailbreak attacks, including prefilling, suffix, and multi-turn attacks across both in-distribution and out-of-distribution scenarios. Furthermore, we introduce a method to emphasize critical refusal tokens by incorporating a reward-based tokenlevel weighting mechanism for refusal learning, which further improves the robustness against adversarial exploits. Our research also suggests that robustness to jailbreak attacks is correlated with token distribution shifts in the training process and internal representations of refusal and harmful tokens, offering valuable directions for future research in LLM safety alignment. The code is available at https://github.com/ wicai24/DOOR-Alignment.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2503.03710")
get_code_for_paper("2503.03710")
have("2503.03710")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2503.03710.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2503.03710)
Connect an agent — have() is free.