CLIP-BEVFormer: Enhancing Multi-View Image-Based BEV Detector with Ground Truth Flow

Chenbin Pan, Burhaneddin Yaman, Senem Velipasalar, Liu Ren · DOI

Abstract

CLIP-BEVFormer introduces a novel training framework that significantly boosts the performance of 3D object detectors by "injecting" ground truth information directly into the model's internal representations. By using contrastive learning to align Bird's Eye View (BEV) features with actual object data, the model achieves up to a 9.2% improvement in detection accuracy on the nuScenes dataset—all without adding a single millisecond of extra computation time during real-world inference.

Introduction

In autonomous driving, "Bird's Eye View" (BEV) perception is the gold standard. It involves taking images from multiple cameras around a car and transforming them into a single, top-down map of the environment.

However, current state-of-the-art models (like BEVFormer) treat the creation of this map as a "black box." While the model is eventually penalized if it misses a car or a pedestrian, there is no direct supervision on the BEV feature map itself. This lack of clear guidance often results in "fuzzy" object boundaries and poor performance on rare objects (the "long-tail" problem). Furthermore, the transformer decoders used to find objects often rely on "empty" queries that have to learn from scratch how objects interact, leading to a lack of interpretability and slower convergence.

Methods

The authors propose CLIP-BEVFormer, which adds two "Ground Truth Flow" (GT-flow) modules that are active only during training:

  1. Ground Truth BEV (GT-BEV) Module: Inspired by the CLIP (Contrastive Language-Image Pre-training) architecture, this module uses a contrastive loss to align the model's generated BEV feature map with an encoded version of the ground truth. It forces the model to arrange its internal features based on actual class labels, locations, and boundaries.
  2. Ground Truth Query Interaction (GT-QI) Module: Standard decoders use learned "queries" to search the BEV map for objects. GT-QI injects "perfect" queries (derived from ground truth) into the decoder's query pool. This allows the model to learn how real-world instances interact with each other and the BEV map, effectively "teaching" the decoder what a successful detection looks like.
Architecture of CLIP-BEVFormer showing the GT-BEV and GT-QI modules used during training.

Crucially, because these modules are only used to calculate loss during training, the final deployed model remains lightweight and efficient for real-time use.

Experimental Setup

The researchers evaluated their framework on the nuScenes dataset, a large-scale public dataset for autonomous driving. It contains 1,000 scenes, each with 6-camera coverage providing a full 360-degree field of view, and includes 1.4 million 3D annotated bounding boxes across 10 object categories.

Key Insights

  • Supervision Matters at Every Step: By providing explicit supervision on the intermediate BEV feature map (via GT-BEV), the model develops a much higher "discriminative capacity," making it easier to distinguish between a car and a similarly shaped barrier.
  • Structure Over Complexity: Interestingly, the authors found that you don't need a massive, pre-trained Large Language Model (LLM) to encode the ground truth. A simple Multi-Layer Perceptron (MLP) performed just as well, suggesting that the spatial structure of the ground truth is the most important signal.
  • Solving the Long-Tail: The "GT-flow" guidance was particularly effective for rare classes. For example, detection of "construction vehicles" improved by a staggering 46.5% compared to the baseline.
  • Sensor Robustness: Because the model learns more robust internal features, it handles sensor failures much better. In tests where one camera view was randomly masked, CLIP-BEVFormer maintained significantly higher accuracy than standard models.

Results

The improvements were consistent across various model sizes and configurations:

  • Performance Boost: On the nuScenes validation set, CLIP-BEVFormer achieved an 8.5% improvement in NDS (nuScenes Detection Score) and a 9.2% improvement in mAP (mean Average Precision) over the baseline BEVFormer-tiny.
  • Efficiency: The model maintains the same inference speed (FPS) and parameter count as the original BEVFormer, as the new modules are discarded after training.
  • State-of-the-Art: The framework consistently outperformed other leading detectors like BEVerse and BEVFormerV2 when applied as an enhancement.
Comparison of CLIP-BEVFormer against baseline methods on the nuScenes dataset.

Conclusion

While the paper demonstrates impressive results for camera-based systems, the authors acknowledge a few areas for growth, such as expanding the modality to include LiDAR or Radar and generalizing the framework to broader tasks like motion prediction and scene segmentation. Overall, CLIP-BEVFormer demonstrates that explicit ground truth guidance during training can significantly enhance the representational power of BEV-based detectors without incurring any inference-time overhead.

Summary updated

BibTeX
@misc{pan2024clip,
  author = {Chenbin Pan and Burhaneddin Yaman and Senem Velipasalar and Liu Ren},
  title = {{CLIP-BEVFormer: Enhancing Multi-View Image-Based BEV Detector with Ground Truth Flow}},
  year = {2024},
  eprint = {2403.08919},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.08919},
}
Figure