PatchBench: Measuring Collateral Damage in Activation Patching
Alexi Canesse, Mathis Le Bail, Maël JENNY, Clément Elliker, Mahammed El Sharkawy, Sonia Vanier
NeurIPS page · Open on the map
Category: AI Safety, Security & Alignment › LLM Safety Attacks and Defenses · Type: benchmark or dataset · Keywords: LLM safety, jailbreak patching, activation steering, benchmark evaluation, collateral damage
Areas: Safety & Security › Safe Alignment › Safety benchmarks; Evaluation & Benchmarks › Language Model and Agent Safety › LLM Safety Evaluation; Evaluation Methodology & Auditing › Language Model Benchmarking › Calibration, Honesty and Fairness; Benchmarks for LLMs & Agents › Agent Trustworthiness Benchmarks › Safety benchmarks
Summary
PatchBench is a benchmark and evaluation protocol that measures collateral damage in activation patching by testing whether safety patches precisely repair harmful behavior or indiscriminately suppress benign behavior.
Explained to a 5-year-old
We made a list of bad things that language models sometimes say. Then we made a game to test if fixing one bad thing also breaks good things. This test uses similar prompts to see if the fix is precise. By using this test, we can see if a safety patch works well or causes problems elsewhere. This helps make language models safer.
Explained to a 5-year-old, longer
We collected many examples of unsafe answers from language models. We chose the most confident ones to make a special collection. Then we created a test that checks if fixing one unsafe answer also hurts normal answers. This test uses similar prompts to see if the fix is precise. By using this test, we can see if a safety patch works well or causes problems elsewhere. This helps researchers build better safety fixes for language models. The test looks at three kinds of similar prompts: ones that are still harmful, ones that are safe but have the same structure, and ones that use the same dangerous words. It checks if the harmful prompts are fixed and if the safe prompts stay unchanged. This way we can tell if a patch is selective or too broad. The results show that some patches keep overall performance high while still hurting safe prompts. This tells us that simple scores are not enough to judge safety. The new method helps make language models safer in real life.
For a technical reader
The paper creates a curated set of known unsafe completions from several open-source models. It then defines a local evaluation protocol that generates closely related prompts to test whether a safety patch corrects harmful behavior without harming benign behavior. By measuring both harmful-neighbour correction and benign-neighbour preservation, the protocol reveals when patches cause collateral damage that global metrics miss. This gives engineers a more reliable way to assess and improve safety patches for language models.
Problem
Existing evaluation protocols for LLM safety patches often fail to detect whether a patch precisely repairs harmful behavior or indiscriminately suppresses benign behavior, leading to false confidence in patch effectiveness.
Method
The approach creates a curated collection of high-confidence jailbreak failures across multiple models and introduces a local evaluation protocol that generates harmful and benign neighbor prompts to test both correction and preservation. It then evaluates existing activation steering methods using this protocol and compares results against global capability metrics.
Results
The approach reveals that global capability scores stay high while local benign-neighbour regressions are severe, indicating that aggregate metrics can miss important collateral damage.
Contributions
The paper provides a curated bank of model-specific jailbreak failures and a local evaluation protocol that tests both harmful-neighbour correction and benign-neighbour preservation, enabling more precise assessment of safety patches.
Practical relevance
It enables developers to build safer LLM patches that avoid unintended side effects on benign behavior.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction