The Moments Accountant is a privacy accounting technique that tracks the moment-generating function of the privacy loss random variable to provide tighter composition bounds than standard composition theorems. By computing higher-order moments rather than relying solely on worst-case analysis, it accurately quantifies the cumulative privacy loss across thousands of DP-SGD training iterations, enabling the training of deep neural networks with meaningful privacy budgets.
Glossary
Moments Accountant

What is Moments Accountant?
A technique for tracking higher-order moments of the privacy loss random variable to compute significantly tighter bounds on cumulative privacy loss during iterative training.
Introduced by Abadi et al. in their seminal 2016 paper on deep learning with differential privacy, the Moments Accountant computes the log of the moment-generating function at each step and accumulates these values. This approach yields significantly tighter ε estimates compared to the strong composition theorem, reducing the required noise multiplier for a given privacy guarantee and preserving more model utility. The technique was later generalized by Rényi Differential Privacy (RDP), which formalizes the moment-based tracking into a cohesive privacy framework.
Key Characteristics
The Moments Accountant tracks the privacy loss random variable's higher-order moments to provide significantly tighter composition bounds than standard strong composition theorems.
Higher-Order Moment Tracking
Instead of tracking only the privacy loss (first moment), the Moments Accountant computes the moment generating function of the privacy loss random variable evaluated at multiple orders λ. This captures the full distributional tail behavior, enabling a tighter characterization of cumulative privacy loss across thousands of training iterations. The log of the moment generating function is bounded for each step, and these bounds are composed linearly across the entire training run.
Tighter Composition Bounds
The key advantage over strong composition theorems is the elimination of the √k factor in the δ term. For k iterations of the Gaussian mechanism with noise σ, the Moments Accountant proves that the composed mechanism satisfies (O(ε), δ)-DP with a significantly smaller ε than naive composition. This directly translates to higher utility for the same privacy guarantee, or stronger privacy for the same model accuracy.
Tailored for DP-SGD
The Moments Accountant is specifically designed for the subsampled Gaussian mechanism at the heart of DP-SGD. It analytically computes the privacy loss distribution for:
- Poisson subsampling of minibatches
- Gaussian noise addition to clipped gradients
- Sequential composition over training epochs This specialization yields bounds that are orders of magnitude tighter than generic composition theorems when applied to deep learning training loops.
Relationship to Rényi DP
The Moments Accountant is a precursor to Rényi Differential Privacy (RDP). Both track the moment generating function, but RDP formalizes the approach using Rényi divergence of order α. The Moments Accountant's λ parameter corresponds to RDP's α. RDP provides a cleaner functional perspective, while the Moments Accountant offers a direct algorithmic implementation for computing (ε, δ) guarantees from the moment bounds via tail bound conversion.
Numerical Privacy Budget Computation
The accountant operates by maintaining a running log of moment bounds α_M(λ) for a discrete set of λ values. After each training step, it updates these bounds using the subsampled Gaussian mechanism's analytical formula. At the end of training, it converts the accumulated moment bounds into an (ε, δ) guarantee by solving:
- ε = min_λ (α_M(λ) - log δ) / λ This numerical optimization over λ yields the tightest provable privacy bound.
Practical Impact on Model Utility
By providing tighter privacy accounting, the Moments Accountant directly enables training deeper models and longer training runs under a fixed privacy budget. Empirical results show that models trained with Moments Accountant bounds achieve significantly higher test accuracy compared to those constrained by advanced composition theorems, particularly in the low-ε regime (ε < 2) where privacy is strongest and every bit of budget efficiency matters.
Frequently Asked Questions
Deep dives into the mechanics and implications of the Moments Accountant, the algorithm that made deep learning with differential privacy computationally feasible.
The Moments Accountant is a privacy accounting technique that tracks higher-order moments of the privacy loss random variable to provide significantly tighter bounds on cumulative privacy loss during training. Unlike the basic strong composition theorem, which provides loose, worst-case bounds, the Moments Accountant computes the log of the moment generating function at specific orders. It works by numerically integrating the privacy loss distribution's tails, specifically tracking the worst-case divergence between the output distributions of two neighboring datasets. By evaluating these moments across a range of orders (λ), it computes the tightest possible (ε, δ)-differential privacy guarantee for the entire training run, effectively reducing the total privacy budget consumption by an order of magnitude compared to naive composition.
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.
Related Terms
The Moments Accountant is a pivotal advancement in privacy accounting. Explore the mathematical foundations and related mechanisms that enable tight composition bounds for differentially private training.
Rényi Differential Privacy (RDP)
A relaxation of differential privacy based on the Rényi divergence. RDP provides a natural framework for tracking privacy loss using the moments of the privacy loss random variable. The Moments Accountant is essentially a numerical implementation for computing tight RDP bounds, making it the direct theoretical underpinning for modern privacy accounting in algorithms like DP-SGD.
Composition Theorem
A formal rule quantifying how the total privacy budget (ε) degrades across multiple queries. The Moments Accountant provides a tighter composition analysis than the basic or advanced composition theorems by tracking higher-order moments. This avoids the linear accumulation of epsilon and enables significantly more accurate training iterations under a fixed privacy budget.
DP-SGD
Differentially Private Stochastic Gradient Descent is the core training algorithm that relies on the Moments Accountant. During training:
- Per-example gradients are clipped to bound sensitivity.
- Gaussian noise is added to the aggregated gradient.
- The Moments Accountant precisely tracks the cumulative privacy loss across all training steps to determine when the privacy budget is exhausted.
Privacy Amplification by Subsampling
The phenomenon where randomly sampling a subset of data before applying a differentially private mechanism yields a stronger privacy guarantee. The Moments Accountant accurately captures the privacy amplification ratio by computing the moments of the subsampled Gaussian mechanism, which is crucial for the tight bounds achieved in large-scale private training.
Gaussian Mechanism
The foundational mechanism that adds noise calibrated to the L2 sensitivity of a query. The Moments Accountant specifically tracks the log moment generating function of the privacy loss random variable under this Gaussian noise. This allows it to compute the exact composition of Gaussian mechanisms across thousands of training steps without resorting to loose union bounds.
Privacy Budget
The finite, quantifiable limit on total privacy loss (ε, δ) allocated across analyses. The Moments Accountant acts as the ledger for this budget during iterative training. It converts the accumulated moment bounds back into a standard (ε, δ)-differential privacy guarantee, allowing engineers to stop training precisely when the target privacy level is reached.

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