Saved in:
Bibliographic Details
Main Authors: Son, Ha Min, Zhao, Zhe, Rezaei, Shahbaz, Liu, Xin
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2508.21769
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912637396189184
author Son, Ha Min
Zhao, Zhe
Rezaei, Shahbaz
Liu, Xin
author_facet Son, Ha Min
Zhao, Zhe
Rezaei, Shahbaz
Liu, Xin
contents Evaluating domain generalization (DG) for foundational models like CLIP is challenging, as web-scale pretraining data potentially covers many existing benchmarks. Consequently, current DG evaluation may neither be sufficiently challenging nor adequately test genuinely unseen data scenarios. To better assess the performance of CLIP on DG in-the-wild, a scenario where CLIP encounters challenging unseen data, we consider two approaches: (1) evaluating on 33 diverse datasets with quantified out-of-distribution (OOD) scores after fine-tuning CLIP on ImageNet, and (2) using unlearning to make CLIP `forget' some domains as an approximation. We observe that CLIP's performance deteriorates significantly on more OOD datasets. To address this, we present CLIP-DCA (Disentangling Classification from enhanced domain Aware representations). Our approach is motivated by the observation that while standard domain invariance losses aim to make representations domain-invariant, this can be harmful to foundation models by forcing the discarding of domain-aware representations beneficial for generalization. We instead hypothesize that enhancing domain awareness is a prerequisite for effective domain-invariant classification in foundation models. CLIP-DCA identifies and enhances domain awareness within CLIP's encoders using a separate domain head and synthetically generated diverse domain data. Simultaneously, it encourages domain-invariant classification through disentanglement from the domain features. CLIP-DCA shows significant improvements within this challenging evaluation compared to existing methods, particularly on datasets that are more OOD.
format Preprint
id arxiv_https___arxiv_org_abs_2508_21769
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Domain Generalization in-the-Wild: Disentangling Classification from Domain-Aware Representations
Son, Ha Min
Zhao, Zhe
Rezaei, Shahbaz
Liu, Xin
Computer Vision and Pattern Recognition
Machine Learning
Evaluating domain generalization (DG) for foundational models like CLIP is challenging, as web-scale pretraining data potentially covers many existing benchmarks. Consequently, current DG evaluation may neither be sufficiently challenging nor adequately test genuinely unseen data scenarios. To better assess the performance of CLIP on DG in-the-wild, a scenario where CLIP encounters challenging unseen data, we consider two approaches: (1) evaluating on 33 diverse datasets with quantified out-of-distribution (OOD) scores after fine-tuning CLIP on ImageNet, and (2) using unlearning to make CLIP `forget' some domains as an approximation. We observe that CLIP's performance deteriorates significantly on more OOD datasets. To address this, we present CLIP-DCA (Disentangling Classification from enhanced domain Aware representations). Our approach is motivated by the observation that while standard domain invariance losses aim to make representations domain-invariant, this can be harmful to foundation models by forcing the discarding of domain-aware representations beneficial for generalization. We instead hypothesize that enhancing domain awareness is a prerequisite for effective domain-invariant classification in foundation models. CLIP-DCA identifies and enhances domain awareness within CLIP's encoders using a separate domain head and synthetically generated diverse domain data. Simultaneously, it encourages domain-invariant classification through disentanglement from the domain features. CLIP-DCA shows significant improvements within this challenging evaluation compared to existing methods, particularly on datasets that are more OOD.
title Domain Generalization in-the-Wild: Disentangling Classification from Domain-Aware Representations
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2508.21769