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. 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.
School of Mathematics, Sichuan University(四川大学数学学院);School of Statistics and Data Science, Southwestern University of Finance and Economics(西南财经大学统计与数据科学学院)
Distributionally Faithful Imputation via Positive Semi-Definite Kernel Density Estimation
Inria - Ecole Normale Supériore Paris(法国巴黎国家信息与自动化研究所-巴黎高等师范学院);Department of Computer Science - UCL(伦敦大学学院计算机科学系);SDA Bocconi School of Management(博科尼管理学院)
Institute for Math and AI(数学与人工智能研究所);Wuhan University(武汉大学);School of Artificial Intelligence(人工智能学院);Department of Statistics and Data Science(统计与数据科学系);The Chinese University of Hong Kong(香港中文大学);The Hong Kong Polytechnic University(香港理工大学)
LIDL: Local Intrinsic Dimension Estimation Using Approximate Likelihood
University of Warsaw(华沙大学);Polish National Institute for Machine Learning(波兰国家机器学习研究所);Applica;Jagiellonian University(雅盖隆大学);University of Oxford(牛津大学)