Inferensys

Glossary

Privacy Loss Distribution

A probabilistic characterization of the divergence between the output distributions of a mechanism run on two adjacent datasets, used for precise privacy accounting in differential privacy.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
PRECISE PRIVACY ACCOUNTING

What is Privacy Loss Distribution?

A probabilistic characterization of the divergence between the output distributions of a mechanism run on two adjacent datasets, used for precise privacy accounting.

Privacy Loss Distribution is the probability distribution of the random variable representing the log-ratio of the likelihoods of observing a specific output from a mechanism on two adjacent datasets. It fully characterizes the privacy risk by capturing the spectrum of possible privacy losses, rather than relying on a single worst-case bound like the privacy parameter epsilon.

In differential privacy accounting, the distribution's tail probabilities are analyzed to derive tight composition bounds using tools like the Moments Accountant or Rényi Differential Privacy. This allows practitioners to track cumulative privacy expenditure accurately across many training steps, preventing overestimation of the privacy budget and enabling more useful model training under strict guarantees.

Probabilistic Privacy Accounting

Key Characteristics of Privacy Loss Distributions

The privacy loss distribution is the fundamental object for modern, tight privacy accounting. It characterizes the entire spectrum of possible privacy losses, not just a single worst-case bound.

01

Definition as a Random Variable

The privacy loss is defined as the log-likelihood ratio of observing a specific output from a mechanism on two adjacent datasets. It is a random variable because the mechanism's output is random. The distribution of this variable captures the full probabilistic nature of the privacy guarantee, moving beyond a single parameter like epsilon.

02

Tight Composition via Convolution

When composing multiple mechanisms, the overall privacy loss distribution is the convolution of the individual loss distributions. This is the key to tight accounting:

  • The Moments Accountant tracks the moment-generating function of this distribution.
  • Rényi Differential Privacy computes the Rényi divergence of this distribution.
  • Privacy Loss Distribution (PLD) accounting directly works with the distribution to find the smallest possible epsilon for a given delta.
03

The Privacy Loss Random Variable

Formally, for a mechanism M and adjacent datasets D and D', the privacy loss random variable L for an output o ~ M(D) is:

L = log( P[M(D)=o] / P[M(D')=o] )

A pure ε-differential privacy guarantee means this random variable is absolutely bounded: |L| ≤ ε with probability 1. Approximate (ε, δ)-DP allows the bound to be violated with probability at most δ.

04

Tail Bounds and the δ(ε) Curve

The relationship between ε and δ is fully determined by the tail behavior of the privacy loss distribution. The function δ(ε) gives the probability that the loss exceeds ε. This curve is the complete fingerprint of a mechanism's privacy guarantee:

  • Gaussian Mechanism: The loss distribution is also Gaussian, leading to a specific δ(ε) curve.
  • Subsampling: Randomly sampling data before applying the mechanism amplifies privacy by concentrating the loss distribution, dramatically improving the δ(ε) trade-off.
05

Dominating Pairs and Hockey-Stick Divergence

A mechanism satisfies (ε, δ)-DP if and only if the hockey-stick divergence between its output distributions on adjacent datasets is bounded. The privacy loss distribution is often analyzed through the lens of dominating pairs of distributions (P, Q) that represent the worst-case behavior. The hockey-stick divergence H_ε(P||Q) directly computes the δ for a given ε, enabling numerical composition algorithms.

06

Numerical Composition in Practice

Modern privacy accounting libraries (e.g., Google's DP Accounting, Microsoft's prv_accountant) implement fast Fourier transform (FFT) based methods to numerically convolve privacy loss distributions. This approach:

  • Computes the exact composed δ(ε) curve for hundreds of thousands of DP-SGD steps.
  • Avoids the looseness of advanced composition theorems.
  • Enables real-time privacy budget tracking in production ML systems.
PRIVACY LOSS DISTRIBUTION

Frequently Asked Questions

Explore the core concepts behind privacy loss distributions, the mathematical engine driving modern, tight privacy accounting in differential privacy systems.

A Privacy Loss Distribution (PLD) is a probabilistic characterization of the divergence between the output distributions of a randomized mechanism M when run on two adjacent datasets, D and D'. Instead of summarizing privacy leakage with a single parameter like ε, the PLD captures the full spectrum of possible privacy losses as a random variable. For any given outcome o from the mechanism, the privacy loss is the log-ratio of the probability densities: L = log(Pr[M(D)=o] / Pr[M(D')=o]). The PLD is the distribution of this random variable L. By analyzing the PLD, privacy accountants can compute precise, tight bounds on the overall privacy guarantee after composing thousands of iterative steps, as seen in Differentially Private Stochastic Gradient Descent (DP-SGD). This avoids the loose, worst-case assumptions of simple composition theorems and allows for much more utility under the same privacy budget.

PRIVACY ACCOUNTING COMPARISON

Privacy Loss Distribution vs. Other Privacy Accounting Approaches

A technical comparison of the primary methods used to track cumulative privacy expenditure in differentially private systems, highlighting the precision and computational trade-offs of each approach.

FeaturePrivacy Loss Distribution (PLD)Moments AccountantRényi Differential Privacy

Underlying Mathematical Basis

Full distribution of the privacy loss random variable

Moment-generating function of privacy loss

Rényi divergence of order α

Composition Tightness

Tightest known bounds; exact for homogeneous composition

Tight for Gaussian mechanisms; looser for heterogeneous composition

Tight for Gaussian mechanisms; intermediate tightness

Supports Heterogeneous Mechanisms

Computational Overhead

Moderate; requires numerical integration of convolutions

Low; closed-form moment calculations

Low; closed-form divergence calculations

Conversion to (ε, δ)-DP

Direct via tail bound on PLD

Requires optimization over moment parameter λ

Requires conversion lemma and optimization over α

Handles Subsampling

Exact via subsampled PLD convolution

Approximate via amplified moment bounds

Approximate via amplified Rényi divergence

Standard Tooling Support

Google's PLD Accountant, Opacus

TensorFlow Privacy (legacy)

PyVacy, Opacus (intermediate)

Primary Use Case

Production DP-SGD with tight budget tracking

Theoretical analysis and legacy systems

Analytical tractability and intermediate accounting

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.