Stability Is Stable: Connections between Replicability, Privacy, and Adaptive Generalization

Mark Bun, Marco Gaboardi, Max Hopkins, Russell Impagliazzo, Rex Lei, Toniann Pitassi, Satchit Sivakumar, Jessica Sorrell

In the wake of the "replication crisis" across the empirical sciences, computer scientists are looking for ways to bake reliability directly into our algorithms. If two different research teams analyze independent data samples from the same population using the same method, they should—ideally—reach the exact same conclusion. This property is known as replicability.

A recent paper, "Stability is Stable: Connections between Replicability, Privacy, and Adaptive Generalization," provides a rigorous theoretical framework for this intuition. The authors establish that replicability isn't just a nice-to-have; it is deeply, mathematically linked to other pillars of trustworthy machine learning: Differential Privacy (DP) and Generalization.

TL;DR

This paper proves that replicability, differential privacy, and perfect generalization are statistically equivalent for a wide range of learning tasks. While these properties are similar in terms of how much data they require, they are computationally distinct: some problems are easy to solve privately but impossible to solve replicably unless we break modern cryptography.

What Problem Does This Paper Address?

The core challenge is algorithmic stability. An algorithm is stable if small changes to its input don't wildly change its output.

We already have several ways to define this:

  1. Differential Privacy (DP): Changing one person's data shouldn't change the output distribution much.
  2. Generalization: The algorithm should reflect the whole population, not just the specific training sample.
  3. Replicability: If you fix the algorithm's internal "random seed" and run it on a completely new sample from the same distribution, you should get the exact same output with high probability.

Until now, it wasn't clear how these definitions related to one another. Could a private algorithm always be made replicable? Does a replicable algorithm automatically generalize? This paper maps out the "topology" of these stability notions, showing where they overlap and where they diverge.

Methods

The authors use algorithmic reductions—mathematical "translators" that turn an algorithm satisfying one property into an algorithm satisfying another.

  • Correlated Sampling: This is the "secret sauce" of the paper. To move from DP (where output distributions are similar) to Replicability (where the actual output must be identical), the authors use correlated sampling. This technique allows two parties to pick the same element from two different but similar distributions using shared randomness.
  • The Exponential Mechanism: To move from replicability back to generalization, the authors employ the exponential mechanism (a staple of DP) to "vote" on the most frequent outputs of a replicable algorithm across multiple runs.
  • Cryptographic Hardness: To prove that replicability is "harder" than privacy, they construct a specific problem based on Goldwasser-Micali encryption. They show that a private algorithm can easily solve this problem, but any replicable algorithm that could solve it would effectively be able to crack the encryption.

Datasets

As a theoretical work, this paper does not use traditional "benchmarks" like ImageNet or GLUE. Instead, it evaluates its theories against fundamental statistical tasks:

  • PAC Learning: Learning a hidden concept (like a decision tree) from labeled examples.
  • Gaussian Mean Estimation: Estimating the average of a high-dimensional bell curve.
  • Distribution Testing: Determining if a sample comes from a specific distribution (e.g., "Is this data truly a normal distribution?").

Key Insights and Ideas

  • "Stability is Stable": The most profound insight is that these seemingly different definitions are actually different facets of the same gem. If an algorithm is stable in one sense (DP), it is often secretly stable in the others (Generalization/Replicability), at least from a statistical perspective.
  • The Computational Barrier: The "aha moment" comes when the authors show that the equivalence breaks down computationally. Replicability is a much stricter requirement than privacy. Privacy only requires that the odds of an output don't change much; replicability requires the exact same output. This gap is bridged by cryptography.
  • Sample Complexity Blowup: The authors found that converting a private algorithm to a replicable one usually requires a quadratic blowup in the number of samples ($n \to n^2$). They proved this is often the best possible result, meaning replicability is fundamentally "more expensive" in terms of data.

Key Results

  1. Equivalence Theorem: For any statistical task with a finite number of possible outputs, Replicability, DP, and Perfect Generalization are equivalent up to polynomial factors in sample complexity.
  2. Optimal Learning Bounds: They provide a replicable learner for any finite hypothesis class $H$ using $O(\frac{\log^2 |H|}{\alpha^2 \rho^2})$ samples, which is nearly optimal.
  3. Cryptographic Separation: They proved that if one-way functions exist (the basis of most crypto), there are tasks that are easy for DP but computationally "hard" for replicable algorithms.
  4. User-Level Privacy: They showed how to turn "item-level" private algorithms (protecting one record) into "user-level" private algorithms (protecting all records from one user) by passing through the "bridge" of replicability.

Limitations and Future Work

  • Infinite Output Spaces: The current reductions rely heavily on the output space being finite (or at least discrete). Extending these results to continuous spaces (like predicting a precise real number) remains an open challenge.
  • Efficiency: While the paper shows that conversions are possible, the "Correlated Sampling" step is often computationally expensive (exponential in some parameters). Finding more efficient versions of these "translators" is a key next step.
  • Crypto Assumptions: The authors show that a gap exists if public-key cryptography is possible. They suggest that even simpler cryptographic primitives (one-way functions) might be enough to separate these notions, but a full proof is still needed.

Summary updated

BibTeX
@inproceedings{bun2023stability,
  author = {Mark Bun and Marco Gaboardi and Max Hopkins and Russell Impagliazzo and Rex Lei and Toniann Pitassi and Satchit Sivakumar and Jessica Sorrell},
  title = {{Stability Is Stable: Connections between Replicability, Privacy, and Adaptive Generalization}},
  booktitle = {STOC},
  year = {2023},
  doi = {10.1145/3564246.3585246},
}

Loading related content...

Figure