Group-robust Sample Reweighting for Subpopulation Shifts via Influence Functions
Rui Qiao, Zhaoxuan Wu, Jingtan Wang, Pang Wei Koh, Bryan Kian Hsiang Low
TL;DR
The paper tackles subpopulation shifts that undermine worst-group performance by proposing Group-robust Sample Reweighting (GSR), a two-stage method that uses high-quality group labels as a target to reweight group-unlabeled data. By combining Last-layer Retraining with an influence-function–driven implicit differentiation framework, GSR computes Hessian-informed sample weights efficiently without unrolling the full training trajectory. The approach yields state-of-the-art or competitive worst-group accuracy on several benchmarks (notably MultiNLI and CivilComments) and demonstrates robustness to label noise, while offering insights into weight dynamics and data cleaning effects. This provides a practical, scalable route to improve subpopulation robustness under limited annotation budgets, with clear avenues for future work in representation learning and fuller model optimization.
Abstract
Machine learning models often have uneven performance among subpopulations (a.k.a., groups) in the data distributions. This poses a significant challenge for the models to generalize when the proportions of the groups shift during deployment. To improve robustness to such shifts, existing approaches have developed strategies that train models or perform hyperparameter tuning using the group-labeled data to minimize the worst-case loss over groups. However, a non-trivial amount of high-quality labels is often required to obtain noticeable improvements. Given the costliness of the labels, we propose to adopt a different paradigm to enhance group label efficiency: utilizing the group-labeled data as a target set to optimize the weights of other group-unlabeled data. We introduce Group-robust Sample Reweighting (GSR), a two-stage approach that first learns the representations from group-unlabeled data, and then tinkers the model by iteratively retraining its last layer on the reweighted data using influence functions. Our GSR is theoretically sound, practically lightweight, and effective in improving the robustness to subpopulation shifts. In particular, GSR outperforms the previous state-of-the-art approaches that require the same amount or even more group labels.
