Abstract
Modern machine learning models are vulnerable to backdoor attacks, where adversaries inject poisoned samples into training sets to trigger malicious behavior at test time. Identifying these samples is challenging, especially under practical constraints like the absence of clean data and the need for manual thresholding. This paper introduces Mask-Aware Scaled Prediction Consistency (MSPC), a novel defense that leverages bi-level optimization to isolate backdoor triggers. MSPC operates without clean data or manual tuning, outperforming existing baselines by 4% to 36% in detection accuracy (AUROC).
Introduction: The Challenge of Practical Backdoor Defense
As AI models increasingly rely on large-scale, third-party datasets, the risk of backdoor attacks grows. In these attacks, a model learns to associate a subtle "trigger" (e.g., a specific pixel pattern) with a target label. While the model performs normally on clean inputs, it predictably fails when the trigger is present.
Most existing defenses are hindered by two unrealistic requirements:
- (P1) Dependency on Clean Data: Many methods require a verified clean subset for calibration.
- (P2) Manual Thresholding: Defenses often produce "poison scores" but require human intervention to determine the cutoff for flagging samples.
Methodology: From SPC to Mask-Aware SPC
The proposed method builds on Scaled Prediction Consistency (SPC). SPC assumes that backdoor triggers are more "robust" than natural features; scaling pixel values typically leaves a poisoned image's prediction unchanged, whereas a clean image's prediction may shift.
However, vanilla SPC faces two hurdles:
- Trigger Vanishing (Insight 1): Triggers can blend into the background at high scales, leading to missed detections.
- Robust Clean Features (Insight 2): Some natural objects are inherently scale-invariant, causing false positives.
To address these, Mask-Aware SPC (MSPC) employs a bi-level optimization framework to learn an image-specific mask. The lower-level optimization identifies the "effective part" of the trigger—the minimal pixels required to maintain prediction consistency. The upper-level optimization then maximizes the separability between clean and poisoned data. Crucially, the loss function is designed so that the detection threshold is fixed at zero, removing the need for manual tuning.
Experimental Evaluation
MSPC was evaluated on CIFAR-10, Tiny-ImageNet, and ImageNet200 against a variety of attacks, including BadNets, clean-label attacks, and warping-based attacks like WaNet.
Key Results
MSPC consistently outperformed state-of-the-art defenses like STRIP, ABL, and SPECTRE. On CIFAR-10, it achieved an average AUROC of 0.8941, a significant leap from vanilla SPC's 0.6563.
Beyond detection, the authors demonstrated that removing samples flagged by MSPC and retraining the model reduced the Attack Success Rate (ASR) from 100% to near 0% across most attack types.
Discussion and Future Work
The success of MSPC lies in its ability to "lock onto" triggers as the most scale-invariant features without prior knowledge of their appearance. It effectively breaks the assumption of latent separability that many other defenses rely on, making it robust against sophisticated attacks like AdapBlend.
A noted limitation is performance against style-transfer based attacks (DFST), where the backdoor is a global style rather than a local feature. Future research will explore signatures beyond scale-invariance to address these global manipulations.
Summary updated