Abstract
Depth completion aims to predict a dense depth image from sparse measurements and a single color image. Most state-of-the-art methods rely on static convolutional neural networks (CNNs), which lack the flexibility to capture the dynamic nature of input contexts. We propose GuideFormer, a fully transformer-based architecture for dense depth completion. GuideFormer processes sparse depth and color guidance images with separate transformer branches to extract hierarchical and complementary token representations. We introduce a guided-attention mechanism to model information flow between branches and capture inter-modal dependencies that cannot be obtained from depth or color images alone. Experimental results on the KITTI dataset demonstrate that GuideFormer significantly outperforms state-of-the-art methods, effectively recovering precise depth values while preserving fine details.
Introduction
Depth completion is a critical task in computer vision, particularly for autonomous driving, where sparse LiDAR data must be fused with high-resolution RGB images to provide a dense environment map. Traditionally, the field has been dominated by Convolutional Neural Networks (CNNs). However, CNNs suffer from two inherent limitations: static kernels that apply the same weights regardless of content, and limited receptive fields that struggle to model long-range dependencies. GuideFormer addresses these issues by leveraging the content-adaptivity and global modeling capabilities of Transformers.
Methodology
GuideFormer utilizes a dual-branch encoder-decoder structure, with one branch dedicated to the color image and the other to the sparse depth map. The model is based on the Swin Transformer, which uses window-based self-attention to maintain computational efficiency for high-resolution images.
Hybrid Feature Extraction
The authors found that feeding raw sparse depth directly into a transformer is unstable. To address this, GuideFormer uses a "shallow" CNN consisting of two residual blocks at the very beginning to extract initial features before passing them to the transformer stages. Additionally, a Depth-wise Convolution (DWC) layer is integrated into the transformer's feed-forward network to bolster local context modeling, ensuring that fine-grained details are preserved alongside global structures.
Guided-Attention Module (GAM)
The core innovation of GuideFormer is the Guided-Attention Module (GAM). While standard self-attention looks at similarities within a single modality, GAM computes cross-modal similarities. This allows the color branch to "guide" the depth branch, explicitly transferring semantic information, such as object boundaries, to help fill in the gaps in the sparse depth data.
Confidence-Based Fusion
The final output is generated through a confidence-based fusion mechanism. Each branch produces a depth map and a corresponding "confidence map." These are fused using a softmax-weighted combination, allowing the model to prioritize the most reliable predictions for each pixel based on the input context.
Experimental Results
GuideFormer was evaluated on the KITTI Depth Completion dataset, a challenging benchmark containing 86,000 training samples of real-world driving scenes.
Quantitative Performance
At the time of publication, GuideFormer ranked #1 on the KITTI test set among all peer-reviewed methods. It achieved a Root Mean Square Error (RMSE) of 721.48, significantly outperforming previous state-of-the-art models like PENet (730.08) and ACMNet (732.99). Interestingly, the transformer-based encoder-decoder used fewer parameters (99M) than comparable CNN-based versions (132M) while achieving higher accuracy.
Qualitative Superiority
Visual results demonstrate that GuideFormer recovers much cleaner object boundaries—particularly around thin structures like poles and bicycles—where CNN-based methods often produce blurred or "bleeding" depth estimates. This is attributed to the content-adaptive nature of the transformer's attention weights, which can adjust dynamically to sharp transitions at object edges.
Conclusion
GuideFormer represents a significant advancement in depth completion by moving from static CNNs to dynamic, fully transformer-based architectures. While it achieves state-of-the-art accuracy, its higher computational complexity and slower inference speed (approximately 0.1 seconds per frame) remain areas for future optimization. Future research will focus on making these architectures more computationally efficient for real-time deployment on edge hardware.
Summary updated