arXiv(opens in a new tab)cs.CRAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.30403

Why Are LLM Backdoor Defenses Fragmented? A Feature-Level Explanation with Sparse Autoencoders

Yizhe Zeng, Chenxu Niu, Wei Zhang, Hao Huang, Yunpeng Li, Dongxu Han, Dan Du, Cheng Hong, Hequn Xian, Yuling Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Backdoor attacks pose a serious threat to large language models (LLMs), but existing defenses remain fragmented, failing to provide unified defense against both dirty-label and clean-label attacks. To investigate why such fragmentation arises, we present the first systematic feature-level mechanistic analysis of LLM backdoors using sparse autoencoders (SAEs). Starting from a 2×22 \times 2 comparison of clean and poisoned models on clean and triggered inputs, we trace backdoor-induced logit shifts to high-contributing SAE features and categorize them into four roles: interaction, suppressed, mixed, and weight-modified features. This taxonomy reveals systematic encoding differences: dirty-label backdoors are dominated by isolated interaction features, whereas clean-label backdoors rely more on heterogeneous mixtures of mixed and weight-modified features. These differences explain why existing defenses remain fragmented across attack paradigms. We validate this hypothesis through inference-time feature clamping, which reduces ASR to at most 10.8% in most dirty-label settings and at most 15.4% in the majority of clean-label settings, while preserving benign-task performance. These results show that SAE-based analysis can explain defense fragmentation and guide interpretable backdoor mitigation.

1 Introduction

Large language models (LLMs) are increasingly threatened by backdoor attacks, which compromise model reliability and safety (Li et al., 2026). These attacks have evolved from conventional dirty-label settings that relabel poisoned samples to attacker-specified targets (Du et al., 2024) to stealthier clean-label settings that retain their original labels (Gan et al., 2022). The former learns trigger-target shortcuts via label flipping, while the latter does so by correlating triggers with target-class samples; both induce trigger-activated target behavior. Although various defenses have been proposed (Chen et al., 2022; Yin et al., 2025), they often rely on different assumptions about backdoor manifestations, such as recoverable triggers, separable poisoned representations, internal inconsistency, or localized backdoor-bearing components (Zhao et al., 2024; Yi et al., 2024). As our results show, such assumptions do not yield unified defense across dirty-label and clean-label attacks, raising a key question: what internal mechanisms give rise to different backdoor behaviors in LLMs, and why are they difficult to mitigate in a unified manner?

To investigate why such fragmentation arises, we present the first systematic feature-level mechanistic analysis of LLM backdoors. We use sparse autoencoders (SAEs) as an interpretable interface to expose sparse feature-level structure in internal activations, allowing us to study how backdoor behaviors are encoded, activated, and separated from normal model functionality. Specifically, we start from a 2×22 \times 2 comparison between clean and poisoned models under clean and triggered inputs. Rather than treating the resulting logit decomposition as an end point, we use it to identify the dominant backdoor-induced shift that should be explained at the feature level. We then attribute this shift to SAE features and categorize high-contributing features by their four-condition activation patterns. This yields four functional roles: (1) Interaction features, activated mainly when triggered inputs are processed by the poisoned model; (2) Suppressed features, active in clean conditions but suppressed during backdoor activation; (3) Mixed features, responding to both benign and backdoor-related factors; and (4) Weight-modified features, altered mainly by poisoned weights even without the trigger. Across three LLM architectures, three datasets, three trigger types, and both dirty-label and clean-label set-tings, this taxonomy reveals systematic structural differences: dirty-label attacks are dominated by isolated interaction features, whereas clean-label attacks rely more on heterogeneous mixtures of mixed and weight-modified features.

Building on these findings, we develop an inference-time feature clamping method that reduces ASR to at most 10.8% in most dirty-label settings and at most 15.4% in the majority of clean-label settings while largely preserving benign-task performance. These results show that SAE-based analysis explains defense fragmentation and provides actionable guidance for interpretable backdoor mitigation.

Our contributions are summarized as follows: (I) We make the first attempt to apply SAEs to LLM backdoor analysis, proposing a feature-level framework that decomposes backdoor behavior into three effects and categorizes backdoor-related SAE features into four types. (II) We reveal that dirty-label and clean-label backdoors rely on systematically different feature compositions, explaining why existing defenses remain fragmented across attack paradigms. (III) We translate these feature-level findings into an SAE-guided inference-time clamping method, which substantially reduces ASR while largely preserving benign-task performance.

References (39)