Abstract
Single Domain Generalization (SDG) is a challenging task where a model must generalize to unseen target domains after being trained on only a single source domain. Traditional "blind" generalization methods often fail to account for specific target characteristics, leading to performance degradation in real-world deployments. This paper introduces Target-Oriented SDG (TO-SDG), a novel setting that utilizes simple textual descriptions of target environments to guide the generalization process. We propose STAR (Spectral TARget Alignment), a framework that leverages Vision-Language Models (VLMs) like CLIP to align source features with target semantics. STAR employs spectral filtering and distillation techniques to effectively bridge the domain gap. Our extensive evaluations on PACS, DomainNet, and Diverse-Weather benchmarks show that STAR consistently outperforms state-of-the-art methods, particularly in complex scenarios like adverse weather.
Introduction
A significant hurdle in computer vision is the domain shift between training and deployment environments. A model trained on high-quality daytime images often fails when faced with nighttime or foggy conditions. Single Domain Generalization (SDG) attempts to solve this by training on one source domain to perform well across multiple unknown targets.
Current SDG approaches typically rely on data augmentation or searching for domain-invariant features. However, these "blind" methods ignore a readily available and "free" signal: human knowledge. While obtaining images of every possible target environment is often impractical due to cost or privacy, we can easily describe these environments in natural language (e.g., "driving at night in the rain"). This paper explores how to effectively integrate these textual "hints" into the training pipeline to steer the model toward specific target distributions.
Methodology: The STAR Framework
The proposed STAR (Spectral TARget Alignment) framework is designed to re-orient the model's feature space using target-specific textual metadata. It consists of three core components:
1. Spectral Target Orientation (STO)
STO is the primary mechanism for aligning features. It utilizes a frozen CLIP text encoder to generate a "semantic anchor" from the target description.
- Re-centering: The source image features are shifted so their mean aligns with the text anchor, reducing source-specific bias.
- Spectral Projection: By applying Singular Value Decomposition (SVD), the framework identifies feature space directions that best align with the target description. Features are then projected onto this "target-aligned" subspace, effectively filtering out noise that is unique to the source domain.
2. Vision-Language Distillation (VLD)
To prevent the model from losing general semantic knowledge during target-specific tuning, STAR incorporates VLD. It distills knowledge from a frozen CLIP image encoder into the trainable backbone. This ensures the model maintains a latent space structure that is well-aligned with broad visual concepts.
3. Feature-Space Mixup (FSM)
FSM performs interpolation between original source features and the newly generated target-oriented features. This creates a smoother transition in the decision boundaries, enhancing the model's ability to generalize gracefully to the target domain.
Experimental Evaluation
The effectiveness of STAR was evaluated across three diverse benchmarks:
- PACS: A standard benchmark for domain generalization involving Art, Cartoon, Photo, and Sketch domains.
- DomainNet: A large-scale dataset with 345 classes across domains such as "Real," "Clipart," and "Quickdraw."
- Diverse-Weather: An object detection dataset focusing on urban scenes under various conditions like "Night Rainy" and "Day Foggy."
Key Results and Insights
STAR demonstrates superior performance across all evaluated tasks and datasets. In image classification on the PACS dataset, STAR achieved an average accuracy of 60.3%, surpassing the previous state-of-the-art method, PR-C, by 3.2%. On the large-scale DomainNet benchmark, it reached 30.0% average accuracy, outperforming AdvST (27.1%).
The framework shows particularly strong results in challenging object detection scenarios. As shown in the table below, STAR significantly improves mAP in adverse weather conditions compared to both standard baselines and recent domain adaptation methods.
In the "Night Rainy" scenario, which is notoriously difficult for vision models, STAR achieved 21.0 mAP, a substantial improvement over CLIP-Gap (18.7 mAP) and the Faster R-CNN baseline (12.4 mAP). These results highlight the power of using textual descriptions as a practical proxy for target domain data.
Conclusion and Future Directions
This research demonstrates that high-level textual metadata is an underutilized but highly effective resource for domain generalization. By using spectral filtering to isolate transferable features, STAR provides a robust way to navigate from a single source domain to a specific target.
Future work could address the reliance on manual descriptions by exploring automated prompt generation. Additionally, extending the framework to handle multiple target descriptions simultaneously or adapting it for larger Vision Transformer (ViT) architectures remains an open area for exploration.
Summary updated