NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep Keypoint-Based Camera Pose Estimation with Geometric Constraints

You-Yi Jau, Rui Zhu, Hao Su, Manmohan ChandrakerIROS 2020

Abstract

Estimating relative camera poses from consecutive frames is a fundamental problem in visual odometry (VO) and simultaneous localization and mapping (SLAM), where classic methods consisting of hand-crafted features and sampling-based outlier rejection have been a dominant choice for over a decade. Although multiple works propose to replace these modules with learning-based counterparts, most have not yet been as accurate, robust and generalizable as conventional methods. In this paper, we design an end-to-end trainable framework consisting of learnable modules for detection, feature extraction, matching and outlier rejection, while directly optimizing for the geometric pose objective. We show both quantitatively and qualitatively that pose estimation performance may be achieved on par with the classic pipeline. Moreover, we are able to show by end-to-end training, the key components of the pipeline could be significantly improved, which leads to better generalizability to unseen datasets compared to existing learning-based methods.

Introduction

Estimating the relative motion between two camera frames, or Visual Odometry (VO), is a cornerstone of robotics and augmented reality. For decades, the "gold standard" has been a hand-crafted pipeline: detect keypoints (e.g., SIFT), describe them, match them, and filter out noise using robust estimators like RANSAC.

While deep learning has successfully replaced individual components of this pipeline, simply "plugging in" a neural network often yields results inferior to classic methods. Three main challenges persist:

  1. Lack of End-to-End Tuning: Modules are typically trained for proxy tasks (like patch matching) rather than the ultimate goal of accurate camera pose.
  2. Overfitting: Learned features often fail to generalize to new datasets.
  3. Subpixel Accuracy: Hand-crafted detectors are highly precise; neural detectors often struggle with subpixel resolution due to coarse training signals.

The DeepFEPE Framework

The authors propose DeepFEPE (Deep Feature Extraction and Pose Estimation), an end-to-end trainable pipeline that bridges the gap between deep learning and classical geometry.

Overview of the DeepFEPE pipeline, showing the flow from image pairs to feature extraction, correspondence matching, and pose estimation.

The framework consists of two primary trainable blocks:

  • Feature Extraction (FE): Based on the SuperPoint architecture, this module produces keypoint heatmaps and descriptors. To ensure differentiability, a Softargmax detector head is introduced. Instead of a standard non-differentiable "winner-take-all" approach, Softargmax computes a weighted average of coordinates in a local neighborhood. This allows the network to predict subpixel locations and enables gradients from the final pose error to flow back to the feature detector.
  • Pose Estimation (PE): This module utilizes a PointNet-like architecture to process correspondences. It predicts weights for each match, effectively performing learnable outlier rejection. These weighted matches are then passed through a differentiable Singular Value Decomposition (SVD) layer to solve for the Fundamental Matrix.

The model is optimized using a combination of F-loss (epipolar distance) and a novel Pose-loss, which enforces geometric constraints by calculating the L2 distance between predicted and ground-truth rotation and translation.

Geometry-Aware Feature Learning

A significant finding of this work is that training for pose accuracy fundamentally changes where the network detects keypoints. End-to-end training allows the pose estimator to "communicate" with the detector, refining keypoint placement for better geometric stability.

Comparison of keypoint distribution before and after end-to-end training. After training, the model learns to focus on points near image borders and ignore the vanishing point.

As shown in the figure above, the model learns to ignore points near the "vanishing point"—where motion is minimal and triangulation is difficult—and instead focuses on points near the image borders, which provide a more stable baseline for motion calculation.

Experimental Results

DeepFEPE was evaluated on the KITTI Odometry dataset and the ApolloScape dataset for cross-dataset generalization.

  • Performance: On KITTI, DeepFEPE achieved a median rotation error of 0.041°, significantly reducing errors compared to other learning-based baselines and performing on par with the classic SIFT+RANSAC pipeline.
  • Generalization: In cross-dataset tests (training on KITTI, testing on ApolloScape), DeepFEPE maintained its accuracy while other learned models degraded. This demonstrates that geometric constraints help prevent overfitting to specific dataset textures.
  • Efficiency: End-to-end training increased the number of "good" inlier matches by approximately 20% compared to using off-the-shelf learned features.

Conclusion

DeepFEPE demonstrates that by integrating differentiable geometric layers and optimizing for the final pose objective, deep learning can match the precision and robustness of classical VO pipelines. While the system currently focuses on two-frame relative pose, future work includes extending the framework to handle long-term temporal sequences and integrating it into full-scale SLAM systems with global bundle adjustment and loop closure.

Summary updated

BibTeX
@inproceedings{jau2020deep,
  author = {You-Yi Jau and Rui Zhu and Hao Su and Manmohan Chandraker},
  title = {{Deep Keypoint-Based Camera Pose Estimation with Geometric Constraints}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=nRhD3BdIAg},
}
Figure