Abstract
Deep learning models for image segmentation often suffer from significant performance degradation when encountering domain shifts, such as changes in weather or lighting. This paper proposes Instance-Specific Calibration (InstCal), a "plug-and-play" test-time adaptation method. By replacing standard BatchNorm layers with a learnable calibration rule trained on heavily augmented data, InstCal enables models to adapt to unseen environments in a single forward pass. Experimental results on semantic and panoptic segmentation benchmarks demonstrate substantial improvements over pre-trained baselines and existing adaptation techniques without the need for target-domain data or expensive test-time optimization.
Introduction
Semantic and panoptic segmentation models are critical for applications like autonomous driving but remain notoriously "brittle" under domain shift. A model trained on clear, sunny city images (the source domain) often fails when deployed in rainy or foggy environments (the target domain).
Existing solutions have significant drawbacks: Unsupervised Domain Adaptation (UDA) requires target-domain data during training; Domain Generalization (DG) often struggles with limited source data; and Test-Time Optimization (TTO) is computationally prohibitive for real-time applications. This work focuses on Test-Time Adaptation (TTA), seeking a method to adapt to a single, never-before-seen image efficiently and without optimization loops.
Methodology: Instance-Specific Calibration
The core innovation is InstCal, which targets the BatchNorm (BN) layers. Standard BN layers track population statistics (mean and variance) during training and use these fixed values at test time, which often mismatch out-of-distribution data.
InstCal introduces two variants:
- InstCal-U (Unconditional): Learns a specific vector of calibration strengths for every channel in every BN layer, replacing manually tuned mixing ratios.
- InstCal-C (Conditional): Employs a lightweight Multi-Layer Perceptron (MLP) to dynamically predict the optimal calibration strength based on the specific features of the input instance.
To prepare the model for unknown shifts, the authors utilize Strong Data Augmentation (specifically DeepAugment). By distorting source images during training, the model learns to identify "weird" statistics and shift its reliance toward the current instance's statistics rather than pre-saved population averages. Crucially, the primary model weights remain fixed; only the statistical interpretation mechanism is learned.
Experimental Results
The method was evaluated on several high-stakes cross-domain benchmarks, including GTA5/SYNTHIA (synthetic source) to Cityscapes/BDD100k (real-world target) and panoptic tasks in foggy conditions.
Key Performance Gains
- Semantic Segmentation: On the GTA5 → Cityscapes benchmark, the baseline mIoU of 35.7% was boosted to 42.2% using InstCal-C, outperforming several state-of-the-art one-shot UDA methods.
- Panoptic Segmentation: In foggy conditions, InstCal improved the Panoptic Quality (PQ) score from 32.6 to 42.4, representing a massive jump for zero-shot adaptation.
- Efficiency: Because adaptation occurs in a single forward pass without backpropagation, it is significantly faster than optimization-based methods like TENT, making it more viable for deployment in autonomous systems.
Conclusion
InstCal demonstrates that learning how to adapt is superior to manual tuning or expensive test-time optimization. By treating augmentation as a simulation for domain shift, the model develops a general-purpose "adaptation muscle." While the method adds minor inference overhead, its backbone-agnostic nature and significant performance gains make it a robust solution for real-world computer vision challenges. Future work may explore extending this logic to other normalization layers, such as LayerNorm in Vision Transformers.
Summary updated