Source-linked AI summary

Understanding the Limitations of CNN-based Absolute Camera Pose Regression

Torsten Sattler, Qunjie Zhou, Marc Pollefeys, Laura Leal-Taixe

arXiv:1903.07504v1cs.CV

TL;DR

The paper asks why CNN-based camera pose regression remains less accurate than 3D structure-based localization. It develops a theoretical model, uses it to predict generalization failures, and verifies those predictions experimentally. The results position pose regression closer to image-retrieval approximation: current approaches do not consistently outperform a handcrafted retrieval baseline, limiting their practical relevance for accurate pose applications.

  • Problem

    CNN-based pose regression does not achieve the pose accuracy of 3D structure-based methods, motivating an analysis of this performance gap.

  • Method

    The paper develops a theoretical model of absolute pose regression and uses it to predict failure cases, then verifies those predictions through experiments.

  • Results

    Current pose regression approaches do not consistently outperform a handcrafted image-retrieval baseline and are more closely related to pose approximation than accurate 3D-geometric estimation.

  • Takeaways & Limitations

    Pose regression remains closer to retrieval-based pose approximation than structure-based accurate estimation, providing a sanity check for evaluating these methods.

  • Takeaways & Limitations

    Pose regression is unlikely to work well with little training data and significant viewpoint changes, and even large training sets do not match structure-based performance.

Abstract

from arXiv · show

Visual localization is the task of accurate camera pose estimation in a known scene. It is a key problem in computer vision and robotics, with applications including self-driving cars, Structure-from-Motion, SLAM, and Mixed Reality. Traditionally, the localization problem has been tackled using 3D geometry. Recently, end-to-end approaches based on convolutional neural networks have become popular. These methods learn to directly regress the camera pose from an input image. However, they do not achieve the same level of pose accuracy as 3D structure-based methods. To understand this behavior, we develop a theoretical model for camera pose regression. We use our model to predict failure cases for pose regression techniques and verify our predictions through experiments. We furthermore use our model to show that pose regression is more closely related to pose approximation via image retrieval than to accurate pose estimation via 3D structure. A key result is that current approaches do not consistently outperform a handcrafted image retrieval baseline. This clearly shows that additional research is needed before pose regression algorithms are ready to compete with structure-based methods.

1. Introduction

Visual localization estimates a camera’s absolute pose, while CNN-based absolute pose regression learns to predict it directly from images. This paper develops a theory to explain APR’s limitations and shows that it remains behind structure-based localization in practical accuracy.

  • Visual localization estimates a camera’s position and orientation in a known scene for applications including self-driving cars, robotics, and mixed reality.
  • Structure-based methods establish 2D-3D correspondences and use PnP within RANSAC to estimate camera pose.
  • CNN-based APR methods learn the full localization pipeline and directly regress camera pose from training images and their associated poses.
  • The paper develops a theoretical model showing APR is more closely related to image-retrieval-based pose approximation than accurate 3D-geometry-based estimation.
  • APR methods are not guaranteed to generalize beyond their training data, and current approaches do not consistently outperform a handcrafted retrieval baseline.
  • Substantial research remains necessary before APR techniques can support practical applications requiring accurate pose estimates.

2. Related Work

Related work contrasts 3D structure-based localization, image retrieval, and CNN-based pose regression. The paper positions APR and RPR as closer to retrieval-based approximation than to accurate geometric estimation.

  • Structure-based localization uses 2D-3D matches for pose estimation, with descriptor-based methods scaling to city scenes and mobile real-time operation.
  • Image retrieval approximates a test image’s pose using the pose of the most similar retrieved image, with feature matching enabling more precise relative pose estimates.
  • APR embeds image features and regresses camera pose, with existing approaches differing mainly in base architecture and training loss.
  • APR methods are significantly less accurate than structure-based methods and may struggle to generalize beyond training data.
  • Relative pose regression predicts a test image’s pose relative to one or more training images using a CNN.
  • The paper identifies an inherent connection between APR and RPR and finds that current RPR techniques also do not consistently outperform image retrieval.

3. A Theory of Absolute Pose Regression

The paper models CNN-based absolute pose regression as a three-stage function that extracts image features, embeds them into coefficients, and linearly projects those coefficients into camera poses. This model interprets predictions as combinations of learned base poses and supports analysis across APR architectures.

  • Model scope: The theoretical model is architecture-independent within the family of PoseNet-like CNN pose-regression methods.It also covers methods using separate embeddings and projections for camera position and orientation.
  • Problem formulation: Absolute pose regression predicts a camera pose in a scene coordinate frame from a test image.Training uses scene images labeled with associated camera poses and minimizes a loss between predicted and ground-truth poses.
  • Three-stage model: The model divides CNN-based absolute pose regression into feature extraction, nonlinear embedding, and linear projection stages.The embedding produces a high-dimensional coefficient vector, while the final layer maps it into camera-pose space.
  • Base-pose interpretation: The predicted pose is a linear combination of learned base poses, with coefficients determined by the input image’s embedding.The base poses comprise translational and orientation components, and the coefficients indicate each base pose’s contribution.
  • Geometric interpretation: Learned base translations have small magnitudes and approximately lie in the training-trajectory plane, then are scaled and summed to produce absolute poses.The analysis therefore calls them base translations rather than base positions; ReLU-based methods commonly form conical combinations.

4. Comparison with Structure-based Methods

The paper’s theory predicts that CNN-based absolute pose regression can fail to generalize beyond training trajectories, unlike structure-based localization. Experiments with limited and varied trajectories confirm these failure modes, while Active Search handles viewpoint changes better but can fail with little visual overlap.

  • APR learns image-to-pose mappings without explicitly using projective geometry, making its generalization dependent on learned representations.Different image features can produce different embeddings and poses, but the learned mapping may still fail outside the training distribution.
  • Training data captured on a line or parallel lines: Training trajectories on a line admit solutions whose base translations lie on that line, so their linear combinations cannot generalize to off-line test poses.The experiments include escalator and facade scenarios where MapNet places most base translations along a line and test poses near that line.
  • Experimental comparison: PoseNet and MapNet place test poses on or near training trajectories and fail to generalize to diverging viewpoints, including in scenes with more general motion.With planar training trajectories, the networks generalize in some regions but resort to constrained behavior elsewhere; with multiple parallel lines, they fail to interpolate properly between lines.
  • Experimental comparison: Even when base translations are noisy or span a larger space, PoseNet can still place all test poses on the training line because image appearance is not mapped to suitable base-pose weights.This demonstrates that multiple learned solutions may fit training data without generalizing; Active Search handles both line-based scenarios well.
  • Comparison with structure-based methods: Active Search handles viewpoint changes better, whereas APR methods remain limited with little training data and do not approach Active Search despite one order of magnitude more data.Active Search can fail when visual overlap is too small or viewpoint change is too large to obtain enough matches.

5. Comparison with Image Retrieval

The experiments compare pose regression with image retrieval and structure-based localization, testing whether regression methods consistently surpass retrieval baselines across datasets and training conditions.

  • Relation to image retrieval: APR techniques predict test poses near training poses where training data is sparse, behavior that closely resembles image retrieval.The paper links this similarity theoretically rather than treating it as coincidental.
  • Relation to image retrieval: Image retrieval approximates a test pose using the most similar training image, while interpolation can add an offset from multiple retrieved images.DenseVLAD provides the handcrafted retrieval baseline, with DenseVLAD + Inter. using retrieved-image interpolation.
  • Experimental comparison: None of the evaluated absolute or relative pose regression approaches consistently outperforms the image retrieval baselines on Cambridge Landmarks and 7 Scenes.The comparison reports median position and orientation errors for APR, RPR, image retrieval, and structure-based methods.
  • Experimental comparison: Three of the four best-performing pose regression approaches are RPR methods, while AnchorNet remains closer to regression methods than to the best structure-based approach.AnchorNet also fails to outperform DenseVLAD on the largest and most complex Cambridge Landmarks scene, Street.
  • Experimental comparison: On RobotCar, MapNet+ and MapNet+PGO outperform DenseVLAD on LOOP but perform significantly worse on the larger FULL scene.This occurs despite additional training sequences for MapNet+ and multi-image information for MapNet+PGO.
  • Experimental comparison: With densely sampled synthetic training data, MapNet outperforms image retrieval baselines but remains closer to retrieval than to the structure-based method.The result indicates that increasing training data improves MapNet relative to retrieval without matching the structure-based comparison.

6. Conclusion

The conclusion presents a theoretical model of APR and uses experiments to characterize its capabilities and limitations. It concludes that APR resembles pose approximation by retrieval and is not yet practically ready for applications requiring accurate pose estimates.

  • 6. Conclusion: The paper derives a theoretical model for APR that predicts limited generalization from training data in practical scenarios.The authors state that experiments verify these predictions.
  • 6. Conclusion: APR is more closely related to image retrieval than to methods that accurately estimate camera poses through 3D geometry.The conclusion frames this as a central result of the theoretical analysis and experiments.
  • 6. Conclusion: No current pose regression approach consistently outperforms the handcrafted retrieval baseline.The paper describes this comparison as a second main result and a sanity check for evaluating pose regression methods.
  • 6. Conclusion: Significant research remains necessary before pose regression techniques become practically relevant for accurate pose estimates.The stated application boundary is practical use cases that require accurate pose estimates.

Appendix

The appendix contains an accompanying video and an additional DeepLoc experiment omitted from the main paper because of space constraints.

  • Appendix: The appendix’s first part documents an accompanying video illustrating MapNet’s estimated base translations and predicted test-image poses.The video covers scenes shown in the paper and is available through the cited project repository.
  • Appendix: The appendix’s second part presents an additional experiment on the DeepLoc dataset.This experiment was left out of the paper due to space constraints.

A. Supplementary Video

The supplementary video visualizes how MapNet’s predictions depend on image content and how its predicted test poses relate to training images and camera trajectories.

  • A. Supplementary Video: The first video part shows how each estimated base translation’s impact on the predicted pose depends on image content.This visualization uses training images from the scene shown in Fig. 2(right).
  • A. Supplementary Video: The second part displays each test image, its most similar training image, both base translations, and top-down camera trajectories.The trajectory view includes ground-truth training and testing positions and the APR-predicted pose.
  • A. Supplementary Video: All video experiments use MapNet, and only test images localizable by Active Search are shown.This defines the method and localization-selection condition for the visualizations.

B. Experiments on the DeepLoc Dataset [53]

Experiments on DeepLoc compare image-retrieval and pose-regression methods on the original and an SfM-based dataset version. Retrieval-based methods, especially Active Search, are reported as more accurate than the evaluated pose-regression approaches.

  • Dataset: DeepLoc8 was captured by a robot repeatedly driving a triangular trajectory and contains substantial vegetation unlike the urban RobotCar dataset.Figure 6 visualizes the SfM model constructed from the training images.
  • Results: DenseVLAD significantly outperforms single-image absolute pose-regression techniques on the original DeepLoc dataset.Table 4 also compares DenseVLAD and its interpolation variant with sequence-based VLocNet methods.
  • Ground truth and dataset construction: The original DeepLoc ground truth uses LIDAR-based SLAM poses for the LIDAR sensor rather than directly measured camera poses.The unknown fixed LIDAR-to-camera transformation does not affect pose regression, but complicates constructing the SfM-based version.
  • Evaluation: Table 4 reports median position and orientation errors for the original dataset and the authors’ SfM version, with DenseVLAD+Inter. interpolating among the top 15 retrieved images.The table’s first row covers the original dataset and its second row covers the SfM version.
  • Results: Active Search is significantly more accurate than all evaluated pose-regression techniques, including VLocNet++MTL, on the SfM version despite using only one image.DenseVLAD and DenseVLAD+Inter. show no significant change on this dataset version.
Loading 1903.07504v1…