SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.04183 · NeurIPS · 2022

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

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

arXiv · PDF · Open in the Atlas

Code that ran

14 of 20 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 8 failures of our instrument; 6 no recorded run), measured 2026-11-22; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2205.04183.json · badge: /api/ran/2205.04183.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
albert0147/aad_sfda canonical (classifier label)
classifier basis: classifier_2025
5 ran · 1 no recorded run
Albert0147/AaD_SFDA marked official in Papers with Code
Papers with Code archive
8 ran · 5 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
Entropy Ran
ran; our contract draft was wrong, not the code
albert0147/aad_sfda/tar_adaptation.py
pointer only (licence: NONE) · get_code("94b5622f0aa7add1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, albert0147/aad_sfda when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ImageList Ran
ran on a synthesized input · constructed an object; no result was computed
Albert0147/AaD_SFDA/tar_adaptation.py
pointer only (licence: NONE) · get_code("29a200f471d3e584")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Albert0147/AaD_SFDA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ImageList_idx Ran
ran on a synthesized input · constructed an object; no result was computed
Albert0147/AaD_SFDA/tar_adaptation.py
pointer only (licence: NONE) · get_code("2656e8041cf0976a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Albert0147/AaD_SFDA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

data_load Ran
ran; our contract draft was wrong, not the code
Albert0147/AaD_SFDA/tar_adaptation.py
pointer only (licence: NONE) · get_code("c21ea96c206930a5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Albert0147/AaD_SFDA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

entropy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
albert0147/aad_sfda/snd.py
pointer only (licence: NONE) · get_code("1b0bf9bd060bf1a1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, albert0147/aad_sfda when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

feat_bootleneck Ran
ran on a synthesized input · constructed an object; no result was computed
Albert0147/AaD_SFDA/tar_adaptation.py
pointer only (licence: NONE) · get_code("bc18e428d402b43f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Albert0147/AaD_SFDA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

feat_classifier Ran
ran on a synthesized input · constructed an object; no result was computed
Albert0147/AaD_SFDA/tar_adaptation.py
pointer only (licence: NONE) · get_code("b399adf09d082dd0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Albert0147/AaD_SFDA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

image_test Ran
ran; our contract draft was wrong, not the code
Albert0147/AaD_SFDA/tar_adaptation.py
pointer only (licence: NONE) · get_code("6e4265b7f707b718")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Albert0147/AaD_SFDA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

image_train Ran
ran; our contract draft was wrong, not the code
Albert0147/AaD_SFDA/tar_adaptation.py
pointer only (licence: NONE) · get_code("35c2d572ebd185f5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Albert0147/AaD_SFDA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

l_loader Ran
ran, honoured the contract we drafted
Albert0147/AaD_SFDA/tar_adaptation.py
pointer only (licence: NONE) · get_code("edd7184ac144c4fa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Albert0147/AaD_SFDA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

lr_scheduler Ran
ran; our contract draft was wrong, not the code
albert0147/aad_sfda/tar_adaptation.py
pointer only (licence: NONE) · get_code("0b7ffc9f8b77529c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, albert0147/aad_sfda when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

neighbor_density Ran
ran; our contract draft was wrong, not the code
albert0147/aad_sfda/snd.py
pointer only (licence: NONE) · get_code("d65e3432f6044080")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, albert0147/aad_sfda when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

op_copy Ran
ran; our contract draft was wrong, not the code
albert0147/aad_sfda/tar_adaptation.py
pointer only (licence: NONE) · get_code("93a11f62e4a129f0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, albert0147/aad_sfda when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

rgb_loader Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from uta-smile/TVT
pointer only · get_code("2c5ce24ea2b5d2a4")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ResBase Not yet run
unverified (harvested, no recorded run)
Albert0147/AaD_SFDA/tar_adaptation.py
pointer only (licence: NONE) · get_code("021396acc21d576b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Albert0147/AaD_SFDA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

cal_acc Not yet run
unverified (harvested, no recorded run)
Albert0147/AaD_SFDA/tar_adaptation.py
pointer only (licence: NONE) · get_code("d1a7084d06a46573")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Albert0147/AaD_SFDA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

init_weights Not yet run
unverified (harvested, no recorded run)
Albert0147/AaD_SFDA/tar_adaptation.py
pointer only (licence: NONE) · get_code("be479145bbff6328")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Albert0147/AaD_SFDA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

make_dataset Not yet run
unverified (harvested, no recorded run)
Albert0147/AaD_SFDA/tar_adaptation.py
pointer only (licence: NONE) · get_code("2301055cb33836bc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Albert0147/AaD_SFDA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

test_and_nd Not yet run
unverified (harvested, no recorded run)
albert0147/aad_sfda/snd.py
pointer only (licence: NONE) · get_code("2915c52d644c501d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, albert0147/aad_sfda when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

train_target Not yet run
unverified (harvested, no recorded run)
Albert0147/AaD_SFDA/tar_adaptation.py
pointer only (licence: NONE) · get_code("95d25d047e1cb25e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Albert0147/AaD_SFDA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 15 are also present in other papers whose code we hold (13 with at least one paper dated earlier, 0 the same month, 14 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
op_copy
brick of this paper's assembly: helper
21 other papers
6 dated earlier, 14 later, 1 same year, order not determinable · 5 only as an assembly brick
2002.08546 (2020-02)
Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
2012.07297 (2020-12)
Source Data-absent Unsupervised Domain Adaptation through Hypothesis Transfer and Labeling Transfer
2104.01539 (2021-04)
DINE: Domain Adaptation from Single and Multiple Black-box Predictors
and 18 more not named here
rgb_loader
brick of this paper's assembly: helper
19 other papers
8 dated earlier, 10 later, 1 same year, order not determinable · 6 only as an assembly brick
2003.02541 (2020-03)
A Balanced and Uncertainty-aware Approach for Partial Domain Adaptation
2104.01539 (2021-04)
DINE: Domain Adaptation from Single and Multiple Black-box Predictors
2104.01845 (2021-04)
Unsupervised Multi-source Domain Adaptation Without Access to Source Data
and 16 more not named here
lr_scheduler
brick of this paper's assembly: scheduler
18 other papers
6 dated earlier, 11 later, 1 same year, order not determinable · 3 only as an assembly brick
2002.08546 (2020-02)
Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
2012.07297 (2020-12)
Source Data-absent Unsupervised Domain Adaptation through Hypothesis Transfer and Labeling Transfer
2104.01539 (2021-04)
DINE: Domain Adaptation from Single and Multiple Black-box Predictors
and 15 more not named here
l_loader
brick of this paper's assembly: helper
17 other papers
6 dated earlier, 10 later, 1 same year, order not determinable · 5 only as an assembly brick
2003.02541 (2020-03)
A Balanced and Uncertainty-aware Approach for Partial Domain Adaptation
2104.01539 (2021-04)
DINE: Domain Adaptation from Single and Multiple Black-box Predictors
2104.01845 (2021-04)
Unsupervised Multi-source Domain Adaptation Without Access to Source Data
and 14 more not named here
Entropy 16 other papers
6 dated earlier, 9 later, 1 same year, order not determinable · 4 only as an assembly brick
2007.14612 (2020-07)
Clarinet: A One-step Approach Towards Budget-friendly Unsupervised Domain Adaptation
2104.01539 (2021-04)
DINE: Domain Adaptation from Single and Multiple Black-box Predictors
2104.01845 (2021-04)
Unsupervised Multi-source Domain Adaptation Without Access to Source Data
and 13 more not named here
make_dataset
brick of this paper's assembly: helper
15 other papers
7 dated earlier, 7 later, 1 same year, order not determinable · 5 only as an assembly brick
1702.00758 (2017-02)
HashNet: Deep Learning to Hash by Continuation
1908.00347 (2019-08)
Central Similarity Quantization for Efficient Image and Video Retrieval
2003.02541 (2020-03)
A Balanced and Uncertainty-aware Approach for Partial Domain Adaptation
and 12 more not named here
image_train
brick of this paper's assembly: helper
8 other papers
4 dated earlier, 3 later, 1 same year, order not determinable · 2 only as an assembly brick
2104.01539 (2021-04)
DINE: Domain Adaptation from Single and Multiple Black-box Predictors
2104.01845 (2021-04)
Unsupervised Multi-source Domain Adaptation Without Access to Source Data
2107.12585 (2021-07)
Nearest Neighborhood-Based Deep Clustering for Source Data-absent Unsupervised Domain Adaptation
and 5 more not named here
image_test
brick of this paper's assembly: helper
6 other papers
3 dated earlier, 3 later · 4 only as an assembly brick
2104.01539 (2021-04)
DINE: Domain Adaptation from Single and Multiple Black-box Predictors
2104.01845 (2021-04)
Unsupervised Multi-source Domain Adaptation Without Access to Source Data
2202.00796 (2022-02)
On Balancing Bias and Variance in Unsupervised Multi-Source-Free Domain Adaptation
and 3 more not named here
ResBase
brick of this paper's assembly: helper
4 other papers
1 dated earlier, 3 later · 4 only as an assembly brick
2104.01845 (2021-04)
Unsupervised Multi-source Domain Adaptation Without Access to Source Data
2206.06640 (2022-06)
Confidence Score for Source-Free Unsupervised Domain Adaptation
2211.06612 (2022-11)
Divide and Contrast: Source-free Domain Adaptation via Adaptive Contrastive Learning
and 1 more not named here
feat_classifier
brick of this paper's assembly: model
4 other papers
1 dated earlier, 3 later · 3 only as an assembly brick
2104.01845 (2021-04)
Unsupervised Multi-source Domain Adaptation Without Access to Source Data
2206.06640 (2022-06)
Confidence Score for Source-Free Unsupervised Domain Adaptation
2211.06612 (2022-11)
Divide and Contrast: Source-free Domain Adaptation via Adaptive Contrastive Learning
and 1 more not named here
ImageList_idx
brick of this paper's assembly: helper
3 other papers
1 dated earlier, 2 later · 3 only as an assembly brick
2104.01845 (2021-04)
Unsupervised Multi-source Domain Adaptation Without Access to Source Data
2206.06640 (2022-06)
Confidence Score for Source-Free Unsupervised Domain Adaptation
2403.10834 (2024-03)
SF(DA)2: Source-free Domain Adaptation Through the Lens of Data Augmentation
init_weights
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later · 2 only as an assembly brick
2108.01614 (2021-08)
Generalized Source-free Domain Adaptation
2403.10834 (2024-03)
SF(DA)2: Source-free Domain Adaptation Through the Lens of Data Augmentation
ImageList
brick of this paper's assembly: helper
1 other paper
1 later · 1 only as an assembly brick
2403.10834 (2024-03)
SF(DA)2: Source-free Domain Adaptation Through the Lens of Data Augmentation
entropy 1 other paper
1 dated earlier
2104.03344 (2021-04)
OVANet: One-vs-All Network for Universal Domain Adaptation
feat_bootleneck
brick of this paper's assembly: model
1 other paper
1 later · 1 only as an assembly brick
2403.10834 (2024-03)
SF(DA)2: Source-free Domain Adaptation Through the Lens of Data Augmentation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2205.04183")
get_code_for_paper("2205.04183")
have("2205.04183")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2205.04183.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2205.04183.svg)](https://syntology.ai/paper/2205.04183)

Connect an agent — have() is free.