Introduction
Indoor semantic segmentation—the task of assigning a category label (e.g., "chair," "floor," "lamp") to every pixel in a scene—is a critical component of robotics and augmented reality. While depth sensors provide valuable geometric cues that complement RGB images, effectively merging these two modalities remains a challenge. Traditional methods often rely on rigid, pixel-wise fusion within Convolutional Neural Networks (CNNs). However, these approaches suffer from limited receptive fields, sensitivity to sensor noise, and a lack of robustness to spatial misalignment between RGB and depth maps.
The TransD-Fusion Architecture
To address these limitations, the authors introduce TransD-Fusion, a novel transformer-based framework designed for robust cross-modal feature integration. The architecture moves away from local convolutional operations toward a global, attention-driven mechanism that can dynamically weigh and align features from different sensors.
Master-Subsidiary Encoder
The model utilizes a dual-stream encoder. The "Master" stream processes an early-fused RGB-D input to capture general scene context, while the "Subsidiary" stream focuses exclusively on geometric features (often encoded as HHA or raw depth). This separation allows the network to preserve fine-grained geometric details that might otherwise be washed out by dominant visual textures in the RGB stream.
Core Components
- Transformer-based Feature Fusion: Instead of simple concatenation or addition, TransD-Fusion employs a three-stage attention process:
- Self-Enhancement: Refines features within each modality using self-attention.
- Cross-Calibration: Uses bi-directional cross-attention where one modality queries the other. This helps the model ignore sensor noise and focus on consistent boundaries.
- Depth-Guided Fusion: Uses geometric cues to selectively retrieve information from the combined RGB-D features, resolving visual ambiguities.
- Semantic-aware Position Encoding (S-PE): Standard transformers use fixed position encodings, which can lose local spatial structure. TransD-Fusion introduces S-PE, which is dynamically generated from hierarchical features. This "injects" local spatial constraints back into the global attention mechanism, ensuring the model maintains sharp object boundaries.
Experimental Results
The model was rigorously evaluated on major indoor benchmarks, including NYUv2, SUN-RGBD, and Stanford 2D-3D-Semantic (SID).
- State-of-the-Art Performance: On the NYUv2 dataset, TransD-Fusion achieved a mean Intersection over Union (mIoU) of 55.5%, setting a new benchmark for the field.
- Robustness to Misalignment: A key advantage of the attention mechanism is its inherent flexibility. In tests where RGB and depth maps were artificially misaligned by up to 60 pixels, TransD-Fusion's performance dropped by a negligible 0.2%. In contrast, traditional CNN-based fusion methods experienced significant degradation (up to 3.5%), as they rely on strict pixel-to-pixel correspondence.
- Versatility: The TransD-Fusion module acts as a "plug-and-play" component, demonstrating consistent performance gains when integrated with various backbones (like Swin Transformer) and decoders (like DeepLabV3+).
Conclusion and Future Work
TransD-Fusion demonstrates that rethinking fusion as a contextualized attention problem rather than a spatial aggregation problem leads to significant gains in both accuracy and reliability. While the model is computationally intensive (~107M parameters), its ability to handle real-world sensor imperfections makes it a powerful tool for robust indoor scene understanding. Future research will focus on optimizing the architecture for real-time performance and exploring multi-scale fusion at earlier stages of the network.
Summary updated