Deep Patch Visual SLAM

Lahav Lipson, Zachary Teed, Jia Deng

Introduction

Recent advancements in Visual SLAM (Simultaneous Localization and Mapping) have been dominated by deep learning architectures like DROID-SLAM. While these systems offer unprecedented accuracy and generalization, they are often computationally prohibitive, requiring high-end GPUs with significant VRAM and running slower than real-time. Conversely, sparse systems like Deep Patch Visual Odometry (DPVO) are efficient but suffer from accumulated drift over time due to a lack of global loop-closure mechanisms.

Deep Patch Visual SLAM (DPV-SLAM) bridges this gap. It is a high-performance monocular SLAM system that maintains the accuracy of deep learning while achieving the efficiency of classical sparse methods. By integrating novel loop-closure mechanisms into the DPVO framework, DPV-SLAM runs up to 3x real-time and utilizes only a fraction of the memory required by its dense counterparts.

System Architecture

DPV-SLAM utilizes a patch graph representation where small $p \times p$ patches of pixels are tracked across frames. To transform this odometry system into a full SLAM solution, the authors introduced a multi-tiered approach to global consistency.

Figure 1: Overview of the DPV-SLAM architecture, illustrating the flow from input video to patch-graph optimization and loop-closure detection.

The system incorporates two primary loop-closure strategies:

  1. Proximity-based Loop Closure: The system identifies geographically close frames based on current pose estimates. To maintain a low memory footprint, it employs uni-directional factors. Unlike standard tracking that requires dense feature maps for every frame, DPV-SLAM only stores small patch features for older frames, significantly reducing storage requirements.
  2. Global Image Retrieval (DPV-SLAM++): For long-term loop detection, the system integrates a traditional DBoW2 (Bag of Words) backend using ORB descriptors. This allows the system to recognize previously visited locations after long intervals and perform pose-graph optimization to correct large-scale drift.
  3. Optimized Bundle Adjustment: A custom CUDA-accelerated block-sparse implementation of bundle adjustment (BA) allows the backend to run concurrently with the frontend on the same GPU.

Efficiency through Asymmetric Storage

A key innovation in DPV-SLAM is the use of asymmetric storage for graph edges. The authors realized that an edge in a patch graph only requires the dense feature map for the destination frame, not the source. This allows for a 15x reduction in memory for long-range constraints.

Figure 3: Comparison between bi-directional and uni-directional reprojection error factors, highlighting the significant memory reduction from 9.1 GB to 0.6 GB per 1k frames.

Experimental Results

The system was evaluated on several benchmark datasets, including EuRoC MAV, KITTI, and TUM-RGBD, using a model trained entirely on synthetic data (TartanAir) to test zero-shot generalization.

  • Performance: DPV-SLAM operates at 1x–3x real-time speeds, roughly 2.5x faster than DROID-SLAM on standard benchmarks.
  • Memory Footprint: The system requires only 4GB-5GB of VRAM, compared to the 20GB+ often required by dense deep SLAM systems.
  • Accuracy: On the KITTI dataset, DPV-SLAM significantly outperforms DROID-SLAM by effectively handling scale-drift through its loop-closure mechanisms. It demonstrated remarkable robustness, with zero catastrophic failures across all tested sequences.

Discussion and Future Work

DPV-SLAM demonstrates that dense correspondence is not a prerequisite for deep learning-level accuracy in SLAM. By tracking a sparse set of patches (64–96 per frame), the system frees up computational resources for more frequent global optimizations.

However, limitations remain. The system still requires a dedicated GPU, and the global bundle adjustment's reliance on Cholesky decomposition creates a scaling bottleneck, currently limiting optimization to a 1000-frame window. Future work may focus on further optimizing the backend scaling and refining image retrieval to reduce false-positive loop detections in repetitive environments.

Summary updated

BibTeX
@inproceedings{lipson2024deep,
  author = {Lahav Lipson and Zachary Teed and Jia Deng},
  title = {{Deep Patch Visual SLAM}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72627-9\_24},
}
Figure