cs.CRSep 5, 2026

Bait-and-Recover: Poisoning Internal Refusal Signals to Defend LLMs against White-Box Editing Jailbreaks

Authors: Tian Gao, Zhipeng Xie, Yuhao Wu, Junhua Liu, Xin Fang

Organizations: Anhui Laboratory for Safe Artificial Intelligence in the Yangtze River Delta · iFlytek Research

Abstract

Open-weight large language models face a low-cost white-box threat from representation engineering attacks. Attackers can estimate refusal directions and search for projection-matrix edits that suppress safety alignment while preserving general capabilities, within minutes on a single GPU and without gradient-based training. We propose Bait-and-Recover, a weight-level defense that places a bait adapter where attackers read activations and a paired recovery adapter at the subsequent layer. Trained via gradient routing, this decouples the observation path from the behavior path. By actively poisoning the residual signal used for measurement, Bait-and-Recover disrupts the attacker's edit search, while the recovery layer restores clean downstream computation. Across four open-weight models, our defense raises the minimum refusal rate against white-box edit searches from 16.25% to 71.75% under a strict behavior-preservation budget (KL <= 0.10), with negligible impact on general benchmarks. By invalidating the core measurement assumption of these attacks, observation-path poisoning offers a practical complement to behavior-level safety training.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Open-Weight LLM Fine-Tuning Defenses are Susceptible to Simple Attacks

    May 26, 2026Kevin Kuo, Virginia Smith, Chhavi YadavLLM Fine-TuningAdversarial Attacks on LLMs

  2. Compiling Activation Steering into Weights via Null-Space Constraints for Stealthy Backdoors

    Apr 14, 2026Rui Yin, Tianxu Han, Naen Xu +8LLM Backdoor AttacksLanguage Model Editing

  3. Decoy Direction Optimization: A Post-Hoc Defense Against LLM Abliteration

    Sep 14, 2026Aashiq Muhamed, Mona T. Diab, Virginia SmithAdversarial Attacks on LLMsLLM Safety