Ray Denoising: Depth-Aware Hard Negative Sampling for Multi-view 3D Object Detection

Feng Liu, Tengteng Huang, Qianjing Zhang, Haotian Yao, Chi Zhang, Fang Wan, Qixiang Ye, Yanzhao Zhou

Abstract

Multi-view 3D object detection is a cornerstone of autonomous driving perception, yet it remains plagued by depth ambiguity. This ambiguity often manifests as "ghost" objects—duplicate high-confidence predictions scattered along the camera ray. We introduce Ray Denoising (RayDN), a training-time module designed to suppress these false positives by sampling hard negatives specifically along the depth axis. By utilizing a flexible Beta distribution for sampling and incorporating these as denoising queries, RayDN forces the model to learn more discriminative depth-aware features. Our method yields a 1.9% mAP improvement on the nuScenes benchmark without any additional computational overhead during inference.

The Challenge of Depth Ambiguity

In multi-view 3D detection, a single pixel in a 2D image corresponds to an infinite ray in 3D space. Without perfect depth estimation, models frequently struggle to localize objects precisely along this ray. This leads to a common failure mode: the detector produces multiple bounding boxes for a single object, all sharing the same image features but placed at different depths. Standard post-processing techniques like Non-Maximum Suppression (NMS) often fail to prune these "ghost" predictions because their 3D spatial overlap (Intersection over Union) is low, even though they are visually identical from the camera's perspective.

Methodology: Ray Denoising (RayDN)

RayDN addresses this bottleneck by explicitly teaching the model to reject spatially incorrect predictions along the camera ray during the training phase.

Conceptual overview of duplicate predictions and the RayDN sampling strategy along the camera ray.

The process involves three core components:

  1. Ray Casting: For each ground-truth object, a ray is projected from the camera center through the object's 3D center.
  2. Beta Distribution Sampling: Rather than uniform noise, RayDN samples reference points along the ray using a Beta distribution. This distribution is chosen for its bounded nature and flexibility, allowing it to accurately model the typical depth-error biases of 3D detectors.
  3. Query Denoising: These sampled points are treated as "Ray Queries." During training, the query closest to the ground truth is supervised as a positive sample, while all other points along the ray are supervised as "no object" (hard negatives). This contrastive-like setup compels the Transformer decoder to refine its depth perception.

Experimental Results

We evaluated RayDN on the nuScenes and Argoverse 2 datasets. The results demonstrate that RayDN is a highly effective, plug-and-play enhancement for sparse, query-based detectors.

Qualitative comparison between the baseline StreamPETR and RayDN, showing the significant reduction in duplicate "ghost" predictions (blue boxes) in the BEV view.

Performance Gains

  • nuScenes: Integrating RayDN into the StreamPETR baseline resulted in a 1.9% mAP and 1.3% NDS improvement using a ResNet-50 backbone. On the test set, the model reached 56.5% mAP, setting a new state-of-the-art for its category.
  • Generalization: On Argoverse 2, RayDN provided a 2.0% mAP boost, confirming its effectiveness across different sensor configurations and perception ranges.
  • Efficiency: A key advantage of RayDN is that the denoising queries are only used during training. Consequently, the model maintains its original inference speed, providing "free" accuracy gains for real-time applications.

Conclusion

Ray Denoising provides a targeted solution to the fundamental problem of depth ambiguity in multi-view 3D detection. By shifting the focus from generic noise to ray-aligned hard negatives, RayDN significantly reduces false positives and improves localization accuracy. Its zero-cost inference and strong performance across datasets make it a valuable component for future autonomous driving perception systems.

Summary updated

BibTeX
@inproceedings{liu2024ray,
  author = {Feng Liu and Tengteng Huang and Qianjing Zhang and Haotian Yao and Chi Zhang and Fang Wan and Qixiang Ye and Yanzhao Zhou},
  title = {{Ray Denoising: Depth-Aware Hard Negative Sampling for Multi-view 3D Object Detection}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72967-6\_12},
}
Figure