Distributionally Robust Models with Parametric Likelihood Ratios

Paul Michel, Tatsunori Hashimoto, Graham Neubig
4/13/2022
cs.LG

Official code: pmichel31415/P-DRO (29 stars, Python, last commit 2022-04-14).

Abstract

As machine learning models are deployed ever more broadly, it becomes increasingly important that they are not only able to perform well on their training distribution, but also yield accurate predictions when confronted with distribution shift. The Distributionally Robust Optimization (DRO) framework proposes to address this issue by training models to minimize their expected risk under a collection of distributions, to imitate test-time shifts.

Show full abstract

This is most commonly achieved by instance-level re-weighting of the training objective to emulate the likelihood ratio with possible test distributions, which allows for estimating their empirical risk via importance sampling (assuming that they are subpopulations of the training distribution). However, re-weighting schemes in the literature are usually limited due to the difficulty of keeping the optimization problem tractable and the complexity of enforcing normalization constraints. In this paper, we show that three simple ideas -- mini-batch level normalization, a KL penalty and simultaneous gradient updates -- allow us to train models with DRO using a broader class of parametric likelihood ratios. In a series of experiments on both image and text classification benchmarks, we find that models trained with the resulting parametric adversaries are consistently more robust to subpopulation shifts when compared to other DRO approaches, and that the method performs reliably well with little hyper-parameter tuning. Code to reproduce our experiments can be found at https://github.com/pmichel31415/P-DRO.

View on arXivView PDF

Code Implementations(1)

pmichel31415/P-DROOfficial100%

Code for the papers "Modeling the Second Player in Distributionally Robust Optimization" and "Distributionally Robust Models with Parametric Likelihood Ratios"

298Python, ShellFeb 22, 20214 years ago
dromachine-learningnatural-language-processing

Similar Papers

Cite this paper

@article{michel2022distributionally,
  title  = {Distributionally Robust Models with Parametric Likelihood Ratios},
  author = {Paul Michel and Tatsunori Hashimoto and Graham Neubig},
  year   = {2022},
  eprint = {2204.06340},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.06340}
}

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

Discussion