The Hitchhiker's Guide to Prior-Shift Adaptation

Tomas Sipka, Milan Sulc, Jiri Matas
6/22/2021
cs.CVcs.LG

Official code: sipkatom/The-Hitchhiker-s-Guide-to-Prior-Shift-Adaptation (6 stars, Python, last commit 2022-10-18).

Abstract

In many computer vision classification tasks, class priors at test time often differ from priors on the training set. In the case of such prior shift, classifiers must be adapted correspondingly to maintain close to optimal performance.

Show full abstract

This paper analyzes methods for adaptation of probabilistic classifiers to new priors and for estimating new priors on an unlabeled test set. We propose a novel method to address a known issue of prior estimation methods based on confusion matrices, where inconsistent estimates of decision probabilities and confusion matrices lead to negative values in the estimated priors. Experiments on fine-grained image classification datasets provide insight into the best practice of prior shift estimation and classifier adaptation, and show that the proposed method achieves state-of-the-art results in prior adaptation. Applying the best practice to two tasks with naturally imbalanced priors, learning from web-crawled images and plant species classification, increased the recognition accuracy by 1.1% and 3.4% respectively.

View on arXivView PDF

Code Implementations(1)

60Python, Jupyter NotebookJun 1, 20214 years ago

Similar Papers

Cite this paper

@article{sipka2021hitchhikers,
  title  = {The Hitchhiker's Guide to Prior-Shift Adaptation},
  author = {Tomas Sipka and Milan Sulc and Jiri Matas},
  year   = {2021},
  eprint = {2106.11695},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.11695}
}

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/2106.11695.svg)](https://codeofpaper.com/paper/2106.11695)

Discussion