Attacking Motion Estimation with Adversarial Snow

Jenny Schmalfuss, Lukas Mehl, Andrés BruhnarXiv 2022 · DOI

Abstract

Traditional adversarial attacks on computer vision often rely on imperceptible per-pixel noise that is physically impossible to replicate in real-world scenarios. This paper introduces a "naturalistic" adversarial attack on optical flow by injecting photorealistic, 3D-consistent snow into video sequences. By leveraging a differentiable renderer to optimize snowflake placement and transparency, the authors demonstrate that visually indistinguishable weather effects can trick state-of-the-art motion estimation models into predicting zero motion.

Introduction

Most adversarial research focuses on mathematical perturbations that look like static to humans. While effective in digital domains, these attacks lack physical plausibility. In the context of optical flow—the task of estimating pixel-level motion between video frames—existing attacks often ignore the underlying 3D geometry of the scene.

Comparison of original video frames, random snow, and adversarial snow. Note how the adversarial snow effectively zeroes out the predicted optical flow.

To address this, the authors propose using snow as a representative real-world weather effect. Snow consists of independent particles moving through 3D space, presenting a complex challenge for motion estimation algorithms used in critical applications like autonomous driving.

Methodology: Differentiable Snow Rendering

The core of this approach is a novel differentiable snow renderer. This tool allows standard optimization techniques to "tune" weather parameters to maximize the error in a target model.

A breakdown of the realism layers applied by the differentiable snow renderer, including scaling, transparency, blur, and occlusion-awareness.

The renderer incorporates several key features to ensure physical and visual realism:

  1. 3D Integration: Snowflakes are placed within the 3D scene using depth information, ensuring they respect scene geometry.
  2. Realistic Physics: Flakes follow view-consistent 3D motion, accounting for both gravity and camera movement.
  3. Visual Realism Layers: The renderer applies depth-dependent scaling, transparency, bokeh-like blur, and occlusion handling.

The adversarial optimization process defines a "target flow" (typically zero motion) and optimizes the 3D offsets ($\delta$) and transparency ($\theta$) of the snowflakes to minimize the difference between the model's prediction and this target.

Experimental Setup

The study utilizes the Sintel dataset (final version), a standard benchmark for optical flow. Sintel provides the necessary ground-truth 3D depth and camera metadata required for accurate 3D snow rendering. The attack was tested against three major architectures: SpyNet, FlowNet2, and GMA.

Key Insights and Results

The GMA Paradox

Surprisingly, the attack was most effective against Global Motion Aggregation (GMA). While GMA is robust against standard pixel-noise, its high precision allows it to track individual snowflakes. The optimization exploits this by positioning flakes such that their motion cancels out the perceived background motion.

Realism as a Constraint

The attack demonstrates that "weird" artifacts are unnecessary to break models. Because the optimization is constrained by the physics of the renderer, "adversarial snow" is visually indistinguishable from "random snow" to humans, yet significantly more destructive to AI performance.

Quantitative Performance

  • Density Impact: Increasing snowflake density from 1,000 to 5,000 significantly strengthened the attack. For FlowNet2, the Average Endpoint Error (AEE) relative to the zero-motion target dropped from 6.33 to 2.28.
  • Optimization Efficacy: On the GMA model, random snow resulted in an AEE of 12.25, while optimized adversarial snow reduced it to 4.42, effectively tricking the model into seeing a static scene.
  • Parameter Importance: Experiments indicated that optimizing snowflake position ($\delta$) is far more impactful than optimizing transparency ($\theta$).

Conclusion and Future Work

This research highlights a critical vulnerability in motion estimation models when faced with physically plausible perturbations. Currently, the attack is "white-box," requiring perfect scene information (depth maps and camera intrinsics).

Future research directions include:

  • Developing "black-box" attacks that do not require explicit depth data.
  • Extending the framework to other weather phenomena like rain or fog.
  • Utilizing the differentiable renderer for adversarial training to enhance model robustness against real-world environmental challenges.

Summary updated

BibTeX
@misc{schmalfuss2022attacking,
  author = {Jenny Schmalfuss and Lukas Mehl and Andrés Bruhn},
  title = {{Attacking Motion Estimation with Adversarial Snow}},
  year = {2022},
  eprint = {2210.11242},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.11242},
}
Figure