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.
Glossary
Privacy Accounting

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.
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.
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.
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.
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.
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
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
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
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
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.
Related Terms
Mastering privacy accounting requires understanding the mathematical frameworks, composition theorems, and auditing techniques that track cumulative privacy loss. These concepts form the operational backbone of provable differential privacy guarantees.
Rényi Differential Privacy
A relaxation of standard differential privacy based on Rényi divergence that provides significantly tighter composition bounds than basic composition theorems. Unlike pure ε-differential privacy, RDP is parameterized by an order α, allowing accountants to track privacy loss across multiple orders simultaneously.
- Key advantage: Converts multiplicative composition into additive composition in log-space
- Common use: The default accounting method in DP-SGD implementations like Opacus
- Conversion: RDP guarantees can be converted back to standard (ε, δ)-DP bounds for reporting
Moments Accountant
A specific privacy accounting technique introduced by Abadi et al. (2016) that tracks the moment-generating function of the privacy loss random variable. By computing moments across all orders simultaneously, it produces dramatically tighter bounds than the naive strong composition theorem.
- Mechanism: Computes the log of the moment-generating function at each training step
- Result: Reduces total ε by 2-5x compared to advanced composition for equivalent iterations
- Integration: Built directly into the DP-SGD training loop for real-time budget tracking
Privacy Loss Distribution
A probabilistic characterization of the divergence between output distributions of a mechanism run on two adjacent datasets. Rather than tracking a single scalar ε, PLD accounting tracks the full distribution of the privacy loss random variable, enabling the tightest known composition bounds.
- Advantage: Captures the complete privacy loss profile, not just worst-case bounds
- Implementation: Used in Google's TF Privacy and the PLD Accountant library
- Trade-off: Higher computational cost for accounting, but yields optimal ε values
Subsampling Amplification
A privacy amplification phenomenon where randomly sampling a subset of data before applying a differentially private mechanism provides a stronger overall guarantee. When each example only participates with probability q, the privacy loss is amplified by a factor approximately equal to q.
- Mechanism: Poisson subsampling or shuffling with fixed batch sizes
- Effect: Converts an (ε, δ)-DP mechanism into an O(qε, qδ)-DP mechanism
- Critical for DP-SGD: Without subsampling, training deep models with meaningful privacy would be infeasible
Privacy Budget (Epsilon Budget)
A quantifiable limit on the total privacy loss permitted over a series of differentially private operations. The budget is parameterized by ε (epsilon), where smaller values indicate stronger privacy. Once the cumulative ε expenditure reaches the predefined threshold, no further queries or training steps are permitted.
- Typical ranges: ε = 0.1 to 10 for production systems
- Composition: Sequential queries sum their ε values under basic composition
- Enforcement: Requires real-time accounting integrated into query engines or training loops
Gaussian Mechanism
A fundamental differential privacy mechanism that achieves (ε, δ)-DP by adding noise drawn from a Gaussian distribution calibrated to the L2 sensitivity of the query function. Unlike the Laplace mechanism, it provides only approximate DP but enables tighter composition through moments accounting.
- Noise scale: σ = Δ₂(f) · √(2·ln(1.25/δ)) / ε
- Advantage: Composes gracefully under subsampling and is the standard for DP-SGD
- Relationship: The noise added to gradients in DP-SGD is a direct application of the Gaussian mechanism

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us