Rethinking Importance Weighting for Deep Learning under Distribution Shift

Tongtong Fang, Nan Lu, Gang Niu, Masashi Sugiyama
6/8/2020
cs.LGstat.ML

Official code: TongtongFANG/DIW (32 stars, Python, MIT, last commit 2021-04-09).

Abstract

Under distribution shift (DS) where the training data distribution differs from the test one, a powerful technique is importance weighting (IW) which handles DS in two separate steps: weight estimation (WE) estimates the test-over-training density ratio and weighted classification (WC) trains the classifier from weighted training data. However, IW cannot work well on complex data, since WE is incompatible with deep learning.

Show full abstract

In this paper, we rethink IW and theoretically show it suffers from a circular dependency: we need not only WE for WC, but also WC for WE where a trained deep classifier is used as the feature extractor (FE). To cut off the dependency, we try to pretrain FE from unweighted training data, which leads to biased FE. To overcome the bias, we propose an end-to-end solution dynamic IW that iterates between WE and WC and combines them in a seamless manner, and hence our WE can also enjoy deep networks and stochastic optimizers indirectly. Experiments with two representative types of DS on three popular datasets show that our dynamic IW compares favorably with state-of-the-art methods.

View on arXivView PDF

Code Implementations(1)

TongtongFANG/DIWOfficial100%
MIT

Code for the paper "Rethinking Importance Weighting for Deep Learning under Distribution Shift".

326PythonOct 11, 20205 years agoMIT

Similar Papers

Cite this paper

@article{fang2020rethinking,
  title  = {Rethinking Importance Weighting for Deep Learning under Distribution Shift},
  author = {Tongtong Fang and Nan Lu and Gang Niu and Masashi Sugiyama},
  year   = {2020},
  eprint = {2006.04662},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.04662}
}

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

Discussion