Abstract
Deep learning models are widely deployed in various applications but remain vulnerable to stealthy adversarial threats, particularly backdoor attacks. Backdoor models trained on poisoned datasets behave normally with clean inputs but cause mispredictions when a specific trigger is present. Most existing backdoor defenses assume that adversaries only inject one backdoor with small and conspicuous triggers. However, adaptive backdoor that entangle multiple trigger patterns with benign features can effectively bypass existing defenses. To defend against these attacks, we propose Isolate Trigger (IsTr), an accurate and efficient framework for backdoor detection and mitigation. IsTr aims to eliminate the influence of benign features and reverse hidden triggers. IsTr is motivated by the observation that a model's feature extractor focuses more on benign features while its classifier focuses more on trigger patterns. Based on this difference, IsTr designs Steps and Differential-Middle-Slice to resolve the detecting challenge of isolating triggers from benign features. Moreover, IsTr employs unlearning-based repair to remove both attacker-injected and natural backdoors while maintaining model benign accuracy. We extensively evaluate IsTr against six representative backdoor attacks and compare with seven state-of-the-art baseline methods across three real-world applications: digit recognition, face recognition, and traffic sign recognition. In most cases, IsTr reduces detection overhead by an order of magnitude while achieving over 95% detection accuracy and maintaining the post-repair attack success rate below 3%, outperforming baseline defenses. IsTr remains robust against various adaptive attacks, even when trigger patterns are heavily entangled with benign features.
Introduction
Deep learning models are susceptible to backdoor attacks, where an adversary "poisons" a dataset so the model behaves normally on clean inputs but misclassifies any input containing a specific "trigger" (e.g., a small square in the corner). Early defenses assumed triggers were small, static, and distinct from the image content. However, "adaptive" attacks have evolved to use triggers that are large, multiple, or heavily "entangled" with benign features—for example, a specific facial expression or a watermark covering the entire image. Existing defenses often fail because they cannot distinguish between the malicious trigger and the legitimate features of the target class.
The IsTr Framework
The proposed Isolate Trigger (IsTr) framework addresses these challenges through a three-component pipeline designed to isolate triggers from benign features and repair the model.
- Steps (Unconstrained Label Mutation): Unlike traditional methods that generate triggers by moving toward a specific target class, Steps uses untargeted generation. It pushes the input away from its original class without a fixed destination, helping isolate the trigger pattern while minimizing the influence of the target class's natural features.
- Differential-Middle-Slice (DMS): This query-based method locates hidden triggers by comparing the outputs of a suspected backdoored model against a benign one. By "slicing" results from middle layers, it filters out benign features (processed in shallow layers) to focus on the trigger patterns prioritized in deeper layers.
- Unlearning-based Repair: Once a trigger is reconstructed, IsTr patches the model by training it to recognize that an image plus the trigger should still be classified with its original, correct label. This effectively "unlearns" the backdoor without damaging accuracy on clean data.
Theoretical Foundation: Prior vs. Posterior Knowledge
The core insight of IsTr is the distinction between how a model memorizes data. Benign features are considered "prior knowledge" processed in shallow layers, while triggers are "posterior knowledge" prioritized by the final classifier.
This hierarchy allows IsTr to isolate triggers more effectively than previous methods. Furthermore, the research demonstrates a strong positive correlation between "reverse precision" (the accuracy of trigger reconstruction) and the effectiveness of the final repair. If a reconstructed trigger contains too many benign features, the repair process may inadvertently degrade the model's overall performance.
Experimental Results
IsTr was evaluated across three diverse applications: digit recognition (MNIST), traffic sign recognition (GTSRB), and facial recognition (PubFig). It was tested against six representative attacks, including simple patches (BadNets) and advanced adaptive attacks (CASSOCK/HCB).
- High Accuracy: IsTr achieved over 95% detection accuracy across most scenarios, significantly outperforming baselines like Neural Cleanse (NC) and ABS, particularly on complex facial datasets.
- Effective Mitigation: Following unlearning-based repair, the Attack Success Rate (ASR) dropped from 100% to below 3% in almost all cases, while maintaining high benign accuracy (BACC).
- Efficiency: IsTr's "Steps" mechanism is often an order of magnitude faster than existing methods. On MNIST, it processed samples in 0.0022 seconds, compared to 0.1311 seconds for Neural Cleanse.
Conclusion
IsTr provides a robust and efficient defense against adaptive backdoor attacks by exploiting the structural differences in how models process benign features versus malicious triggers. By isolating triggers through unconstrained mutation and middle-layer slicing, it achieves superior detection and repair performance while maintaining high computational efficiency.
Summary updated