TL;DR
This paper tackles the challenge of domain generalization in semantic segmentation, where models trained on one set of data struggle to perform well on new, unseen data. They propose a novel framework combining a model-agnostic meta-learning training strategy with a target-specific normalization technique during testing, significantly improving generalization performance.
What Problem Does This Paper Address?
Semantic segmentation, the task of assigning a label to every pixel in an image, has seen great success. However, a major hurdle is the "domain shift" problem: models trained on data from one domain (e.g., sunny urban streets) often perform poorly when deployed in a different domain (e.g., rainy rural roads) due to variations in lighting, weather, and camera perspectives. Traditional approaches like Unsupervised Domain Adaptation (UDA) require unlabeled target domain data for retraining, which is often impractical. Domain Generalization (DG) aims to train a single model that can generalize to unseen domains without any target data during training. Existing DG methods for segmentation often rely on simple training paradigms that can overfit to source domains, and their normalization statistics are derived from source domains, further exacerbating the domain shift issue during testing.
Methods
The authors propose a two-pronged approach for domain generalization in semantic segmentation:
- Model-Agnostic Meta-Learning (MLDG) for Training: They adapt MLDG, a meta-learning framework, to the semantic segmentation task. This approach simulates domain shifts during training by creating episodic tasks. By training the model to perform well on a "meta-test" set after being fine-tuned on a "meta-train" set (both drawn from source domains), the model learns to be robust to domain variations and avoids overfitting to specific source domains.
- Target-Specific Normalization (TN) for Testing: During inference, instead of using statistics (mean and variance) from the source training data for normalization layers (like Batch Normalization), they propose using statistics computed directly from the target domain data. This allows the normalization to adapt to the specific characteristics of the unseen target domain.
- Image Bank with Style-Based Selection Policy: A key challenge with TN is obtaining accurate statistics when test images arrive one by one (batch size 1). To address this, they introduce an "Image Bank" that stores previously seen test images. A "style-based selection policy" then selects images from this bank that are stylistically similar to the current test image, using statistics from the early layers of ResNet as a proxy for style. These selected images are then used to compute more robust normalization statistics for the current image.
Datasets
The paper evaluates their method on five semantic segmentation datasets:
- Cityscapes (C): Large-scale real-world urban street scenes.
- GTA5 (G): Synthetic urban scenes generated from the GTA5 game.
- Synthia (S): Synthesized urban cityscapes.
- IDD (I): Diverse images from Indian roads.
- Mapillary (M): A large dataset of high-resolution street-level images from around the world.
All datasets share the same 19 semantic classes.
Key Insights and Ideas
- Meta-learning for Robustness: Applying meta-learning (MLDG) to semantic segmentation training is crucial for preventing overfitting to source domains and fostering generalization.
- Test-Time Adaptation is Key: Normalizing based on target domain statistics during testing (TN) is more effective than relying on source domain statistics, especially when combined with a robust training strategy.
- Image Bank for Accurate Statistics: When dealing with single-instance testing, an Image Bank with a style-based selection mechanism is vital for obtaining reliable normalization statistics, outperforming simple queue-based approaches.
- Synergy of MLDG and TN: The effectiveness of target-specific normalization is significantly amplified when used with a model trained via model-agnostic meta-learning. Simply applying TN to a standard training scheme does not yield the same benefits.
Key Results
- The proposed method achieves state-of-the-art performance on multiple benchmark datasets for domain generalization in semantic segmentation.
- Compared to a strong baseline (AGG), their method improves performance by up to 5.54% on Cityscapes.
- The "MLDG+SIB" (their full method) consistently outperforms other variants, demonstrating the effectiveness of each component. For instance, on the "G+S+I+M → C" task, their method achieves 57.66 mIoU, a significant improvement over the AGG baseline (55.95 mIoU).
- The Image Bank with style-based selection policy (SIB) shows improved performance over a simple queue-based Image Bank, especially when dealing with images from multiple domains.
- The method is shown to be effective across different backbone architectures (ResNet-50, DeepLabV3, HRNet).
Limitations and Future Work
- Inaccurate Statistics with Small Batch Size: While the Image Bank helps, obtaining perfectly accurate statistics with very small batch sizes (especially batch size 1) remains a challenge. The paper notes a trade-off between specificity and commonality with batch size.
- Inference Time: The proposed method, particularly with the Image Bank, increases inference time compared to standard testing.
- Future Work: The authors plan to further explore the reasons behind the observation that MLDG-trained models better leverage target-specific normalization and aim to develop improved solutions for DG semantic segmentation.
Summary updated