SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.06612 · NeurIPS · 2022

Divide and Contrast: Source-free Domain Adaptation via Adaptive Contrastive Learning

Liang Lin, Zhen Li, Siyuan Li, Weikai Chen, Ziyi Zhang, Hui Cheng, Guanbin Li

arXiv · PDF · Open in the Atlas

Code that ran

7 of 18 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 2 failures of our instrument; 11 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2211.06612.json · badge: /api/ran/2211.06612.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
zyezhang/dac canonical (classifier label)
classifier basis: classifier_2025
7 ran · 8 no recorded run
fenghz/cosda community
Papers with Code archive
0 ran · 3 no recorded run
FunctionStatusWhere it lives
ImageList_test Ran
ran on a synthesized input
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("069df2d4fa215e25")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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_train Ran
ran on a synthesized input
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("2a74a19eebc34f29")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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.

MB Ran
ran on a synthesized input · constructed an object; no result was computed
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("6cae9d73baff6f3b")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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.

MemoryBank Ran
ran on a synthesized input · constructed an object; no result was computed
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("2c15973eb571a851")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("93b530743eff0c43")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("b7e334f5e0eb5920")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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.

mb Ran
ran; our contract draft was wrong, not the code
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("770bd4ff7a230add")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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.

ImageNetPolicy Not yet run
unverified (harvested, no recorded run)
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("c9c5025b02609986")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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.

SubPolicy Not yet run
unverified (harvested, no recorded run)
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("a98c6f5569a6791f")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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)
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("bd79f7cd617a9c3c")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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.

dac_train Not yet run
unverified (harvested, no recorded run)
fenghz/cosda/train/dac/dac.py
code served (permissive licence) · get_code("d7c23e7e0e1b671b")
How it ran

no invocation recorded.

data_load Not yet run
unverified (harvested, no recorded run)
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("bce26a57a93cddbb")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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.

eval_initial Not yet run
unverified (harvested, no recorded run)
fenghz/cosda/train/dac/dac.py
code served (permissive licence) · get_code("aeaf277ab7f6d86e")
How it ran

no invocation recorded.

eval_initial Not yet run
unverified (harvested, no recorded run)
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("a27e3ff9f9e538f6")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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.

image_train Not yet run
unverified (harvested, no recorded run)
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("cd55b45f072d883a")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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.

obtain_label Not yet run
unverified (harvested, no recorded run)
fenghz/cosda/train/dac/dac.py
code served (permissive licence) · get_code("74c402a1775f70fe")
How it ran

no invocation recorded.

obtain_label Not yet run
unverified (harvested, no recorded run)
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("5b707a834ab0fd28")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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)
zyezhang/dac/VisDA/target.py
pointer only (licence: GPL-3.0) · get_code("1490acffabac55ec")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, zyezhang/dac, is not in the permissive set Syntology serves inline. 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 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 18 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.

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-23.

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 investigate a practical domain adaptation task, called source-free unsupervised domain adaptation (SFUDA), where the source pretrained model is adapted to the target domain without access to the source data. Existing techniques mainly leverage self-supervised pseudo-labeling to achieve class-wise global alignment [24] or rely on local structure extraction that encourages the feature consistency among neighborhoods [48]. While impressive progress has been made, both lines of methods have their own drawbacks -the "global" approach is sensitive to noisy labels while the "local" counterpart suffers from the source bias. In this paper, we present Divide and Contrast (DaC), a new paradigm for SFUDA that strives to connect the good ends of both worlds while bypassing their limitations. Based on the prediction confidence of the source model, DaC divides the target data into source-like and target-specific samples, where either group of samples is treated with tailored goals under an adaptive contrastive learning framework. Specifically, the source-like samples are utilized for learning global class clustering thanks to their relatively clean labels. The more noisy target-specific data are harnessed at the instance level for learning the intrinsic local structures. We further align the sourcelike domain with the target-specific samples using a memory-based maximum mean discrepancy (MMD) loss to reduce the distribution mismatch. Extensive experiments on VisDA, Office-Home, and the more challenging DomainNet have verified the superior performance of DaC over current state-of-the-art approaches. The code is available at https://github.com/ZyeZhang/DaC.git.

For agents

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

get_harvested_code_for_paper("2211.06612")
get_code_for_paper("2211.06612")
have("2211.06612")

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

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

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

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

Connect an agent — have() is free.