Inferensys

Glossary

Privacy Amplification by Subsampling

A technique where the random selection of a subset of data before applying a differentially private mechanism provides a stronger privacy guarantee than applying the mechanism to the full dataset.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
DIFFERENTIAL PRIVACY MECHANISM

What is Privacy Amplification by Subsampling?

A technique where the random selection of a subset of data before applying a differentially private mechanism provides a stronger privacy guarantee than applying the mechanism to the full dataset.

Privacy amplification by subsampling is a formal property where applying a differentially private mechanism to a random subset of a dataset yields a tighter privacy guarantee than applying the same mechanism to the full dataset. The random sampling introduces uncertainty about whether any specific record participated, effectively multiplying the privacy loss parameter by the sampling rate.

This principle is foundational to Differentially Private Stochastic Gradient Descent (DP-SGD), where mini-batch sampling amplifies the privacy of the Gaussian mechanism at each training step. The Moments Accountant and Rényi DP frameworks provide tight composition bounds that quantify this amplification, enabling deep learning with meaningful privacy budgets.

PRIVACY AMPLIFICATION MECHANISM

Key Characteristics of Subsampling Amplification

Subsampling amplification is a foundational technique in differential privacy where the random selection of a subset of data before applying a differentially private mechanism provides a stronger privacy guarantee than applying the mechanism to the full dataset. This effect is central to the tight privacy accounting of algorithms like DP-SGD.

01

The Amplification Effect

When a differentially private mechanism is applied to a random subset of the data rather than the full dataset, the effective privacy loss parameter (ε) is reduced. This occurs because an adversary cannot be certain whether a specific record was included in the subset that produced the observed output. The amplification factor is approximately proportional to the sampling probability q — smaller sampling rates yield stronger amplification.

  • For a mechanism with guarantee ε, applying it to a q-sampled subset yields an effective guarantee of approximately O(qε)
  • This effect is the primary reason DP-SGD achieves practical privacy guarantees
  • The amplification is strongest when sampling is uniform and independent
O(qε)
Effective Privacy Loss
q
Sampling Probability
02

Poisson Subsampling

The most common subsampling method in privacy-preserving machine learning is Poisson subsampling, where each record is independently included in the batch with a fixed probability q. This independence is critical for tight privacy accounting because it allows the use of the moments accountant to precisely track the privacy loss random variable.

  • Each record participates in a batch with probability q, independent of all other records
  • Enables the application of Rényi Differential Privacy (RDP) composition
  • Provides tighter bounds than deterministic shuffling or fixed-size sampling
  • The independence property is essential for the amplification by subsampling theorem
03

Amplification in DP-SGD

Differentially Private Stochastic Gradient Descent (DP-SGD) relies fundamentally on subsampling amplification. In each training step, a mini-batch is sampled from the full dataset, per-example gradients are clipped, and Gaussian noise is added. The privacy guarantee applies to the sampled batch, but the amplification effect ensures the guarantee extends to the full dataset with a much smaller ε.

  • Without subsampling, DP-SGD would require prohibitively large noise to achieve reasonable privacy
  • The moments accountant computes the precise amplified privacy loss across thousands of training steps
  • Typical settings use batch sizes of 256–512 with sampling probabilities of 0.01–0.001
  • The composition of many amplified steps yields the final (ε, δ) guarantee
256–512
Typical Batch Size
0.001–0.01
Sampling Probability q
04

Shuffle Model Amplification

In the shuffle model of differential privacy, a trusted shuffler randomly permutes locally randomized reports from users before they reach the analyzer. This shuffling operation provides an anonymity set that amplifies the local privacy guarantee. Each user's report is hidden among the shuffled batch, effectively creating a subsampling-like amplification effect.

  • A local ε₀ guarantee can be amplified to a central ε ≈ O(ε₀/√n) guarantee after shuffling
  • The amplification is proportional to the square root of the number of users
  • Enables strong central privacy guarantees without a trusted central server
  • Used in Prochlo and other distributed privacy architectures
O(ε₀/√n)
Amplified Central ε
05

Privacy Amplification by Iteration

A related but distinct phenomenon is privacy amplification by iteration, where the sequential nature of iterative algorithms like gradient descent inherently provides privacy protection. Each iteration only accesses a subset of the data through the gradient computation, and the noise added in each step compounds the uncertainty about any single record's influence.

  • First formalized by Feldman et al. as an alternative to subsampling amplification
  • Provides privacy guarantees even for full-batch gradient descent with no subsampling
  • The amplification grows with the number of iterations, not the sampling rate
  • Enables privacy analysis for algorithms that process the entire dataset each step
06

Tight Composition with Amplification

The true power of subsampling amplification emerges when combined with advanced composition theorems. The moments accountant and Rényi DP frameworks track the privacy loss distribution across thousands of amplified steps, yielding a final (ε, δ) guarantee that is significantly tighter than naive composition would suggest.

  • Rényi Differential Privacy (RDP) provides composition bounds that are tight for Gaussian mechanisms under subsampling
  • Privacy loss distributions enable numerical composition via Fourier accounting for exact bounds
  • The combination of amplification + tight composition is what makes training deep neural networks with differential privacy feasible
  • Modern privacy accounting libraries like Opacus and TF Privacy implement these techniques
PRIVACY AMPLIFICATION

Frequently Asked Questions

Clear answers to the most common technical questions about how random subsampling strengthens differential privacy guarantees and reduces the total privacy budget consumed during model training.

Privacy amplification by subsampling is a phenomenon where applying a differentially private mechanism to a random subset of a dataset yields a significantly stronger privacy guarantee than applying the same mechanism to the full dataset. The core mechanism works by introducing uncertainty about whether any given individual's record was even included in the computation. When a data point is not sampled, it enjoys perfect privacy for that training step. Formally, if a mechanism M satisfies (ε, δ)-differential privacy when applied to a dataset, applying M to a random subset obtained by sampling each record independently with probability q amplifies the guarantee to approximately (qε, qδ)-DP. This is the foundational principle that makes Differentially Private Stochastic Gradient Descent (DP-SGD) practical, as each minibatch is a random subsample of the training data, naturally amplifying the privacy provided by the per-step Gaussian noise addition.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.