Curvature-Guided Module Localization for Low-Rank Detoxification of Backdoored Large Language Models
Arash Raftari, Mehrdad Mahdavi, Nathan Blackthorn, Andrew Arash Mahyari
Abstract
Backdoor attacks pose a serious threat to large language models (LLMs) by causing otherwise benign systems to produce attacker-specified malicious behavior when a hidden trigger is present. In this work, we study post hoc detoxification of backdoored LLMs in a practical setting where the defender has access to the poisoned model but does not wish to retrain the full network from scratch. We propose a mechanistically guided weight-space repair framework that first localizes modules involved in propagating trigger-induced behavior using activation patching and Fisher/K-FAC curvature analysis, and then applies targeted low-rank repair to only the most influential modules. We evaluate the method on poisoned variants of Llama-3.2-1B-Instruct with triggers inserted at the beginning, middle, and end of otherwise benign prompts. Results show that the proposed approach substantially suppresses trigger-conditioned malicious responses while preserving benign model behavior. These findings suggest that backdoor removal in LLMs can be formulated as a localized structural repair problem rather than only a broad behavioral alignment problem.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
- Comments
- Accepted for presentation at the 2026 IEEE Military Communications Conference (MILCOM 2026), Washington, D.C., USA, October 12-16, 2026
Related papers
FlipGuard: Defending Large Language Models Against Quantization-Conditioned Backdoor Attacks
Shared title terminologycs.CRAoying Zheng, Anqi Du, Zizhuang Deng et al.
Intrinsic Value Modules: Trusted-Hardware Support for Locally Final Offline Asset Transfer
Shared title terminologycs.CRAmirReza Fathi, Ali Rahimi
Autonomous Parameter Surgery: How LLMs Implant Selective Backdoors into Language Models
Shared title terminologycs.CRXuyang Liu, Zhiwei Xu, Zirui Li et al.
Living off the Local Model: Abusing Browser-Embedded Language Models for Post-Exploitation
Shared title terminologycs.CRWilliam Fleshman, Joseph Lucas
Risk Assessment and Security Analysis of Large Language Models
Shared title terminologycs.CRXiaoyan Zhang, Dongyang Lyu, Xiaoqi Li
Vision Token Manipulation Attacks on Cloud-Edge Inference of Large Vision-Language Models
Shared title terminologycs.CRZikai Zhang, Rui Hu, Olivera Kotevska et al.