Reproducibility in learning

Russell Impagliazzo, Rex Lei, Toniann Pitassi, Jessica Sorrell

This paper, "Reproducibility in Learning," provides a rigorous mathematical framework for a problem that has plagued machine learning for years: the fact that two researchers running the same code on similar data often end up with different models.

TL;DR

The authors introduce a formal definition of "reproducible algorithms"—randomized learners that produce the exact same output with high probability when run on different samples from the same distribution. They prove that reproducibility is achievable for fundamental tasks like median finding and learning halfspaces, though it comes with a quantifiable "price" in terms of increased sample complexity.

What Problem Does This Paper Address?

We are currently in a "reproducibility crisis." In machine learning, models are often brittle; a slight change in the training set or the random seed can lead to a completely different classifier. While concepts like Differential Privacy (DP) ensure that an algorithm's distribution of outputs doesn't change much with one data point, they don't guarantee that the specific output will be identical.

The authors tackle the challenge of algorithmic stability. They want to know if it is possible to design learners that are "pseudodeterministic" with respect to the underlying distribution. If two scientists draw independent samples from the same population and use the same shared random seed, can we guarantee they will output the exact same hypothesis?

Methods

The core of the paper is the definition of $\rho$-reproducibility: An algorithm is reproducible if, given two independent sets of samples $s_1, s_2$ from distribution $D$ and a fixed random string $r$, the probability that $A(s_1; r) = A(s_2; r)$ is at least $1 - \rho$.

To achieve this, the authors rely on several key techniques:

  1. Randomized Rounding with a Shift: To make a continuous estimate (like a mean) reproducible, you can't just round to the nearest integer, as values near the boundary are unstable. Instead, the algorithm uses the internal randomness $r$ to "shift" the rounding grid. This ensures that with high probability, the estimates from two different samples fall into the same grid cell.
  2. Statistical Query (SQ) Simulation: They show that any algorithm that interacts with data only through statistical queries can be made reproducible by applying the rounding technique above to each query.
  3. High-Dimensional Foams: For learning halfspaces (linear classifiers), rounding becomes a geometric problem in $d$ dimensions. The authors utilize "foams"—complex geometric tilings of space—to ensure that weight vectors are rounded to the same "bubble" in the foam with high probability.
  4. Recursive Median Finding: They develop a sophisticated, recursive algorithm for finding medians that has a very slow-growing dependence on the size of the data domain (specifically, $\log^* |X|$).

Datasets

As a theoretical paper, no real-world datasets were used for training or evaluation. The authors instead provide mathematical proofs of sample complexity bounds. They evaluate their algorithms against theoretical distribution models, such as the $\tau$-coin problem (distinguishing between a coin with bias $1/2 + \tau$ vs $1/2 - \tau$).

Key Insights and Ideas

  • The Power of Public Randomness: Reproducibility relies on the idea that internal randomness (the "seed") can be shared. If the seed is fixed, the only source of variance is the data itself.
  • Reproducibility $\implies$ Generalization: A beautiful side effect of this stability is that reproducible algorithms are mathematically guaranteed to generalize well. If an algorithm is forced to produce a "canonical" output that ignores the noise of specific samples, it is inherently resistant to overfitting.
  • The "Price" of Stability: The authors quantify the cost of reproducibility. For Statistical Query algorithms, they show that to achieve $\rho$-reproducibility, you generally need to increase your sample size by a factor of roughly $1/\rho^2$.
  • Privacy Connection: Reproducibility is a form of privacy. Because the output is almost entirely determined by the distribution rather than the specific sample, the algorithm "memorizes" very little about individual data points.

Key Results

  • SQ Simulation: The authors provide a generic wrapper that turns any SQ algorithm into a reproducible one with a modest increase in sample complexity.
  • Median Finding: They achieved the first reproducible algorithm for approximate medians with a sample complexity of $\tilde{O}\left(\frac{1}{\tau^2(\rho-\delta)^2} \cdot \left(\frac{3}{\tau^2}\right)^{\log^* |X|}\right)$.
  • Halfspace Learning: They successfully constructed a reproducible "weak learner" for halfspaces and combined it with a new Reproducible Boosting algorithm to create a "strong learner."
  • Lower Bounds: They proved a nearly tight lower bound for the coin-tossing problem, showing that the $\rho^{-2}$ overhead in sample complexity is an inherent requirement for reproducibility.

Limitations and Future Work

  • Computational Efficiency: The "foams" approach for halfspaces, while sample-efficient, is computationally expensive (exponential in the number of dimensions $d$). While they offer a polynomial-time alternative using "boxes," it requires significantly more data.
  • Characterizing Learnability: The paper doesn't yet identify a single "invariant" (like VC dimension) that determines how hard it is to learn a concept class reproducibly.
  • Broader Applications: The authors suggest that these techniques could be applied to individual-based fair learning and hypothesis testing, where consistent results across different demographic samples are crucial.
  • Terminology: The authors note a conflict with ACM terminology; they used "reproducibility" where the ACM suggests "replicability." Future iterations of this work will likely adopt the term Replicability.

Summary updated

BibTeX
@inproceedings{impagliazzo2022reproducibility,
  author = {Russell Impagliazzo and Rex Lei and Toniann Pitassi and Jessica Sorrell},
  title = {{Reproducibility in learning}},
  booktitle = {STOC},
  year = {2022},
  doi = {10.1145/3519935.3519973},
}

Loading related content...

Figure