Stochastic Gradients under Nuisances

Facheng Yu, Ronak Mehta, Alex Luedtke, Zaid Harchaoui

TL;DR

This paper provides the first non-asymptotic convergence guarantees for Stochastic Gradient Descent (SGD) when the objective function depends on unknown "nuisance" parameters (such as propensity scores in causal inference). The authors introduce Orthogonalized SGD (OSGD), a novel algorithm that utilizes a debiased gradient oracle to achieve faster convergence and greater robustness to errors in nuisance estimation.

The Challenge of Nuisance Parameters

In many high-stakes fields like causal inference, econometrics, and semi-supervised learning, optimizing a simple loss function is not enough. Often, the loss depends on "nuisance parameters"—quantities that are not the primary target of the analysis but are necessary to properly define the problem (e.g., predicting a baseline outcome to isolate a specific treatment effect).

The standard workflow involves estimating the nuisance parameter first ($\hat{g}$) and then plugging it into SGD to find the target parameter ($\theta$). However, if $\hat{g}$ is even slightly inaccurate, it can shift the optimal $\theta$ or cause the optimization process to diverge entirely. While techniques like "Double Machine Learning" (DML) have addressed this for batch processing, there has been a lack of rigorous understanding regarding how these errors affect the step-by-step trajectory of stochastic optimization. This paper fills that critical gap, explaining exactly how nuisance errors propagate through SGD.

Comparison of non-orthogonal and orthogonalized risk landscapes, demonstrating how orthogonalization makes the optimal parameter insensitive to nuisance estimation errors.

Methods: Neyman Orthogonality and OSGD

The authors analyze two primary scenarios to tackle this sensitivity:

  1. Standard SGD with Neyman Orthogonality: They demonstrate that if a loss function satisfies "Neyman orthogonality"—meaning its gradient is insensitive to small changes in the nuisance parameter—SGD becomes remarkably robust. In this "nuisance-insensitive" regime, the optimization error scales with the fourth power of the nuisance estimation error, rather than the usual square. This allows for highly accurate target parameter optimization even with mediocre nuisance models.
  2. Orthogonalized SGD (OSGD): For problems where the loss isn't naturally robust, the authors propose a new algorithm. OSGD modifies the gradient update by subtracting a "projection" that accounts for the nuisance's influence, effectively "debiasing" the gradient on the fly. This allows practitioners to use simple, non-orthogonal losses (like standard squared error) while still reaping the benefits of a robust optimization path.

The paper also explores Interleaved Learning, where the nuisance and the target parameters are updated simultaneously in an online fashion, rather than in two distinct, sequential stages.

Examples of loss functions and corresponding nuisance parameters for Partially Linear Models (PLM), Conditional Average Treatment Effects (CATE), and Causal Relative Risk (CRR).

Datasets and Validation

The authors validate their theoretical findings using both synthetic and real-world data:

  • Synthetic Simulations: Based on the Partially Linear Model (PLM), the authors control the correlation between variables to test how well the algorithms separate the "nuisance" effect from the "target" effect.
  • Real-World Benchmark: Using the Diabetes 130-Hospitals Dataset (from the UCI Repository), they construct a semi-synthetic causal inference task to test the algorithms' ability to estimate treatment effects in a complex, high-dimensional setting.

Key Insights and Results

  • Gradient-Level vs. Loss-Level: Traditionally, researchers spent significant effort hand-crafting complex "orthogonal" loss functions. This paper argues it is often easier and more flexible to orthogonalize the gradient oracle instead, an approach much more compatible with modern deep learning libraries like PyTorch or JAX.
  • Linear Convergence: The authors prove that both SGD and OSGD converge linearly to a neighborhood of the true optimum.
  • Robustness Gains: In simulations, OSGD significantly outperformed standard SGD when the nuisance estimates were biased. While standard SGD's error plateaued early due to nuisance bias, OSGD continued to converge toward the true parameter.
  • Double Robustness: The paper demonstrates that their SGD approach preserves "double robustness" properties, meaning the target estimate remains valid even if one part of the nuisance model is misspecified.

Limitations and Future Work

  • Convexity Assumptions: Much of the current theory relies on the risk function being strongly convex. Extending these non-asymptotic guarantees to non-convex landscapes (like deep neural networks) remains an open challenge.
  • Operator Complexity: Implementing OSGD requires estimating an "orthogonalizing operator." While the authors suggest using least-squares or automatic differentiation, this adds a layer of computational overhead that needs to be optimized for very large-scale models.
  • Future Directions: The authors suggest that these techniques could be highly impactful in Reinforcement Learning, where "nuisance" quantities like value functions or transition models are constantly being updated alongside policy parameters.

Summary updated

BibTeX
@inproceedings{yu2025stochastic,
  author = {Facheng Yu and Ronak Mehta and Alex Luedtke and Zaid Harchaoui},
  title = {{Stochastic Gradients under Nuisances}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=IJmTOL4Raz},
}
Figure