A composition theorem is a formal rule that calculates the cumulative privacy loss (ε, δ) when multiple differentially private (DP) mechanisms are applied sequentially or in parallel to a dataset. The basic composition theorem provides a linear worst-case bound, while the advanced composition theorem, often used with mechanisms like the Gaussian mechanism, offers a tighter, sub-linear bound essential for practical iterative algorithms like DP-SGD. These theorems are the foundation of privacy accounting, enabling the careful management of a finite privacy budget across many queries or training steps.
Glossary
Composition Theorems

What is Composition Theorems?
Composition theorems are the mathematical rules that quantify how privacy guarantees degrade when multiple differentially private analyses are performed on the same dataset.
In federated learning, composition theorems are critical for analyzing client-level differential privacy guarantees over multiple training rounds. Each round where a client adds noise to its update consumes a portion of the global privacy budget. By applying advanced composition, system designers can precisely bound the total privacy cost of the entire federated training process. This allows for the principled configuration of parameters like the clip threshold and noise multiplier in algorithms such as DP-FedAvg, ensuring the final model provides a provable, quantifiable privacy guarantee to all participating clients.
Key Types of Composition Theorems
Composition theorems are the mathematical rules that govern how privacy guarantees degrade when multiple private mechanisms are applied. They are the cornerstone of privacy accounting, enabling the design of complex, multi-step private algorithms.
Basic Composition
The simplest and most conservative rule. It states that the privacy parameters add up linearly when mechanisms are applied sequentially.
- Sequential Composition: For
kmechanisms each satisfying (εᵢ, δᵢ)-DP, their k-fold adaptive composition satisfies (Σεᵢ, Σδᵢ)-DP. - Use Case: Provides a straightforward, worst-case upper bound on privacy loss. It is often used for initial design or when mechanisms are very different.
- Limitation: The linear growth of ε is overly pessimistic for many practical algorithms, leading to wasted privacy budget.
Advanced Composition
A seminal theorem that provides a square-root dependency on the number of compositions, offering a much tighter bound for high composition counts.
- Theorem (Dwork, Rothblum, Vadhan): For
kmechanisms each satisfying (ε, δ)-DP, their k-fold adaptive composition satisfies (ε′, δ′)-DP where ε′ = ε√(2k log(1/δ′)) + kε(e^ε - 1). For small ε, this approximates ε√(2k log(1/δ′)). - Use Case: The standard analysis for DP-SGD and other iterative algorithms before the advent of Rényi DP. It demonstrates that privacy degrades sub-linearly.
- Key Insight: Allows for
kcompositions with an overall ε that grows with √k rather thank, enabling more queries or training steps.
Composition under Rényi DP (RDP)
Rényi Differential Privacy provides a clean, composable framework where composition is simple addition of the RDP orders.
- Additive Composition: If mechanism
M₁satisfies (α, ε₁)-RDP andM₂satisfies (α, ε₂)-RDP, their adaptive composition satisfies (α, ε₁ + ε₂)-RDP for the same order α. - Use Case: The de facto standard for tight privacy accounting in modern libraries like TensorFlow Privacy and Opacus. It is the backbone for analyzing DP-SGD.
- Advantage: After composition in the RDP domain, the final (ε, δ)-DP guarantee is obtained by converting the composed RDP parameters, which yields significantly tighter bounds than advanced composition.
Composition under zCDP
Zero-Concentrated Differential Privacy is closely related to RDP and offers elegant composition rules tailored for Gaussian noise mechanisms.
- Linear Composition: If mechanism
M₁satisfies ξ₁-zCDP andM₂satisfies ξ₂-zCDP, their adaptive composition satisfies (ξ₁ + ξ₂)-zCDP. - Use Case: Provides a particularly simple and intuitive analysis for mechanisms based on the Gaussian mechanism, which is native to zCDP.
- Relationship: zCDP can be viewed as a guarantee on the privacy loss random variable requiring it to be subgaussian. It often enables cleaner proofs than working directly with (ε, δ)-DP.
Privacy Amplification by Subsampling
This is not a composition theorem per se, but a crucial related result: applying a DP mechanism to a random subset of the data amplifies (strengthens) the privacy guarantee.
- Poisson Subsampling: If a mechanism
Msatisfies (ε, δ)-DP, then applyingMto a Poisson sample of the dataset with sampling rateqyields a mechanism satisfying (ε′, δ′)-DP with ε′ ≈ qε (for small ε). - Use Case: Fundamental to DP-SGD, where each step operates on a random mini-batch. The amplification effect is what makes training deep models with DP feasible.
- Impact: Allows for a larger effective privacy budget per iteration or a stronger final guarantee for the same number of steps.
Composition in Federated Learning
In federated learning with client-level DP, composition occurs across both training rounds and within each round across participating clients.
- Cross-Round Composition: The server's view of model updates over
Trounds is a composition ofTprivate release mechanisms (e.g., noisy aggregation in DP-FedAvg). - Within-Round Amplification: The secure aggregation of many clients' noised updates can provide privacy amplification, analogous to subsampling, as the server only sees the sum.
- Accounting Challenge: Tracks the cumulative privacy loss for any individual client across all rounds they may have participated in, requiring careful use of the above composition theorems.
How Composition Works in Practice
Composition theorems are the mathematical rules that govern how privacy guarantees degrade when multiple differentially private operations are applied to the same dataset, forming the basis for practical privacy budgeting in iterative algorithms.
In practice, composition is managed through privacy accounting, which tracks the cumulative privacy loss (ε, δ) across all queries or training steps. For sequential composition, the ε values simply add, while advanced theorems like Rényi Differential Privacy (RDP) or the moment accountant provide much tighter bounds for the adaptive, repeated mechanisms common in DP-SGD or DP-FedAvg. This accounting ensures the total consumption never exceeds a pre-defined privacy budget.
The most critical practical application is in iterative learning. Each training round in a federated learning system applies a differentially private mechanism (like noising a gradient). Without tight composition bounds, the required noise would be prohibitively large. Advanced composition and privacy amplification techniques (e.g., via subsampling clients) enable engineers to achieve usable model utility while formally bounding the total privacy cost over hundreds or thousands of training iterations.
Comparison of Common Composition Theorems
This table compares the mathematical properties, guarantees, and typical use cases of the primary theorems used to analyze cumulative privacy loss in differentially private systems.
| Feature / Property | Basic Sequential Composition | Advanced Composition | Rényi DP (RDP) Composition | zCDP Composition |
|---|---|---|---|---|
Mathematical Foundation | Simple additive bound | Asymptotic bound using privacy loss variables | Rényi divergence of composed mechanisms | Subgaussian tail bound on privacy loss |
Privacy Parameter Output | (kε, kδ) for k mechanisms | (ε', δ') with ε' ≈ ε√(2k log(1/δ')) | Composed Rényi α-order privacy parameter | Composed ρ parameter for zCDP |
Tightness of Bound | Loose, worst-case | Tighter than basic for large k | Tighter, especially for Gaussian mechanisms | Very tight for Gaussian-based compositions |
Handles Adaptive Composition? | ||||
Primary Use Case | Simple analysis of few non-adaptive queries | General analysis of many adaptive queries | Tight accounting for DP-SGD iterations | Clean analysis of Gaussian mechanism chains |
Typical Mechanism Pairing | Laplace mechanism sequences | General (ε, δ)-DP mechanisms | Gaussian mechanism / DP-SGD | Gaussian mechanism / subsampled Gaussian |
Amplification by Subsampling Analysis | Complex | Complex | Straightforward via RDP conversion | Native and straightforward |
Common Implementation | Naive privacy budget tracker | Moment accountant (early DP-SGD) | Opacus, TensorFlow Privacy libraries | Analytical derivations for DP-FedAvg |
Frequently Asked Questions
Composition theorems are the mathematical rules governing how privacy guarantees degrade when multiple private operations are performed. This FAQ addresses their critical role in designing and auditing differentially private systems, especially in iterative processes like federated learning.
A composition theorem is a mathematical rule that quantifies how the overall privacy parameters (ε, δ) accumulate or 'compose' when multiple differentially private mechanisms are applied to the same dataset, either sequentially or in parallel.
These theorems are foundational for privacy accounting, as they allow system designers to calculate the total privacy budget consumed by a complex, multi-step algorithm (like DP-SGD or DP-FedAvg). The two primary types are:
- Basic Composition: Provides a simple, linear bound where the ε's and δ's of individual mechanisms sum. For k mechanisms each satisfying (ε_i, δ_i)-DP, the overall guarantee is (Σε_i, Σδ_i)-DP. This bound is often loose.
- Advanced Composition: Provides a tighter, sub-linear bound, typically scaling with √k for the ε parameter under certain conditions, which is crucial for practical iterative training. Methods like the moment accountant and analyses for Rényi DP (RDP) or zCDP fall under this category.
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
Composition theorems are foundational to understanding how privacy guarantees degrade when multiple private mechanisms are applied. These related concepts define the parameters, mechanisms, and accounting methods that govern this process.
Privacy Budget (ε, δ)
A privacy budget is a finite allocation of the privacy parameters epsilon (ε) and delta (δ) that is consumed over multiple queries or training steps. It acts as a resource to be spent, enforcing a hard limit on total privacy loss.
- Epsilon (ε): The primary parameter quantifying the maximum allowable privacy loss. A smaller ε indicates a stronger guarantee.
- Delta (δ): A secondary parameter representing a small probability of the privacy guarantee failing, often set to a value less than the inverse of the dataset size.
- In federated learning, a global budget is allocated per training round or for the entire training process, and composition theorems track its expenditure.
Privacy Accounting
Privacy accounting is the algorithmic process of tracking the cumulative privacy loss (ε, δ) across sequential, adaptive applications of differentially private mechanisms. Its goal is to ensure the total loss does not exceed the pre-defined privacy budget.
- Methods: Basic composition (linear), advanced composition (square root), and tighter methods like the moment accountant or Rényi DP.
- Role in FL: In DP-FedAvg, accounting tracks the privacy cost across communication rounds as clients repeatedly send noised updates.
- Output: Produces a proven guarantee, e.g., 'The final model satisfies (ε=4.0, δ=1e-5)-DP after 100 rounds.'
Rényi Differential Privacy (RDP)
Rényi Differential Privacy is a relaxation of differential privacy defined using Rényi divergence. It provides a more convenient and often tighter analysis of privacy loss under composition, especially for iterative algorithms like DP-SGD.
- Mechanism: It defines privacy via the Rényi divergence of order α between the output distributions on neighboring datasets.
- Advantage for Composition: RDP parameters compose linearly, making the analysis of complex, multi-step mechanisms significantly simpler and tighter than basic (ε, δ)-composition.
- Conversion: RDP guarantees can be losslessly converted back to standard (ε, δ)-DP guarantees for final reporting.
Zero-Concentrated DP (zCDP)
Zero-Concentrated Differential Privacy is a variant of differential privacy that provides a clean, streamlined analysis of composition for Gaussian-based mechanisms by focusing on the privacy loss random variable's subgaussian tail.
- Core Idea: It bounds the Rényi divergence of all orders α, leading to a single parameter ρ (rho) that controls the privacy guarantee.
- Composition: zCDP parameters compose linearly: applying mechanisms with guarantees ρ₁ and ρ₂ results in a total guarantee of ρ₁ + ρ₂.
- Common Use: The Gaussian mechanism naturally satisfies zCDP, making it the preferred accounting framework for many DP deep learning and federated learning implementations.
Moment Accountant
The moment accountant is an advanced privacy accounting method, central to the DP-SGD algorithm, that tracks a bound on the moments (log moments) of the privacy loss random variable to compute tight overall (ε, δ) guarantees under composition.
- Process: It calculates the log moment generating function of the privacy loss for each training step (mini-batch).
- Composition: These moments are summed across all steps, and the overall (ε, δ) guarantee is derived using the tail bound of the privacy loss distribution.
- Benefit: It yields significantly tighter privacy bounds compared to basic or advanced composition theorems, allowing for more utility per unit of privacy budget.
Amplification by Sampling
Amplification by sampling is a technique where the privacy guarantee of a mechanism is strengthened (amplified) because it is applied only to a randomly chosen subset of the data, such as a mini-batch in SGD or a cohort of clients in a federated learning round.
- Principle: Analyzing a random sample provides inherent privacy, as any individual's data has a probability less than 1 of being included.
- Formal Result: A mechanism satisfying (ε, δ)-DP, when applied to a Poisson sample with probability q, satisfies (ε', δ')-DP with ε' ≈ qε (for small ε). This is a key composition theorem.
- Impact in FL: It justifies random client selection in each round, providing a privacy benefit on top of mechanisms like DP-FedAvg.

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