Exploring Camera Encoder Designs for Autonomous Driving Perception

Barath Lakshmanan, Joshua Chen, Shiyi Lan, Maying Shen, Zhiding Yu, José M. ÁlvarezarXiv 2024

Abstract

The cornerstone of autonomous vehicles (AV) is a solid perception system, where camera encoders play a crucial role. Existing works usually leverage pre-trained Convolutional Neural Networks (CNN) or Vision Transformers (ViTs) designed for general vision tasks. Although those well-known architectures have achieved state-of-the-art accuracy in AV-related tasks, there remains significant potential for improvement in network design due to the nuanced complexities of industrial-level AV datasets. To reveal AV-specific model insights, we start from a standard general-purpose encoder, ConvNeXt, and progressively transform the design. We adjust different design parameters including width and depth of the model, stage compute ratio, attention mechanisms, and input resolution. This customization yields DriveNeXt, an architecture optimized for AV camera encoders achieving an 8.79% mAP improvement over the baseline.

Introduction

Most autonomous vehicle perception systems rely on "off-the-shelf" encoders like ResNet or ConvNeXt. However, these models were originally designed for general image classification tasks like ImageNet, which differ fundamentally from the requirements of the road. AV tasks face unique challenges: a narrow but data-rich class distribution (cars, pedestrians), the need to process multiple camera streams simultaneously, and the requirement to detect tiny objects at long ranges (up to 250m) while maintaining real-time performance on automotive hardware like NVIDIA Orin.

Researchers from NVIDIA have developed DriveNeXt, a camera encoder architecture specifically tailored for these demands. By systematically redesigning the popular ConvNeXt model, they achieved significant performance gains, proving that general-purpose vision models are often sub-optimal for autonomous driving.

The end-to-end perception pipeline, illustrating the flow from multi-camera input through the image encoder and 2D-3D transformation to final output prediction.

The DriveNeXt Architecture

The transition from a general-purpose ConvNeXt to the specialized DriveNeXt involved several key architectural shifts focused on hardware efficiency and task-specific feature extraction.

Hardware-Aware Micro-architecture

To better utilize GPU acceleration on automotive platforms, the authors replaced Layer Normalization with Batch Normalization and swapped complex convolutions for standard $3 \times 3$ kernels. These changes ensure the model runs efficiently on specialized hardware like NVIDIA AGX Orin.

Macro-Architecture and the DriveNeXt Block

The core of the encoder consists of four stages. The authors found that a "front-loading" approach—prioritizing feature extraction in the initial stages—is more beneficial for AV. This led to an optimal stage compute ratio of 1:7:4:1, focusing capacity on the second and third stages where high-resolution details are most critical.

The DriveNeXt architecture overview, showing the four-stage design with downsampling layers and the optional hybrid attention block in Stage 3.

The DriveNeXt Block itself adopts a two-layered approach: a Large Kernel (LK) convolution followed by a Large Channel (LC) bottleneck design. Additionally, inspired by hybrid architectures like CoAtNet, the team introduced a Hybrid Block in the third stage, incorporating Multi-Head Self-Attention (MHSA) to capture global context without excessive computational overhead.

Experimental Results and Insights

The researchers evaluated DriveNeXt using a massive internal dataset of 2 million scenes and public benchmarks like nuScenes.

  • Accuracy and Efficiency: The optimized DriveNeXt architecture achieved an 8.79% relative mAP improvement over the vanilla ConvNeXt baseline. The DriveNeXt-S (Small) variant outperformed larger NAS-based models while maintaining lower latency on Orin hardware.
  • The Power of Resolution: Removing initial downsampling to operate at native resolution provided a 2% absolute mAP boost. While computationally expensive, it is the most effective way to improve long-range detection of small objects.
  • Diminishing Returns in Depth: Because AV tasks have fewer object classes than ImageNet, the model does not require as much capacity in the final stages. Reducing complexity in the deeper layers saves compute without sacrificing accuracy.

Conclusion

DriveNeXt demonstrates that tailoring camera encoders to the specific constraints and data distributions of autonomous driving yields substantial benefits. By optimizing stage ratios, incorporating hardware-friendly layers, and carefully placing attention mechanisms, the researchers have created a "cookbook" for the next generation of drive systems. Future work will explore more efficient ways to handle high-resolution inputs and potential class-specific encoder branches to further refine perception accuracy.

Summary updated

BibTeX
@misc{lakshmanan2024exploring,
  author = {Barath Lakshmanan and Joshua Chen and Shiyi Lan and Maying Shen and Zhiding Yu and José M. Álvarez},
  title = {{Exploring Camera Encoder Designs for Autonomous Driving Perception}},
  year = {2024},
  eprint = {2407.07276},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.07276},
}
Figure