CODA: Generalizing to Open and Unseen Domains with Compaction and Disambiguation
Chaoqi Chen, Luyao Tang, Yue Huang, Xiaoguang Han, Yizhou Yu
Abstract
The generalization capability of machine learning systems degenerates notably when the test distribution drifts from the training distribution. Recently, Domain Generalization (DG) has been gaining momentum in enabling machine learning models to generalize to unseen domains. However, most DG methods assume that training and test data share an identical label space, ignoring the potential unseen categories in many real-world applications. In this paper, we delve into a more general but difficult problem termed Open Test-Time DG (OTDG), where both domain shift and open class may occur on the unseen test data. We propose Compaction and Disambiguation (CODA), a novel two-stage framework for learning compact representations and adapting to open classes in the wild. To meaningfully regularize the model’s decision boundary, CODA introduces virtual unknown classes and optimizes a new training objective to insert unknowns into the latent space by compacting the embedding space of source known classes. To adapt target samples to the source model, we then disambiguate the decision boundaries between known and unknown classes with a test-time training objective, mitigating the adaptivity gap and catastrophic forgetting challenges. Experiments reveal that CODA can significantly outperform the previous best method on standard DG datasets and harmonize the classification accuracy between known and unknown classes.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext c9576a36-1057-4862-a375-ae2eebf55a14Cited by top-tier papers8
- AdaNeg: Adaptive Negative Proxy Guided OOD Detection with Vision-Language ModelsYabin Zhang, Lei ZhangNeurIPS 2024 · 30 citations
- LFME: A Simple Framework for Learning from Multiple Experts in Domain GeneralizationLiang Chen, Yong Zhang, Yibing Song, Zhiqiang Shen et al.NeurIPS 2024 · 15 citations
- Out-of-Distribution Detection with Prototypical Outlier ProxyMingrong Gong, Chaoqi Chen, Qingqiang Sun, Yue Wang et al.AAAI 2025 · 8 citations
- Reconstruct and Match: Out-of-Distribution Robustness via Topological HomogeneityChaoqi Chen, Luyao Tang, Hui HuangNeurIPS 2024 · 2 citations
- Mixture of Prototypes for Test-time Adaptive SegmentationGuangrui Li, Zhengyu Zhu, Yongxin GeCVPR 2026 · 1 citation
Builds on45
- Energy-based Out-of-distribution DetectionWeitang Liu, Xiaoyun Wang, John D. Owens, Yixuan LiNeurIPS 2020 · 2,213 citations
- Tent: Fully Test-Time Adaptation by Entropy MinimizationDequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno A. Olshausen et al.ICLR 2021 · 1,731 citations
- Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain AdaptationJian Liang, Dapeng Hu, Jiashi FengICML 2020 · 1,624 citations
- Test-Time Training with Self-Supervision for Generalization under Distribution ShiftsYu Sun, Xiaolong Wang, Zhuang Liu, John Miller et al.ICML 2020 · 1,220 citations
- Domain Generalization with MixStyleKaiyang Zhou, Yongxin Yang, Yu Qiao, Tao XiangICLR 2021 · 986 citations
Related papers
- Back to Source: Open-Set Continual Test-Time Adaptation via Domain CompensationYingkai Yang, Chaoqi Chen, Hui HuangCVPR 2026 · 1 citation
- Complementary Domain Adaptation and Generalization for Unsupervised Continual Domain Shift LearningWonguk Cho, Jinha Park, Taesup KimICCV 2023 · 17 citations
- ASGS: Single-Domain Generalizable Open-Set Object Detection via Adaptive Subgraph SearchingYuxuan Yuan, Luyao Tang, Yixin Chen, Chaoqi Chen et al.ICCV 2025 · 1 citation
- Open Domain Generalization with Domain-Augmented Meta-LearningYang Shu, Zhangjie Cao, Chenyu Wang, Jianmin Wang et al.CVPR 2021
- Open-World Semi-Supervised LearningKaidi Cao, Maria Brbic, Jure LeskovecICLR 2022 · 246 citations
