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

Algorithmic stability for adaptive data analysis

Raef Bassily, Kobbi Nissim, Adam D. Smith, Thomas Steinke, Uri Stemmer, Jonathan R. Ullman

In the world of data science, there’s a famous (and cynical) quote by Ronald Coase: "If you torture the data enough, nature will always confess." This "torture" often takes the form of adaptive data analysis—where a researcher looks at the results of one test and uses them to decide what to test next. While this is how real science happens, it’s a statistical minefield that often leads to "false discoveries" and the dreaded reproducibility crisis.

In their paper, "Algorithmic Stability for Adaptive Data Analysis," Bassily et al. provide a rigorous mathematical framework to stop the torture. They show that by making our data analysis algorithms "stable," we can ask thousands of questions of the same dataset without falling into the trap of overfitting.

TL;DR

This paper proves that algorithmic stability—specifically in the form of Differential Privacy—is a powerful tool for ensuring statistical validity in adaptive research. By providing a new "Transfer Theorem," the authors show that stable algorithms are guaranteed to generalize from a sample to the whole population, even when queries are chosen based on previous results.

What Problem Does This Paper Address?

Traditional statistics is built on a "non-adaptive" model: you pick your hypothesis, you collect your data, you run the test, and you're done. But in the age of Big Data, we reuse datasets constantly. We visualize, we prune features, we run preliminary regressions, and then we test.

The problem is that every time we "peek" at the data to decide our next move, we leak information. Eventually, we find patterns that exist only in our specific sample but not in the real world. This paper asks: How many samples ($n$) do we actually need to accurately answer a sequence of $k$ adaptively chosen queries?

Methods

The authors bridge the gap between machine learning and data privacy using three main pillars:

  1. Max-KL Stability (Differential Privacy): They use the framework of $(\epsilon, \delta)$-Differential Privacy (which they call Max-KL stability). The core idea is that an algorithm is stable if changing a single data point in the input doesn't change the probability distribution of the output "too much."
  2. The Main Transfer Theorem: This is the heart of the paper. It proves that if an algorithm is both stable and accurate on its training sample, it is mathematically guaranteed to be accurate on the underlying population.
  3. The "Monitor" Technique: To prove their theorem, the authors introduce a clever thought experiment. They imagine a "monitor" algorithm that simulates multiple runs of the analysis. Because stability is preserved even after you process the results (post-processing), this monitor remains stable, allowing the authors to amplify the probability of success and prove tighter bounds than previous work.

Datasets

As a theoretical computer science paper, this work does not use empirical datasets (like ImageNet or MNIST). Instead, it operates on a theoretical model:

  • Input: $n$ independent samples drawn from an unknown distribution $\mathbf{P}$ over a finite universe $\mathcal{X}$.
  • Evaluation: The algorithms are evaluated based on their sample complexity—the minimum $n$ required to achieve a certain accuracy $\alpha$ for $k$ queries.

Key Insights and Ideas

  • Privacy as a Generalization Tool: The most profound "aha moment" is that Differential Privacy isn't just about hiding individual identities; it's a fundamental tool for scientific integrity. By preventing an algorithm from over-relying on any single data point, DP forces the algorithm to focus on patterns that are likely to exist in the broader population.
  • Stable Algorithms "Can't Be Wrong Without Realizing It": The paper suggests that stable algorithms are inherently self-correcting in an adaptive setting. If the algorithm's output on the sample starts to diverge from the population truth, the stability constraint is violated.
  • Optimal Dependence: The authors achieve a dependence on accuracy of $1/\alpha^2$. This is significant because $1/\alpha^2$ is the standard requirement for even a single non-adaptive query. This suggests that we can handle adaptivity without a massive "tax" on our accuracy requirements.

Key Results

The paper provides significantly improved bounds for the number of samples $n$ needed:

  • Statistical Queries: They show that $n \approx \sqrt{k}/\alpha^2$ samples are sufficient. This improves upon the previous state-of-the-art ($n \approx \sqrt{k}/\alpha^{2.5}$) and is quantitatively optimal.
  • Low-Sensitivity Queries: They provide the first upper bounds for more complex queries, such as finding the maximum of many statistics or calculating distances.
  • Optimization Queries: They extend the theory to "Risk Minimization," showing how to stably perform tasks like convex optimization on reused data.
Query Type Sample Complexity (This Work)
Statistical ($k \ll n^2$) $\tilde{O}(\frac{\sqrt{k}}{\alpha^2})$
Low Sensitivity ($k \ll n^2$) $\tilde{O}(\frac{\sqrt{k}}{\alpha^2})$
Convex Minimization $\tilde{O}(\frac{\sqrt{dk}}{\alpha^2})$

(Where $d$ is the dimension of the parameter space)

Limitations and Future Work

  • Computational Cost: While the sample complexity is low, the computational complexity can be high. For a very large number of queries ($k \gg n^2$), the known stable algorithms require time that is exponential in the number of features or the size of the universe $\mathcal{X}$.
  • The "Gap": While the authors improved the upper bounds, there is still a gap between these bounds and the known lower bounds. Closing this gap remains an open challenge.
  • Beyond i.i.d.: The work assumes data is sampled independently and identically (i.i.d.). Real-world data often has temporal or social correlations that might break these stability guarantees.

Summary updated

BibTeX
@inproceedings{bassily2016algorithmic,
  author = {Raef Bassily and Kobbi Nissim and Adam D. Smith and Thomas Steinke and Uri Stemmer and Jonathan R. Ullman},
  title = {{Algorithmic stability for adaptive data analysis}},
  booktitle = {STOC},
  year = {2016},
  doi = {10.1145/2897518.2897566},
}
Figure