Abstract
Recent optical flow methods are almost exclusively judged in terms of accuracy, while their robustness is often neglected. Although adversarial attacks offer a useful tool to perform such an analysis, current attacks on optical flow methods focus on real-world attacking scenarios rather than a worst case robustness assessment. Hence, in this work, we propose a novel adversarial attack—the Perturbation-Constrained Flow Attack (PCFA)—that emphasizes destructivity over applicability as a real-world attack. PCFA is a global attack that optimizes adversarial perturbations to shift the predicted flow towards a specified target flow, while keeping the $L_2$ norm of the perturbation below a chosen bound. Our experiments demonstrate PCFA’s applicability in white- and black-box settings, and show it finds stronger adversarial samples than previous attacks. Based on these strong samples, we provide the first joint ranking of optical flow methods considering both prediction quality and adversarial robustness, which reveals state-of-the-art methods to be particularly vulnerable.
Introduction
Optical flow estimation—the task of predicting pixel-level motion between video frames—is a cornerstone of computer vision, essential for applications ranging from autonomous driving to medical imaging. While deep learning has propelled the field forward in terms of accuracy, the robustness of these models remains largely unexamined. In image classification, adversarial examples—images with imperceptible noise designed to fool networks—are well-studied. However, extending this to optical flow, a regression task predicting 2D motion vectors for every pixel, presents unique challenges. Existing attacks often lack a rigorous framework for limiting noise while maximizing destructivity. This work introduces the Perturbation-Constrained Flow Attack (PCFA) to establish a baseline for "worst-case" robustness evaluation in optical flow.
Methodology
The core of PCFA is a global adversarial attack designed to maximize the deviation from the ground truth flow while maintaining the total perturbation (measured by the $L_2$ norm) within a strict budget.
Optimization Strategy
Unlike previous methods that relied on "early stopping" to limit noise, PCFA employs a more rigorous inequality-constrained optimization. It uses a ReLU-based penalty method combined with the L-BFGS optimizer to find the most damaging perturbation within the specified $L_2$ bound. To ensure the resulting images remain valid (pixel values between 0 and 1), a Change of Variables (COV) approach is used, which proves more effective than simple clipping.
Loss Functions and Perturbation Types
The authors found that directly maximizing the Average Endpoint Error (AEE) is more effective for driving predicted flow toward a target (such as zero-flow) than using Cosine Similarity. The attack explores several variations:
- Disjoint: Independent noise for each frame.
- Joint: Identical noise for both frames.
- Universal: A single noise pattern designed to affect multiple different video sequences.
Experiments
The attack was evaluated on the KITTI 2015 and MPI-Sintel benchmarks across various architectures, including classic models like FlowNet2, pyramidal models like SpyNet and PWC-Net, and state-of-the-art recurrent networks like RAFT and GMA.
Results and Discussion
The evaluation reveals a significant trade-off between accuracy and robustness. State-of-the-art models like RAFT and GMA, while highly accurate on standard benchmarks, are remarkably fragile. A perturbation changing color values by only 5% on average can effectively "erase" their predicted motion. In contrast, older models like SpyNet demonstrate much higher robustness, suggesting that the high-frequency features leveraged by modern models for precision are also their primary vulnerability.
PCFA consistently outperforms previous state-of-the-art attacks (like I-FGSM) in finding stronger adversarial samples. Furthermore, the study provides the first joint ranking of optical flow methods. This ranking highlights that models leading in accuracy often fall to the bottom when evaluated for robustness. Interestingly, joint perturbations (applying the same noise to both frames) were particularly effective in universal attacks, likely by creating static artifacts that trick models into perceiving zero motion.
Conclusion
This work demonstrates that current progress in optical flow accuracy has come at the cost of adversarial robustness. By providing a rigorous tool for worst-case evaluation, the authors advocate for the inclusion of robustness as a primary metric in the development of future optical flow architectures. While this study focuses on the attack side, it sets the stage for future research into defensive strategies, such as adversarial training, to bridge the gap between performance and reliability.
Summary updated