NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Subsampling Suffices for Adaptive Data Analysis

Guy Blanc

Abstract

In classical statistics, data is assumed to be static, with hypotheses formulated prior to observation. However, modern data science is inherently adaptive: analysts frequently use the results of previous queries to inform subsequent ones. This practice, while efficient, often leads to overfitting and false discoveries. While Differential Privacy (DP) offers a robust defense by adding artificial noise, it introduces complexity and can degrade accuracy. This paper demonstrates that simple random subsampling—limiting the output size and running queries on random subsets—is sufficient to guarantee generalization. By introducing a new stability notion, Average Leave-Many-Out KL (ALMOKL) stability, we prove that subsampling provides a "natural" noise that prevents an adaptive analyst from over-fitting to specific dataset noise, achieving mathematically optimal sample complexity.

Introduction

The "reproducibility crisis" in science is often attributed to the adaptive nature of data analysis. When an analyst observes a pattern in a dataset and then tests a hypothesis suggested by that pattern on the same data, the resulting p-values and confidence intervals are no longer valid. This "data reuse" allows the analyst to inadvertently tune their queries to the specific noise of the sample rather than the underlying population.

To mitigate this, the field of adaptive data analysis has largely relied on Differential Privacy (DP). DP mechanisms, such as adding Laplacian or Gaussian noise to query results, ensure that the output does not depend too heavily on any single data point. However, these methods can be difficult to implement and may significantly obscure the signal in the data. This research explores a more intuitive alternative: Does the inherent randomness in picking a subset of data provide enough protection against overfitting?

Methodology: Subsampling and Stability

The paper introduces a framework centered on Subsampling Queries. In this model, a query does not look at the entire dataset of size $n$; instead, it operates on a random subset of size $w$. The core of the theoretical proof rests on a new stability metric: Average Leave-Many-Out KL (ALMOKL) stability.

The ALMOKL Framework

An algorithm is considered stable if its output distribution remains relatively consistent even when a significant portion of the input data is removed. The author proves a critical link: if a query mechanism is ALMOKL stable, it reveals very little Mutual Information about the original dataset.

In information theory, low mutual information between the dataset and the query results acts as a "transfer theorem." It implies that the results obtained from the sample will generalize to the broader population. By bounding the mutual information through subsampling, the paper provides a rigorous mathematical guarantee that the analyst cannot "learn" the specific noise of the dataset.

Generalizing Hoeffding’s Reduction

Beyond stability, the paper generalizes Hoeffding’s reduction theorem to U-statistics. This provides a novel method for bounding the concentration of functions that operate on subsamples, ensuring that the variance introduced by subsampling does not overwhelm the actual signal being measured.

Key Insights

Subsampling as Natural Noise

Rather than injecting artificial noise (as in DP), this framework leverages the uncertainty inherent in the sampling process itself. This suggests that many common algorithms—such as Stochastic Gradient Descent (SGD), which naturally uses mini-batches—may already possess inherent protections against adaptive overfitting.

Quadratic Improvement in Sample Complexity

A naive way to ensure generalization in adaptive settings is to use a fresh batch of data for every new query. If there are $T$ queries each requiring $w$ samples, this requires a total dataset size of $n \approx wT$. This paper proves that with subsampling, the required dataset size only needs to grow with the square root of the number of queries: $n \approx w\sqrt{T}$. This $\sqrt{T}$ dependence is known to be mathematically optimal, placing subsampling on par with the most sophisticated DP mechanisms.

Computational Efficiency

Because the proposed mechanisms only process a small fraction of the data ($k \approx n/\sqrt{T}$) for each query, they operate in sublinear time. This makes the approach highly scalable for massive datasets where traditional DP mechanisms might be computationally prohibitive.

Results and Applications

The theoretical bounds established in this paper have immediate implications for statistical queries (estimating the mean of a function). The paper demonstrates a mechanism for these queries that is both simpler to implement and more accurate in several regimes than previous state-of-the-art methods. Specifically, for $T$ adaptive queries with a categorical output range $|Y|$, the results remain representative of the population as long as the total dataset size $n \ge \Omega(w\sqrt{T|Y|})$.

Limitations and Future Directions

While the paper establishes a strong foundation for subsampling-based generalization, several areas remain for future exploration:

  • High-Probability Bounds: The current "self-reduction" method for boosting success probability is fully optimized only for queries looking at a single point ($w=1$). Extending this to larger $w$ remains a theoretical challenge.
  • Continuous Outputs: The framework is most effective for categorical outputs (discrete bits). While it can be adapted for continuous data (like medians or means) via binary search, these implementations are more complex.
  • Constant Tightness: While the asymptotic $\sqrt{T}$ behavior is optimal, the specific constants in the bounds could be refined to further reduce the practical sample size requirements for practitioners.

Conclusion

This work demonstrates that the simple act of subsampling is a powerful tool for ensuring the validity of adaptive data analysis. By providing a simpler, more efficient, and mathematically optimal alternative to complex privacy mechanisms, this framework offers a practical path forward for robust and reproducible data science.

Summary updated

BibTeX
@article{blanc2023subsampling,
  author = {Guy Blanc},
  title = {{Subsampling Suffices for Adaptive Data Analysis}},
  journal = {J. ACM},
  year = {2023},
}
Figure