Introduction
Semantic segmentation models often struggle with generalization. A model trained on synthetic datasets like GTA frequently fails when deployed in complex, real-world environments such as those found in the Mapillary Vistas or India Driving Dataset (IDD). While standard Unsupervised Domain Adaptation (UDA) techniques attempt to bridge the "image-level" gap—differences in lighting, weather, or sensor noise—they typically operate under a closed-set assumption. This assumption presumes that the source and target domains share an identical label space.
In practice, however, researchers often encounter a label-level taxonomy gap. A target domain may require more granular categories (e.g., splitting a generic "vehicle" class into "car," "truck," and "bus") or introduce entirely novel classes. DynAlign, a framework accepted at ICLR 2025, addresses this challenge by enabling fully unsupervised taxonomy-adaptive domain adaptation.
The Taxonomy Gap in UDA
Most UDA research focuses on visual alignment, but the discrepancy in how different datasets categorize the world is a significant hurdle. For instance, a model trained on a dataset that only recognizes "road" will be unable to distinguish "sidewalks" or "lane markings" in a more detailed target environment.
Existing solutions for this problem often rely on "open-set" methods, which can identify unknown regions but cannot classify them, or "taxonomy-adaptive" methods that require few-shot supervision. DynAlign removes the need for manual target-domain annotations by leveraging the "world knowledge" embedded in large-scale foundation models (FMs).
The DynAlign Framework
DynAlign employs a three-stage pipeline that integrates domain-specific learning with the reasoning and zero-shot capabilities of foundation models.
1. Domain-Specific Knowledge (The Anchor)
The process begins with a standard UDA model (such as HRDA) trained to align source and target distributions. This model provides coarse, "anchor" predictions in the source label space. For example, it might identify a region as "road-like" based on the source taxonomy.
2. Semantic Taxonomy Mapping
To bridge the label gap, DynAlign uses a Large Language Model (GPT-4) as a reasoning engine. The LLM maps source labels to potential target labels (e.g., mapping road to a set containing {road, sidewalk, lane marking}). By generating context-aware descriptions, the LLM enriches the semantic search space for subsequent classification.
3. Visual Prior Knowledge and Fusion
To refine the coarse predictions, the framework utilizes two specialized foundation models:
- Segment Anything Model (SAM): SAM generates high-quality, class-agnostic mask proposals, ensuring that object boundaries are precise even if the initial label is coarse.
- CLIP: CLIP reclassifies the SAM-generated masks. To overcome CLIP's typical struggles with dense prediction, the authors implement multi-scale visual feature extraction—capturing both the object and its surrounding context—and compare these against the LLM-generated text features.
Knowledge Fusion is the critical final step. The coarse UDA prediction acts as a spatial constraint, narrowing the candidate classes for CLIP. If the UDA model identifies a region as "road," CLIP only needs to distinguish between the specific sub-categories of "road" defined in the target taxonomy, significantly reducing the likelihood of false positives.
Experimental Results
The authors evaluated DynAlign on two rigorous synthetic-to-real benchmarks: GTA → Mapillary Vistas (19 to 45 classes) and GTA → IDD (adapting to complex Indian urban scenes).
- Mapillary Vistas: DynAlign achieved 36.7 mIoU, outperforming the "HRDA + Grounded-SAM" baseline of 32.9 mIoU.
- IDD: The framework reached 41.7 mIoU. Notably, on "unknown" or novel classes, it achieved 34.3 mIoU, a massive improvement over the baseline's 16.1 mIoU.
- Inference Efficiency: While the full pipeline (SAM + CLIP + LLM) is computationally intensive, the authors demonstrated that it can be used to generate high-quality pseudo-labels. A student model (Mask2Former) trained on these labels achieves 38.9 mIoU with an inference time of just 0.3 seconds per image, making the approach viable for practical applications.
Insights and Future Directions
DynAlign demonstrates that foundation models are most effective when used as a complement to, rather than a replacement for, domain-specific models. The UDA model provides the necessary spatial anchoring, while the FMs provide semantic granularity.
Despite its success, the framework has limitations. The taxonomy mapping currently benefits from some human refinement to ensure contextual accuracy, and the initial pseudo-label generation phase remains computationally expensive. Future work may explore fully automating the taxonomy mapping and extending the framework to domains beyond urban driving, such as medical or satellite imagery.
Conclusion
DynAlign represents a significant step toward truly autonomous perception systems. By bridging both the visual and taxonomic gaps without human intervention, it paves the way for models that can adapt to the diverse and evolving ways we categorize the real world.
Summary updated