Introduction
Predicting 3D depth from a single 2D image—monocular depth estimation—is a critical capability for robotics and autonomous driving. While self-supervised methods have advanced by learning from video sequences without expensive LiDAR labels, they frequently encounter issues such as "boundary contamination," difficulties with moving objects, and inaccuracies in low-texture regions.
Recent research has turned to Transformers to capture long-range dependencies. However, these models face a significant trade-off: global attention is computationally expensive for high-resolution images, while deformable attention often fails to locate relevant information in large search spaces. ROIFormer addresses these challenges by introducing a "Region of Interest" (ROI) Transformer that uses semantic cues to constrain attention mechanisms, improving both accuracy and efficiency.
Methodology
ROIFormer utilizes a dual-branch framework where depth and semantic segmentation share a common backbone for mutual feature enhancement. The core innovation is the ROIFormer Module, which incorporates three key components:
- ROI Attention: Instead of performing a global search, the model predicts a local bounding box (Region of Interest) for every query point based on semantic feature maps. The attention mechanism is restricted to sampling points only within this semantically-aware box.
- Semantic Guidance: By leveraging geometric cues from the segmentation branch, the model learns to define ROIs around relevant objects and structures, effectively filtering out noise from irrelevant image regions.
- Semantic Guided Re-projection Mask: To refine the training process, the authors developed a mask that penalizes photometric loss specifically near object boundaries and reflective surfaces. This prevents depth values from "bleeding" across object edges, a common failure mode in previous models.
Experimental Results
The model was trained and evaluated on the KITTI dataset, using the standard Eigen split. ROIFormer established a new state-of-the-art (SOTA) for self-supervised monocular depth estimation through several key performance metrics:
- Superior Accuracy: ROIFormer outperforms previous SOTA methods, including MonoViT and HR-Depth, across all standard metrics such as Absolute Relative Error (AbsRel) and RMSE.
- Computational Efficiency: The ResNet-50 version of ROIFormer achieves these top-tier results using only 30% of the MACs (multiply-accumulate operations) required by previous leading Transformer-based models.
- Real-time Performance: The ResNet-18 variant demonstrates high-speed inference, running at 51 FPS at medium resolution and 33 FPS at high resolution (1024x320) on an NVIDIA V100 GPU.
- High-Resolution Robustness: Unlike standard deformable attention, which often degrades as resolution increases, ROIFormer’s performance improves at higher resolutions because its search space remains locally constrained by semantic ROIs.
Conclusion
ROIFormer demonstrates that restricting the search space of attention mechanisms through semantic constraints is a powerful strategy for depth estimation. By bounding attention within semantically relevant regions, the model achieves sharper object boundaries and faster convergence. While the model currently relies on a semantic segmentation branch during training, its efficiency and accuracy make it a highly viable candidate for real-time applications in autonomous systems. Future work may explore more complex ROI shapes and diverse environments to further refine geometric detail capture.
Summary updated