Reshaping large language models to fail more safely under attack
Training with Honeypots: Reshaping How LLMs Fail Under Adversarial Attacks
Computation and LanguageArtificial IntelligenceMachine Learning
Summary
Large language models can sometimes produce harmful or risky outputs when attacked by adversaries. The paper looks at ways to change how these models fail so that when they do, their mistakes are less harmful or less likely to cause real-world problems. The authors create special “honeypot” responses that trick automated safety systems into flagging them as harmful, even though they are less risky. By training models to produce these safer failure responses, they reduce both the frequency and impact of harmful mistakes.
What this means in practice
- •For ai safety teams: Improve AI defense by training models to fail with lower real-world harm, even if automated safety flags are triggered.
- •For content moderation teams: Deploy models that produce less actionable harmful content when attacked, supporting safer moderation workflows.
Authors
Samuel Simko, Punya Syon Pandey, Zhijing Jin, Bernhard Schölkopf
Abstract
Automated red-teaming of Large Language Models (LLMs) commonly relies on attack success rates (ASR) as a proxy for real-world harm, implicitly assuming that judge-detected violations correspond to actionable risk. In practice, safety judges are imperfect, and outputs that satisfy automated criteria for harm can vary widely in their operational usefulness. In this work, we investigate whether model failure modes can be reshaped so that, when defenses fail, they preferentially produce reduced-actionability outputs rather than highly actionable harm. Inspired by honeypots in computer security, we construct responses that are frequently flagged as harmful by automated judges yet provide limited real-world operational value, and treat them as hard negatives in the safety training pipeline. Our findings show that shaping how models fail under attack can improve overall safety by reducing both the real-world impact and the frequency of harmful failures, and serves as a practical complement to ASR-based evaluations. Our code is available at https://github.com/samuelsimko/training_with_honeypots.