Inferensys

Glossary

Composition Theorems

Composition theorems are mathematical rules that quantify how privacy parameters (ε, δ) degrade or compose when multiple differentially private mechanisms are applied sequentially to the same dataset.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
DIFFERENTIAL PRIVACY

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.

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.

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.

PRIVACY ACCOUNTING

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.

01

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 k mechanisms 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.
02

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 k mechanisms 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 k compositions with an overall ε that grows with √k rather than k, enabling more queries or training steps.
03

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 and M₂ 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.
04

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 and M₂ 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.
05

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 M satisfies (ε, δ)-DP, then applying M to a Poisson sample of the dataset with sampling rate q yields 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.
06

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 T rounds is a composition of T private 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.
PRIVACY ACCOUNTING

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.

PRIVACY ACCOUNTING

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 / PropertyBasic Sequential CompositionAdvanced CompositionRényi DP (RDP) CompositionzCDP 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

COMPOSITION THEOREMS

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.
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.