Abstract
Optical flow estimation is a cornerstone of autonomous driving and Simultaneous Localization and Mapping (SLAM). However, standard deep-learning models often suffer from an "implicit bias of equal attention," treating featureless regions and critical navigation landmarks with the same priority. We present FocusFlow, a novel framework designed to prioritize "key points"—high-contrast features like corners and edges. By introducing a specialized condition-control encoder and a weighted loss function, FocusFlow achieves up to a 44.5% precision boost on critical points without sacrificing overall frame accuracy.
Introduction
Predicting pixel-level motion between consecutive video frames is essential for vehicle ego-motion estimation. Navigation systems rely heavily on "key points" (e.g., ORB or SIFT features) to estimate a vehicle's pose. Small errors on these points can lead to significant drift in trajectory. FocusFlow addresses this by forcing models to explicitly learn key-point-related priors, ensuring that the most important pixels for navigation receive the most accurate motion vectors.
Related Work
FocusFlow integrates concepts from optical flow estimation, key point detection, and conditional modeling. It serves as a bridge between purely data-driven flow estimation and traditional feature-based methods.
Methodology
FocusFlow is a "plug-and-play" framework compatible with architectures like RAFT, PWC-Net, and FlowFormer. Its core components include:
- Condition Control Encoder (CCE): A dual-stream approach using a Frame Feature Encoder (FFE) for images and a parallel Condition Feature Encoder (CFE) for a "Query Mask" (key point locations). These streams are fused bidirectionally using $1 \times 1$ convolutions.
- Conditional Point Control Loss (CPCL): A loss function applying a Gaussian-weighted attention mechanism around key points, ensuring the model prioritizes these regions.
- Mixed Objective: A combination of standard photometric loss and CPCL, balanced by a tuning parameter $\lambda$.
Key Insights: Feature Space Optimization
A significant finding is that deep networks do not inherently prioritize navigationally important points. By feeding a mask of key points directly into the encoder, the network learns a more effective feature representation. To quantify this, we use the $L_c$ metric, which measures the Euclidean distance between the feature centroids of random points versus key points.
As shown in the visualization, FocusFlow significantly reduces $L_c$ (from 4.58 to 2.58 in the RAFT example), demonstrating its success in mapping key points into a more distinct feature space.
Experimental Results
Evaluation across FlyingChairs, Sintel, and KITTI-15 benchmarks reveals:
- Precision Gains: FocusFlow improved precision by +40.9% for ORB points and +44.5% for GF points on FlyingChairs.
- Real-World Performance: On KITTI, FocusPWC-Net achieved a 38.1% improvement in ORB point error.
- Global Stability: Overall End-Point Error (EPE) remained competitive or improved, proving that local focus does not degrade global scene understanding.
Conclusion
FocusFlow offers a scalable solution for enhancing the precision of optical flow in safety-critical scenarios. While it introduces some computational overhead and requires a preprocessing step for key-point detection, the massive gains in navigation-critical precision make it a compelling framework for autonomous systems.
Summary updated