Papers › Prior Knowledge Guided Unsupervised Domain Adaptation

Prior Knowledge Guided Unsupervised Domain Adaptation

18 Jul 2022arXiv:2207.08877archive 2025-07-28

Tao Sun, Cheng Lu, Haibin Ling

The waive of labels in the target domain makes Unsupervised Domain Adaptation (UDA) an attractive technique in many real-world applications, though it also brings great challenges as model adaptation becomes harder without labeled target data. In this paper, we address this issue by seeking compensation from target domain prior knowledge, which is often (partially) available in practice, e.g., from human expertise. This leads to a novel yet practical setting where in addition to the training data, some prior knowledge about the target class distribution are available. We term the setting as Knowledge-guided Unsupervised Domain Adaptation (KUDA). In particular, we consider two specific types of prior knowledge about the class distribution in the target domain: Unary Bound that describes the lower and upper bounds of individual class probabilities, and Binary Relationship that describes the relations between two class probabilities. We propose a general rectification module that uses such prior knowledge to refine model generated pseudo labels. The module is formulated as a Zero-One Programming problem derived from the prior knowledge and a smooth regularizer. It can be easily plugged into self-training based UDA methods, and we combine it with two state-of-the-art methods, SHOT and DINE. Empirical results on four benchmarks confirm that the rectification module clearly improves the quality of pseudo labels, which in turn benefits the self-training stage. With the guidance from prior knowledge, the performances of both methods are substantially boosted. We expect our work to inspire further investigations in integrating prior knowledge in UDA. Code is available at https://github.com/tsun/KUDA.

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="2207.08877")

Code

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

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

tsun/kuda officialmentioned in papermentioned on GitHubpytorchMIT 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

13 samples harvested; 10 ran; 2 honoured the contract we drafted; 3 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
5ran · our draft was wrong
3ran · fixture could not drive it
3unverified

Licence: 0 of the 13 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 tsun/KUDA. “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 tsun/KUDA/DINE/loss.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 94b5622f0aa7add1 · report
ShearX tsun/KUDA/SHOT/augmentations.py official repository ran · fixture could not drive it MIT (permissive) · 815f704e5efd8345 · report
ShearY tsun/KUDA/SHOT/augmentations.py official repository ran · fixture could not drive it MIT (permissive) · f5e3179cafd9393a · report
TranslateX tsun/KUDA/SHOT/augmentations.py official repository ran · fixture could not drive it MIT (permissive) · b2893a9a2ac1188f · report
grl_hook tsun/KUDA/SHOT/loss.py official repository ran · our draft was wrong MIT (permissive) · 9768efb52f591b55 · report
image_train tsun/KUDA/DINE/DINE_dist.py official repository ran · our draft was wrong MIT (permissive) · 35c2d572ebd185f5 · report
l_loader tsun/KUDA/DINE/data_list.py official repository ran · honoured contract MIT (permissive) · edd7184ac144c4fa · report
lr_scheduler tsun/KUDA/DINE/DINE_dist.py official repository ran · our draft was wrong MIT (permissive) · 0b7ffc9f8b77529c · report
op_copy tsun/KUDA/DINE/DINE_dist.py official repository ran · our draft was wrong MIT (permissive) · 93a11f62e4a129f0 · report
rgb_loader tsun/KUDA/DINE/data_list.py official repository ran · honoured contract MIT (permissive) · 2c5ce24ea2b5d2a4 · report
PK_loss tsun/KUDA/SHOT/loss.py official repository unverified MIT (permissive) · e4ed2051ad0f8c9f · report
calc_coeff tsun/KUDA/SHOT/network.py official repository unverified MIT (permissive) · e352afa5762c5a6b · report
make_dataset tsun/KUDA/DINE/data_list.py official repository unverified MIT (permissive) · 2301055cb33836bc · report

Tasks

Domain AdaptationUnsupervised Domain Adaptation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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