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

Approximate Replicability in Learning

Max Hopkins, Russell Impagliazzo, Christopher YearXiv 2025 · DOI

Abstract

Strict replicability—the requirement that a learning algorithm produces the exact same output when run on different samples from the same distribution—is often impossible or prohibitively expensive. This paper introduces three "approximate" relaxations of replicability that make stable learning feasible and sample-efficient. We prove that robust, consistent results can be achieved for any PAC-learnable class with little to no extra data overhead, characterizing the sample complexity for pointwise, approximate, and semi-replicability.

Introduction

In the quest for scientific reliability, "replicability" has emerged as a formal desideratum for algorithms. A replicable algorithm, given access to shared randomness, outputs the same result even when trained on entirely different sets of data sampled from the same population. However, strict replicability is a "heavy lift." Recent research proved that for tasks as simple as learning a 1D threshold, no replicable algorithm exists. Furthermore, even when possible, it often requires a quadratic blowup in sample complexity. This work addresses this "impossibility" wall by asking: Can we relax the definition of replicability to make it practical while still reaping the benefits of algorithmic stability?

Relaxing Replicability

The authors propose three natural relaxations within the Probably Approximately Correct (PAC) learning framework:

  1. Pointwise Replicability: The learner must be consistent on any fixed input point $x$, but does not necessarily need to output the exact same global hypothesis. This is essentially "replicable prediction."
  2. Approximate Replicability: The learner must output hypotheses that agree on most of the underlying data distribution (at least a $1-\gamma$ fraction), rather than requiring 100% identity.
  3. Semi-Replicability: The algorithm must be fully replicable (outputting the same hypothesis), but it is granted access to a pool of shared unlabeled samples in addition to shared randomness.

To achieve these, the paper introduces "boosting" transformations that convert standard, non-replicable learning algorithms into stable ones using techniques from differential privacy, correlated sampling, and hypothesis selection.

Key Insights

Several striking insights emerge from this theoretical characterization:

  • Stability for "Free": Pointwise and Approximate replicability can often be achieved with the same sample complexity (up to constant factors) as standard, non-stable learning: $\Theta(d/\alpha^2)$.
  • The Power of Unlabeled Data: Semi-replicability bridges the gap between distribution-free and distribution-dependent learning. By sharing a small number of unlabeled samples, any learnable class can be made replicable, albeit with a quadratic increase in labeled data requirements.
  • Mandatory Shared Randomness: Even with these relaxations, approximate replicability cannot be achieved without shared randomness. Using the Poincare-Miranda Theorem, the authors show that deterministic algorithms will inevitably "flip-flop" on certain distributions.
  • Connection to Privacy: The work draws deep parallels between replicability and Differential Privacy, specifically "private prediction," showing how stability in output labels can be leveraged to achieve stability in models.

Key Results

The paper provides a complete characterization of the sample complexity for these new notions. Notably, it provides optimized algorithms for 1D Thresholds, a class previously considered the "poster child" for the impossibility of strict replicability.

Summary of sample complexity bounds for various replicability notions.

The table above details the upper and lower bounds for Pointwise, Approximate, and Semi-Replicable learning. While standard PAC learning requires $\Theta(d/\alpha^2)$ samples, Pointwise and Approximate notions maintain this efficiency. Semi-replicability, while more demanding in terms of labeled samples ($\Theta(d^2/\alpha^2)$), offers a path to full hypothesis identity through the use of shared unlabeled samples.

Discussion and Future Work

While this work establishes a strong foundation for practical replicability, several open questions remain. Many of the generic transformations result in "improper" learners, where the output hypothesis is not in the original class $\mathcal{H}$. Determining whether "proper" approximate replicability is always possible is a key future direction. Additionally, while the dependence on the VC dimension ($d$) is optimal, the dependencies on approximation parameters ($\gamma, \rho$) in generic agnostic learners could likely be tightened. Finally, the authors note a remaining gap in the sample complexity for "approximately replicable bias estimation," a fundamental sub-problem driving many of these results.

Summary updated

BibTeX
@misc{hopkins2025approximate,
  author = {Max Hopkins and Russell Impagliazzo and Christopher Ye},
  title = {{Approximate Replicability in Learning}},
  year = {2025},
  eprint = {2510.20200},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.20200},
}
Figure