[Paper Review] SideRT: A Real-time Pure Transformer Architecture for Single Image Depth Estimation
SideRT proposes a real-time pure transformer architecture for single image depth estimation using Cross-Scale Attention (CSA) and Multi-Scale Refinement (MSR) modules to efficiently fuse multi-scale features without convolutions. It achieves state-of-the-art performance at 51.3 FPS on KITTI and 83.1 FPS on a smaller Swin-T backbone, improving AbsRel by 6.9% on KITTI and 9.7% on NYU.
Since context modeling is critical for estimating depth from a single image, researchers put tremendous effort into obtaining global context. Many global manipulations are designed for traditional CNN-based architectures to overcome the locality of convolutions. Attention mechanisms or transformers originally designed for capturing long-range dependencies might be a better choice, but usually complicates architectures and could lead to a decrease in inference speed. In this work, we propose a pure transformer architecture called SideRT that can attain excellent predictions in real-time. In order to capture better global context, Cross-Scale Attention (CSA) and Multi-Scale Refinement (MSR) modules are designed to work collaboratively to fuse features of different scales efficiently. CSA modules focus on fusing features of high semantic similarities, while MSR modules aim to fuse features at corresponding positions. These two modules contain a few learnable parameters without convolutions, based on which a lightweight yet effective model is built. This architecture achieves state-of-the-art performances in real-time (51.3 FPS) and becomes much faster with a reasonable performance drop on a smaller backbone Swin-T (83.1 FPS). Furthermore, its performance surpasses the previous state-of-the-art by a large margin, improving AbsRel metric 6.9% on KITTI and 9.7% on NYU. To the best of our knowledge, this is the first work to show that transformer-based networks can attain state-of-the-art performance in real-time in the single image depth estimation field. Code will be made available soon.
Motivation & Objective
- Address the challenge of achieving real-time inference speed while maintaining high accuracy in single image depth estimation.
- Overcome the limitations of CNNs in capturing global context and the computational cost of standard transformers in depth estimation.
- Design a lightweight, pure transformer-based architecture that avoids parameter-heavy components like convolutions.
- Enable state-of-the-art performance in real-time by integrating efficient attention mechanisms tailored for depth estimation.
- Demonstrate that transformer-based models can outperform CNNs in accuracy while maintaining real-time inference speed in this task.
Proposed method
- Employ a Swin Transformer encoder to extract hierarchical features with shifted window self-attention.
- Introduce Cross-Scale Attention (CSA) to fuse high-semantic-similarity features across different scales using attention scores.
- Implement Multi-Scale Refinement (MSR) to spatially align and refine features at corresponding positions across scales.
- Design CSA and MSR modules with minimal learnable parameters, avoiding convolutions to reduce computational overhead.
- Apply Multi-Stage Supervision (MSS) to stabilize training and accelerate convergence in the pure transformer setting.
- Use a coarse-to-fine, hierarchical decoding strategy to progressively refine depth predictions from low- to high-resolution features.
Experimental results
Research questions
- RQ1Can a pure transformer architecture achieve state-of-the-art depth estimation performance while maintaining real-time inference speed?
- RQ2How effective are cross-scale attention and multi-scale refinement in enhancing global context modeling without using convolutions?
- RQ3What is the impact of multi-stage supervision on training stability and performance in a pure transformer-based depth estimation model?
- RQ4How does the proposed architecture compare in speed-accuracy trade-off to previous CNN-based and transformer-based methods?
- RQ5To what extent does the CSA module expand the effective receptive field beyond the native transformer encoder?
Key findings
- SideRT achieves 51.3 FPS inference speed on KITTI while improving AbsRel by 6.9% (from 0.058 to 0.054) compared to previous SOTA.
- On the NYU dataset, SideRT reduces AbsRel from 0.103 to 0.093, a 9.7% improvement, demonstrating strong generalization.
- With a smaller Swin-T backbone, SideRT achieves 83.1 FPS and 84.4 FPS on KITTI and NYU, respectively, with only a minor performance drop.
- The ablation study confirms that CSA and MSR modules each contribute significantly to performance, with CSA notably expanding the effective receptive field.
- Multi-Stage Supervision (MSS) leads to smoother training loss curves and faster convergence, proving essential for training pure transformer models.
- Visualizations confirm that CSA enhances responses from semantically and depth-similar regions across large spatial distances, validating its role in global context modeling.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.