AdvIT: Adversarial Frames Identifier Based on Temporal Consistency in Videos

Chaowei Xiao, Ruizhi Deng, Bo Li, Taesung Lee, Benjamin Edwards, Jinfeng Yi, Dawn Song, Mingyan Liu, Ian M. MolloyICCV 2019

Abstract

Deep neural networks (DNNs) have been widely applied in various applications, including autonomous driving and surveillance systems. However, DNNs are found to be vulnerable to adversarial examples, which are carefully crafted inputs aiming to mislead a learner to make incorrect predictions. While several defense and detection approaches are proposed for static image classification, many security-critical tasks use videos as their input and require efficient processing. In this paper, we propose an efficient and effective method advIT to detect adversarial frames within videos against different types of attacks based on temporal consistency property of videos. In particular, we apply optical flow estimation to the target and previous frames to generate pseudo frames and evaluate the consistency of the learner output between these pseudo frames and target. High inconsistency indicates that the target frame is adversarial. We conduct extensive experiments on various learning tasks including video semantic segmentation, human pose estimation, object detection, and action recognition, and demonstrate that we can achieve above 95% adversarial frame detection rate. To consider adaptive attackers, we show that even if an adversary has access to the detector and performs a strong adaptive attack based on the state of the art expectation of transformation method, the detection rate stays almost the same. We also tested the transferability among different optical flow estimators and show that it is hard for attackers to attack one and transfer the perturbation to others. In addition, as efficiency is important in video analysis, we show that advIT can achieve real-time detection in about 0.03--0.4 seconds.

Introduction

Deep Neural Networks (DNNs) are notoriously "brittle." A tiny, invisible change to an image—an adversarial perturbation—can trick a model into making incorrect predictions, such as misidentifying a stop sign as a speed limit sign. While much research has focused on defending static images, videos present a unique and more dangerous frontier. In security-critical applications like autonomous driving or surveillance, a single adversarial frame could cause a catastrophic crash or allow a security breach. Existing defenses for images are often too slow for the high-frame-rate requirements of video or are easily bypassed by "adaptive" attackers who adjust their strategy once they know a defense is active. AdvIT addresses these challenges by providing a fast, effective detector across various video tasks that remains robust even against informed attackers.

Methodology: Leveraging Temporal Consistency

The core philosophy of AdvIT is that natural content is consistent over time, but adversarial noise is not. In a normal video, a frame is typically a slightly transformed version of the previous frame. AdvIT exploits this using a three-step process:

  1. Optical Flow Estimation: The system calculates the motion of pixels (optical flow) between the current target frame ($X_t$) and several previous frames ($X_{t-k}$).
  2. Pseudo Frame Generation: A previous frame is warped using the calculated optical flow to create a "pseudo frame." A small amount of random noise is added to the optical flow before warping to make the transformation unpredictable for an attacker.
  3. Consistency Check: The DNN runs on both the target frame and the pseudo frame. For benign frames, predictions should be nearly identical. For adversarial frames, the warping process "breaks" the pixel-perfect noise required for the attack, leading to a massive inconsistency that triggers an alarm.
Overview of the AdvIT detection framework, showing the generation of pseudo frames and the consistency measurement process.

Evaluation and Results

AdvIT was evaluated across four distinct computer vision tasks: video semantic segmentation (CityScapes), human pose estimation (MPII & YouTube), object detection (DAVIS Challenge 17), and action recognition (UCF-101).

The system achieved over 95% detection accuracy across semantic segmentation, pose estimation, and object detection. Crucially, AdvIT is robust against "strong adaptive attackers" who have full access to the detector's code. Even with advanced techniques like "Expectation of Transformation," the detection rate remained stable. Furthermore, AdvIT is designed for real-time performance; for instance, the detection step for human pose estimation takes only 0.03 seconds, allowing it to run in parallel with the main vision model without system lag.

Discussion and Future Work

Key Insights

  • Adversarial Fragility: Adversarial perturbations are highly overfitted to exact pixel coordinates. Shifting pixels via optical flow destroys the attack's effectiveness while preserving the scene's semantic meaning.
  • Randomness and Non-Differentiability: Injecting randomness and using non-differentiable optical flow estimators prevents attackers from calculating effective bypass gradients.
  • Independence from History: An attack on a previous frame won't "line up" correctly to maintain the illusion on the current frame after warping, making it difficult to maintain a persistent attack.

Limitations

AdvIT may produce false positives during "jump cuts" in edited videos where optical flow is nonsensical. Currently, the system only identifies attacks rather than correcting them. Future work could involve using pseudo frames as "clean" substitutes to maintain system functionality under attack and investigating more sophisticated temporal-aware adversarial perturbations.

Summary updated

BibTeX
@inproceedings{xiao2019advit,
  author = {Chaowei Xiao and Ruizhi Deng and Bo Li and Taesung Lee and Benjamin Edwards and Jinfeng Yi and Dawn Song and Mingyan Liu and Ian M. Molloy},
  title = {{AdvIT: Adversarial Frames Identifier Based on Temporal Consistency in Videos}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  url = {https://openreview.net/forum?id=hPw2mxVabkgM},
}
Figure