Simulate, Refocus and Ensemble: An Attention-Refocusing Scheme for Domain Generalization

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wang, Ziyi, Gao, Zhi, Chen, Jin, Zhao, Qingjie, Wu, Xinxiao, Luo, Jiebo
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866908454307758080
author Wang, Ziyi
Gao, Zhi
Chen, Jin
Zhao, Qingjie
Wu, Xinxiao
Luo, Jiebo
author_facet Wang, Ziyi
Gao, Zhi
Chen, Jin
Zhao, Qingjie
Wu, Xinxiao
Luo, Jiebo
contents Domain generalization (DG) aims to learn a model from source domains and apply it to unseen target domains with out-of-distribution data. Owing to CLIP's strong ability to encode semantic concepts, it has attracted increasing interest in domain generalization. However, CLIP often struggles to focus on task-relevant regions across domains, i.e., domain-invariant regions, resulting in suboptimal performance on unseen target domains. To address this challenge, we propose an attention-refocusing scheme, called Simulate, Refocus and Ensemble (SRE), which learns to reduce the domain shift by aligning the attention maps in CLIP via attention refocusing. SRE first simulates domain shifts by performing augmentation on the source data to generate simulated target domains. SRE then learns to reduce the domain shifts by refocusing the attention in CLIP between the source and simulated target domains. Finally, SRE utilizes ensemble learning to enhance the ability to capture domain-invariant attention maps between the source data and the simulated target data. Extensive experimental results on several datasets demonstrate that SRE generally achieves better results than state-of-the-art methods. The code is available at: https://github.com/bitPrincy/SRE-DG.
format Preprint
id arxiv_https___arxiv_org_abs_2507_12851
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Simulate, Refocus and Ensemble: An Attention-Refocusing Scheme for Domain Generalization
Wang, Ziyi
Gao, Zhi
Chen, Jin
Zhao, Qingjie
Wu, Xinxiao
Luo, Jiebo
Computer Vision and Pattern Recognition
Domain generalization (DG) aims to learn a model from source domains and apply it to unseen target domains with out-of-distribution data. Owing to CLIP's strong ability to encode semantic concepts, it has attracted increasing interest in domain generalization. However, CLIP often struggles to focus on task-relevant regions across domains, i.e., domain-invariant regions, resulting in suboptimal performance on unseen target domains. To address this challenge, we propose an attention-refocusing scheme, called Simulate, Refocus and Ensemble (SRE), which learns to reduce the domain shift by aligning the attention maps in CLIP via attention refocusing. SRE first simulates domain shifts by performing augmentation on the source data to generate simulated target domains. SRE then learns to reduce the domain shifts by refocusing the attention in CLIP between the source and simulated target domains. Finally, SRE utilizes ensemble learning to enhance the ability to capture domain-invariant attention maps between the source data and the simulated target data. Extensive experimental results on several datasets demonstrate that SRE generally achieves better results than state-of-the-art methods. The code is available at: https://github.com/bitPrincy/SRE-DG.
title Simulate, Refocus and Ensemble: An Attention-Refocusing Scheme for Domain Generalization
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2507.12851