Inferensys

Glossary

Composition Theorem

A formal rule quantifying how the total privacy budget degrades when multiple differentially private mechanisms are applied sequentially or in parallel to the same dataset.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
PRIVACY BUDGET ACCOUNTING

What is the Composition Theorem?

The composition theorem is a formal rule that quantifies how the total privacy budget degrades when multiple differentially private mechanisms are applied sequentially or in parallel to the same dataset.

The Composition Theorem provides the mathematical framework for tracking cumulative privacy loss when a dataset is subjected to multiple differentially private queries. It establishes that the total privacy guarantee is bounded by the sum of the individual privacy budgets (ε values) consumed by each mechanism. This additive property is fundamental to privacy budget accounting, ensuring that an adversary cannot combine outputs from separate queries to reconstruct sensitive records more accurately than the aggregate epsilon permits.

Two distinct forms govern composition: sequential composition, where the total epsilon is the sum of all individual epsilons when mechanisms are applied to the same data; and parallel composition, where the total epsilon equals the maximum of the individual epsilons when mechanisms operate on disjoint data partitions. Advanced relaxations like Rényi Differential Privacy (RDP) and the Moments Accountant provide tighter, sub-linear bounds on cumulative loss, enabling more efficient iterative algorithms such as DP-SGD without prematurely exhausting the privacy budget.

PRIVACY BUDGET ACCOUNTING

Key Properties of the Composition Theorem

The composition theorem is the formal rulebook for tracking cumulative privacy loss when multiple differentially private mechanisms are applied to the same dataset. Understanding its properties is essential for accurate privacy budgeting and avoiding unintentional guarantees.

01

Sequential Composition

When k differentially private mechanisms are applied sequentially to the same dataset, the total privacy loss accumulates additively. If mechanism M₁ provides ε₁-DP and mechanism M₂ provides ε₂-DP, the combined release satisfies (ε₁ + ε₂)-DP. This is the fundamental accounting rule: the privacy budget is consumed linearly with each query. For example, running three queries each with ε=0.5 on the same data consumes a total budget of ε=1.5. This property forces analysts to carefully ration queries and motivates the use of advanced composition theorems that provide tighter, sublinear bounds.

ε₁ + ε₂
Total Privacy Loss
Linear
Accumulation Rate
02

Parallel Composition

When differentially private mechanisms are applied to disjoint, independent subsets of a dataset, the total privacy loss does not accumulate. If dataset D is partitioned into disjoint subsets D₁ and D₂, and mechanism M₁(ε) runs on D₁ while M₂(ε) runs on D₂, the combined release still satisfies ε-DP, not 2ε-DP. This property is critical for scalable privacy engineering: partitioning data by user ID allows running unlimited queries in parallel without consuming additional budget, as long as each individual's data appears in only one partition.

max(εᵢ)
Total Privacy Loss
Disjoint
Required Condition
03

Advanced Composition (Dwork-Roth-Vadhan)

The advanced composition theorem provides a sublinear bound on cumulative privacy loss for (ε, δ)-differentially private mechanisms. For k sequential mechanisms each satisfying (ε, δ)-DP, the total guarantee is approximately (ε√(2k ln(1/δ')), kδ + δ')-DP. This is significantly tighter than naive linear composition. For example, 1000 queries each with ε=0.01 can be bounded by ε_total ≈ 0.67 rather than ε_total = 10. This theorem is the mathematical foundation that makes iterative algorithms like DP-SGD practical over many training epochs.

O(ε√k)
Asymptotic Bound
Sublinear
Accumulation Rate
04

Optimal Composition via Moments Accountant

The Moments Accountant technique, introduced by Abadi et al. for DP-SGD, computes the exact moment-generating function of the privacy loss random variable across all mechanism executions. Instead of relying on generic bounds, it tracks higher-order moments to produce numerically tight composition guarantees. This approach yields significantly smaller ε values than advanced composition for the same number of iterations. In practice, the Moments Accountant enables training deep neural networks with meaningful privacy guarantees (e.g., ε < 8) over tens of thousands of gradient steps, where classical composition would declare the budget exhausted.

Tight
Bound Quality
DP-SGD
Primary Application
05

Rényi Differential Privacy Composition

Rényi Differential Privacy (RDP) provides an alternative composition framework based on Rényi divergence of order α. For two mechanisms with RDP guarantees (α, ε₁) and (α, ε₂), sequential composition yields (α, ε₁ + ε₂)-RDP — a simple additive property. The key advantage: RDP composes exactly and cleanly without the looseness introduced by converting to (ε, δ)-DP at each step. After accumulating the total RDP budget, a single optimal conversion to (ε, δ)-DP is performed. This approach often produces tighter final guarantees than the Moments Accountant for heterogeneous mechanisms.

Exact
Composition Type
Rényi Divergence
Mathematical Basis
06

Privacy Amplification by Iteration

A subtle but powerful composition property: iterating a contractive noise process amplifies privacy. When a differentially private mechanism is applied repeatedly with noisy updates (as in DP-SGD), the inherent randomness accumulates to provide stronger guarantees than naive composition suggests. This phenomenon, formalized by Feldman et al., shows that the privacy loss after T steps of a noisy gradient descent grows only as O(ε√T) rather than O(εT). Combined with subsampling amplification, this explains why deep learning models can train for many epochs without catastrophic privacy budget exhaustion.

O(ε√T)
Growth Rate
Noisy Iterations
Required Mechanism
PRIVACY ACCOUNTING

Frequently Asked Questions

Clear, technically precise answers to the most common questions about the Composition Theorem and its role in managing cumulative privacy loss across multiple differentially private analyses.

The Composition Theorem is a formal rule that quantifies how the total privacy budget degrades when multiple differentially private mechanisms are applied sequentially or in parallel to the same dataset. It provides the mathematical framework for tracking cumulative privacy loss, ensuring that an adversary cannot combine outputs from several queries to reconstruct sensitive records. The theorem exists in two primary forms: basic composition, which states that the total privacy loss is at most the sum of the individual ε values (k mechanisms each providing ε-differential privacy yield at most kε-differential privacy), and advanced composition, which provides a tighter, sub-linear bound by accounting for the probabilistic nature of the privacy loss random variable. Without the composition theorem, an analyst could simply issue thousands of slightly noisy queries and average out the noise to recover raw data. The theorem is the foundational tool that makes privacy budgeting possible, allowing a data curator to set a global ε limit and allocate portions of it across multiple analyses until the budget is exhausted, at which point further access must be denied to prevent reconstruction.

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.