Abstract
Double (debiased) machine learning (DML) has become a cornerstone for estimating causal and structural parameters, offering flexibility in handling high-dimensional nuisance functions while avoiding biases from regularization and overfitting. However, the traditional DML framework is valid only asymptotically for a fixed, pre-specified sample size. This lack of flexibility prevents researchers from stopping data collection early when results are clear or extending it when sharper inference is required—a limitation particularly acute in clinical trials or expensive observational studies. This paper introduces a time-uniform counterpart to asymptotic DML, enabling valid inference and confidence intervals at any arbitrary, data-dependent stopping time. By providing conditions only slightly stronger than standard DML, this framework allows for the transformation of existing DML methods into anytime-valid procedures with minimal modification.
Introduction
In modern causal inference, Double Machine Learning (DML) is often the "gold standard" for estimating treatment effects while controlling for complex confounding variables. By using flexible machine learning models to estimate nuisance parameters—such as the probability of treatment or the expected outcome—DML provides a robust way to isolate the causal signal.
Despite its power, DML suffers from a significant practical constraint: it is designed for a fixed sample size ($n$). In real-world experimentation, researchers often want to monitor results as they arrive. If a new medical treatment shows a life-saving effect early, continuing the trial to a pre-set $n$ may be unethical. Conversely, if results are nearly significant, researchers may be tempted to collect "just a few more samples." In standard frequentist statistics, this practice, known as "peeking," inflates the Type-I error rate. If a 95% confidence interval is checked repeatedly as data accumulates, the probability that it fails to cover the true value at some point is significantly higher than 5%.
The Anytime-Valid Framework
To address this, researchers from the University of Pennsylvania, AWS, and Carnegie Mellon University have extended DML into the realm of Asymptotic Confidence Sequences (AsympCS). This approach provides statistical guarantees that hold for any stopping time, whether decided in advance or based on the observed data itself.
Methodological Pillars
The anytime-valid DML framework rests on four key technical components:
- Neyman Orthogonality: The method leverages "orthogonal" score functions, a hallmark of DML. This ensures that the final causal estimate is relatively insensitive to small errors in the machine learning models used to estimate nuisance parameters.
- Sequential Sample Splitting: To maintain the independence required for valid inference, the authors adapted DML’s cross-fitting approach to a sequential setting. Data is partitioned into folds, and models are updated dynamically as new observations arrive.
- Law of the Iterated Logarithm (LIL): While standard DML relies on the Central Limit Theorem (CLT) to describe behavior at a single point $n$, this framework utilizes the LIL to provide "time-uniform" bounds. These bounds account for the fact that the researcher is monitoring the interval continuously, ensuring the error rate remains controlled across the entire duration of the study.
- General Pseudo-Outcomes: The authors provide a generalized framework (Theorem 2.1) to derive orthogonal functions even for parameters that are not "pathwise differentiable." This expands the utility of the method to a broader range of complex causal problems, such as partial identification in observational studies.
Empirical Evaluation
The authors demonstrated the efficacy of their method through synthetic simulations and two real-world applications.
Synthetic Stress Tests
In simulations, standard "Batch" DML intervals saw their error rates skyrocket under continuous monitoring as sample sizes increased. In contrast, the AsympCS (anytime-valid) intervals maintained the target 95% coverage across all time steps, proving their robustness to peeking.
The STAR Program
The method was applied to the Student Teacher Achievement Ratio (STAR) program, a randomized trial evaluating the impact of academic support on college freshmen. The anytime-valid approach allowed for the continuous monitoring of the Local Average Treatment Effect (LATE), providing valid inference even when accounting for non-compliance (students not following their assigned treatment).
Leukemia Microarray Data
In an observational study involving gene expression profiling of infants with B-cell acute lymphoblastic leukemia, the method was used to handle potential hidden biases. The anytime-valid approach identified significant genes much earlier than a fixed-sample approach would have allowed. For several genes, a reliable conclusion could have been reached with as few as six donors, potentially saving significant resources in expensive genomic research.
Key Insights and Trade-offs
A primary takeaway of the research is that the "peeking tax" is relatively small. The conditions required for anytime-validity are only marginally more stringent than those for standard DML. This suggests that most existing DML pipelines can be upgraded to anytime-valid versions with minimal architectural changes.
However, there is a trade-off: anytime-valid intervals are naturally wider than fixed-$n$ intervals. This is the price of the stronger guarantee—researchers trade a degree of precision for the freedom to stop data collection at any time without compromising the integrity of their statistical conclusions.
Conclusion and Future Work
This work bridges the gap between high-performance machine learning and the practicalities of sequential data collection. By making DML anytime-valid, the authors provide a tool that is both ethically and economically valuable for researchers in fields ranging from medicine to online A/B testing.
Future research directions include extending this framework to even more complex structures, such as dynamic treatment regimes or settings with interference, where one subject's treatment may affect another's outcome. While the current guarantees are asymptotic—meaning they are most reliable as the data stream grows—they represent a significant step forward in making causal machine learning more adaptable to the real world.
Summary updated