Abstract
Traditional unsupervised learning of optical flow often struggles in featureless or repetitive regions where local photometric consistency fails. This paper proposes a novel bi-level optimization framework that integrates 3D geometry into the training process. By framing camera motion estimation as an embedded optimization layer and utilizing implicit differentiation, the model learns to predict optical flow that adheres to global epipolar constraints. This approach significantly improves performance on challenging datasets and provides robust egomotion estimates comparable to classical SLAM systems.
Introduction
Estimating optical flow (pixel movement between frames) and camera egomotion (camera trajectory) are fundamental tasks in computer vision. Most unsupervised methods rely on two primary assumptions: brightness constancy and local smoothness. However, these assumptions are frequently violated in real-world scenarios, such as when viewing blank walls or repetitive patterns. In these cases, local color information is insufficient to determine correct pixel correspondences.
To address this, the authors leverage the global constraints of rigid scene geometry. In a rigid environment, pixel movement is constrained by epipolar geometry—the mathematical relationship dictated by the camera's trajectory. The challenge lies in integrating this complex geometric optimization into a differentiable deep learning pipeline.
Methods
The core of the proposed method is a bi-level optimization framework. This architecture separates the learning of flow from the estimation of camera motion while keeping the entire system end-to-end trainable.
Bi-Level Framework
The framework consists of two hierarchical problems:
- Upper-level problem: A Convolutional Neural Network (PWC-Net) predicts the optical flow. The network is trained to minimize a loss function that combines standard photometric terms with a novel epipolar geometric loss.
- Lower-level problem: An embedded optimization layer takes the predicted flow and solves for the essential matrix, which encodes the camera's rotation and translation. This step employs robust estimation techniques like RANSAC and Iteratively Re-weighted Least Squares (IRLS).
Implicit Differentiation
A major technical hurdle is backpropagating gradients through iterative solvers like RANSAC. The authors overcome this using implicit differentiation. Instead of unrolling the optimization steps, they utilize the mathematical properties of the stationary point (the final solution) to compute gradients. This allows the network to learn from the geometric solver's output without needing to differentiate through its internal loops, making the geometric solver a "plug-and-play" module.
Key Results
The model was evaluated on the KITTI 2012 benchmark and the challenging RGB-D SLAM dataset.
Optical Flow Accuracy
On the KITTI 2012 test set, the method achieved an Average End Point Error (AEPE) of 1.90, outperforming previous state-of-the-art unsupervised methods such as SelFlow (2.20). The inclusion of the essential matrix constraint—which requires camera calibration—provides a tighter and more accurate geometric bound than the fundamental matrix used in prior works.
Robustness in Featureless Regions
The impact of the epipolar loss is most evident in scenes with low texture. In the RGB-D SLAM dataset, which features motion blur and repetitive textures, the proposed method shows significant improvements.
As shown in the figure above, the inclusion of the epipolar constraint ($L_e$) allows the network to correct flow in regions where photometric matching is ambiguous. Without this constraint, the predicted flow often fails to capture the true motion in textureless areas.
Egomotion Estimation
Beyond flow, the method produces highly accurate camera trajectories. By extracting motion from predicted flow rather than regressing it directly from images, the system approaches the performance of hand-engineered systems like ORB-SLAM, significantly outperforming other direct regression networks.
Conclusion
By enforcing 3D geometric consistency through bi-level optimization, this work provides a robust "global supervisor" for unsupervised optical flow. While the current model assumes a mostly static scene and faces monocular scale ambiguity, the use of implicit differentiation opens new avenues for integrating complex geometric solvers into deep learning architectures. Future work will focus on handling dynamic objects and reducing the computational overhead of the lower-level optimization during training.
Summary updated