Optimizing Anchor-based Detectors for Autonomous Driving Scenes

Xianzhi Du, Wei-Chih Hung, Tsung-Yi LinarXiv 2022

Abstract

This paper summarizes model improvements and inference-time optimizations for the popular anchor-based detectors in the scenes of autonomous driving. Based on the high-performing RCNN-RS and RetinaNet-RS detection frameworks designed for common detection scenes, we study a set of framework improvements to adapt the detectors to better detect small objects in crowd scenes. Then, we propose a model scaling strategy by scaling input resolution and model size to achieve a better speed-accuracy trade-off curve. We evaluate our family of models on the real-time 2D detection track of the Waymo Open Dataset (WOD). Within the 70 ms/frame latency constraint on a V100 GPU, our largest Cascade RCNN-RS model achieves 76.9% AP/L1 and 70.1% AP/L2, attaining the new state-of-the-art on WOD real-time 2D detection. Our fastest RetinaNet-RS model achieves 6.3 ms/frame while maintaining a reasonable detection precision at 50.7% AP/L1 and 42.9% AP/L2.

Introduction

Most popular object detectors are developed using the COCO dataset, which features a wide variety of objects in diverse settings. However, autonomous driving (AD) presents unique challenges: camera views are consistent, categories are limited (cars, pedestrians, cyclists), and objects are often small and crowded near the horizon. Furthermore, AD systems operate under strict latency constraints; a detector must process frames quickly enough to ensure vehicle safety at high speeds. This research addresses the gap between general-purpose detection and the specific requirements of real-time, small-object detection in driving scenes.

Methodology: Optimizing for Speed and Accuracy

The researchers optimized two baseline detectors, RCNN-RS and RetinaNet-RS, through architectural modifications and inference-time speedups.

Architectural Enhancements

To better detect small, distant objects, the authors introduced an L2-L6 Feature Pyramid. By adding the high-resolution L2 layer and removing the L7 layer (typically used for very large objects), they significantly improved performance on the small objects prevalent in AD. They also employed Cascaded Heads with increasing IoU thresholds to refine bounding box accuracy and Lightweight Heads to reduce latency by stripping away heavy convolutional layers in the detection and RPN heads.

Inference-time Speedups

Efficiency was further improved by reducing the number of object proposals from 1000 to 512 and leveraging NVIDIA TensorRT with float16 precision. These optimizations allowed for significant latency reductions without compromising accuracy.

Ablation study showing the cumulative impact of architectural and inference-time optimizations on model latency and accuracy.

Key Insights and Scaling Strategies

A critical finding of this study is that increasing input image resolution is often more effective for accuracy than simply increasing backbone complexity. The authors used a grid search to find the optimal balance between resolution and backbone size (using ResNet-RS and SpineNet).

Additionally, the study compared one-stage and two-stage detectors. While RetinaNet is often favored for speed, the optimized RCNN-RS outperformed RetinaNet-RS by 4.1% AP at equivalent speeds, suggesting that two-stage detectors remain highly competitive for real-time AD when properly optimized.

Key Results and Performance Frontier

The resulting family of models defines a new state-of-the-art frontier for the speed-accuracy trade-off on the Waymo Open Dataset (WOD).

  • State-of-the-Art Performance: The best Cascade RCNN-RS model achieved 76.9% AP/L1 with a latency of 68.8 ms/frame on a V100 GPU, meeting the 70ms real-time requirement.
  • High-Speed Detection: The fastest model, a scaled-down RetinaNet-RS, operates at 6.3 ms/frame (over 150 FPS) with 50.7% AP/L1.
  • Efficiency Gains: Combined optimizations resulted in a final model that is 53% faster than the baseline while increasing accuracy by 3.4% AP.
Comparison of the proposed models against other state-of-the-art detectors on the Waymo Open Dataset, highlighting the superior speed-accuracy trade-off.

Conclusion

This work demonstrates that classic anchor-based detectors can be highly effective for autonomous driving when tailored to the specific scene characteristics and hardware constraints. While this study focuses on 2D detection, the optimization principles—such as high-resolution feature maps and smart scaling—are broadly applicable to other detection frameworks and 3D perception tasks. Future work may explore these techniques on edge-specific AI hardware common in production vehicles.

Summary updated

BibTeX
@misc{du2022optimizing,
  author = {Xianzhi Du and Wei-Chih Hung and Tsung-Yi Lin},
  title = {{Optimizing Anchor-based Detectors for Autonomous Driving Scenes}},
  year = {2022},
  eprint = {2208.06062},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.06062},
}
Figure