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

Sampling Without Compromising Accuracy in Adaptive Data Analysis

Benjamin Fish, Lev Reyzin, Benjamin I. P. Rubinstein

TL;DR

This paper introduces sublinear-time algorithms for adaptive data analysis that prevent overfitting without sacrificing statistical accuracy. By leveraging "privacy amplification by subsampling," the authors demonstrate how to answer statistical and optimization queries exponentially faster per query than previous methods, while requiring the exact same total amount of data.

What Problem Does This Paper Address?

In modern data science, analysis is rarely static; it is highly adaptive. An analyst (or a community of researchers) asks a query, looks at the result, and uses that information to formulate the next query. This adaptivity creates a "garden of forking paths" that frequently leads to severe overfitting and false discoveries, because the queries become highly correlated with the specific dataset rather than the underlying population.

Recent theoretical breakthroughs have solved this by using differential privacy as a stabilizer: if a query-answering mechanism is differentially private, its answers will generalize to the true distribution. However, existing mechanisms require evaluating every single query on the entire dataset. If you want to answer $k$ queries with an accuracy of $\alpha$, you need a dataset of size $n \approx \sqrt{k}/\alpha^2$, and answering those queries takes $O(n)$ time per query. For massive datasets and a large number of queries, this linear per-query time is computationally a bottleneck. The authors ask: can we use sampling to speed up these mechanisms to sublinear time without needing more data to maintain the same accuracy?

Methods

The authors bridge sublinear-time algorithm design with adaptive data analysis using three main approaches:

  1. Fast Statistical Queries via Subsampling: Instead of calculating a statistical query (e.g., "What is the mean of feature X?") over the whole dataset, their mechanism samples a tiny subset of size $\ell$, evaluates the query on the subset, and adds Laplacian noise.
  2. Sampling Counting Queries (SCQs): They introduce a new, highly restricted query type. Instead of asking for a real-valued average, an SCQ asks the mechanism to simulate flipping a coin based on a single random sample from the data. To prove this generalizes, they develop a novel transfer theorem using an exponential mechanism "monitor."
  3. Adaptive Gradient Descent: They apply their fast statistical query mechanism as a black-box gradient estimator. By treating the computation of each gradient coordinate as a statistical query, they create a unified, fast approach for adaptively optimizing convex and strongly convex functions.

Datasets

Not discussed in the paper. (This is a purely theoretical algorithmic learning theory paper, so no empirical benchmarks or datasets were used).

Key Insights and Ideas

  • Subsampling is a privacy superpower: The core "aha" moment relies on a known but underutilized concept called privacy amplification by subsampling. When you run a differentially private algorithm on a random subset of data, the privacy guarantee actually gets stronger.
  • Noise and variance perfectly offset: Because subsampling boosts privacy, the mechanism can afford to add less Laplacian noise to the output. This reduction in noise perfectly compensates for the statistical variance introduced by looking at a smaller sample, preserving the overall accuracy.
  • Sublinear time is achievable: You do not need to scan the whole database to safely answer an adaptive query. You only need to look at $\tilde{O}(\log(k)/\alpha^2)$ samples per query. This completely decouples the per-query runtime from the total dataset size $n$.

Key Results

  • Massive Computational Speedup: For answering $k$ statistical queries, previous methods required $\tilde{O}(k^{3/2}/\alpha^2)$ total time. This paper reduces the total computational complexity to $\tilde{O}(k \log^2(k)/\alpha^2)$—a polynomial speedup—while maintaining the optimal sample complexity of $n = \tilde{O}(\sqrt{k}/\alpha^2)$.
  • Ultra-Fast SCQs: The mechanism for Sampling Counting Queries can answer queries in just $\tilde{O}(\log n)$ time per query (examining a constant number of samples, down to $\ell=1$) while maintaining strict generalization guarantees.
  • Faster Optimization: For adaptive convex optimization, the authors reduce the total number of gradient computations from $O(kdn^2)$ in prior work to just $\tilde{O}(kd/\alpha^2)$ for convex functions, and $\tilde{O}(kd/\alpha)$ for strongly convex functions (where $d$ is the dimension).
  • Theoretical Tightness: The authors provide lower bounds proving that their computational complexity for statistical queries is tight up to poly-logarithmic factors.

Limitations and Future Work

  • Theoretical Nature: As a theoretical paper, the bounds rely on Big-O and $\tilde{O}$ notation, meaning the hidden constants might be large in practice.
  • Optimization Assumptions: The optimization results require the gradient of the loss function to be bounded (so it can be treated as a statistical query), which may not hold for all unbounded loss functions in practice.
  • Future Work: While not explicitly outlined in a dedicated section, the introduction of SCQs opens the door to exploring other extreme trade-offs between computation time, sample size, and accuracy in adaptive settings. A natural next step for the field would be implementing and empirically testing these sublinear algorithms on real-world, massive datasets to see how the theoretical bounds translate to wall-clock speedups.

Summary updated

BibTeX
@inproceedings{fish2020sampling,
  author = {Benjamin Fish and Lev Reyzin and Benjamin I. P. Rubinstein},
  title = {{Sampling Without Compromising Accuracy in Adaptive Data Analysis}},
  booktitle = {ALT},
  year = {2020},
}
Figure