DFormerv2: Geometry Self-Attention for RGBD Semantic Segmentation
Bo-Wen Yin, Jiao-Long Cao, Ming-Ming Cheng, Qibin Hou
TL;DR
DFormerv2 addresses RGB-D semantic segmentation by reframing depth as geometry priors rather than as learnable depth embeddings. It introduces Geometry Self-Attention (GSA), which modulates attention weights with depth-derived and spatial priors, and uses axis-decomposed attention to maintain efficiency. The four-stage pyramid encoder builds multi-scale features while depth-derived priors are generated per stage; a lightweight decoder yields strong segmentation results with lower computational cost. Empirical results on NYU DepthV2, SUNRGBD, and Deliver show state-of-the-art performance and favorable accuracy–cost trade-offs, with ablations confirming the benefit of combining depth and spatial priors and the effectiveness of memory-based fusion. Overall, the work demonstrates that explicit 3D geometry cues can be leveraged in transformers to enhance RGB-D scene understanding in challenging conditions.
Abstract
Recent advances in scene understanding benefit a lot from depth maps because of the 3D geometry information, especially in complex conditions (e.g., low light and overexposed). Existing approaches encode depth maps along with RGB images and perform feature fusion between them to enable more robust predictions. Taking into account that depth can be regarded as a geometry supplement for RGB images, a straightforward question arises: Do we really need to explicitly encode depth information with neural networks as done for RGB images? Based on this insight, in this paper, we investigate a new way to learn RGBD feature representations and present DFormerv2, a strong RGBD encoder that explicitly uses depth maps as geometry priors rather than encoding depth information with neural networks. Our goal is to extract the geometry clues from the depth and spatial distances among all the image patch tokens, which will then be used as geometry priors to allocate attention weights in self-attention. Extensive experiments demonstrate that DFormerv2 exhibits exceptional performance in various RGBD semantic segmentation benchmarks. Code is available at: https://github.com/VCIP-RGBD/DFormer.
