Abstract
Universal Domain Adaptation (UniDA) requires models to adapt to target domains where both visual styles and category sets may differ from the source. Traditional approaches often rely on clustering in continuous image feature spaces, which are susceptible to domain-specific noise and lack semantic grounding. We propose TArget Semantics Clustering (TASC), a framework that anchors semantic centers in a discrete text representation space. By leveraging the robust alignment of Vision-Language Models like CLIP, TASC identifies optimal textual descriptors for target data through a greedy search. Combined with a novel Universal Maximum Similarity (UniMS) scoring function, the method achieves state-of-the-art performance across major benchmarks, significantly improving the detection of target-private "unknown" classes.
Introduction
In the field of Universal Domain Adaptation (UniDA), the primary challenge lies in bridging the gap between a labeled source domain and an unlabeled target domain under two simultaneous shifts: domain shift (variations in visual appearance) and category shift (mismatches in the set of classes). Existing methods typically attempt to align domains by clustering target image features in a continuous embedding space. However, these features often carry domain-specific "noise"—such as lighting or texture—that can bias the resulting clusters. Furthermore, determining the correct number of clusters (semantic granularity) in an unconstrained space is inherently difficult, often leading to poor alignment of shared classes and failure to isolate unknown categories.
As illustrated in Figure 1, unconstrained continuous spaces allow semantic centers to drift towards domain-specific biases. In contrast, a constrained discrete space—grounded in textual representations—provides stable anchors that are inherently more robust to visual style changes.
Methodology: TArget Semantics Clustering (TASC)
The proposed TASC framework operates in two primary stages: discrete optimization for semantic center discovery and model refinement.
1. Greedy Search in Discrete Text Space
Rather than allowing cluster centers to be arbitrary vectors, TASC restricts them to a set of discrete text embeddings. The search space includes all source class names and a large auxiliary library of nouns derived from WordNet. A greedy search algorithm is employed to select the subset of nouns that best characterizes the target data's structure. This process utilizes a "hidden state vector" to automatically estimate the number of private classes in the target domain, effectively regularizing the clusters to be semantically meaningful and preventing over-clustering.
2. Model Refinement and UniMS
Once the textual centers are identified, the model—based on a CLIP architecture—is fine-tuned using Low-Rank Adaptation (LoRA). The optimization objective focuses on maximizing the mutual information between target images and the discovered text embeddings while preserving performance on the source domain.
To handle category shifts during inference, we introduce Universal Maximum Similarity (UniMS). Unlike standard entropy-based methods that can be brittle under extreme shifts, UniMS weights the similarity scores between images and text centers based on the model's certainty. By explicitly modeling the probability of a sample belonging to a common class versus a target-private class, UniMS provides a more robust mechanism for "unknown" detection.
Experimental Results
TASC was evaluated across four major benchmarks: Office, Office-Home, VisDA, and DomainNet. The experiments covered various scenarios, including Closed-set (CDA), Partial (PDA), Open-set (ODA), and Open-Partial (OPDA) domain adaptation.
The results demonstrate that TASC consistently outperforms existing state-of-the-art (SOTA) methods. Notably, on large-scale benchmarks like VisDA and DomainNet, TASC achieved performance gains of 11.3% and 6.0%, respectively. A key strength of the approach is its robustness; while previous methods often specialized in either Open-set or Partial DA, TASC maintains high accuracy across all category shift scenarios without requiring per-scenario hyperparameter tuning. Ablation studies further highlight the efficacy of the UniMS scoring function, which alone provided a significant accuracy boost on the Office dataset.
Conclusion
TASC represents a paradigm shift in Universal Domain Adaptation by moving from unconstrained image-based clustering to semantically grounded text-based discovery. By using text as an anchor, the model overcomes the limitations of noisy visual features and provides a principled way to estimate category granularity. The combination of discrete optimization and entropy-aware scoring sets a new standard for robustness in UniDA, with potential applications extending to other cross-domain tasks such as object detection and segmentation.
Summary updated