Abstract: When training a machine learning model with observational data, it is often encountered that some values are systemically missing. Learning from the incomplete data in which the missingness depends on some covariates may lead to biased estimation of parameters and even harm the fairness of decision outcome. This paper proposes how to adjust the causal effect of covariates on the missingness when training models using stochastic gradient descent (SGD). Inspired by the design of doubly robust estimator and its theoretical property of double robustness, we introduce stochastic doubly robust gradient (SDRG) consisting of two models: weight-corrected gradients for inverse propensity score weighting and per-covariate control variates for regression adjustment. Also, we identify the connection between double robustness and variance reduction in SGD by demonstrating the SDRG algorithm with a unifying framework for variance reduced SGD. The performance of our approach is empirically tested by showing the convergence in training image classifiers with several examples of missing data.
Introduction
In real-world machine learning applications, data is rarely "clean." Often, information is missing systematically rather than randomly—a phenomenon known as "causal missingness." For instance, medical datasets may lack entries for specific demographic groups due to systemic biases. Standard Stochastic Gradient Descent (SGD) assumes training samples are equally representative of the true distribution; when this assumption fails, gradient updates become biased, leading to unfair or inaccurate models.
While techniques like "Importance Sampling" (weighting rare samples more heavily) can mitigate bias, they frequently introduce high variance, making the training process unstable and slow. This paper introduces Stochastic Doubly Robust Gradient (SDRG) to bridge the gap between causal inference and stochastic optimization.
The SDRG Framework
SDRG integrates the "doubly robust estimator" from observational studies into the SGD framework. The algorithm utilizes a dual-component gradient update rule to combat bias:
- Weight-Corrected Gradients (Inverse Propensity Score Weighting): This component scales gradients based on the likelihood of a data point appearing in the sample versus the target distribution.
- Per-Covariate Control Variates (Regression Adjustment): This uses a secondary model to predict the gradient, using the residual (the difference between actual and predicted gradients) to reduce noise.
The "Double Robustness" Property
The core advantage of SDRG is that the gradient estimate remains unbiased if either the weighting model or the control variate model is correctly specified. This "fail-safe" mechanism provides a level of reliability that standard weighting schemes lack. Furthermore, the authors demonstrate that SDRG aligns with variance-reduction techniques like SVRG and SAGA, even reinterpreting the classic Momentum optimizer as a specific case of this control variate approach.
Experimental Evaluation
The researchers evaluated SDRG using MNIST and Fashion-MNIST benchmarks, modified to simulate extreme class imbalance (e.g., one class representing 80% of samples). They tested both static skew and dynamic skew, where the over-represented class changes over time.
As shown in the dynamic skew experiments, standard methods often suffer from high volatility. SDRG, by contrast, maintains a much smoother and more robust convergence trajectory.
Key Results and Insights
Across all benchmarks, SDRG demonstrated superior performance in three key areas:
- Faster Convergence: SDRG reached higher accuracy levels significantly faster than vanilla SGD or standard Importance Weighted SGD.
- Stability: The algorithm remained robust even when the nature of the data skew changed during training.
- Bias Correction: SDRG successfully corrected for sampling bias, allowing models trained on imbalanced data to perform well on balanced test sets.
Conclusion and Future Work
SDRG demonstrates that "double robustness" is not just a tool for causal inference but a powerful mechanism for stabilizing neural network training. By aligning robustness with variance reduction, the algorithm improves both fairness and efficiency.
Future research may address the computational overhead of maintaining control variates and extend the theoretical convergence analysis to more complex, non-convex deep learning settings where missingness depends on a wider array of interacting covariates.
Summary updated