Warning. The training code in this repository (train_art.py) was written by an AI assistant from the text of the ART paper. It has not been reviewed line by line by a human. These checkpoints were produced by running that code. Read and verify it before relying on it, and treat any claim that it faithfully implements the paper as unverified.
Llama-3-8B-Instruct-TAR-ART-bounded
Built with Meta Llama 3.
An unofficial reimplementation of Abliteration-Resistant Tuning (ART) applied on top of the official TAR-Refusal checkpoint. This is a defended model: it is harder to strip of its refusal behaviour by weight-editing attacks than its base. It is released together with the training code so that the defense can be reproduced and, more importantly, attacked — the evaluation below shows where it fails.
This is not an official artifact of the ART authors. ART is from Kuo, Smith & Yadav (2026), "Open-Weight LLM Fine-Tuning Defenses are Susceptible to Simple Attacks" (arXiv:2605.26526), Algorithms 2–3 and Appendix A.4. That paper releases no code, so
train_art.pyin this repository was written from the paper text, and several choices the paper leaves open had to be made (documented below). The paper applies ART to its own TAR retrain of Llama-3.1-8B-Instruct; this checkpoint instead starts from the official TAR-Refusal release built on Llama-3-8B-Instruct, so results are comparable in trend but are not a replication of the paper's Table 8. Neither the ART authors nor the TAR authors have reviewed or endorsed this.
What ART does
Abliteration finds a "refusal direction" — the mean difference in hidden states between harmful and harmless prompts at the last prompt token — and projects it out of the weights that write to the residual stream. It is cheap, needs no training, and strips refusal from most aligned models.
ART trains against that edit. At each step it recomputes the refusal direction from fresh prompts, applies the abliteration edit to obtain a damaged copy of the model, and then pushes the cross-entropy of harmful responses up as measured at that damaged copy, while holding ordinary cross-entropy down on harmless responses at the undamaged model:
L = γ_ar · ( −log( CE_harmful(f_θ̃) + ε ) ) + γ_ret · CE_harmless(f_θ)
with γ_ar = 1, γ_ret = 2, ε = 1e-3. The −log makes the ascent self-limiting: its gradient scales as 1/CE, so
it fades once the harmful continuation is already improbable.
The "bounded" variant. TAR-Refusal starts with harmful cross-entropy at 15.7, already above the 11.8 of a
uniform distribution over the vocabulary. The objective as written therefore keeps pushing an already-unsayable
continuation (to CE ≈ 127 by step 1000), producing a model whose "safety" consists of harmful text being
literally unsayable rather than refused. This checkpoint sets --ce_cap 11.76 (= ln|V|), skipping the ascent
term whenever harmful CE is already past uniform. It ends at held-out harmful CE 17.4 / refusal CE 3.1 and
actually refuses or deflects. The unbounded variant is released separately as
Llama-3-8B-Instruct-TAR-ART-faithful.
Evaluation
S = safety, the share of 200 held-out HarmBench standard behaviors that the HarmBench Llama-2-13B classifier did not judge harmful (greedy, 512 tokens). Higher is safer. U = utility, mean zero-shot accuracy over BoolQ, RTE, HellaSwag, WinoGrande, ARC-Challenge and OpenBookQA (lm-eval, 200 questions each); chance ≈ 0.375. Binomial noise at these rates is about ±3.5%.
Weight-editing and activation attacks — ART blocks all of them
| Attack | Llama-3-8B-Instruct | TAR-Refusal | this model |
|---|---|---|---|
| none (baseline) | 96.0% | 76.5% | 100% |
| abliteration (1 layer, α=1) | 9.0% | 59.5% | 88.0% |
| SNIP set-difference pruning | 15.5% | 50.5% | 98.5% |
| ActSVD rank projection | 28.0% | 44.5% | 94.5% |
| random pruning (control) | 94.0% | 80.5% | 100% |
| Adam-preconditioned sign-gradient edit | – | – | 97.0% |
| Utility (U) | 0.606 | 0.551 | 0.453 |
Notably, ART was trained only against abliteration, yet it also blocks pruning, rank projection and a preconditioned single-gradient edit that were constructed afterwards.
Fine-tuning — ART does NOT block it
This is the limitation users must not overlook. Harmful fine-tuning on BeaverTails unsafe QA unlocks this model:
| Attack | 50 steps | 300 steps |
|---|---|---|
| Full-parameter fine-tune (lr 2e-5) | 67.5% S | 48.0% S |
| Rank-1 LoRA on the 96 MLP matrices (1.8M params = 0.02% of the model, lr 1e-3) | 65.5% S | 51.0% S |
Utility is unchanged throughout (0.448–0.467), so there is no capability tell. A rank-1 adapter — a single adapted direction per MLP matrix, ~3.6 MB, about 34 seconds of training for 50 steps on one RTX 6000 Ada — is as effective as full fine-tuning here. Treat this checkpoint as abliteration-resistant, not tamper-resistant.
The caveat that matters most
ART's safety margin is confounded with capability loss. It costs roughly 10 points of zero-shot utility versus TAR-Refusal and 15 versus base Llama-3, and across all three models the apparent safety ordering tracks the utility ordering almost exactly. Because the HarmBench classifier scores harm quality, a less capable model scores safer by construction. No capability-matched control was run, so the published margin above should not be read as demonstrated robustness until someone compares it against a model degraded to the same utility by non-safety-related means. If you build on this checkpoint, that control is the first experiment worth running.
Training details
1000 steps, batch 4, lr 2e-5, AdamW (β = 0.9/0.999, no weight decay, constant lr, no warmup), grad-norm clip 1.0,
bf16 weights and gradients on one GPU with fp32 master weights and fused AdamW on the CPU. Data:
Unified-Language-Model-Alignment/Anthropic_HH_Golden (the same data TAR-Refusal was trained on); y⁺ = final
chosen turn, y⁻ = final rejected turn, prompts over 384 tokens dropped, responses capped at 128 tokens, loss
on response tokens only. The refusal direction and the best (layer, α) are re-selected every 10 steps, searching
α ∈ {1.0, 1.5, 2.0} and picking the pair that most lowers harmful CE on 16 held-out examples; layer 0 is skipped.
Abliteration is applied through forward hooks so that gradients flow through the edited parameters. With the cap
active, the ascent term fired on 66% of the first 100 steps and about 34% thereafter.
Choices the paper leaves open — the HH split, the refusal-direction definition, the abliteration scope, and α —
are documented in README_ART.md in this repository under "SPEC-GAP".
Reproducing
python train_art.py --out runs/tar-art-bounded --ce_cap 11.76
train_art.py and README_ART.md are included in this repository.
Intended use and limitations
This is a research artifact for studying open-weight tamper-resistance, not a production safety measure. It is published so that the defense can be independently evaluated and attacked. It is not fine-tuning-resistant, its margin is confounded with a real loss of capability, and it is a reimplementation that has not been validated against the original authors' checkpoints. Do not deploy it as a safety guarantee.
Citation
Please cite the original work. ART:
@article{kuo2026openweight,
title = {Open-Weight LLM Fine-Tuning Defenses are Susceptible to Simple Attacks},
author = {Kuo and Smith and Yadav},
journal = {arXiv preprint arXiv:2605.26526},
year = {2026}
}
TAR (the base checkpoint):
@article{tamirisa2024tamper,
title = {Tamper-Resistant Safeguards for Open-Weight LLMs},
author = {Tamirisa, Rishub and others},
journal = {arXiv preprint arXiv:2408.00761},
year = {2024}
}