Cross Contrasting Feature Perturbation for Domain Generalization

Chenming Li, Daoan Zhang, Wen-Fong Huang, Jiang Zhang
2/14/2026

No official code found. Best implementation: hackmebroo/CCFP (11 stars, last commit 2024-05-20).

Abstract

Domain generalization (DG) aims to learn a robust model from source domains that generalize well on unseen target domains. Recent studies focus on generating novel domain samples or features to diversify distributions complementary to source domains. Yet, these approaches can hardly deal with the restriction that the samples synthesized from various domains can cause semantic distortion. In this paper, we propose an online one-stage Cross Contrasting Feature Perturbation (CCFP) framework to simulate domain shift by generating perturbed features in the latent space while regularizing the model prediction against domain shift. Different from the previous fixed synthesizing strategy, we design modules with learnable feature perturbations and semantic consistency constraints. In contrast to prior work, our method does not use any generative-based models or domain labels. We conduct extensive experiments on a standard DomainBed benchmark with a strict evaluation protocol for a fair comparison. Comprehensive experiments show that our method outperforms the previous state-of-the-art, and quantitative analyses illustrate that our approach can alleviate the domain shift problem in out-of-distribution (OOD) scenarios. https://github.com/hackmebroo/CCFP

View on arXivView PDF

Code Implementations(1)

hackmebroo/CCFPCommunity100%

ICCV 2023

111PythonAug 16, 20232 years ago

Similar Papers

Cite this paper

@article{li2026cross,
  title  = {Cross Contrasting Feature Perturbation for Domain Generalization},
  author = {Chenming Li and Daoan Zhang and Wen-Fong Huang and Jiang Zhang},
  year   = {2026},
  eprint = {2307.12502},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2307.12502},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.12502.svg)](https://codeofpaper.com/paper/2307.12502)

Discussion