DiffPoseNet: Direct Differentiable Camera Pose Estimation

Chethan M. Parameshwara, Gokul Hari, Cornelia Fermüller, Nitin J. Sanket, Yiannis Aloimonos

Abstract

Accurate camera pose estimation is a fundamental requirement for autonomous navigation and robotics. While existing methods rely on complex optical flow or scene-specific deep learning, they often struggle with noise or fail to generalize to unseen environments. DiffPoseNet introduces a novel framework that leverages "normal flow"—a 1D projection of motion—and a differentiable cheirality layer to achieve robust, structure-agnostic visual odometry. By enforcing geometric constraints through implicit differentiation, DiffPoseNet achieves state-of-the-art generalization across synthetic and real-world datasets.

1. Introduction

Estimating the ego-motion of a camera, known as Visual Odometry (VO), remains a critical challenge in robotics. Current methodologies typically fall into two categories: classical geometric methods and deep learning-based approaches. Classical methods often rely on optical flow, which is highly sensitive to the "aperture problem" and gradient bias, where dominant image edges pull flow estimates away from the true motion. Conversely, deep learning models frequently overfit to the specific 3D structures of their training data, leading to poor performance in novel environments.

DiffPoseNet addresses these issues by revisiting direct methods—approaches that use image gradients directly rather than tracking discrete features. By combining a lightweight normal flow network with a differentiable optimization layer, the framework provides a robust solution that generalizes without needing to learn scene-specific geometry.

2. Methodology

The DiffPoseNet architecture consists of a three-stage pipeline designed to refine a coarse pose estimate into a geometrically consistent trajectory.

2.1 NFlowNet: Normal Flow Estimation

Instead of predicting full 2D optical flow, the authors introduce NFlowNet, an encoder-decoder CNN optimized to estimate Normal Flow. Normal flow is defined as the projection of optical flow onto the direction of the image gradient. This 1D representation is mathematically more resilient to the biases that affect standard optical flow. Furthermore, NFlowNet is highly efficient; it is up to 46x smaller than leading optical flow networks, making it ideal for real-time applications.

2.2 Differentiable Cheirality Layer

A core contribution of this work is the integration of the Cheirality Constraint—the physical requirement that any observed object must have a positive depth relative to the camera. Traditionally, this inequality constraint is difficult to integrate into deep learning because it is non-differentiable.

The authors overcome this by formulating the constraint as a differentiable optimization layer using implicit differentiation. This allows the network to refine the initial pose provided by a coarse PoseNet by minimizing geometric error while ensuring all points satisfy the positive depth rule. This refinement happens without the need to explicitly reconstruct a dense depth map, preserving the "structure-less" nature of the model.

3. Experimental Results

The model was evaluated on several rigorous benchmarks, including TartanAir (synthetic), KITTI Odometry (real-world), and TUM-RGBD (challenging conditions).

3.1 Generalization and Zero-Shot Performance

DiffPoseNet demonstrated exceptional generalization capabilities. When trained on the synthetic TartanAir dataset and tested on the real-world KITTI dataset, the model achieved a translation error of only 2.94% on Sequence 06 without any fine-tuning. In the TartanAir challenge, it outperformed established baselines like TartanVO and ORB-SLAM by up to 3.4x in Absolute Trajectory Error (ATE).

3.2 Robustness to Noise

Sensitivity analyses revealed that the normal flow representation allows the model to degrade more gracefully than traditional methods when subjected to artificial noise. Because the 1D formulation is less sensitive to pixel-level errors than 2D epipolar constraints, DiffPoseNet maintains higher accuracy in low-quality visual conditions.

4. Discussion and Limitations

While DiffPoseNet offers significant improvements in efficiency and generalization, it faces challenges in specific scenarios. Performance on the TUM-RGBD dataset indicated sensitivity to rolling shutter effects and significant motion blur. Additionally, the current formulation assumes a static environment; the presence of multiple moving objects in highly dynamic scenes remains a target for future development. Finally, while the network itself is lightweight, the L-BFGS optimization within the differentiable layer adds a minor computational cost, though it typically converges within five iterations.

5. Conclusion

DiffPoseNet represents a significant step forward in direct camera pose estimation. By replacing standard optical flow with robust normal flow and enforcing physical constraints through a differentiable cheirality layer, the framework achieves a high degree of accuracy and cross-dataset generalization. Its lightweight architecture and resilience to noise make it a promising candidate for the next generation of autonomous navigation systems.

Summary updated

BibTeX
@inproceedings{parameshwara2022diffposenet,
  author = {Chethan M. Parameshwara and Gokul Hari and Cornelia Fermüller and Nitin J. Sanket and Yiannis Aloimonos},
  title = {{DiffPoseNet: Direct Differentiable Camera Pose Estimation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure