SCALE-UP: An Efficient Black-box Input-level Backdoor Detection via Analyzing Scaled Prediction Consistency

Junfeng Guo, Yiming Li, Xun Chen, Hanqing Guo, Lichao Sun, Cong Liu

TL;DR

Researchers have developed SCALE-UP, a highly efficient "firewall" for machine learning models that detects backdoored inputs in a black-box setting. By simply amplifying the pixel values of an incoming image and checking if the model’s prediction remains consistent, SCALE-UP can identify malicious samples from both classic and advanced backdoor attacks with minimal computational overhead.

The Challenge of Black-Box Backdoor Attacks

Deep Neural Networks (DNNs) are highly susceptible to backdoor attacks. In these attacks, an adversary modifies the training data so the model learns to associate a specific "trigger"—such as a small patch or a subtle image warp—with a target label.

In the real world, many users rely on Machine Learning as a Service (MLaaS), where they query a remote, "black-box" model. The primary challenge for defenders is that most existing backdoor defenses require "white-box" access, meaning the defender needs to inspect or modify the model's internal weights. Existing black-box defenses often struggle with "non-patch" attacks (where the trigger is invisible or complex) or require access to the model's full probability outputs.

Black-box Threat Model and Defense Setup

SCALE-UP aims to protect MLaaS users by acting as an input-level firewall. It requires only the predicted labels returned by the API, making it highly practical for real-world deployment.

The Core Method: Scaled Prediction Consistency (SPC)

The foundation of SCALE-UP is a phenomenon the authors identify as Scaled Prediction Consistency (SPC). They discovered that if you multiply all pixel values of a poisoned image by a constant (e.g., 3x or 5x), the model is significantly more likely to stick to its malicious prediction than it would for a benign image.

Scaled Prediction Consistency across Models

The authors propose two versions of the SCALE-UP defense:

  1. Data-free SCALE-UP: For a suspicious input $x$, the defender generates a set of scaled versions (e.g., $3x, 5x, 7x$). The SPC score is calculated as the proportion of these scaled images that result in the exact same predicted label as the original image. If the score exceeds a predefined threshold, the input is flagged as malicious.
  2. Data-limited SCALE-UP: If the defender has access to a small set of benign samples, they can calculate the average SPC score for each class. This allows them to "normalize" the score, accounting for the fact that some object classes are naturally more robust to scaling than others.

Theoretically, this works because backdoor triggers act as features that the model has heavily "memorized" or overfitted during training. Using Neural Tangent Kernels (NTK), the authors prove that as a model overfits a poisoned trigger, it becomes mathematically "locked in" to that prediction, even as the input's pixel values are artificially scaled.

Experimental Validation

The researchers evaluated SCALE-UP using two standard computer vision benchmarks: CIFAR-10 (60,000 32x32 images across 10 classes) and Tiny ImageNet (100,000 64x64 images across 200 classes). They tested against six different types of attacks, ranging from simple patch-based attacks (BadNets) to invisible, warping-based attacks (WaNet) and sample-specific attacks (ISSBA).

Key Results

  • Superior Detection: On CIFAR-10, SCALE-UP achieved an average AUROC of 0.933, significantly outperforming baselines like STRIP (0.758) and DeepSweep (0.802).
  • Breaking Advanced Attacks: Against the notoriously difficult WaNet attack on Tiny ImageNet, SCALE-UP maintained an AUROC of 0.946, while all other baseline defenses failed completely (AUROC < 0.55).
  • Low Overhead: Because it only requires a few extra queries to the existing model, SCALE-UP adds only about 5% to the total inference time. This negligible latency makes it highly suitable for high-traffic production environments.

Key Insights and Future Directions

SCALE-UP demonstrates that label-only sufficiency is possible for robust defense; you do not need confidence scores (softmax probabilities) to detect anomalies. Furthermore, it offers universal robustness against "non-patch" attacks that typically bypass state-of-the-art defenses.

However, the authors note a few limitations. If the poisoning rate during training is extremely low, the model may not fully "overfit" the trigger, potentially decreasing detection performance. Additionally, on very simple datasets (like MNIST), models might overfit benign features just as strongly as triggers, making them harder to distinguish via scaling. Finally, sophisticated attackers might attempt adaptive attacks by including scaled images in their poisoning process to bypass the defense.

Moving forward, the authors plan to explore how the insights from Scaled Prediction Consistency could be used not just to detect backdoored inputs, but to actively recover or visualize the hidden trigger patterns themselves.

Summary updated

BibTeX
@inproceedings{guo2023scale,
  author = {Junfeng Guo and Yiming Li and Xun Chen and Hanqing Guo and Lichao Sun and Cong Liu},
  title = {{SCALE-UP: An Efficient Black-box Input-level Backdoor Detection via Analyzing Scaled Prediction Consistency}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=o0LFPcoFKnr},
}
Figure