Backdoor Secrets Unveiled: Identifying Backdoor Data with Optimized Scaled Prediction Consistency

Soumyadeep Pal, Yuguang Yao, Ren Wang, Bingquan Shen, Sijia Liu

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:

  1. (P1) Dependency on Clean Data: Many methods require a verified clean subset for calibration.
  2. (P2) Manual Thresholding: Defenses often produce "poison scores" but require human intervention to determine the cutoff for flagging samples.
Table 1: Comparison of backdoor defenses. MSPC ("Ours") is the only method that identifies backdoor data while being free of clean data (P1) and manual detection thresholds (P2).

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.

Figure 6: ROC curve for the WaNet attack on CIFAR-10. MSPC significantly outperforms the SPC baseline, achieving a much higher True Positive Rate at low False Positive Rates.

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

BibTeX
@inproceedings{pal2024backdoor,
  author = {Soumyadeep Pal and Yuguang Yao and Ren Wang and Bingquan Shen and Sijia Liu},
  title = {{Backdoor Secrets Unveiled: Identifying Backdoor Data with Optimized Scaled Prediction Consistency}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=1OfAO2mes1},
}
Figure