PCL: Proxy-Based Contrastive Learning for Domain Generalization
Abstract
Domain generalization refers to the problem of training a model from a collection of different source domains that can directly generalize to the unseen target domains. A promising solution is contrastive learning, which attempts to learn domain-invariant representations by exploiting rich semantic relations among sample-to-sample pairs from different domains. A simple approach is to pull positive sample pairs from different domains closer while pushing other negative pairs further apart. In this paper, we find that directly applying contrastive-based methods (e.g., supervised contrastive learning) are not effective in domain generalization. We argue that aligning positive sample-to-sample pairs tends to hinder the model generalization due to the significant distribution gaps between different domains. To address this issue, we propose a novel proxy-based contrastive learning method, which replaces the original sample-to-sample relations with proxy-to-sample relations, significantly alleviating the positive alignment issue. Experiments on the four standard benchmarks demonstrate the effectiveness of the proposed method. Furthermore, we also consider a more complex scenario where no ImageNet pre-trained models are provided. Our method consistently shows better performance.
Cite
Text
Yao et al. "PCL: Proxy-Based Contrastive Learning for Domain Generalization." Conference on Computer Vision and Pattern Recognition, 2022. doi:10.1109/CVPR52688.2022.00696Markdown
[Yao et al. "PCL: Proxy-Based Contrastive Learning for Domain Generalization." Conference on Computer Vision and Pattern Recognition, 2022.](https://mlanthology.org/cvpr/2022/yao2022cvpr-pcl/) doi:10.1109/CVPR52688.2022.00696BibTeX
@inproceedings{yao2022cvpr-pcl,
title = {{PCL: Proxy-Based Contrastive Learning for Domain Generalization}},
author = {Yao, Xufeng and Bai, Yang and Zhang, Xinyun and Zhang, Yuechen and Sun, Qi and Chen, Ran and Li, Ruiyu and Yu, Bei},
booktitle = {Conference on Computer Vision and Pattern Recognition},
year = {2022},
pages = {7097-7107},
doi = {10.1109/CVPR52688.2022.00696},
url = {https://mlanthology.org/cvpr/2022/yao2022cvpr-pcl/}
}