Inferensys

Glossary

Privacy Accounting

The process of tracking the cumulative privacy loss expenditure over multiple operations to ensure the total loss remains within a predefined privacy budget.
Operations room with a large monitor wall for system visibility and control.
PRIVACY BUDGET MANAGEMENT

What is Privacy Accounting?

Privacy accounting is the systematic process of tracking and bounding the cumulative privacy loss incurred over a sequence of data operations to ensure the total leakage remains within a predefined privacy budget.

Privacy accounting is the algorithmic mechanism that tracks the total privacy loss expenditure across multiple queries or training steps in a differentially private system. It composes the cost of individual operations—each calibrated by the privacy loss parameter epsilon—to provide a formal, mathematical guarantee that the aggregate leakage never exceeds a predefined privacy budget. This process relies on composition theorems and advanced techniques like the Moments Accountant or Rényi Differential Privacy to compute tight, non-trivial bounds on cumulative privacy degradation over thousands of iterations.

Without rigorous privacy accounting, a system that applies a small amount of noise to each query could still leak significant information when an adversary combines the outputs of many queries. The accountant tracks the privacy loss random variable across mechanisms, often leveraging subsampling amplification to demonstrate stronger guarantees when data is randomly sampled. This formal bookkeeping is the cornerstone of verifiable privacy claims, transforming differential privacy from a theoretical concept into an auditable, production-ready safeguard against membership inference and data reconstruction attacks.

CUMULATIVE LOSS TRACKING

Key Properties of Privacy Accounting

Privacy accounting is the systematic process of tracking cumulative privacy loss (ε, δ) over sequential operations to ensure the total expenditure never exceeds a predefined privacy budget.

01

Sequential Composition

The fundamental property that privacy loss accumulates additively across multiple queries or training steps. If mechanism M₁ provides ε₁-differential privacy and M₂ provides ε₂-differential privacy, their sequential application on the same dataset provides (ε₁ + ε₂)-differential privacy. This linear accumulation is the primary reason privacy budgets deplete rapidly in iterative algorithms like DP-SGD, where each gradient step consumes a fraction of the total budget.

02

Advanced Composition Theorems

Refined bounds that account for the probabilistic nature of privacy loss rather than assuming worst-case linear accumulation. Advanced composition shows that applying a mechanism k times with (ε, δ)-differential privacy each time results in approximately (ε√(2k ln(1/δ')), kδ + δ')-differential privacy overall. This sub-linear scaling is critical for practical deployments, allowing many more queries than naive composition would permit while maintaining meaningful guarantees.

03

Moments Accountant

A state-of-the-art accounting technique that tracks the moment-generating function of the privacy loss random variable to compute tight, numerically accurate bounds on cumulative privacy expenditure. Introduced by Abadi et al. (2016) alongside DP-SGD, the moments accountant:

  • Computes the log of the moment-generating function at each step
  • Accumulates these logs across training iterations
  • Converts the final accumulated moment bound back to (ε, δ) parameters
  • Provides significantly tighter bounds than advanced composition for subsampled Gaussian mechanisms
04

Rényi Differential Privacy Accounting

An accounting framework based on Rényi divergence rather than the standard (ε, δ) definition. Rényi DP of order α bounds the Rényi divergence between output distributions on adjacent datasets. Key advantages:

  • Exact composition: Privacy loss adds linearly under Rényi DP without approximation
  • Tighter conversion: Converting Rényi DP guarantees back to (ε, δ)-DP yields tighter bounds than moments accountant in many regimes
  • Natural fit for subsampling: The privacy amplification from subsampling has clean analytical forms under Rényi divergence
05

Privacy Loss Distributions

A probabilistic characterization that tracks the full distribution of the privacy loss random variable rather than just its tail bounds. The privacy loss random variable L = log(P(M(D)=o) / P(M(D')=o)) captures the complete information-theoretic divergence between outputs on adjacent datasets D and D'. Privacy loss distribution accounting:

  • Enables privacy filters that halt computation when a precise budget threshold is crossed
  • Supports privacy odometers that provide real-time budget consumption monitoring
  • Allows composition of heterogeneous mechanisms with different privacy profiles
06

Subsampling Amplification

A phenomenon where randomly sampling a subset of data before applying a differentially private mechanism provides a stronger overall privacy guarantee than processing the full dataset. In DP-SGD, each batch is a random sample from the training set. The privacy amplification ratio depends on the sampling probability q = B/N (batch size / dataset size). For a Gaussian mechanism with noise σ, subsampling effectively multiplies the privacy guarantee by approximately q, enabling practical deep learning with differential privacy on large datasets while maintaining single-digit epsilon budgets.

PRIVACY ACCOUNTING

Frequently Asked Questions

Clear answers to the most common questions about tracking cumulative privacy loss, managing epsilon budgets, and understanding the mathematical frameworks that underpin differential privacy guarantees.

Privacy accounting is the algorithmic process of tracking the cumulative privacy loss incurred over a sequence of differentially private operations to ensure the total loss remains within a predefined privacy budget (epsilon budget). It works by composing the privacy loss random variables of individual mechanisms—such as noisy gradient steps in DP-SGD—using composition theorems. Advanced accountants like the Moments Accountant track the moment-generating function of the privacy loss distribution to compute tight, non-trivial bounds on the overall epsilon and delta parameters. This prevents the silent exhaustion of the privacy budget, which would inadvertently nullify the mathematical guarantees of differential privacy.

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.