(Almost) Provable Error Bounds Under Distribution Shift via Disagreement Discrepancy

Elan Rosenfeld, S. Garg
6/1/2023

No official code found. Best implementation: erosenfeld/disagree_discrep (10 stars, last commit 2024-02-27).

Abstract

We derive an (almost) guaranteed upper bound on the error of deep neural networks under distribution shift using unlabeled test data. Prior methods either give bounds that are vacuous in practice or give estimates that are accurate on average but heavily underestimate error for a sizeable fraction of shifts. In particular, the latter only give guarantees based on complex continuous measures such as test calibration -- which cannot be identified without labels -- and are therefore unreliable. Instead, our bound requires a simple, intuitive condition which is well justified by prior empirical works and holds in practice effectively 100% of the time. The bound is inspired by $\mathcal{H}\Delta\mathcal{H}$-divergence but is easier to evaluate and substantially tighter, consistently providing non-vacuous guarantees. Estimating the bound requires optimizing one multiclass classifier to disagree with another, for which some prior works have used sub-optimal proxy losses; we devise a"disagreement loss"which is theoretically justified and performs better in practice. We expect this loss can serve as a drop-in replacement for future methods which require maximizing multiclass disagreement. Across a wide range of benchmarks, our method gives valid error bounds while achieving average accuracy comparable to competitive estimation baselines. Code is publicly available at https://github.com/erosenfeld/disagree_discrep .

View on arXivView PDF

Code Implementations(1)

Provably (and non-vacuously) bounding test error of deep neural networks under distribution shift with unlabeled test data.

101PythonJun 1, 20232 years ago

Similar Papers

Cite this paper

@article{rosenfeld2023almost,
  title  = {(Almost) Provable Error Bounds Under Distribution Shift via Disagreement Discrepancy},
  author = {Elan Rosenfeld and S. Garg},
  year   = {2023},
  eprint = {2306.00312},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2306.00312},
  journal = {NEURIPS 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/2306.00312.svg)](https://codeofpaper.com/paper/2306.00312)

Discussion