PiCaZo: Pixel-Aligned Contrastive Learning for Zero-Shot Domain Adaptation

Aniruddh Sikdar, Arya Kishor, Ishika Kadam, Suresh SundaramWorkshops @ CVPR 2025

This research introduces PiCaZo, a framework designed to bridge the gap between clear-weather training data and the unpredictable reality of real-world driving conditions—all without requiring target-domain images during training. By leveraging natural language descriptions to guide model adaptation, PiCaZo establishes a new benchmark for Zero-Shot Domain Adaptation (ZSDA) in semantic segmentation.

The Challenge of Zero-Shot Adaptation

Deep learning models for semantic segmentation are notoriously brittle. A model trained on the sunny streets of Germany (e.g., the Cityscapes dataset) often fails catastrophically when encountering heavy rain, thick fog, or nighttime conditions. While standard Unsupervised Domain Adaptation (UDA) addresses this using unlabeled target images, obtaining such data is often impractical due to privacy concerns, costs, or the rarity of specific conditions.

Zero-Shot Domain Adaptation (ZSDA) attempts to solve this by using text prompts (e.g., "driving in heavy fog") to guide the model. However, existing ZSDA methods suffer from two major gaps:

  1. Domain Dependency: Previous state-of-the-art methods require a "Domain ID" at inference time to select a specific model for rain, snow, or fog, which is unrealistic for dynamic environments.
  2. Coarse Features: CLIP-based models excel at global image understanding but struggle with the pixel-level precision required for segmentation because their pre-training is image-level rather than pixel-level.

The PiCaZo Framework

PiCaZo (Pixel-aligned Contrastive learning Approach for ZerO-shot adaptation) introduces a two-stage training pipeline to address these limitations.

Stage 1: Zero-Shot Feature Augmentation

Instead of keeping the CLIP vision encoder frozen, the authors introduce VOLT-PIN (Vision-Only, Locked-Text with PIN). This stage fine-tunes the entire vision backbone on source data while keeping the text encoder frozen.

  • Multi-Perspective Mining: The model "imagines" multiple target styles (rain, fog, night) simultaneously during training.
  • Contrastive NightVision Learning (CNL): To address the significant performance drop in nighttime scenes, a supervised contrastive loss is used to cluster pixels of the same class more tightly in the night-domain embedding space.

Stage 2: Model Adaptation

Once features are refined, the model undergoes Contrastive Domain Alignment (CDA) and Fog-Adaptive Contrastive Training (FACT). CDA aligns the features of "text-rectified" rain and fog, ensuring the model treats similar objects consistently across different weather types. FACT specifically targets the decoder, refining how it handles mined fog features to maintain sharp segmentation masks despite low visibility.

Experimental Evaluation

The authors evaluated PiCaZo on several rigorous benchmarks, using Cityscapes as the source and evaluating on ACDC (Fog, Rain, Snow, Night), MUSES, and GTA5 (sim-to-real generalization).

Performance comparison of PiCaZo against state-of-the-art methods on Cityscapes and ACDC datasets.

Key Results

  • State-of-the-Art Performance: PiCaZo outperforms the previous leading method (PODA) by 2.96% mIoU and ULDA by 1.82% mIoU on the ACDC dataset.
  • Single Model Efficiency: Unlike previous methods that require separate models for each weather type, PiCaZo utilizes a single model for all conditions without needing a Domain ID at test time.
  • Robustness: Even when provided with irrelevant prompts, PiCaZo's underlying feature alignment allows it to maintain better performance than source-only baselines, proving its learned representations are inherently more robust.
Qualitative segmentation results comparing PiCaZo with PODA across adverse weather conditions.

Conclusion and Future Work

PiCaZo demonstrates that strategic, pixel-aligned fine-tuning of foundational models like CLIP is essential for moving from global image understanding to precise local segmentation. By forcing the model to see the same object through multiple weather "lenses" simultaneously, it learns robust, domain-invariant representations. Future work may extend this approach to video-based domain adaptation to exploit temporal consistency for even greater stability in dynamic weather conditions.

Summary updated

BibTeX
@inproceedings{sikdar2025picazo,
  author = {Aniruddh Sikdar and Arya Kishor and Ishika Kadam and Suresh Sundaram},
  title = {{PiCaZo: Pixel-Aligned Contrastive Learning for Zero-Shot Domain Adaptation}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure