Papers › Domain Adaptation under Open Set Label Shift

Domain Adaptation under Open Set Label Shift

26 Jul 2022arXiv:2207.13048archive 2025-07-28

Saurabh Garg, Sivaraman Balakrishnan, Zachary C. Lipton

We introduce the problem of domain adaptation under Open Set Label Shift (OSLS) where the label distribution can change arbitrarily and a new class may arrive during deployment, but the class-conditional distributions p(x|y) are domain-invariant. OSLS subsumes domain adaptation under label shift and Positive-Unlabeled (PU) learning. The learner's goals here are two-fold: (a) estimate the target label distribution, including the novel class; and (b) learn a target classifier. First, we establish necessary and sufficient conditions for identifying these quantities. Second, motivated by advances in label shift and PU learning, we propose practical methods for both tasks that leverage black-box predictors. Unlike typical Open Set Domain Adaptation (OSDA) problems, which tend to be ill-posed and amenable only to heuristics, OSLS offers a well-posed problem amenable to more principled machinery. Experiments across numerous semi-synthetic benchmarks on vision, language, and medical datasets demonstrate that our methods consistently outperform OSDA baselines, achieving 10--25% improvements in target domain accuracy. Finally, we analyze the proposed methods, establishing finite-sample convergence to the true label marginal and convergence to optimal classifier for linear models in a Gaussian setup. Code is available at https://github.com/acmi-lab/Open-Set-Label-Shift.

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.13048")

Code

Syntology Ran 4 of 26 code samples harvested from 2 repositories linked to this paper; 22 have no recorded run. Of those that ran: 1 ran · violated contract; 1 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 1 ran; found in paper text by Syntology: 14 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

acmi-lab/open-set-label-shift officialmentioned in papermentioned on GitHubpytorchApache-2.0 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

26 samples harvested; 4 ran; 0 honoured the contract we drafted; 22 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 · violated contract
1ran · our draft was wrong
2ran
22unverified

Licence: 0 of the 26 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.

DKW_bound acmi-lab/open-set-label-shift/src/core_utils.py official repository ran Apache-2.0 (permissive) · e4361b7969382ced · report
DenseNet121 acmi-lab/open-set-label-shift/models/Densenet.py official repository unverified Apache-2.0 (permissive) · 14e37cf982988836 · report
DenseNet169 acmi-lab/open-set-label-shift/models/Densenet.py official repository unverified Apache-2.0 (permissive) · b3ac43769fb04b47 · report
DenseNet201 acmi-lab/open-set-label-shift/models/Densenet.py official repository unverified Apache-2.0 (permissive) · 2b9e6d4a74c359a6 · report
ResNet18 acmi-lab/open-set-label-shift/models/Resnet.py official repository unverified Apache-2.0 (permissive) · 6fad1b656bc73c83 · report
ResNet34 acmi-lab/open-set-label-shift/models/Resnet.py official repository unverified Apache-2.0 (permissive) · 448400e6aad91289 · report
ResNet50 acmi-lab/open-set-label-shift/models/Resnet.py official repository unverified Apache-2.0 (permissive) · d8e384423a8b2d0d · report
dataset_with_indices acmi-lab/open-set-label-shift/src/data_utils.py official repository unverified Apache-2.0 (permissive) · 69730b3058d667fa · report
get_label_dist acmi-lab/open-set-label-shift/src/core_utils.py official repository unverified Apache-2.0 (permissive) · e5f7f1545b01669a · report
get_labels acmi-lab/open-set-label-shift/src/data_utils.py official repository unverified Apache-2.0 (permissive) · 32da59e81223a5d4 · report
get_size_per_class acmi-lab/open-set-label-shift/src/data_utils.py official repository unverified Apache-2.0 (permissive) · 1488363eb47eebb8 · report
top_bin_estimator acmi-lab/open-set-label-shift/src/core_utils.py official repository unverified Apache-2.0 (permissive) · 4dd7d1ab34f2c834 · report
conv3x3 VisionLearningGroup/DANCE/models/resnet.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · fac5364e2f53c6db · report
find_classes VisionLearningGroup/DANCE/data_loader/mydataset.py found in paper text by Syntology ran MIT (permissive) · 52d10a10fb72fb9f · report
is_image_file VisionLearningGroup/DANCE/data_loader/mydataset.py found in paper text by Syntology ran · violated contract MIT (permissive) · ab4109634b75ef8b · report
entropy VisionLearningGroup/DANCE/utils/loss.py found in paper text by Syntology unverified MIT (permissive) · 28cffa65eceff97d · report
entropy_margin VisionLearningGroup/DANCE/utils/loss.py found in paper text by Syntology unverified MIT (permissive) · fbced886c2390bd6 · report
get_loader VisionLearningGroup/DANCE/data_loader/get_loader.py found in paper text by Syntology unverified MIT (permissive) · 01528e3c98ec363f · report
get_loader_balanced VisionLearningGroup/DANCE/data_loader/get_loader.py found in paper text by Syntology unverified MIT (permissive) · d73084d59289922d · report
get_loader_class_inc VisionLearningGroup/DANCE/data_loader/get_loader.py found in paper text by Syntology unverified MIT (permissive) · 2e567fd759bd44d6 · report
grad_reverse VisionLearningGroup/DANCE/models/basenet.py found in paper text by Syntology unverified MIT (permissive) · 0822c90f53494f2e · report
hinge VisionLearningGroup/DANCE/utils/loss.py found in paper text by Syntology unverified MIT (permissive) · f0d7f006856a6a6b · report
inv_lr_scheduler VisionLearningGroup/DANCE/utils/lr_schedule.py found in paper text by Syntology unverified MIT (permissive) · 8395d539bd4cf136 · report
make_dataset VisionLearningGroup/DANCE/data_loader/mydataset.py found in paper text by Syntology unverified MIT (permissive) · d90e54cc28eb9dba · report
resnet18 VisionLearningGroup/DANCE/models/resnet.py found in paper text by Syntology unverified MIT (permissive) · f320a100b322580c · report
resnet50 VisionLearningGroup/DANCE/models/resnet.py found in paper text by Syntology unverified MIT (permissive) · e8b58c55eb274d6a · report

Tasks

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