Optimizing importance weighting in the presence of sub-population shifts
Floris Holstege, Bram Wouters, Noud van Giersbergen, Cees Diks
TL;DR
The paper tackles distribution shifts, particularly sub-population shifts, by challenging the common practice of using likelihood-ratio weights in importance weighting. It develops a bi-level optimization framework to jointly optimize group-based weights and model parameters, highlighting a bias-variance trade-off that governs finite-sample performance. The authors analytically characterize optimal weights in a linear-regression toy model and demonstrate empirically that optimized weights improve generalization for last-layer retraining across vision and NLP benchmarks, often increasing robustness to hyperparameters. They provide a practical, open-source implementation and discuss limitations and avenues for extending optimization-to-full-model regimes and applicability to unknown test distributions. The work advances sub-population shift handling by turning weight selection into a data-driven, gradient-based optimization problem that complements existing importance weighting methods.
Abstract
A distribution shift between the training and test data can severely harm performance of machine learning models. Importance weighting addresses this issue by assigning different weights to data points during training. We argue that existing heuristics for determining the weights are suboptimal, as they neglect the increase of the variance of the estimated model due to the finite sample size of the training data. We interpret the optimal weights in terms of a bias-variance trade-off, and propose a bi-level optimization procedure in which the weights and model parameters are optimized simultaneously. We apply this optimization to existing importance weighting techniques for last-layer retraining of deep neural networks in the presence of sub-population shifts and show empirically that optimizing weights significantly improves generalization performance.
