ContrastAlign: Toward Robust BEV Feature Alignment via Contrastive Learning for Multi-Modal 3D Object Detection

Ziying Song, Feiyang Jia, Hongyu Pan, Yadan Luo, Caiyan Jia, Guoxin Zhang, Lin Liu, Yang Ji, Lei Yang, Li WangarXiv 2024 · DOI

Abstract

Multi-modal 3D object detection in autonomous driving often relies on Bird’s Eye View (BEV) fusion to integrate LiDAR point clouds and camera images. However, this fusion is frequently compromised by feature misalignment stemming from sensor calibration errors and depth estimation inaccuracies. We present ContrastAlign, a framework that addresses these challenges through instance-level contrastive learning and graph matching. By aligning specific object features rather than entire noisy feature maps, ContrastAlign achieves state-of-the-art performance on major benchmarks and demonstrates significant robustness against real-world sensor noise.

Introduction: The Challenge of Feature Misalignment

In autonomous driving, fusing 3D LiDAR data with 2D camera images into a shared BEV space is the standard approach for robust perception. Despite its popularity, this fusion process is inherently fragile due to two primary sources of misalignment:

  1. Sensor Misalignment: Physical factors like vehicle vibrations or imperfect calibration lead to discrepancies between sensor coordinate systems.
  2. Depth Inaccuracy: Projecting 2D images into 3D space requires depth estimation. Errors in modules like "Lift-Splat-Shoot" (LSS) cause camera features to be incorrectly positioned on the BEV map.
Illustration of sensor misalignment, depth inaccuracy, and the ContrastAlign approach.

Traditional methods often attempt to mitigate these errors by simple concatenation, relying on the network to learn the offset. However, this approach fails to provide the precision needed for small or distant objects, where even minor misalignments are magnified.

Proposed Method: ContrastAlign

ContrastAlign shifts the focus from global feature map alignment to object-centric alignment. The framework introduces three key components to ensure precise multi-modal fusion:

L-Instance & C-Instance Modules

Rather than processing the entire noisy BEV map, ContrastAlign identifies potential object "instances" using detection heads (e.g., CenterPoint) in both LiDAR and camera branches. Region of Interest (RoI) pooling is then used to extract high-quality features specific to these objects.

InstanceFusion via Contrastive Learning

The core of the framework is the InstanceFusion module, which employs contrastive learning. It mathematically pulls features of the same object from different sensors closer together while pushing features of different objects apart. This "mutual distillation" allows the spatially accurate LiDAR data to guide the camera features, while the semantically rich camera data refines the LiDAR representation.

Graph Matching for Spatial Correction

To account for physical shifts between modalities, the system utilizes a K-Nearest Neighbor (KNN) graph matching approach. It searches neighboring camera features to find the optimal match for a given LiDAR instance, effectively correcting alignment dynamically during both training and inference.

The overall architecture of ContrastAlign, featuring Graph Matching and Instance Contrastive Learning.

Experimental Evaluation

The researchers evaluated ContrastAlign on the nuScenes and Argoverse 2 (AV2) datasets. To test real-world robustness, they utilized a "noisy" version of nuScenes that simulates spatial vibrations and temporal lag.

Key Results

  • State-of-the-Art Performance: ContrastAlign achieved 71.5% mAP on the nuScenes validation set, a 1.4% improvement over the previous leading method, GraphBEV.
  • Robustness to Noise: On the noisy nuScenes benchmark, the model showed remarkable resilience, improving mAP by 1.4% for spatial noise and 11.1% for temporal noise compared to the BEVFusion baseline.
  • Long-Range Detection: On Argoverse 2, which features detection ranges up to 200m, ContrastAlign outperformed GraphBEV by 1.0% mAP, proving its effectiveness at distances where calibration errors are most critical.

Conclusion

ContrastAlign demonstrates that an object-centric approach to feature alignment is superior to global map fusion. By leveraging contrastive learning and graph matching, the framework significantly enhances the robustness of BEV-based 3D object detection. While currently optimized for LSS-based architectures with a slight computational overhead (15-20ms on an A100), future work aims to extend this methodology to transformer-based architectures and reduce dependency on initial calibration matrices.

Summary updated

BibTeX
@misc{song2024contrastalign,
  author = {Ziying Song and Feiyang Jia and Hongyu Pan and Yadan Luo and Caiyan Jia and Guoxin Zhang and Lin Liu and Yang Ji and Lei Yang and Li Wang},
  title = {{ContrastAlign: Toward Robust BEV Feature Alignment via Contrastive Learning for Multi-Modal 3D Object Detection}},
  year = {2024},
  eprint = {2405.16873},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.16873},
}
Figure