Never Go Full Batch: Stochastic TMLE for Large-Scale Debiased Inference

Diyang Li, Fei Wang, Kyra GanNeurIPS 2026

TL;DR

Just as Stochastic Gradient Descent rescued deep learning from the computational slog of full-batch training, this paper brings mini-batching to Targeted Minimum Loss-based Estimation (TMLE)—a gold-standard method for causal and statistical inference. By replacing massive, full-dataset optimization steps with fast, randomized mini-batch updates, the authors slash memory and compute costs while keeping all the rigorous statistical guarantees that make TMLE so prized in science and medicine.

What Problem Does This Paper Address?

Suppose you want to answer a concrete scientific question—like whether a new drug lowers blood pressure—using messy observational data. You might use flexible machine learning models to estimate background relationships (nuisance parameters), and then plug those into your target equation. Unfortunately, naive "plug-in" estimators inherit heavy statistical bias from ML models, ruining your confidence intervals.

TMLE is a classic statistical framework that fixes this. Starting from an initial ML fit, TMLE iteratively "nudges" (or fluctuates) the estimated probability distribution along a specific path related to the Efficient Influence Function (EIF—essentially the steepest direction of statistical bias). Once these nudges converge, first-order bias vanishes, giving you valid p-values and "double robustness."

The catch? Standard TMLE is stuck in the pre-big-data era. Every single targeting step requires solving an empirical risk minimization problem over the entire dataset. With millions of rows or complex models, repeatedly loading and optimizing over the full batch blows up runtime and RAM. And you can't just slap standard SGD onto TMLE's theory: in TMLE, the iterate is an entire probability distribution rather than a fixed vector, the objective shifts after every update, and mini-batch minimizers aren't unbiased proxies for full-batch minimizers.

Methods

The authors redesign the TMLE targeting loop itself, introducing three stochastic variants that trade tiny amounts of iterate variance for massive per-step speedups:

Table 1: Overview of the major algorithms and guarantees in this work.
  • Stochastic TMLE (STMLE): Instead of fitting the fluctuation parameter $\epsilon$ on all $n$ data points at each step, STMLE samples a fresh mini-batch of size $B$ and minimizes the loss there. Because mini-batch noise keeps the algorithm bouncing inside a small "noise ball" around the true answer, the authors pair STMLE with a hybrid finish: do 85–95% of the heavy lifting cheaply with mini-batches, then run just a few full-batch TMLE steps at the end to lock into the exact solution.
  • Adaptive STMLE ($\text{S}^+\text{TMLE}$): What if you don't want to manually pick a batch size or decide when to switch to full-batch? Inspired by self-paced learning (which mimics how humans learn easy concepts before hard ones), $\text{S}^+\text{TMLE}$ assigns a learnable weight to every sample based on an "age" parameter. As training progresses, it automatically includes harder samples, smoothly annealing itself into exact, full-batch TMLE in finite time.
  • Doubly Stochastic TMLE ($\text{S}^2\text{TMLE}$): If your target parameter is also high-dimensional (say, estimating 30 quantiles at once), $\text{S}^2\text{TMLE}$ adds a second layer of randomness: at each step, it subsamples both rows (observations) and columns (coordinate directions of the fluctuation parameter).

Datasets

No new benchmarks are introduced; instead, the authors stress-test their methods across large-scale synthetic regimes and two classic real-world datasets:

  • Synthetic Data: Two distinct data-generating processes ($n = 10^6$ observations, 30 dimensions) across four estimation tasks: a 30-point cumulative distribution function, 30-dimensional median regression, treatment-specific mean (TSM), and variance of conditional treatment effect (VTE).
  • National Supported Work (NSW) Job-Training Dataset: A canonical causal inference benchmark ($n = 16,177$ pooled observations, 8 covariates) measuring the effect of job training on earnings.
  • YearPredictionMSD (UCI Repository): A large-scale audio dataset ($n = 515,345$ songs, 90 features) used to test high-dimensional median regression predicting a song's release year.

Key Insights and Ideas

  • The "Noise Ball" is tiny—and easy to exit: Theoretically, STMLE's expected distance to convergence shrinks at roughly $\mathcal{O}(\sqrt{d \log B / B})$. Empirically, stochastic steps accomplish 85–95% of the total descent toward zero EIF residual, meaning a tiny handful of full-batch steps at the end gives you exact classical TMLE guarantees at a fraction of the compute.
  • Randomness can actually find better statistical roots: Just as SGD noise helps neural nets escape bad local minima, the estimating equations in semiparametric statistics can have multiple valid roots—some fitting the data much poorly than others. Deterministic TMLE gets locked into whatever basin its initialization points to. The authors prove (in a stylized setting) that mini-batch randomness lets STMLE explore different basins and land on roots with strictly better empirical fit.
  • Self-annealing removes hyperparameter headaches: By proving that $\text{S}^+\text{TMLE}$ sets all sample weights to $1$ after a finite number of steps under standard regularizers, the authors show you can get exact convergence automatically without writing ad-hoc switching rules.

Key Results

Across both synthetic million-sample runs and real-world benchmarks, the stochastic variants reach convergence substantially faster in wall-clock time without sacrificing inferential accuracy.

  • Speedups: On the 515k-sample YearPrediction dataset, stochastic variants drive the EIF residual down to near-zero and finish full-batch refinement in roughly 250–400 seconds, whereas standard TMLE takes around 700 seconds. On NSW-Job, convergence drops from ~120 seconds down to ~50–75 seconds.
  • Memory Savings: Because they never materialize the full empirical loss over all $n$ samples during stochastic phases, peak RAM drops across the board. For 30D median regression ($\Psi_{(2)}$ on DGP2), peak memory falls from 868 MB (TMLE) to 607 MB (STMLE) and 562 MB ($\text{S}^2\text{TMLE}$) — roughly a 35% reduction.
Table 2: Peak RAM usage (×10 MB). The \ indi- cates S2TMLE degenerates to STMLE.

Limitations and Future Work

  • Fixed-batch plateaus: Pure STMLE and $\text{S}^2\text{TMLE}$ cannot achieve exact zero optimization error on their own; they require either switching to full-batch TMLE at the end or adopting the $\text{S}^+\text{TMLE}$ schedule. Also, if you subsample too aggressively in $\text{S}^2\text{TMLE}$ (small dimension subset $S$), coordinate approximation error dominates and inflates the noise ball.
  • Stylized escape theory: The proof showing STMLE escapes suboptimal roots relies on a simplified regime (assuming finitely many reachable roots and clean basin selection on the final mini-batch); a general theory of landscape exploration in TMLE remains open.
  • Next steps: The authors point toward integrating modern optimization tricks—like momentum, iterate averaging, stratified batching, and importance sampling—into the TMLE targeting loop, alongside proving formal robustness to poor initializations.

Summary updated

Abstract

Targeted Minimum Loss-based Estimation (TMLE) is a classical plug-in debiasing methodology that delivers doubly robust estimation and asymptotically efficient inference. Despite its statistical guarantees, each iteration of standard TMLE requires solving a minimization subproblem over the entire dataset, resulting in prohibitive computational and memory costs that render the method impractical for large-scale or real-time settings. To ease the bottlenecks, we introduce stochastic TMLE, a randomized targeting procedure that replaces each expensive full-batch fluctuation fit with mini-batch alternatives. Our theoretical analysis establishes that the stochastic iterates converge to a neighborhood (noise ball) centered around the target solution, and crucially, only a small number of subsequent full-sample TMLE iterations suffice to reach an empirical efficient influence function root. Consequently, our stochastic variant inherits the same guarantees and attractive properties as classical TMLE while substantially reducing per-iteration complexity. We further propose two computational variants with provable guarantees that broaden the algorithmic design space, offering flexibility for future developments in scalable targeted learning. Extensive experiments across diverse regimes demonstrate substantial acceleration over standard TMLE without sacrificing inferential quality.
BibTeX
@inproceedings{li2026never,
  author = {Diyang Li and Fei Wang and Kyra Gan},
  title = {{Never Go Full Batch: Stochastic TMLE for Large-Scale Debiased Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=nBj3s8jbyk},
}
Figure