DP-SPRT: Differentially Private Sequential Probability Ratio Tests

Thomas Michel, Debabrota Basu, Emilie Kaufmann

TL;DR

The authors introduce DP-SPRT, a framework that brings Differential Privacy (DP) to the classic Sequential Probability Ratio Test. By using a novel "OutsideInterval" mechanism, they achieve a factor-of-2 improvement in privacy efficiency over standard techniques, providing a mathematically calibrated way to conduct sequential A/B tests or clinical trials without leaking sensitive individual data.

What Problem Does This Paper Address?

In statistical testing, the Sequential Probability Ratio Test (SPRT) is the gold standard for efficiency. Unlike fixed-sample tests, SPRT allows you to stop collecting data the moment you have enough evidence to reach a conclusion. This is vital in clinical trials (to stop a failing treatment early) or A/B testing.

However, sequential testing has a major "leak": the stopping time itself. If a trial stops immediately after the 100th patient is recorded, an adversary can often infer that patient's specific data point. Standard Differential Privacy (DP) tools, which protect individual records by adding noise, struggle here because the test must monitor two boundaries (an upper and lower threshold) simultaneously over time. Previous attempts either provided weak privacy guarantees, required "guess-and-check" simulations to set thresholds, or were statistically inefficient.

Methods

The paper’s core contribution is a "wrapper" for SPRT that ensures privacy throughout the entire process.

  1. The OutsideInterval Mechanism: This is the mathematical engine of the paper. Standard DP often uses a tool called AboveThreshold to signal when a value crosses a line. To monitor two lines (upper and lower), one would typically use two instances of AboveThreshold, doubling the "privacy budget" (epsilon) spent. OutsideInterval handles both boundaries at once, adding the same noise to both comparisons to cut the privacy cost in half.
  2. Calibration: The authors provide a theoretical "correction function" $C(n, \delta)$. This allows practitioners to calculate exactly how much noise to add and where to set thresholds to guarantee specific Type I (false positive) and Type II (false negative) error rates.
  3. Noise Flexibility: The framework supports both Laplace noise (for pure $\epsilon$-DP) and Gaussian noise (for Rényi DP), making it adaptable to different privacy requirements.
  4. Privacy Amplification by Subsampling: They introduce a version that only looks at a random subset of data at each step. In high-privacy regimes (low $\epsilon$), this allows the test to run with much less noise, significantly speeding up the time to a decision.

Datasets

The paper evaluates the algorithm using simulated Bernoulli data (binary outcomes like success/failure). They tested three specific scenarios:

  • Instance 1 (Standard): Parameters are well-separated ($p_0=0.3, p_1=0.7$).
  • Instance 2 (Close): Parameters are very similar ($p_0=0.45, p_1=0.55$), making the test harder.
  • Instance 3 (Boundary): One parameter is near the edge ($p_0=0.05$), which affects the variance of the observations.

No real-world datasets were used, as the focus was on proving the mathematical validity and optimality of the new mechanism against established baselines like PrivSPRT.

Key Insights and Ideas

  • The Factor-of-2 Win: By recognizing that the upper and lower stopping conditions are part of the same logical "event," the authors avoided the "composition tax" usually paid when combining DP mechanisms.
  • Near-Optimality: The authors proved a lower bound for any private sequential test. They showed that DP-SPRT with Laplace noise is nearly as efficient as theoretically possible when the two hypotheses are similar and the desired error rates are small.
  • No More Monte Carlo: Previous state-of-the-art methods (like PrivSPRT) required users to run thousands of simulations just to figure out where to set their thresholds. DP-SPRT provides a direct formula, making it much more practical for real-world deployment.
  • Predictability: The experiments showed that DP-SPRT has lower variance in its stopping times compared to previous methods. For a researcher, this means more predictable resource allocation.

Key Results

  • Efficiency: In simulations, DP-SPRT consistently reached decisions faster (required fewer samples) than PrivSPRT at the same privacy level.
  • Error Control: While PrivSPRT occasionally exceeded the target error rates due to its simulation-based calibration, DP-SPRT stayed strictly within the allowed error bounds.
  • Subsampling Benefits: In "high privacy" modes ($\epsilon = 0.1$), the subsampling variant was significantly faster than the standard version, proving that clever data handling can offset the "cost" of privacy.
  • Asymmetry Handling: In scenarios where one hypothesis is much more likely than the other (Instance 3), DP-SPRT remained robust, whereas previous methods showed significant performance swings.

Limitations and Future Work

  • Conservative Correction: The authors note that their theoretical correction function is somewhat conservative—the actual error rates in practice were much lower than the targets. They suggest a "tuned" version that is faster but lacks the same ironclad theoretical proof.
  • Scope of Distributions: The detailed sample complexity analysis is currently limited to the Bernoulli distribution (and more generally, one-parameter exponential families).
  • Simple vs. Composite Hypotheses: The current work focuses on "simple" hypotheses (e.g., "is the mean 0.3 or 0.7?"). Future work is needed to extend this to "composite" hypotheses (e.g., "is the mean greater than 0.5?").
  • Multidimensional Data: The paper focuses on one-dimensional parameters; extending this to complex, high-dimensional data remains an open challenge.

Summary updated

BibTeX
@inproceedings{michel2026dp,
  author = {Thomas Michel and Debabrota Basu and Emilie Kaufmann},
  title = {{DP-SPRT: Differentially Private Sequential Probability Ratio Tests}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=PXmILgB0id},
}
Figure