Improving Batch Normalization with TTA for Robust Object Detection in Self-Driving

Dacheng Liao, Mengshi Qi, Liang Liu, Huadong MaarXiv 2024 · DOI

Abstract

Autonomous driving systems face significant challenges when encountering out-of-distribution data caused by adverse weather or sensor degradation. This paper presents a robust Test-Time Adaptation (TTA) framework designed to maintain the accuracy of 3D perception models under such "domain shift" conditions. By replacing traditional Batch Normalization (BN) with a "LearnableBN" layer and employing a dual-stage adaptation strategy—Semantic-Consistency based Dual-Stage-Adaptation—the proposed method stabilizes the adaptation process and prevents model collapse. Experimental results on corrupted benchmarks like NuScenes-C and KITTI-C demonstrate performance improvements of up to 8% in NDS, with particularly significant gains in challenging object categories like trucks and pedestrians during extreme weather.

Introduction

Deep learning models for autonomous driving are typically trained on high-quality, "clean" datasets. However, real-world deployment involves unpredictable environments, including heavy snow, dense fog, and hardware failures like lens smudges. These conditions introduce a domain shift that can severely degrade the performance of Bird's Eye View (BEV) perception models, posing a safety risk.

Test-Time Adaptation (TTA) offers a way to adjust models dynamically as they encounter new data. Traditional TTA often focuses on updating Batch Normalization (BN) statistics. In the context of self-driving, this approach faces three primary hurdles: unstable statistical estimates due to small real-time batch sizes, error accumulation across network layers, and the risk of "model collapse" where unsupervised objectives like entropy minimization lead to overconfident but incorrect predictions.

Methodology

To address these challenges, the authors propose a multi-faceted TTA framework consisting of three key innovations.

LearnableBN

Instead of the standard approach of using an Exponential Moving Average (EMA) to track statistics, the framework introduces LearnableBN. This layer incorporates auxiliary learnable parameters ($\phi$) that allow the model to intelligently blend historical training statistics with incoming test data statistics. This mechanism provides a more stable and adaptive way to handle domain-specific features.

Generalized-search Entropy Minimization (GSEM)

Standard entropy minimization encourages the model to produce low-entropy (certain) predictions. However, without constraints, this can lead to trivial solutions where the model consistently predicts a single class. GSEM introduces a regularization term that penalizes the disparity between the highest and lowest probability predictions, acting as a "leash" to ensure the model remains informative and avoids collapse.

Semantic-Consistency Dual-Stage-Adaptation

The adaptation process is split into two distinct phases to balance stability and optimization:

  1. Stable Learning Stage: Employs a low learning rate to establish a conservative baseline for the new domain.
  2. Aggressive Learning Stage: Uses a higher learning rate to reach an optimal state. To prevent divergence, it filters "noisy" samples by checking semantic consistency against the stable model. If the KL divergence between the two stages' predictions is too high, the sample is discarded.
Overview of the Semantic-Consistency based Dual-Stage-Adaptation and the GSEM process.

Experimental Evaluation

The framework was evaluated using state-of-the-art BEV models, including BEVFormer and Sparse4D, on two major corrupted benchmarks: NuScenes-C (six synthetic corruptions at varying severity levels) and KITTI-C (12 types of data degradation).

Key Results

The proposed method consistently outperformed baseline TTA approaches. On NuScenes-C, it achieved an 8% boost in the NuScenes Detection Score (NDS) over the BEVFormer baseline.

A notable finding was the framework's effectiveness in "long-tail" scenarios. In heavy snow conditions, detection accuracy for difficult categories saw massive improvements: trucks by 342% and pedestrians by 283%. This suggests that the LearnableBN and dual-stage strategy are particularly adept at recovering features that are typically lost in noisy data.

Analysis of object detection results across different categories, comparing the LearnableBN approach to the baseline.

Discussion and Insights

The research highlights that BN layers at different depths respond uniquely to domain shifts. Shallow layers require more frequent updates to handle low-level visual noise, whereas deeper layers, which capture more abstract semantic features, should be adjusted more conservatively.

The dual-stage approach acts as a crucial safety mechanism. By using the "Stable" stage as a ground-truth proxy, the system ensures that the "Aggressive" stage does not overfit to transient sensor noise or extreme outliers.

Conclusion

This work provides a robust solution for maintaining perception accuracy in autonomous vehicles under adverse conditions. While the method shows diminishing returns in mild conditions and introduces some computational overhead, its ability to prevent model collapse and significantly improve detection in extreme weather is a major step forward. Future research will focus on optimizing the computational efficiency of the semantic-consistency checks for real-time edge deployment.

Summary updated

BibTeX
@misc{liao2024improving,
  author = {Dacheng Liao and Mengshi Qi and Liang Liu and Huadong Ma},
  title = {{Improving Batch Normalization with TTA for Robust Object Detection in Self-Driving}},
  year = {2024},
  eprint = {2411.18860},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.18860},
}
Figure