Real-time detectors for digital and physical adversarial inputs to perception systems

Yiannis Kantaros, Taylor J. Carpenter, Kaustubh Sridhar, Yahan Yang, Insup Lee, James Weimer

TL;DR

VisionGuard is a real-time, "plug-and-play" detector that identifies both digital and physical adversarial attacks on deep neural networks (DNNs). By applying simple, label-invariant transformations like JPEG compression or brightness shifts, it exposes the "brittleness" of adversarial perturbations without requiring model retraining or specialized hardware.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are the eyes of safety-critical systems like autonomous vehicles and medical imaging. However, they are notoriously fragile. An attacker can craft "adversarial examples"—digital images with imperceptible noise or physical objects with specific stickers—that cause a DNN to confidently misclassify a Stop sign as a Speed Limit sign.

Existing defenses often fall into three traps:

  1. Dataset Dependency: They require building complex auto-encoders or retraining the classifier for every new dataset.
  2. Computational Overhead: They are too slow for real-time applications like self-driving cars.
  3. Narrow Focus: Most focus on digital perturbations, ignoring the physical-world attacks (like stickers or posters) that pose the greatest risk to robotics.

The authors introduce VisionGuard (VG) to solve these issues with a lightweight, attack-agnostic approach that scales even to massive datasets like ImageNet.

Methods

VisionGuard operates on a simple but powerful intuition: Adversarial perturbations are mathematically brittle. While a human sees a Stop sign regardless of slight JPEG compression or a change in brightness, an adversarial attack relies on precise pixel values that these transformations disrupt.

The VisionGuard pipeline follows four steps:

  1. Initial Inference: Feed the input image $x$ into the target classifier to get a probability distribution (softmax output).
  2. Transformation: Apply a "label-invariant" transformation $t$ (e.g., JPEG compression, rotation, or brightness adjustment) to create a refined image $x'$.
  3. Second Inference: Feed $x'$ into the same classifier.
  4. Comparison: Measure the difference between the two outputs using Kullback–Leibler (K-L) divergence. If the classifier’s "opinion" changes significantly after the transformation, the image is flagged as adversarial.

Unlike "feature squeezing" methods that try to purify images to improve accuracy, VisionGuard is a dedicated detector. It doesn't care if the second inference is correct; it only cares that the output changed, signaling that the original input was likely manipulated.

Datasets

The researchers evaluated VisionGuard on standard benchmarks and a custom real-world dataset:

  • Standard Benchmarks: MNIST, CIFAR10, and ImageNet (ILSVRC2012).
  • AdvNet (New): A newly introduced dataset containing 2,645 clean and 4,007 physically attacked traffic sign images (Stop, Yield, Speed Limit 35). These were captured using a 12MP smartphone camera under varying lighting, angles, and distances.
  • Drive-by Data: Real-world video footage from a moving vehicle approaching physically tampered signs.

Key Insights and Ideas

  • The "Aha" Moment: Adversaries succeed because they have a massive "feature space" to hide in. By applying transformations, VisionGuard effectively "shrinks" this space, squeezing out the unnecessary features that adversarial noise relies on.
  • Dataset Agnosticism: Because VG doesn't require training a separate "detector" model or auto-encoder, it works out-of-the-box. While competing methods like MagNet failed to even finish training on ImageNet after two weeks, VG was ready instantly.
  • Physical vs. Digital: The paper finds that different transformations work better for different attacks. JPEG compression is highly effective against digital noise, while brightness and rotation transformations are better at exposing physical stickers.

Key Results

  • Superior Detection: On ImageNet, VisionGuard achieved an Area Under the Curve (AUC) of >90% for almost all digital attacks (FGSM, PGD, CW). In contrast, the Kernel Density Estimation (KDE) detector performed no better than a random guess on the same data.
  • Real-Time Performance: VG is incredibly fast. On ImageNet, it takes roughly 0.08 seconds per image. For an autonomous vehicle system running at 55 FPS, VG could analyze every 12th frame without causing lag.
  • Physical Robustness: On the AdvNet dataset, VG achieved an AUC of 89.43% against physical sticker attacks, outperforming specialized detectors. In the drive-by experiment, it reached a perfect 100% AUC for certain configurations.

Limitations and Future Work

  • Adaptive White-Box Attacks: The authors assume a "gray-box" scenario where the attacker knows the classifier but not the defense mechanism. If an attacker knows exactly which transformation (e.g., JPEG 92) VisionGuard is using, they could theoretically craft an attack that is robust to that specific transformation.
  • Threshold Calibration: While the method is dataset-agnostic, choosing the optimal K-L divergence threshold ($\tau$) still requires a small calibration set of clean and adversarial images to maximize the True Positive Rate while minimizing False Alarms.
  • Future Directions: The authors suggest exploring more complex transformations or ensembles of transformations to further harden the system against adaptive attackers.

Summary updated

BibTeX
@inproceedings{kantaros2021real,
  author = {Yiannis Kantaros and Taylor J. Carpenter and Kaustubh Sridhar and Yahan Yang and Insup Lee and James Weimer},
  title = {{Real-time detectors for digital and physical adversarial inputs to perception systems}},
  booktitle = {ICCPS},
  year = {2021},
  doi = {10.1145/3450267.3450535},
}
Figure