DRO: Deep Recurrent Optimizer for Structure-from-Motion

Xiaodong Gu, Weihao Yuan, Zuozhuo Dai, Siyu Zhu, Chengzhou Tang, Ping Tan

Abstract

Estimating 3D structure from video sequences (Video-to-Depth or V2D) is a fundamental challenge in robotics and autonomous systems. Traditional methods like Bundle Adjustment (BA) are geometrically sound but computationally expensive, while recent deep learning approaches often sacrifice geometric constraints for speed or suffer from high memory demands. We present Deep Recurrent Optimizer (DRO), a lightweight, iterative framework that replaces memory-intensive cost volumes and noisy gradient-based optimization with a pair of Gated Recurrent Units (GRUs). DRO learns to refine depth and camera poses alternately, achieving state-of-the-art accuracy with significantly lower computational overhead than previous optimization-embedded learning methods.

Introduction

Structure-from-Motion (SfM) aims to recover both the 3D geometry of a scene and the camera's trajectory from a sequence of 2D images. Traditionally, this is framed as a non-linear least squares problem solved via Bundle Adjustment. While robust, BA requires careful initialization and can be slow.

Modern deep learning approaches have attempted to modernize SfM through direct regression or optimization-embedded layers. However, direct regression often ignores the underlying geometric constraints, leading to poor generalization. Conversely, optimization-embedded methods frequently rely on cost volumes—which exhaustively search a 3D space for every pixel, consuming massive amounts of memory—or gradient-based solvers that can struggle with noise in high-dimensional spaces. DRO seeks a "middle way": an optimizer that is geometrically grounded like BA, but learned and efficient like a neural network.

The Deep Recurrent Optimizer

The core innovation of DRO is the use of Gated Recurrent Units (GRUs) as the optimization engine. Instead of calculating explicit gradients or building a static 3D cost volume, the model extracts features from a reference image and a neighbor image to calculate a "feature-metric cost map."

Overview of the DRO framework. The model iteratively refines depth (D) and pose (T) estimates using a learned optimizer that leverages historical trajectories to predict incremental updates.

Iterative Refinement Strategy

The optimization process is split into two specialized GRUs—one for depth and one for pose. These units take the current cost map and current estimates as input to output incremental updates ($\Delta D$ and $\Delta T$).

Inspired by traditional alternating optimization, DRO decouples the updates: it freezes the camera pose to update the depth for several iterations, then freezes the depth to update the pose. This alternating scheme stabilizes the learning process. Because the GRUs maintain an internal hidden state, they can "remember" the trajectory of previous updates, allowing the optimizer to maintain momentum and potentially escape local minima that would trap standard gradient descent.

Experimental Results

DRO was evaluated on the KITTI (outdoor) and ScanNet (indoor) benchmarks. The results demonstrate that a learned, recurrent optimizer can outperform both traditional and supervised deep learning baselines.

Visualization of the iterative optimization process. The top graphs show the reduction in feature error and depth/pose error over 12 iterations. The bottom panels show the qualitative convergence of the cost map, depth estimate, and warp-alignment.

Performance and Efficiency

  • Accuracy: On KITTI, DRO's self-supervised version outperformed many previous fully supervised methods. On ScanNet, it improved self-supervised depth accuracy by 23.2% over existing benchmarks.
  • Computational Efficiency: By evaluating only the current solution at each step rather than a full cost volume, DRO is approximately 10x faster and uses 1/6th the memory of state-of-the-art methods like DeepV2D. It achieves comparable accuracy in just 4 iterations (0.049s per frame).
  • Robustness: The system is remarkably resilient to initialization noise. Even when initial depth and pose estimates are injected with significant Gaussian noise, the GRU-based optimizer consistently converges to high-quality solutions.

Conclusion

DRO demonstrates that recurrent neural networks can effectively act as optimization engines for complex geometric problems. By leveraging feature-metric costs and alternating GRU updates, the framework provides a high-performance, memory-efficient alternative to traditional Bundle Adjustment and cost-volume-based deep learning. Future work will focus on improving performance in scenarios with low image overlap and handling dynamic objects in complex real-world environments.

Summary updated

BibTeX
@article{gu2023dro,
  author = {Xiaodong Gu and Weihao Yuan and Zuozhuo Dai and Siyu Zhu and Chengzhou Tang and Ping Tan},
  title = {{DRO: Deep Recurrent Optimizer for Structure-from-Motion}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2023},
  doi = {10.1109/lra.2023.3260724},
}
Figure