SSD-MonoDETR: Supervised Scale-Aware Deformable Transformer for Monocular 3D Object Detection

Xuan He, Fan Yang, Kailun Yang, Jiacheng Lin, Haolong Fu, Meng Wang, Jin Yuan, Zhiyong Li

TL;DR

This paper introduces SSD-MonoDETR, a novel transformer-based approach for monocular 3D object detection. It tackles the issue of inaccurate object query features by proposing a "Supervised Scale-aware Deformable Attention" (SSDA) mechanism that explicitly learns an object's receptive field using scale information, leading to improved detection accuracy, especially for challenging objects.

What Problem Does This Paper Address?

Monocular 3D object detection, which aims to infer 3D object properties from a single 2D image, is crucial for autonomous driving and robotics due to its lower hardware cost compared to LiDAR or stereo vision systems. Transformer-based methods have shown great promise in this area by using attention mechanisms to explore object features. However, a key challenge is the quality of "object queries" – learned representations that guide the detection process. Existing methods often struggle with inaccurate receptive fields, leading to noisy query features, particularly for small or occluded objects (often termed "hard objects"). This inaccuracy degrades the overall 3D detection performance.

Methods

The core innovation is the Supervised Scale-aware Deformable Attention (SSDA) module, which replaces the standard deformable attention in existing transformer detectors like MonoDETR. SSDA works in three main steps:

  1. Query-specific Multi-scale Local Feature Extraction: For each object query, SSDA uses multiple masks of varying scales to extract local visual features from the input image. This helps capture features at different resolutions relevant to the object's potential size.
  2. Depth-guided Scale Matching Prediction: It leverages depth features to predict a probability distribution over the predefined scales. This step uses depth information to infer the likely scale of the object.
  3. Object Query Updating: SSDA combines the multi-scale visual features and the predicted scale probabilities to create a "scale-aware filter." This filter is then used to refine the object query, guiding it to focus on more accurate key points and generate robust features.

To further enhance the scale prediction, the authors introduce a Weighted Scale Matching (WSM) loss. This loss supervises the scale prediction directly, using a novel weighting mechanism that penalizes queries with larger scale prediction errors more heavily. This is achieved by ranking queries based on their predicted and ground truth scales, creating a more effective learning signal without requiring additional manual annotations.

Datasets

The proposed method is evaluated on two widely used autonomous driving datasets:

  • KITTI: A standard benchmark for 3D object detection. The authors use a subset for training and validation and report results on three difficulty levels (easy, moderate, hard).
  • Waymo Open Dataset: A larger and more challenging dataset, used to demonstrate the method's scalability and performance in complex driving scenarios.

Key Insights and Ideas

  • Scale Awareness is Crucial: The paper strongly suggests that explicitly modeling and learning the scale of objects is key to improving the accuracy of object queries and, consequently, 3D detection.
  • Depth as a Scale Prior: Leveraging depth information to guide scale prediction is an effective way to constrain the search space and improve accuracy, especially when visual cues might be ambiguous.
  • Supervised Scale Learning Outperforms Unsupervised: The introduction of the WSM loss, which supervises scale prediction, leads to significant improvements over methods relying solely on unsupervised attention mechanisms for feature learning.
  • Hard Objects Benefit Most: The SSDA mechanism shows a disproportionate improvement on "moderate" and "hard" objects, highlighting its effectiveness in tackling challenging scenarios like small or occluded objects.

Key Results

  • State-of-the-Art Performance: SSD-MonoDETR achieves state-of-the-art results on the KITTI dataset for the "Car" category, particularly on moderate and hard object subsets, with improvements of up to 4.81%.
  • Improved Accuracy on Difficult Objects: The method demonstrates significant gains on moderate and hard objects, outperforming existing approaches.
  • Comparable Speed: Despite introducing new modules, SSD-MonoDETR achieves a similar testing speed to MonoDETR, partly due to reducing a cross-attention operation.
  • Effective Scale Prediction: The WSM loss significantly boosts performance, with the weighted version showing superior results compared to unweighted or L1-based weighting schemes.
  • Qualitative Improvements: Visualizations show that SSD-MonoDETR successfully detects objects missed by MonoDETR, especially small or partially occluded cars, and is more robust for pedestrians and cyclists.

Limitations and Future Work

  • Pre-setting Scales: The SSDA module requires pre-setting different scales for different object categories, which adds some training cost and complexity.
  • Testing Speed: While comparable to MonoDETR, there is still room for improvement in testing speed.

The authors plan to address these limitations by designing more flexible and generalized attention modules and embedding them into transformer-based 3D object detection backbones to further enhance performance in scene understanding.

Summary updated

BibTeX
@article{he2024ssd,
  author = {Xuan He and Fan Yang and Kailun Yang and Jiacheng Lin and Haolong Fu and Meng Wang and Jin Yuan and Zhiyong Li},
  title = {{SSD-MonoDETR: Supervised Scale-Aware Deformable Transformer for Monocular 3D Object Detection}},
  journal = {IEEE Trans. Intell. Veh.},
  year = {2024},
  url = {https://openreview.net/forum?id=3BRnI7Wqkl},
}
Figure