Is Randomness Necessary for Adaptive Data Analysis?

Edith Cohen, Haim Kaplan, Yishay Mansour, Shay Sapir, Uri StemmerarXiv 2026

TL;DR

This paper answers a fundamental question in Adaptive Data Analysis (ADA): is internal randomness strictly required to prevent overfitting? The authors prove that against a computationally unbounded analyst, any deterministic mechanism can be forced to fail after just $\tilde{O}(n)$ queries, whereas randomized mechanisms can safely handle $\tilde{O}(n^2)$ queries. This establishes a strict information-theoretic separation showing that randomness is an absolute necessity for robust adaptive data analysis.

What Problem Does This Paper Address?

In classical statistics, a hypothesis should be independent of the data used to evaluate it. In modern data science, however, datasets are routinely reused adaptively: an analyst runs a query, observes the result, and uses that information to design the next query. This adaptive reuse makes it incredibly easy to overfit to the specific sample, leading to false discoveries that fail to generalize to the underlying distribution.

To mitigate this, researchers use the Adaptive Data Analysis (ADA) framework, where a "mechanism" sits between the dataset (of size $n$) and the analyst, answering queries while trying to maintain accuracy. It is well known that randomized mechanisms can safely answer roughly $n^2$ queries by injecting calibrated noise. Furthermore, if the analyst is computationally bounded, a deterministic mechanism can use cryptographic pseudorandom generators (PRGs) to achieve the same $n^2$ bound.

However, a glaring gap remained: Is randomness actually necessary if the analyst is computationally unbounded? This paper addresses this fundamental information-theoretic question.

Methods

The authors prove that randomness is indispensable by designing a series of adversarial attacks that force any deterministic mechanism to fail quickly:

  1. Natural Mechanisms: The authors first target "natural" mechanisms—those that only observe query evaluations on the sample points rather than the full query description. They construct an unbounded analyst that tracks all possible datasets consistent with the interaction history. By analyzing a table of threshold queries, the analyst identifies a "separating query" that eliminates a constant fraction of candidate datasets regardless of the mechanism's answer, rapidly isolating the true dataset.
  2. The Random Oracle (RO) Model: To extend the attack to general deterministic mechanisms, the authors use a Random Oracle to dynamically mask out-of-sample query values. This effectively forces general mechanisms to behave like natural ones. The interaction is analyzed using a 3D cube configuration mapping datasets, queries, and random masks.
  3. The Plain Model: To remove the Random Oracle assumption, the authors leverage Order-type Ramsey theory. By restricting the data to a highly homogeneous subdomain, the mechanism's discretized answers are forced to depend only on the relative order of the inputs, effectively rendering any deterministic mechanism "bit-natural" and vulnerable to the halving attack.

Datasets

As a purely theoretical paper, no empirical datasets were used for training or evaluation. All claims are proven mathematically over abstract domains and distributions.

Key Insights and Ideas

  • The Vulnerability of Determinism: Randomized mechanisms protect data by hiding behind noise. Because a deterministic mechanism's outputs are completely fixed by its inputs, it inherently leaks information about the dataset much faster when probed adaptively.
  • Quantifier Order Matters: Previous lower bounds constructed a single universal attacker to defeat all mechanisms. The authors note that to beat the $n^2$ barrier, the attacker must be tailored to the specific deterministic mechanism being targeted. A single universal attacker would fail against randomized algorithms due to the law of total probability.
  • Search-by-Halving: The core attack strategy relies on finding "separating queries" that split the remaining search space of consistent datasets roughly in half. This forces the mechanism into a corner: it must either lie (and become inaccurate) or rapidly reveal the underlying dataset.
An example of the dataset-by-query table used by the analyst to locate a separating threshold query.

Key Results

  • Deterministic Impossibility: In the random oracle model, for every deterministic mechanism and sample size $n$, there is an attacker that forces the mechanism to fail (err by $>0.1$) after just $k = \tilde{O}(n)$ adaptive queries.
  • Limited Randomness Bound: If a mechanism has access to $r$ bits of private randomness, it can be forced to fail after $k = \tilde{O}(n + r)$ queries. This proves that to achieve the optimal $\tilde{O}(n^2)$ query capacity, a mechanism must utilize a substantial amount of internal randomness ($r \approx n^2$).
  • Plain Model Separation: The $\tilde{O}(n)$ lower bound holds even in the plain model without a random oracle, establishing a pure information-theoretic separation between deterministic and randomized mechanisms.
Extending the threshold query table into a 3D cube to account for random masks in the non-natural mechanism analysis.

Limitations and Future Work

The primary limitation lies in the plain model proof. To enforce natural behavior without a random oracle, the authors rely on Ramsey extraction, which requires a domain of "tower-type" size (an immense tower of exponentials) and queries with massive description sizes.

The authors leave open the question of whether this massive domain blowup is an inherent requirement of the proof technique, or if a similar deterministic lower bound can be demonstrated for smaller, polynomial-sized domains in the plain model.

Summary updated

BibTeX
@misc{cohen2026is,
  author = {Edith Cohen and Haim Kaplan and Yishay Mansour and Shay Sapir and Uri Stemmer},
  title = {{Is Randomness Necessary for Adaptive Data Analysis?}},
  year = {2026},
  eprint = {2607.07085},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.07085},
}
Figure