RLSbench: Domain Adaptation Under Relaxed Label Shift

Saurabh Garg, Nick Erickson, James Sharpnack, Alex Smola, Sivaraman Balakrishnan +1 more
2/6/2023
cs.LGcs.CVstat.ML

Official code: acmi-lab/RLSbench (35 stars, Apache-2.0, last commit 2023-07-19).

Abstract

Despite the emergence of principled methods for domain adaptation under label shift, their sensitivity to shifts in class conditional distributions is precariously under explored. Meanwhile, popular deep domain adaptation heuristics tend to falter when faced with label proportions shifts. While several papers modify these heuristics in attempts to handle label proportions shifts, inconsistencies in evaluation standards, datasets, and baselines make it difficult to gauge the current best practices. In this paper, we introduce RLSbench, a large-scale benchmark for relaxed label shift, consisting of $>$500 distribution shift pairs spanning vision, tabular, and language modalities, with varying label proportions. Unlike existing benchmarks, which primarily focus on shifts in class-conditional $p(x|y)$, our benchmark also focuses on label marginal shifts. First, we assess 13 popular domain adaptation methods, demonstrating more widespread failures under label proportion shifts than were previously known. Next, we develop an effective two-step meta-algorithm that is compatible with most domain adaptation heuristics: (i) pseudo-balance the data at each epoch; and (ii) adjust the final classifier with target label distribution estimate. The meta-algorithm improves existing domain adaptation heuristics under large label proportion shifts, often by 2--10\% accuracy points, while conferring minimal effect ($<$0.5\%) when label proportions do not shift. We hope that these findings and the availability of RLSbench will encourage researchers to rigorously evaluate proposed methods in relaxed label shift settings. Code is publicly available at https://github.com/acmi-lab/RLSbench.

View on arXivView PDF

Code Implementations(1)

acmi-lab/RLSbenchOfficial100%
Apache-2.0

Code and results accompanying our paper titled RLSbench: Domain Adaptation under Relaxed Label Shift

355Shell, PythonFeb 3, 20233 years agoApache-2.0
benchmarkingdistribution-shiftdomain-adaptationmachine-learning

Similar Papers

Cite this paper

@article{garg2023rlsbench,
  title  = {RLSbench: Domain Adaptation Under Relaxed Label Shift},
  author = {Saurabh Garg and Nick Erickson and James Sharpnack and Alex Smola and Sivaraman Balakrishnan and Zachary C. Lipton},
  year   = {2023},
  eprint = {2302.03020},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.03020v2},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.03020.svg)](https://codeofpaper.com/paper/2302.03020)

Discussion