Robust LLM safeguarding via refusal feature adversarial training
Lei Yu, Virginie Do, Karen Hambardzumyan, Nicola Cancedda
Abstract
Large language models (LLMs) are vulnerable to adversarial attacks that can elicit harmful responses. Defending against such attacks remains challenging due to the opacity of jailbreaking mechanisms and the high computational cost of training LLMs robustly. We demonstrate that adversarial attacks share a universal mechanism for circumventing LLM safeguards that works by ablating a dimension in the residual stream embedding space called the refusal feature (Arditi et al., 2024). We further show that the operation of refusal feature ablation (RFA) approximates the worst-case perturbation of offsetting model safety. Based on these findings, we propose Refusal Feature Adversarial Training (ReFAT), a novel algorithm that efficiently performs LLM adversarial training by simulating the effect of input-level attacks via RFA. Experiment results show that ReFAT significantly improves the robustness of three popular LLMs against a wide range of adversarial attacks, with considerably less computational overhead compared to existing adversarial training methods.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
22 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Memory Injection Attacks on LLM Agents via Query-Only Interaction cites Measuring Massive Multitask Language Understanding
- Mitigating Overthinking in Large Reasoning Models via Manifold Steering cites Refusal in Language Models Is Mediated by a Single Direction
- LLMs Encode Harmfulness and Refusal Separately cites Inference-Time Intervention: Eliciting Truthful Answers from a Language Model
- LLMs Encode Harmfulness and Refusal Separately cites Refusal in Language Models Is Mediated by a Single Direction
- Inference-Time Intervention: Eliciting Truthful Answers from a Language Model cites Measuring Massive Multitask Language Understanding
- Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMs cites Measuring Massive Multitask Language Understanding
- Representation Bending for Large Language Model Safety cites Measuring Massive Multitask Language Understanding
- Representation Bending for Large Language Model Safety cites HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal
- Refusal in Language Models Is Mediated by a Single Direction cites Measuring Massive Multitask Language Understanding
- Refusal in Language Models Is Mediated by a Single Direction cites Inference-Time Intervention: Eliciting Truthful Answers from a Language Model
- Refusal in Language Models Is Mediated by a Single Direction cites AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts
Cited by top-tier papers22
- Memory Injection Attacks on LLM Agents via Query-Only InteractionShen Dong, Shaochen Xu, Pengfei He, Yige Li et al.NeurIPS 2025 · 146 citations
- LLMs Encode Harmfulness and Refusal SeparatelyJiachen Zhao, Jing Huang, Zhengxuan Wu, David Bau et al.NeurIPS 2025 · 93 citations
- Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMsKyle O'Brien, Stephen Casper, Quentin Anthony, Tomek Korbak et al.ICLR 2026 · 59 citations
- Mitigating Overthinking in Large Reasoning Models via Manifold SteeringYao Huang, Huanran Chen, Shouwei Ruan, Yichi Zhang et al.NeurIPS 2025 · 45 citations
- Representation Bending for Large Language Model SafetyAshkan Yousefpour, Taeheon Kim, Ryan Sungmo Kwon, Seungbeen Lee et al.ACL 2025 · 19 citations
Builds on23
- Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou et al.ICLR 2021 · 7,905 citations
- Inference-Time Intervention: Eliciting Truthful Answers from a Language ModelKenneth Li, Oam Patel, Fernanda B. Viégas, Hanspeter Pfister et al.NeurIPS 2023 · 1,549 citations
- Refusal in Language Models Is Mediated by a Single DirectionAndy Arditi, Oscar Obeso, Aaquib Syed, Daniel Paleka et al.NeurIPS 2024 · 1,166 citations
- AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated PromptsTaylor Shin, Yasaman Razeghi, Robert L. Logan IV, Eric Wallace et al.EMNLP 2020 · 1,162 citations
- HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust RefusalMantas Mazeika, Long Phan, Xuwang Yin, Andy Zou et al.ICML 2024 · 1,031 citations
Related papers
- Understanding Refusal in Language Models with Sparse AutoencodersWei Jie Yeo, Nirmalendu Prakash, Clement Neo, Ranjan Satapathy et al.EMNLP Findings 2025
- Beyond Surface Alignment: Rebuilding LLMs Safety Mechanism via Probabilistically Ablating Refusal DirectionYuanbo Xie, Yingjie Zhang, Tianyun Liu, Duohe Ma et al.EMNLP Findings 2025 · 2 citations
- Understanding and Improving Continuous LLM Adversarial Training via In-context Learning TheoryShaopeng Fu, Di WangICLR 2026 · 1 citation
- Refusal Direction is Universal Across Safety-Aligned LanguagesXinpeng Wang, Mingyang Wang, Yihong Liu, Hinrich Schütze et al.NeurIPS 2025 · 39 citations
- Silencing the Guardrails: Inference-Time Jailbreaking via Dynamic Contextual Representation AblationWenpeng Xing, Moran Fang, Guangtai Wang, Changting Lin et al.ACL Findings 2026
