---
title: Analytical Moment Accountant Techniques
url: https://www.emergentmind.com/topics/moment-accountant-techniques
type: topic
---

# Analytical Moment Accountant Techniques

Moment accountant techniques provide analytic and algorithmic tools for tracking the cumulative privacy loss under adaptive composition in differential privacy, especially in the setting of Rényi Differential Privacy (RDP). Originating with Abadi et al. (2016) for the Gaussian mechanism, these methods have been rigorously generalized to arbitrary RDP mechanisms, including those with subsampling, by Wang, Balle, and Kasiviswanathan, resulting in explicit accounting of privacy amplification effects and efficient conversion to $(\varepsilon,\delta)$-DP guarantees. The moment accountant framework leverages cumulant and moment generating functions to propagate divergence bounds, enabling tight, non-asymptotic privacy analysis for large compositions in privacy-preserving machine learning workflows [1808.00087].

## 1. Analytical Moments Accountant: Generalization to Subsampled Mechanisms

The analytical moments accountant formalizes privacy tracking for generic mechanisms $M$ that satisfy $(\alpha, \varepsilon_M(\alpha))$-RDP. For subsampling without replacement at rate $\gamma = m/n$, a tight, non-asymptotic upper bound on the RDP of the composed mechanism is obtained:

\[
\varepsilon'(\alpha) \leq \frac{1}{\alpha-1} \log\left(1 + \sum_{j=2}^\alpha \gamma^j \binom{\alpha}{j} a_j \right),
\]
where
\[
a_2 = \min\left\{ 4(\exp(\varepsilon_M(2))-1), \exp(\varepsilon_M(2))\cdot\min\left(2, (\exp(\varepsilon_M(\infty))-1)^2\right)\right\},
\]
and for $j \geq 3$,
\[
a_j = \exp((j-1)\varepsilon_M(j)) \min\left(2, (\exp(\varepsilon_M(\infty))-1)^j\right).
\]

This amplification formula provides improved tightness over earlier Poisson (with replacement) results, especially in low-privacy and high-noise regimes, and is fully analytic in terms of combinatorial sums and binomial coefficients [1808.00087].

## 2. Core Methodological Steps

The derivation of the analytical moments accountant involves three critical components:

- **Ternary $\lvert\chi\rvert^\alpha$-DP and subsampling**: Pearson–Vajda divergence bounds for three distributions show that subsampling amplifies privacy proportionally to the sampling rate $\gamma$.
- **Newton’s finite-difference series**: The $\alpha$-moment expansion of the RDP divergence reduces the problem to bounding central moments, which are controlled using the ternary divergence parameters.
- **Sharp conversion of divergence bounds**: Explicit combinatorial expressions for $\zeta(j)$ in terms of the RDP profile $\varepsilon_M(\cdot)$ allow sharp analytic privacy amplification for all orders $\alpha$.

These steps collectively enable analytic privacy-tracking for arbitrary choices of $\alpha \geq 2$ [1808.00087].

## 3. Conversion of RDP to $(\varepsilon, \delta)$-DP

Once an analytic family $\varepsilon'(\alpha)$ is computed for the composed or subsampled mechanism, conversion to $(\varepsilon,\delta)$-DP proceeds via standard optimization:

\[
\varepsilon(\delta) = \inf_{\alpha > 1} \left(\varepsilon'(\alpha) + \frac{\log(1/\delta)}{\alpha-1}\right),
\]
or, equivalently, for a target $\varepsilon$,
\[
\delta(\varepsilon) = \inf_{\alpha > 1} \exp\left((\alpha-1)\varepsilon - (\alpha-1)\varepsilon'(\alpha)\right).
\]

Both optimizations are quasi-convex and can be solved rapidly by bisection or golden-section search, with running time depending logarithmically on desired precision [1808.00087].

## 4. Algorithmic and Data Structures

The moments accountant for RDP is implemented as a symbolic cumulant generating function (CGF) tracker:

- Each mechanism/subsampling pair is recorded with multiplicity.
- The cumulative privacy loss is the sum of CGFs for all mechanisms, allowing composition at the level of $\varepsilon'(\alpha)$.
- Privacy queries at given $(\varepsilon,\delta)$ involve minimizing the converted RDP profile as described above.

Algorithmic complexity is typically $O(1)$ per update (with memoization), and conversion queries are $O(|L|\cdot \operatorname{poly}(\alpha))$, where $|L|$ is the number of distinct mechanisms [1808.00087]:

| Operation            | Complexity         | Note                                             |
|----------------------|-------------------|--------------------------------------------------|
| add\_mechanism       | $O(1)$ (amortized) | Memoization of $\varepsilon'_M(\cdot)$           |
| total\_RDP($\alpha$) | $O(|L|\cdot \operatorname{poly}(\alpha))$ | Summation over mechanisms      |
| get\_ε / get\_δ      | $O(\log(\alpha^*/\tau))$ | Bisection/log-convex minimization                |

## 5. Comparison to the Classical Gaussian Moments Accountant

The analytic moments accountant generalizes the approach of Abadi et al. (2016) in several crucial respects:

- **Generality**: Applies to any RDP mechanism, not just the Gaussian mechanism under Poisson sampling.
- **Tightness**: Yields strictly tighter privacy amplification for sub-sampled mechanisms, especially in the non-asymptotic regime and under sampling without replacement.
- **Accuracy**: Tracks the entire continuous RDP profile $\varepsilon(\alpha)$, avoiding discretization or numerical integration required by other methods.
- **Memory and Efficiency**: Memory cost is proportional to the number of distinct mechanisms, with updates and queries efficient even under large compositions.

For the Gaussian mechanism with unit sensitivity and variance $\sigma^2$, the method gives dramatic improvement; e.g., for $k = 10^4$ compositions and $\delta = 10^{-6}$, it yields $\varepsilon \approx 0.3$, compared to $\varepsilon \approx 100$ by naive strong composition [1808.00087].

## 6. Interpretations and Practical Impact

The analytical moments accountant has become a foundational technique for rigorous privacy loss bookkeeping in differentially private learning with subsampling. It is a strict generalization of early Gaussian moment accountant techniques, providing analytic amplification bounds applicable to arbitrary RDP mechanisms, systematic support for efficient adaptive composition, and an $O(1)$ per-update, per-query algorithmic profile. This approach is essential for modern privacy accounting where datasets are accessed by multiple adaptive mechanisms, and precise non-asymptotic privacy guarantees are required [1808.00087].

Source: https://www.emergentmind.com/topics/moment-accountant-techniques