TL;DR
This paper introduces AUGCO, a novel source-free domain adaptation method for semantic segmentation. AUGCO tackles the challenge of adapting a pre-trained model to a new domain using only unlabeled target data by intelligently selecting reliable pixel predictions for self-training, achieving state-of-the-art results with a simple and efficient approach.
What Problem Does This Paper Address?
Domain adaptation (DA) aims to adapt a model trained on a source dataset to perform well on a different target dataset. However, many existing DA methods require continuous access to the labeled source data during adaptation. This is often impractical in real-world scenarios like autonomous driving due to computational constraints, memory limitations, and privacy concerns. Source-free domain adaptation (SFDA) addresses this by adapting a model using only its trained parameters and unlabeled target data. A key challenge in SFDA is preventing "catastrophic forgetting" or divergence from the original task, especially when the model's initial predictions on the target domain are inaccurate. Unconstrained self-training on these incorrect predictions can amplify errors and degrade performance.
Methods
AUGCO proposes a selective self-training strategy to overcome the limitations of unconstrained self-training in SFDA. The core idea is to identify and train only on reliable pixel predictions. This is achieved through two main components:
- Augmentation Consistency: The method generates two augmented views of each target image. These views vary in scale, spatial context, and color statistics through random cropping, resizing, and color jittering. By comparing the model's predictions on these aligned views, AUGCO identifies pixels where the model's predictions are consistent. This consistency serves as a signal of reliability.
- Class-Conditioned Confidence Thresholding: In addition to consistency, AUGCO leverages the model's confidence in its predictions. However, instead of a global confidence threshold, it uses a per-category threshold. This adaptive approach accounts for the fact that confidence levels can vary significantly across different object categories.
Pixels are deemed "reliable" if they satisfy either the consistency criterion or the confidence criterion. The model is then selectively self-trained using pseudolabels generated for these reliable pixels. To prevent task drift, AUGCO, similar to TENT, constrains weight updates to only the batch normalization (BN) parameters of the network.
Datasets
The paper evaluates AUGCO on three standard domain adaptation benchmarks:
- GTA5 → Cityscapes: Adapting from synthetic images (GTA5) to real-world images (Cityscapes).
- SYNTHIA → Cityscapes: Adapting from synthetic images (SYNTHIA) to real-world images (Cityscapes).
- Cityscapes → Dark Zurich Night: Adapting from real-world daytime images (Cityscapes) to real-world nighttime images (Dark Zurich Night).
Key Insights and Ideas
- Consistency as a Proxy for Correctness: The paper empirically demonstrates that pixel-level predictive consistency across augmented views is a strong indicator of prediction correctness, even more so than relying solely on model confidence.
- Per-Category Confidence is Crucial: A static, global confidence threshold is insufficient for reliable selection. Adapting confidence thresholds per category is essential to account for inherent variations in model confidence across different object classes.
- Selective Self-Training is Key: Unconstrained self-training amplifies errors. By carefully selecting reliable pixels for training, AUGCO avoids error accumulation and achieves better performance.
- Batch Normalization Updates are Sufficient: Constraining updates to only BN parameters is an effective strategy for source-free adaptation, preventing catastrophic forgetting while allowing the model to adapt to the target domain.
- Augmentations Complement Each Other: Combining spatial and pixel-level augmentations for consistency measurement yields the best results, suggesting that diverse transformations capture different aspects of reliability.
Key Results
AUGCO achieves state-of-the-art results in the source-free domain adaptation setting:
- GTA5 → Cityscapes: Achieves +3.9 mIoU over the state-of-the-art SFDA method.
- SYNTHIA → Cityscapes: Achieves comparable results to SFDA, outperforming TENT by a significant margin.
- Cityscapes → Dark Zurich Night: Outperforms TENT and Test-time BN methods.
- Efficiency: AUGCO is a simple and fast method, converging within a single epoch of adaptation. It only requires one additional forward pass per image for augmentation and updates only BN parameters.
Limitations and Future Work
- Reliability-Correctness Correlation: The effectiveness of AUGCO relies on the correlation between predictive consistency and correctness, which can vary across categories. Future work could explore modifying source training to improve this correlation.
- Slightly Slower than TENT: AUGCO requires an extra forward pass for augmentation and confidence thresholding, making it slightly slower than TENT.
- Potential for Silent Failure: Like all unsupervised methods, AUGCO can potentially fail silently. Further investigation into failure modes is needed for sensitive applications.
- Future Directions: The authors suggest exploring ways to improve the reliability measure and investigating source-equipped versions of their method. They also plan to release their code and pretrained models.
Summary updated