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 systems often struggle with generating precise predictions due to the challenges in estimating depth from images, increasing redundant and incorrect detections. Our paper presents Ray Denoising, an innovative method that enhances detection accuracy by strategically sampling along camera rays to construct hard negative examples. These examples, visually challenging to differentiate from true positives, compel the model to learn depth-aware features, thereby improving its capacity to distinguish between true and false positives. Ray Denoising is designed as a plug-and-play module, compatible with any DETR-style multi-view 3D detectors, and it only minimally increases training computational costs without affecting inference speed. Our comprehensive experiments, including detailed ablation studies, consistently demonstrate that Ray Denoising outperforms strong baselines across multiple datasets. It achieves a 1.9% improvement in mean Average Precision (mAP) over the state-of-the-art StreamPETR method on the NuScenes dataset. It shows significant performance gains on the Argoverse 2 dataset, highlighting its generalization capability.

Introduction

In the field of autonomous driving, perceiving the world in 3D using only 2D camera inputs is a formidable challenge. While modern "DETR-style" detectors—which utilize Transformers to map image features into 3D bounding boxes—have significantly advanced the state-of-the-art, they remain susceptible to a fundamental issue: depth ambiguity.

Because a single point in a 2D image can correspond to any point along a 3D line of sight (a camera ray), detectors often struggle to determine the exact distance of an object. This frequently results in "ghost" predictions—multiple duplicate boxes scattered at varying depths along the same ray. Ray Denoising (RayDN) is introduced as a novel training-time module designed to mitigate this ambiguity by forcing the model to distinguish between true objects and visually similar "hard negatives" located at incorrect depths.

The Depth Ambiguity Bottleneck

The authors' research highlights that depth ambiguity is a primary performance bottleneck. Analysis of existing models like StreamPETR revealed that if "ghost" predictions along a camera ray were manually removed using ground-truth data, the model's mean Average Precision (mAP) would increase by a staggering 5.4%. This suggests that the model often identifies the correct direction of an object but lacks the depth-aware features necessary to pinpoint its precise location.

Methodology: Ray Denoising (RayDN)

Ray Denoising is a "plug-and-play" training enhancement that sharpens a model's depth perception through three strategic steps:

1. Ray Casting

For every ground-truth (GT) object in the training set, the system calculates the specific camera ray that passes from the camera center through the object's 3D center. This ray represents the line of sight where depth ambiguity is most likely to occur.

2. Sample Generation via Beta Distribution

To train the model to handle ambiguity, RayDN generates synthetic candidate points, or "Ray Queries," along these rays. Unlike traditional denoising methods that use Gaussian (Normal) distributions, RayDN employs a Beta distribution. The Beta distribution is naturally bounded, preventing the generation of extreme outliers that could destabilize training. This allows for precise control over the placement of hard negatives, ensuring they are clustered near the actual object to provide a meaningful challenge for the model.

3. Query Denoising

These sampled points are fed into the Transformer decoder as denoising queries. The query closest to the actual ground-truth object is labeled as a positive sample, while the others are labeled as "no object" (hard negatives). By forcing the model to classify these nearly identical-looking queries correctly, the model is incentivized to learn subtle visual cues—such as object scale and ground-contact points—to determine depth more accurately.

Experimental Results

Ray Denoising was evaluated on two industry-standard benchmarks, demonstrating significant improvements in both accuracy and efficiency.

Performance on nuScenes

On the nuScenes dataset, which includes 1,000 video sequences of diverse urban driving, RayDN improved the state-of-the-art StreamPETR baseline by 1.9% mAP and 1.3% NDS (nuScenes Detection Score). This improvement was achieved without the need for explicit depth maps or LiDAR-generated supervision.

Performance on Argoverse 2

In the Argoverse 2 dataset, which focuses on long-range perception (up to 150 meters), RayDN achieved a 2.0% mAP improvement. This demonstrates the method's robustness in challenging scenarios where depth estimation is particularly difficult due to the distance of the objects.

Computational Efficiency

One of the primary advantages of RayDN is its efficiency. It increases training time by only approximately 7%, a significantly lower overhead than competing depth-supervision methods (which can exceed 20%). Most importantly, because the RayDN module is only used during training, there is zero impact on inference speed (FPS), making it ideal for real-time autonomous driving applications.

Conclusion

Ray Denoising addresses the critical issue of depth ambiguity in camera-based 3D object detection by introducing a sophisticated hard negative sampling strategy. By utilizing the Beta distribution to generate challenging ray-based queries, RayDN forces models to develop a more nuanced understanding of depth. As a lightweight, plug-and-play solution, it offers a practical path toward more reliable and accurate 3D perception in autonomous systems. Future work may explore the adaptation of RayDN to Dense BEV (Bird's Eye View) architectures and the dynamic learning of sampling parameters for complex lens geometries.

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