Skip to main content
QUICK REVIEW

[Paper Review] Why resampling outperforms reweighting for correcting sampling bias with stochastic gradients

Jing An, Lexing Ying|arXiv (Cornell University)|Sep 28, 2020
Machine Learning and AlgorithmsComputer Science32 references11 citations
TL;DR

This paper explains why resampling outperforms reweighting in correcting sampling bias when using stochastic gradient algorithms, despite both methods being statistically equivalent in loss function design. Using dynamical stability and stochastic asymptotics, the authors show that reweighting introduces instability in SGD due to discontinuous gradients, while resampling maintains stable convergence, validated across classification, regression, and off-policy prediction tasks with consistent empirical superiority of resampling.

ABSTRACT

A data set sampled from a certain population is biased if the subgroups of the population are sampled at proportions that are significantly different from their underlying proportions. Training machine learning models on biased data sets requires correction techniques to compensate for the bias. We consider two commonly-used techniques, resampling and reweighting, that rebalance the proportions of the subgroups to maintain the desired objective function. Though statistically equivalent, it has been observed that resampling outperforms reweighting when combined with stochastic gradient algorithms. By analyzing illustrative examples, we explain the reason behind this phenomenon using tools from dynamical stability and stochastic asymptotics. We also present experiments from regression, classification, and off-policy prediction to demonstrate that this is a general phenomenon. We argue that it is imperative to consider the objective function design and the optimization algorithm together while addressing the sampling bias.

Motivation & Objective

  • To explain the empirical observation that resampling consistently outperforms reweighting in training models with stochastic gradient methods despite statistical equivalence.
  • To analyze the underlying reasons for this performance gap using tools from dynamical systems and stochastic asymptotics.
  • To demonstrate that objective function design and optimization algorithm must be considered jointly when addressing sampling bias.
  • To validate the theoretical findings across diverse machine learning tasks: classification, regression, and off-policy prediction.

Proposed method

  • Theoretical analysis is conducted using stochastic differential equation (SDE) approximations of SGD, focusing on the drift and diffusion coefficients of the update process.
  • The authors analyze the stability of SGD updates under reweighting and resampling by examining the Lipschitz continuity and discontinuity of the drift term in the loss function.
  • A bijective transformation is applied to map the non-smooth SGD dynamics into a smooth SDE framework, enabling error bounds via strong approximation theory.
  • The analysis shows that reweighting leads to unstable dynamics near discontinuities in the gradient, while resampling avoids such instabilities.
  • Empirical validation is performed on synthetic examples in classification, regression, and off-policy prediction, using varying learning rates and initial conditions.
  • The study compares convergence trajectories and final model performance between reweighting and resampling under identical optimization settings.

Experimental results

Research questions

  • RQ1Why does resampling consistently outperform reweighting in practice when both are statistically equivalent in loss function design?
  • RQ2How do the dynamics of stochastic gradient descent differ between reweighting and resampling, particularly in the presence of non-smooth loss functions?
  • RQ3What role does the optimization algorithm play in determining the effectiveness of bias correction techniques?
  • RQ4Can the performance gap between reweighting and resampling be explained through dynamical stability and stochastic asymptotics?
  • RQ5Is the observed superiority of resampling a general phenomenon across different machine learning tasks?

Key findings

  • Resampling outperforms reweighting in SGD-based training due to superior dynamical stability, especially when the loss function has discontinuous gradients.
  • Reweighting introduces instability in SGD because the gradient of the loss function is not Lipschitz continuous, leading to erratic convergence near discontinuity points.
  • Resampling avoids such instabilities by maintaining a piecewise-smooth optimization landscape, resulting in more reliable convergence to the global minimizer.
  • Empirical results show that resampling remains stable and accurate even at higher learning rates (e.g., η ≥ 0.4), while reweighting diverges or oscillates.
  • The phenomenon is general: resampling outperforms reweighting in classification, regression, and off-policy prediction tasks under stochastic gradient optimization.
  • The study concludes that objective function design and optimization algorithm must be jointly considered, as ignoring the latter can lead to disastrous performance even with correct loss correction.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.