On Evaluating the Durability of Safeguards for Open-Weight LLMs

Xiangyu Qi, Boyi Wei, Nicholas Carlini, Yangsibo Huang, Tinghao Xie, Luxi He, Matthew Jagielski, Milad Nasr, Prateek Mittal, Peter Henderson

"Durable" safeguards for open-weight Large Language Models (LLMs)—designed to survive adversarial fine-tuning—are much more fragile than they appear. This paper demonstrates that current evaluation methods are a minefield; by simply changing random seeds, switching to standard training libraries, or tweaking prompt templates, researchers can bypass defenses that previously seemed robust.

The Mirage of Durable Safeguards

The "open-weight" vs. "closed-model" debate often centers on safety. While closed models (like GPT-4) use API-level filters to prevent misuse, open-weight models (like Llama-3) allow users to modify the actual weights. Recent research has shown that standard "refusal training" is easily stripped away with just a few steps of fine-tuning.

In response, the AI safety community has proposed durable safeguards: techniques like Representation Noising (RepNoise) and Tamper Attack Resistance (TAR) that aim to bake safety so deeply into the weights that no amount of fine-tuning can remove it. This paper investigates whether these defenses actually hold up under scrutiny or if we are merely witnessing "evaluation mirages"—defenses that look strong only because the attacks used to test them were too narrow or poorly optimized.

Red-Teaming the Evaluators

Instead of proposing a new defense, the authors perform a rigorous "red-teaming" of the evaluation protocols themselves. They re-examine RepNoise (which pushes internal representations of harmful queries toward random noise) and TAR (which uses meta-learning to optimize weights toward a "robust safety loss minimum").

The authors identify and test four major evaluation pitfalls:

  1. Randomness: Re-running attacks with different random seeds.
  2. Implementation Variance: Comparing custom "research" trainers against optimized, industry-standard tools like the HuggingFace SFT Trainer.
  3. Hyperparameter Sensitivity: Testing slight variations in learning rate warmup and decay.
  4. Prompt Fragility: Changing the template used to extract supposedly "unlearned" knowledge.

Key Findings: Breaking the Defenses

Implementation Variance and RepNoise Fragility

The authors found that standard libraries were significantly more effective at breaking defenses than the custom trainers used in the original papers. This suggests that some perceived "durability" was actually just an artifact of using a sub-optimal attack implementation. For example, under a standard HuggingFace trainer, RepNoise-defended models reached the same level of vulnerability as undefended models.

Comparison of harmfulness scores between the official RepNoise codebase and a standard training codebase.

The "Seed" of Failure and Hyperparameter Sensitivity

In many cases, a defense that appeared durable failed simply by running the same attack with different random seeds or slight hyperparameter tweaks. The worst-case performance—which is the most critical metric for security—was often far worse than the reported average. While the original TAR paper claimed resistance to thousands of fine-tuning steps, the authors broke it by simply increasing the learning rate warmup to 100 steps and using a cosine decay, which stabilized the gradients and allowed the model to recover its "forbidden" knowledge.

Box plots demonstrating the high variance in model accuracy across different evaluation configurations and random seeds.

The Illusion of Unlearning

The paper argues that "unlearning" is often just "hiding." For the TAR-Bio-v1 model, the system appeared to have forgotten biology concepts, scoring near random guess on benchmarks. However, by simply wrapping the question in a chat template and using GPT-4 to extract the answer, the model's accuracy jumped from 25% to over 45%. Furthermore, fine-tuning on completely benign data (like the Alpaca dataset) was enough to help the model recover its "unlearned" harmful capabilities, proving the knowledge was never truly removed.

Catastrophic Side Effects

Pushing models to be highly "durable" often resulted in severe mode collapse. After applying TAR, the model became so "safe" that it started outputting gibberish for standard tasks. Its score on the GSM8K math benchmark plummeted from 74.4% to 4.8%, and its coding ability (HumanEval) dropped from 54.7% to 21.1%. Effectively, the model was lobotomized to save it from misuse.

Conclusion and Future Directions

The authors acknowledge that their work focuses on a specific "worst-case" threat model where adversaries have full weight access. While these defenses aren't yet "durable" in a cryptographic sense, they might still increase the cost for low-skill attackers.

Moving forward, the community must adopt standardized red-teaming protocols that require testing against adaptive attacks. Researchers must also candidly report worst-case performance and utility trade-offs, and deeply investigate whether it is fundamentally possible to truly "unlearn" knowledge from a neural network without destroying its general reasoning capabilities.

Summary updated

BibTeX
@inproceedings{qi2025evaluating,
  author = {Xiangyu Qi and Boyi Wei and Nicholas Carlini and Yangsibo Huang and Tinghao Xie and Luxi He and Matthew Jagielski and Milad Nasr and Prateek Mittal and Peter Henderson},
  title = {{On Evaluating the Durability of Safeguards for Open-Weight LLMs}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=fXJCqdUSVG},
}
Figure