Inferensys

Glossary

Privacy Accountant

An algorithmic component that tracks the cumulative privacy loss across multiple queries or training steps to ensure the total expenditure remains within a predefined budget.
Cinematic overhead of a WeWork creative suite room with multiple curved monitors showing AI decision dashboards, executives in casual attire reviewing data, dramatic pendant lighting.
PRIVACY BUDGET MANAGEMENT

What is Privacy Accountant?

A privacy accountant is an algorithmic component that rigorously tracks cumulative privacy loss across multiple queries or training steps to ensure total expenditure remains within a predefined budget.

A privacy accountant is a mechanism that precisely tracks the cumulative privacy loss (often denoted by the parameter epsilon, ε) incurred during iterative data analysis or model training. It composes the cost of each differentially private operation—such as noisy gradient steps in DP-SGD—using mathematical theorems to provide a tight upper bound on the total privacy expenditure, ensuring the final model satisfies a specific differential privacy guarantee.

Modern accountants, such as those based on Rényi Differential Privacy (RDP) or Gaussian Differential Privacy (GDP), replace older, looser composition theorems to minimize the required noise injection. By accurately calculating the moment accountant's higher-order divergence, they enable engineers to extract more utility from a given privacy budget, directly balancing the trade-off between model accuracy and formal data protection.

MECHANISMS

Key Characteristics of a Privacy Accountant

A privacy accountant is the algorithmic engine that rigorously tracks cumulative privacy loss across iterative computations, ensuring the total expenditure never exceeds a predefined budget.

01

Composition Tracking

The core function is to compute the total privacy cost when multiple differentially private mechanisms are applied sequentially. The accountant tracks how the privacy budget (ε) accumulates across training steps or queries. It applies composition theorems—such as basic composition, strong composition, or advanced composition—to bound the overall privacy loss. Without composition tracking, an adversary could combine outputs from multiple queries to amplify leakage beyond the intended guarantee.

02

Moments Accountant

A specific algorithmic approach introduced with DP-SGD that tracks the log of the moment-generating function of the privacy loss random variable. The moments accountant computes tighter bounds on cumulative privacy loss compared to standard strong composition theorems. It works by:

  • Computing the privacy loss distribution at each step
  • Tracking higher-order moments of this distribution
  • Converting the accumulated moments back to an (ε, δ) guarantee This method is the default in frameworks like TensorFlow Privacy and Opacus.
03

Rényi Differential Privacy (RDP) Accountant

An accountant based on Rényi divergence rather than the standard privacy loss random variable. RDP provides a natural framework for tracking privacy loss under Poisson subsampling and Gaussian noise mechanisms. Key properties:

  • RDP parameters (α, ε) compose linearly: ε_total = Σ ε_i for a fixed α
  • Converts cleanly to standard (ε, δ)-DP guarantees via a conversion lemma
  • Yields significantly tighter bounds than the moments accountant for many practical regimes
  • Implemented in libraries like tf-privacy and PyVacy
04

Gaussian Differential Privacy (GDP) Accountant

A hypothesis-testing-based framework that characterizes privacy loss using f-divergences and limit theorems. The GDP accountant leverages the fact that the privacy loss of many composed mechanisms converges to a Gaussian distribution. It provides:

  • A single parameter μ (mean of the privacy loss distribution) as the privacy measure
  • Tight composition bounds for subsampled Gaussian mechanisms without advanced composition theorems
  • A central limit theorem for privacy that simplifies asymptotic analysis
  • Particularly effective for large iteration counts common in deep learning
05

Privacy Budget Enforcement

The accountant acts as a hard gatekeeper that halts training or query responses when the cumulative privacy loss reaches the pre-specified budget. Enforcement mechanisms include:

  • Threshold checking: Before each query or training step, the accountant verifies remaining budget
  • Adaptive stopping: Automatically terminates computation when ε_consumed ≥ ε_total
  • Budget allocation strategies: Uniform distribution across steps, adaptive allocation based on gradient norms, or query-specific weighting
  • Audit logging: Records all privacy expenditures for compliance verification and regulatory reporting
06

Privacy Amplification by Subsampling

A critical optimization that the accountant must correctly model. When training examples are randomly sampled with probability q (e.g., via Poisson sampling), the privacy guarantee is amplified because an adversary cannot be certain if a target record was even processed. The accountant computes the amplified privacy loss by:

  • Modeling the subsampled Gaussian mechanism's privacy loss distribution
  • Accounting for the mixture distribution of the mechanism applied vs. not applied
  • Leveraging amplification lemmas specific to the accounting framework (RDP, GDP, or moments) This amplification is essential for achieving practical privacy-utility tradeoffs in deep learning.
PRIVACY ACCOUNTING

Frequently Asked Questions

Clear, technical answers to the most common questions about privacy accountants, the algorithmic components that track cumulative privacy loss in differentially private machine learning.

A privacy accountant is an algorithmic component that tracks the cumulative privacy loss (or privacy budget expenditure) across multiple queries or training steps in a differentially private system. It works by composing the privacy loss parameters (ε, δ) of individual mechanisms—such as the Gaussian noise added in each step of DP-SGD—into a single, global guarantee. The accountant uses mathematical composition theorems, such as the strong composition theorem or Rényi Differential Privacy (RDP) accounting, to convert a sequence of per-step (ε_i, δ_i) values into a final (ε_total, δ_total) bound. For example, in the Moments Accountant used by TensorFlow Privacy, the accountant tracks the log moments of the privacy loss random variable at each step, enabling a tight conversion to (ε, δ)-differential privacy at the end of training. Without an accountant, it would be impossible to know when a model has exceeded its predefined privacy budget.

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.