Papers › Attracting and Dispersing: A Simple Approach for Source-free Domain Adaptation

Attracting and Dispersing: A Simple Approach for Source-free Domain Adaptation

9 May 2022arXiv:2205.04183archive 2025-07-28

Shiqi Yang, Yaxing Wang, Kai Wang, Shangling Jui, Joost Van de Weijer

We propose a simple but effective source-free domain adaptation (SFDA) method. Treating SFDA as an unsupervised clustering problem and following the intuition that local neighbors in feature space should have more similar predictions than other features, we propose to optimize an objective of prediction consistency. This objective encourages local neighborhood features in feature space to have similar predictions while features farther away in feature space have dissimilar predictions, leading to efficient feature clustering and cluster assignment simultaneously. For efficient training, we seek to optimize an upper-bound of the objective resulting in two simple terms. Furthermore, we relate popular existing methods in domain adaptation, source-free domain adaptation and contrastive learning via the perspective of discriminability and diversity. The experimental results prove the superiority of our method, and our method can be adopted as a simple but strong baseline for future research in SFDA. Our method can be also adapted to source-free open-set and partial-set DA which further shows the generalization ability of our method. Code is available in https://github.com/Albert0147/AaD_SFDA.

PaperPDFCodeCode 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="2205.04183")

Code

Syntology Ran 14 of 20 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 2 ran · honoured contract; 6 ran · our draft was wrong; 1 ran · fixture could not drive it; 5 ran with no contract checked.

By repository: official repository: 19 samples from 1 repository, 13 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Albert0147/AaD_SFDA 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

20 samples harvested; 14 ran; 2 honoured the contract we drafted; 6 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.

2ran · honoured contract
6ran · our draft was wrong
1ran · fixture could not drive it
5ran
6unverified

Licence: 20 of the 20 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 albert0147/aad_sfda. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

Entropy albert0147/aad_sfda/tar_adaptation.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 94b5622f0aa7add1 · report
ImageList Albert0147/AaD_SFDA/tar_adaptation.py official repository ran no licence file found · pointer only · 29a200f471d3e584 · report
ImageList_idx Albert0147/AaD_SFDA/tar_adaptation.py official repository ran no licence file found · pointer only · 2656e8041cf0976a · report
data_load Albert0147/AaD_SFDA/tar_adaptation.py official repository ran no licence file found · pointer only · c21ea96c206930a5 · report
entropy albert0147/aad_sfda/snd.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 1b0bf9bd060bf1a1 · report
feat_bootleneck Albert0147/AaD_SFDA/tar_adaptation.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · bc18e428d402b43f · report
feat_classifier Albert0147/AaD_SFDA/tar_adaptation.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · b399adf09d082dd0 · report
image_test Albert0147/AaD_SFDA/tar_adaptation.py official repository ran · our draft was wrong no licence file found · pointer only · 6e4265b7f707b718 · report
image_train Albert0147/AaD_SFDA/tar_adaptation.py official repository ran · our draft was wrong no licence file found · pointer only · 35c2d572ebd185f5 · report
l_loader Albert0147/AaD_SFDA/tar_adaptation.py official repository ran · honoured contract no licence file found · pointer only · edd7184ac144c4fa · report
lr_scheduler albert0147/aad_sfda/tar_adaptation.py official repository ran · our draft was wrong no licence file found · pointer only · 0b7ffc9f8b77529c · report
neighbor_density albert0147/aad_sfda/snd.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · d65e3432f6044080 · report
op_copy albert0147/aad_sfda/tar_adaptation.py official repository ran · our draft was wrong no licence file found · pointer only · 93a11f62e4a129f0 · report
ResBase Albert0147/AaD_SFDA/tar_adaptation.py official repository unverified no licence file found · pointer only · 021396acc21d576b · report
cal_acc Albert0147/AaD_SFDA/tar_adaptation.py official repository unverified no licence file found · pointer only · d1a7084d06a46573 · report
init_weights Albert0147/AaD_SFDA/tar_adaptation.py official repository unverified no licence file found · pointer only · be479145bbff6328 · report
make_dataset Albert0147/AaD_SFDA/tar_adaptation.py official repository unverified no licence file found · pointer only · 2301055cb33836bc · report
test_and_nd albert0147/aad_sfda/snd.py official repository unverified no licence file found · pointer only · 2915c52d644c501d · report
train_target Albert0147/AaD_SFDA/tar_adaptation.py official repository unverified no licence file found · pointer only · 95d25d047e1cb25e · report
rgb_loader identical code first harvested elsewhere ran · honoured contract licence of this copy not recorded · 2c5ce24ea2b5d2a4 · report

Tasks

ClusteringDiversityDomain AdaptationSource-Free Domain Adaptation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Contrastive Learning

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