Papers › Cross Contrasting Feature Perturbation for Domain Generalization

Cross Contrasting Feature Perturbation for Domain Generalization

24 Jul 2023ICCV 2023 1arXiv:2307.12502archive 2025-07-28

Chenming Li, Daoan Zhang, Wenjian Huang, JianGuo Zhang

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2307.12502")

Code

Syntology Ran 17 of 25 code samples harvested from 2 repositories linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 3 ran · fixture could not drive it; 10 ran with no contract checked.

By repository: official repository: 25 samples from 2 repositories, 17 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

hackmebroo/ccfp officialmentioned in papermentioned on GitHubpytorch report
hackmebroo/cross-contrasting-feature-perturbation-for-domain-generalization officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

25 samples harvested; 17 ran; 1 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
3ran · fixture could not drive it
10ran
8unverified

Licence: 25 of the 25 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Algorithm hackmebroo/cross-contrasting-feature-perturbation-for-domain-generalization/algorithms.py official repository ran no licence file found · pointer only · d4ab1855fefe42b4 · report
DistributionUncertainty hackmebroo/cross-contrasting-feature-perturbation-for-domain-generalization/algorithms.py official repository ran fingerprinted no licence file found · pointer only · 81427628d9da40b5 · report
LDP hackmebroo/cross-contrasting-feature-perturbation-for-domain-generalization/algorithms.py official repository ran no licence file found · pointer only · d797b51129873a03 · report
MNIST_CNN hackmebroo/cross-contrasting-feature-perturbation-for-domain-generalization/algorithms.py official repository ran no licence file found · pointer only · f96170b86db20ebd · report
MNIST_CNN_tea hackmebroo/cross-contrasting-feature-perturbation-for-domain-generalization/algorithms.py official repository ran fingerprinted no licence file found · pointer only · f9d8f82d3edc5026 · report
PermuteAdaptiveInstanceNorm2d hackmebroo/cross-contrasting-feature-perturbation-for-domain-generalization/algorithms.py official repository ran fingerprinted no licence file found · pointer only · 04b8476374907676 · report
adaptive_instance_normalization hackmebroo/ccfp/networks.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 7d65990d684d50e8 · report
calc_mean_std hackmebroo/ccfp/networks.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 7dc5cc1a5cc56434 · report
conv3x3 hackmebroo/ccfp/resnet_mixstyle.py official repository ran · our draft was wrong no licence file found · pointer only · fac5364e2f53c6db · report
distance hackmebroo/ccfp/lib/misc.py official repository ran · honoured contract no licence file found · pointer only · fbb8c05a0a7696ec · report
format_mean hackmebroo/ccfp/collect_results.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · d6d6cc53be32629d · report
get_test_records hackmebroo/ccfp/model_selection.py official repository ran · our draft was wrong no licence file found · pointer only · 53fac8d8d949e72b · report
hashable hackmebroo/ccfp/lib/query.py official repository ran fingerprinted no licence file found · pointer only · 71a3a61ceed99bf3 · report
l2_between_dicts hackmebroo/ccfp/lib/misc.py official repository ran no licence file found · pointer only · 1fdaff04251a0d51 · report
make_selector_fn hackmebroo/ccfp/lib/query.py official repository ran no licence file found · pointer only · 2f8af5779e1edcb6 · report
proj hackmebroo/ccfp/lib/misc.py official repository ran · our draft was wrong no licence file found · pointer only · 17202e0de9779f70 · report
remove_batch_norm_from_resnet hackmebroo/ccfp/networks.py official repository ran no licence file found · pointer only · 196cab71d7129d62 · report
CCFP hackmebroo/cross-contrasting-feature-perturbation-for-domain-generalization/algorithms.py official repository unverified no licence file found · pointer only · f1069937af8d8db4 · report
ERM hackmebroo/cross-contrasting-feature-perturbation-for-domain-generalization/algorithms.py official repository unverified no licence file found · pointer only · 50d94f70eea6617f · report
Featurizer hackmebroo/cross-contrasting-feature-perturbation-for-domain-generalization/algorithms.py official repository unverified no licence file found · pointer only · 9e043048978eb855 · report
ResNet hackmebroo/cross-contrasting-feature-perturbation-for-domain-generalization/algorithms.py official repository unverified no licence file found · pointer only · 05738dcd81fa595f · report
ResNet_tea hackmebroo/cross-contrasting-feature-perturbation-for-domain-generalization/algorithms.py official repository unverified no licence file found · pointer only · 675b4e8d991b4e8d · report
get_algorithm_class hackmebroo/ccfp/algorithms.py official repository unverified no licence file found · pointer only · b0bc80b1655a6802 · report
get_dataset_class hackmebroo/ccfp/datasets.py official repository unverified no licence file found · pointer only · d0ea85d74c20dea9 · report
num_environments hackmebroo/ccfp/datasets.py official repository unverified no licence file found · pointer only · 73f32252eedba6a4 · report

Tasks

Domain Generalization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections