Manuscript Offprint
arXiv:2610.09651Closed-Form Noise Calibration Against Membership Inference for Random-Allocation DP-SGD
Abstract
DP-SGD protects training data by adding Gaussian noise to clipped gradients. The amount of noise is usually chosen by running a numerical privacy accountant inside a search. We study DP-SGD with random allocation, where each epoch uses every record once, at a randomly chosen step. For this setting we give a one-line formula that bounds the accuracy of every membership inference attack (MIA) on the trained model. With M steps per epoch, E epochs and noise multiplier , and with membership and non-membership equally likely a priori, the attack accuracy is at most . The formula comes from the chi-square divergence between a Gaussian distribution and a Gaussian mixture that dominates random allocation. It is interpretable and gives in about a microsecond. Where applicable, our formula needs at most about half the noise of the state-of-the-art closed-form bound. To measure how close the bound is, we also derive an exact expression for the attack accuracy of these two distributions and evaluate it numerically. Calibrating to this exact expression requires 13.0% to 20.2% less noise than the formula in our main experiments, and since it is exact, no accountant that knows only M, E and can certify a smaller . In training, the resulting outperforms the formula and matches a published accountant in test accuracy. It is found in seconds and certified in minutes, whereas every search we ran with that accountant took longer or returned at least 0.62% more noise. We show that MIAs on the trained models stay below the bound.
Marten van Dijk
CWI Amsterdam
1 INTRODUCTION
DP-SGD trains a model on private data by clipping each record's gradient and adding Gaussian noise to every update (Abadi et al., 2016). Its privacy analysis depends on how records are grouped into minibatches. Most analyses assume Poisson subsampling, where each record joins each minibatch independently. Training loops commonly use every record once per epoch instead (Chua et al., 2024a,b). Random allocation, also called balls-and-bins sampling, keeps this property. In every epoch each record is sent to one of the M steps, uniformly and independently, so the minibatch sizes vary (Chua et al., 2025; Shenfeld and Feldman, 2025; Dong et al., 2025). Algorithm 1 states the algorithm.
For random allocation, Chua et al. (2025) and Shenfeld and Feldman (2025) reduce one epoch to two distributions built from Gaussian noise. In this reduced form, an epoch without the record is M independent standard Gaussian values, one for each step. With the record, the value of one step, chosen uniformly at random, is also shifted by , the clipping norm divided by the noise scale. We write and for these two distributions and call them the Gaussian pair. Detecting the record from one epoch of training is never easier than telling from .
A privacy accountant for random allocation turns this pair into a privacy guarantee for the whole training run. Given M, E and , it computes how the privacy loss of the pair adds up over the E epochs and reports a guarantee such as -differential privacy (Dwork et al., 2006b,a). Accountants based on Rényi differential privacy (Mironov, 2017) use the Rényi divergences of from , which are known in closed form at integer orders two and higher (Shenfeld and Feldman, 2025; Dong et al., 2025). Accountants based on the privacy loss distribution (Koskela et al., 2020) compute the whole distribution of the privacy loss numerically, and Feldman and Shenfeld (2026) give a numerical accountant for random allocation. An accountant tells how private a given is, but choosing needs the reverse, the smallest that meets a privacy target. The
Affiliated with Vrije Universiteit Amsterdam.
Code is available at https://github.com/bilgehanertan/closed-form-noise-calibration.
usual approach therefore runs the accountant inside a search over . In our experiments, one run of the accountant of Feldman and Shenfeld (2026) with its default route in one direction at the it certified for our training took 6.5 minutes to 7.1 hours on one CPU core (Table 5 in Appendix E), and a search repeats such runs. Such a run is slow because its running time grows as the square of the number of grid points (Feldman and Shenfeld, 2026, Theorem 4.3), and certifying a close to the smallest one that meets the target needs a fine grid. A search with the accountant's fast Fourier route (Feldman and Shenfeld, 2026, Appendix F) took only 4.9 to 10.9 minutes, but it certified up to 4.07% more noise than the exact , more as M grew. For a detailed comparison and discussion of both routes, see Appendix E. We ask whether this search can be replaced by a formula. It can. We give a formula that bounds the accuracy of every membership inference attack on the trained model, at every M, E and , and that gives in about a microsecond. We also compute the exact value that the formula bounds. Calibrating to it takes seconds and needs slightly less noise than the that accountant certifies. No accountant that knows only M, E and can certify a below the exact one (Section 2). A finite computation in ball arithmetic certifies in minutes that the exact meets the target (Appendix C.5).
We measure privacy by membership inference. An attacker sees the final model of a training run and must decide whether a given record was in the training data. Let P and Q be the probability distributions of the final model without and with the record. Their total variation (TV) distance is
where A ranges over all events. When both answers are equally likely a priori, the optimal test is correct with probability (Chatzikokolakis et al., 2023; Mahloujifar et al., 2022)
For any two distributions we call their attack accuracy. We write alone for the distributions of the final model.
Total variation also has a meaning in f-differential privacy (Dong et al., 2019). The trade-off function is the smallest type-II error of a test of P against Q with type-I error at most . Random guessing gives , and
is the largest gap between the two curves (Appendix A). So means for every

Figure 1: The record is in one of the M steps of each epoch, chosen uniformly at random, so averaging over the step divides the chi-square divergence by M, and multiplies over the independent epochs.
. Ertan and van Dijk (2026) call the largest distance of the curve from the random-guessing line its separation, which is . Theorem 3.3 bounds the total variation of the Gaussian pair from above at every , and Theorem 4.1 gives it exactly.
Our starting point is the chi-square divergence
which bounds total variation by (Sason and Verdú, 2016). For the Gaussian pair it is exactly (Proposition 3.1). Since the allocation is redrawn every epoch, the reference pair for epochs is the product pair , and multiplies over epochs (Figure 1). By a known reduction, DP-SGD with random allocation is never easier to attack than this product pair (Section 2). We show that for every , and , the final model of DP-SGD with random allocation satisfies
Every quantity on the right is set before training, so the inequality can be solved for . Figure 1 shows where the division by M and the power E come from.
Contributions.
-
A closed-form bound and noise multiplier (Theorem 3.3). We derive the bound (5) from the known chi-square divergence of one epoch and solve the bound for in closed form (Corollary 3.4). Both hold at every finite M and E, and the noise multiplier takes about a microsecond to compute, while a search over takes seconds to hours.
-
The exact total variation at every E (Theorem 4.1). The bound (5) uses only the second moment of the likelihood ratio, which multiplies over the epochs. We derive the exact total variation as an integral of the moments of complex order of the likelihood ratio, which multiply over the epochs in the same way, and we reduce the moment of one epoch to a one-dimensional integral (Theorem 4.1).
We find the smallest that meets a target by a root search on this total variation and call it the exact , the least noise that any accountant that knows only M, E and can certify. We prove that at fixed the total-variation bound of Theorem 3.3 divided by the exact value tends to as M grows with . On nine single-epoch targets the closed-form of Corollary 3.4 needs 7.4% to 16.7% more noise than the exact .
-
The limit at fixed noise (Theorem 3.5). We prove that, as with and fixed, the trade-off curve of the pair converges to Gaussian differential privacy with . van Dijk and Ertan (2026, Theorem 4.2) show that in this limit the curve is asymptotically at least that of Gaussian differential privacy with the same , so that suffices for the curve to approach random guessing, and we show that is also necessary.
-
Training and membership inference attacks (Section 5). We train ResNet-18 on CIFAR-10, a linear classifier on CIFAR-100 and RoBERTa-base on SST-2 and AG News. We show that the exact gives the mean test or validation accuracy of the of the accountant of Feldman and Shenfeld (2026) to within 0.06 points, and that it is found in about ten seconds on one CPU core and certified to meet the target in minutes. Over the closed-form of Corollary 3.4, the exact raises the mean test or validation accuracy of every model, by 0.43 to 2.38 points. We also show empirically that none of our membership inference attacks has an attack accuracy above our bound (5). On a linear model the optimal attack almost reaches the exact attack accuracy of the Gaussian pair, while attacks on ResNet-18 stay close to random guessing.
Organization. Section 2 sets up the training algorithm, the membership test and the Gaussian pair. Section 3 derives the closed-form bound and its noise multiplier, and Section 4 computes the exact total variation. Section 5 reports the experiments, and Section 6 discusses related work and limitations.
The training algorithm. Algorithm 1 is the algorithm we analyze, DP-SGD with random allocation.
Algorithm 1 DP-SGD with random allocation
Require: dataset with , public and , an optimizer, an initial model
1: pad with ghost records and put the records in uniformly random order
2: for do
3: assign each index to a step in , uniformly and independently
4: for do
5:
6: also if step has no genuine record
7: with
8: end for
9: end for
10: return
A record is the unit that is added or removed. We use the zero-out adjacency (Chua et al., 2024a, 2025), and we pad the dataset to a public size with ghost records , whose gradient is zero. The records are put in a uniformly random order, which gives each record an index in (line 1). In every epoch each index is assigned to one of the steps, uniformly and independently (line 3). At each step the gradients of the records assigned to it are clipped one by one, , and summed (line 5). Gaussian noise is added, and the result is divided by the public expected batch size (line 6). A step with no genuine record still adds noise and still updates the model, so every run makes exactly EM updates. Because the divisor is public, the scale of the update does not depend on the data (Wang et al., 2026). Only the final model is released (line 10).
The data enter the algorithm only through the records. Everything else is fixed in advance and does not depend on the data. This includes , M, E, , C, the optimizer with its learning-rate schedule, and the distribution of the initial model. The loss depends on one record, so layers that mix the records of a step, such as batch normalization, are excluded, and group normalization can be used instead. The loss may use data augmentation. Its randomness, like that of the initial model and of the optimizer, is drawn independently of the data, the indices, the allocation and the noise. The random order, the allocations of all epochs and the noise of all steps are independent of each other, and every step draws fresh noise.
The membership test. Let be a dataset and the same dataset with one target record added. The attacker receives the model released by a run on or on , each with probability , and must say which. The optimal test is correct with probability (2), and (3) relates its error to the trade-off function.
The Gaussian pair. Divide each noisy sum by . Then the noise is standard Gaussian, and the target's scaled clipped gradient has length at most . The Gaussian pair of the introduction is
where is the th standard basis vector. With the target, one coordinate is shifted by , at a step the attacker does not know. Allocations are redrawn every epoch, so epochs give the product pair .
Theorem 3.1 of Chua et al. (2025), a special case of Theorem 3.1 of Shenfeld and Feldman (2025), shows that for one epoch of Algorithm 1 the Gaussian pair dominates the noisy updates, even when each gradient depends on the earlier updates. There exist a model, a loss and an optimizer for which, on every dataset that does not contain and has , the model that Algorithm 1 releases has exactly the distribution on and on (Appendix B.5). An accountant whose guarantee holds for every run of Algorithm 1 with the same , and must also cover this run, so for a target on the total variation it cannot certify a below the exact of Theorem 4.1. By Lemma D.4 of Chua et al. (2025), one randomized map turns the pair into the noisy updates under both hypotheses, so at every type-I error no test on the updates has a smaller type-II error than the optimal test on the pair. Adaptive composition (Zhu et al., 2022, Theorem 10), Lemma D.4 of Chua et al. (2025) applied once more to the composed pair, and post-processing (Appendix A) extend this to the model released after epochs, so for every dataset with and , the probability distributions and of the model released on and on satisfy
(7)
3 THE CLOSED-FORM BOUND
We now bound the total variation of the Gaussian pair through its chi-square divergence and solve the bound for . The chi-square divergence has a closed form, because averaging over the M steps divides it by M and the E epochs are independent. Throughout the paper we defer all proofs to the appendix.
Under the coordinates are independent standard Gaussians, and the likelihood ratio of (6) is the average
Given the step , only coordinate changes, and its density ratio is . Each has mean 1 and variance , a standard integral that Proposition D.2 of van Dijk and Ertan (2026) also computes. Since has mean 1, the chi-square divergence is the variance of . Averaging independent copies divides the variance by , which proves the following (Appendix B.1).
Proposition 3.1 (One epoch). For the pair (6), .
This value follows from the order-two Rényi divergence of random allocation (Shenfeld and Feldman, 2025; Dong et al., 2025), since . Liew and Takahashi (2022) computed the same divergence as the Rényi divergence of the shuffle Gaussian mechanism. For product distributions Rényi divergence adds (van Erven and Harremoës, 2014, Theorem 28), so multiplies over epochs and
The chi-square divergence does not determine the total variation, but it bounds it.
Remark 3.2 (From chi-square to total variation). For any pair with (Sason and Verdú, 2016, Eq. (7)),
Both branches are attained by distributions on two points, so no bound that depends only on c can be smaller (Appendix B.2).
Theorem 3.3 (Closed-form bound). For all integers and every , with as in (9),
(11)
Proposition 3.1, (9) and (10) give the theorem. Since for every , the theorem and (7) give the bound (5) for training runs. To see the size of , put . Then (Appendix B.2), so is close to when is small.
Because U increases with c and decreases as grows, the bound can be solved for .
Corollary 3.4 (Noise multiplier for a target total variation). Let be a target for , and let if and if , so that . The noise multiplier
gives , hence , and for the final model of Algorithm 1 by (7).
All targets in our experiments are at most 0.4, so only the first branch of U is used. The same equation can also be solved for E or for M.
To read (12), take one epoch and a fixed target . Then as grows. The proof of Theorem 6.1 of Ertan and van Dijk (2026), which is stated for one-epoch shuffling and applies to the same Gaussian pair, shows that for the pair has unless . This lower bound tends to as grows, and , so every leaves above for large . Hence for large the smallest that meets the target is at least , and the closed form is at most times this smallest .
The limit at fixed noise. The bound depends on M and E only through , and at fixed , exactly when . The next theorem shows that the exact total variation behaves in the same way, and it finds the limit when E grows in proportion to M. Write for the standard normal distribution function and for the trade-off function of against . It defines Gaussian differential privacy (GDP) (Dong et al., 2019).
Theorem 3.5 (Gaussian differential privacy limit). Fix and let . Let be positive integers with for some . Put \mu = \sqrt{r(e^{1/\sigma^2} - 1). Then
Hence . For any sequence , the total variation tends to 0 if and only if .
The proof applies a central limit theorem to the log-likelihood ratio summed over the epochs (Appendix B.3). The parameter of the limit is the one Bu et al. (2019) found for Poisson subsampling. For the same pair, van Dijk and Ertan (2026, Theorem 4.2) prove that the curve is asymptotically at least , which is one half of the limit. Figure 3 in Appendix F checks the limit by Monte Carlo sampling at M as small as 64. Setting the limit equal to with gives a second one-line noise multiplier, but a limit is not a bound, so unlike the closed form of Corollary 3.4, the second multiplier carries no guarantee at finite M and E (Appendix B.3).
When , the exact total variation and the bound both tend to zero at the same rate. Put . The exact total variation is , and the bound of Theorem 3.3 is (Appendix C.6). The constant comes from the Gaussian limit. For small , the total variation between and is , because the standard normal density at zero is . So the closed form depends on , and in the same way as the exact value, and it is larger by a factor that tends to . Section 4 computes this factor at finite sizes.
4 THE EXACT TOTAL VARIATION
We now compute the total variation of the Gaussian pair exactly, to measure how much extra noise the closed form needs and to find the smallest that meets a target. The bound of Theorem 3.3 uses only the second moment of the likelihood ratio. The exact total variation depends on its whole distribution. For random allocation it can still be written with one-dimensional integrals, because the likelihood ratio is a product of independent factors, one for each epoch, and each factor is an average of independent terms, one for each step. These integrals are evaluated by computer.
Let be the characteristic function of the lognormal variable , , and write for the real part of a complex number. In one epoch, (8) gives with . The terms are independent, and each has characteristic function . Over epochs there are independent copies of , one for each epoch, and the likelihood ratio is their product . For complex with we call the one-epoch factor. The characteristic function of a sum of independent terms is the product of theirs, and the moment of a product of independent factors is the product of their moments, so
Theorem 4.1 (Exact TV). For every ,
(14) and for the one-epoch factor is
For E = 1 the total variation is also
All three integrals converge absolutely, and the integrand of (14) is nonnegative.
Formula (14) needs only the one-epoch factor , raised to the power E, one for each epoch. The accountant of Zhu et al. (2022) composes steps in the same way, with powers of the characteristic function of the privacy loss. Formula (15) computes from the characteristic function of Y raised to the power M, one factor for each step. Appendix C gives the proofs.
Comparison with the closed form. We evaluate the total variation numerically, in a few seconds per value (Appendix C.4 gives the method and its checks). At one epoch, over ten settings with and M from 4,096 to 1,048,576, the ratio of the closed-form bound to the exact total variation lies between 1.253314 and 1.253413 and decreases as M grows, toward its limit as . With several epochs the ratio grows with the target. On the 27 configurations of Table 11 in Appendix F, it is about 1.27 at and between 1.41 and 1.53 at . At a fixed , a small enough makes the exact distance much smaller than the bound (Appendix D).
We call the smallest whose exact total variation is at most a target the exact . Finding it needs a search over , which repeats this evaluation many times.
5 EXPERIMENTS
We compare the closed form with the exact value and with other ways of setting (Section 5.1), train four models at each to measure what the extra noise of the closed form costs (Section 5.2), and run membership inference attacks on the trained models (Section 5.3).
5.1 Noise and cost of calibration
We compare ways of setting for a target at one epoch on nine targets (see Appendix F for the full comparison.) A target caps the attack accuracy of every membership inference attack at , for example at 0.55 for . The closed form takes about a microsecond and needs 7.4% to 16.7% more noise than the exact , which is well defined (Appendix C.4) and which a root search on (16) finds in 0.27 to 42 seconds. Theorem 4.3 of Shenfeld and Feldman (2025), which we call FS, bounds random allocation through Poisson subsampling at an auxiliary rate . At it needs 9.0% to 34.3% more noise than the exact . A smaller brings its bound closer to the exact value, but the bound then needs the total variation of a Poisson pair computed more precisely. The closed form of van Dijk and Ertan (2026) needs 128% to 267% more noise where it applies (Appendix F).
5.2 What the extra noise costs in training
We set for the target in three ways and train with each. A root search finds the exact , rounded up to a multiple of , in 8.8 to 10.4 seconds on one CPU core, and a finite computation in ball arithmetic certifies in another 70 to 670 seconds that this meets the target (Appendix C.5). The accountant of Feldman and Shenfeld (2026) certifies a when its upper bound on the total variation is at most , and proves that a misses the target when its lower bound exceeds . With its default route the accountant certified a 0.24% to 0.52% above the exact one, and one run in one direction at that , with no search, took 6.5 minutes to 7.1 hours on one CPU core. The accountant's fast Fourier route searched in 4.9 to 10.9 minutes but certified 0.26% to 4.07% more noise than the exact , and Appendix E compares both routes in detail. The closed form needs 14.9% to 25.3% more noise than the exact , and at its the exact total variation is only 0.0787 to 0.0789, about 79% of (Table 11 in Appendix F). At the exact gives between 0.939 and 1.022 (Table 6 in Appendix E). The exact of Theorem 4.1 is therefore the smallest of the three. No accountant that knows only M, E and can certify a below the exact before rounding. All three are certified to meet the target, the closed form by Corollary 3.4, the accountant's by its upper bound, and the exact by ball arithmetic.
All training uses Algorithm 1. ResNet-18 (He et al., 2016) with group normalization (Wu and He, 2018) is trained from scratch on CIFAR-10 (Krizhevsky, 2009), a linear classifier is trained on frozen ResNet-50 features of CIFAR-100, and RoBERTa-base (Liu et al., 2019) is fine-tuned in full on SST-2 (Socher et al., 2013) and on AG News (Zhang et al., 2015). The two image models use the nine cells , , and the two RoBERTa-base models use at E = 20. Each model uses three seeds and one recipe, chosen in advance on public data, and the three runs of a cell and seed differ only in . Table 1 gives the mean over the cells and seeds of each model, and Table 9 in Appendix E lists every cell.
The exact raises the mean test accuracy over the closed form by 1.08 points on CIFAR-10, by 2.38 points for the linear classifier on CIFAR-100 and by 0.43 points
Table 1: Noise and time of three ways of setting for the target , and the test accuracy of training with each. Closed form is Corollary 3.4, exact is Theorem 4.1, and accountant is that of Feldman and Shenfeld (2026) with its default route. Noise and time are ranges over the nine cells , , with find the time to find , certify the time to certify that a given meets the target, and find and certify the time for both, on one CPU core. The closed form needs no run to certify, and exact is certified as in Appendix C.5. The accountant's search runs the accountant at each it tries and certifies the it returns, so it has no separate find time. The search ran with no limit on threads, and the accountant's certify is the runs at the returned , in one direction, until one certified it. Under training, the first three rows give the mean test accuracy in percent (validation accuracy for SST-2), and the last two rows give differences in points.
| setting | training | |||||||
|---|---|---|---|---|---|---|---|---|
| noise above exact | find | certify | find and certify | CIFAR-10 | linear CIFAR-100 | SST-2 | AG News | |
| closed form | 14.9–25.3% | 0.7–1.5 s | none | 0.7–1.5 s | 39.68 ± 0.26 | 53.58 ± 0.11 | 85.89 ± 0.87 | 89.61 ± 0.14 |
| exact | 0 | 8.8–10.4 s | 70–670 s | 79–680 s | 40.75 ± 0.37 | 55.96 ± 0.15 | 87.47 ± 0.52 | 90.05 ± 0.17 |
| accountant | 0.24–0.52% | - | 6.5m–7.1 h | 5.5–249 h | 40.76 ± 0.30 | 55.91 ± 0.15 | 87.47 ± 0.59 | 90.04 ± 0.17 |
| exact minus closed form | +1.08 | +2.38 | +1.58 | +0.43 | ||||
| exact minus accountant | 0.00 | +0.05 | 0.00 | +0.01 | ||||
on AG News, and the validation accuracy on SST-2 by 1.58 points. The gain is positive in each of the 24 cells of the four models, and it persists at the targets (Tables 8 and 9 in Appendix E). Training at the exact and at the accountant's gives mean test or validation accuracies within 0.06 points of each other, as expected for noise levels at most apart. So the exact of Theorem 4.1 gives the training result of the accountant's , and it is found in seconds and certified in minutes, whereas each search with the accountant in our experiments took longer or certified at least more noise.
5.3 Membership inference attacks (MIA)
We run MIA on two models, with the membership test of Section 2. By (7) no attack has a higher attack accuracy than the Gaussian pair, whose attack accuracy is at most the bound. Table 2 collects the results.
ResNet-18 on CIFAR-10. Each trial trains two ResNet-18 models at , and , so and the bound is 0.55. The two runs differ only in one target record and share all other randomness. The target is a CIFAR-10 test image of a cat relabeled as a deer, a mislabeled record of the kind used as a canary in privacy audits (Nasr et al., 2023). The score is the margin between the model's logit for the target's assigned label and its largest other logit (Carlini et al., 2022). We chose this score and its threshold on 8 separate pilot trials, from seven candidates, and then applied them once to 150 new trials. The balanced accuracy of the attack, the average of its fraction of correct answers on the 150 models trained with the target and on the 150 trained without it, is 0.513, well below the bound of 0.55 and below 0.539, the attack accuracy of the pair itself. A one-sided confidence bound puts it at most 0.534. The attack stays near chance because the standard deviation of the score across trials is 62 times the average change that adding the record causes.
A second attack gives the same picture. Its target is a ClipBKD canary (Jagielski et al., 2020), its score is the logit-scaled confidence (Carlini et al., 2022) averaged over six views, and its balanced accuracy is , again below 0.539 and 0.55. Appendix E describes both attacks in detail.
A linear model with a known optimal attack. Both attacks on ResNet-18 stay well below the Gaussian pair, so they leave open whether any attack on a trained model can come close to the pair. We now show that an attack can come close, on a linear model whose optimal attack is known in closed form. As in the linear-loss analysis of Nasr et al. (2025, Theorem 1), which treats Poisson subsampling, the gradient of the target is the same at every model, and only the coordinate of the released model along it depends on the target. Here the model is a vector with loss , trained by plain SGD from with learning rate . Twelve records have all features zero, so their clipped gradients are zero. The target has features for a fixed unit vector , so its gradient is clipped to at every model. The released model is then the sum of the target's contributions and all the noise, and with the optimal test is correct with probability under each hypothesis (Appendix E). We take , steps and epochs, so most steps hold no genuine record and add only noise.
With 300 trials per setting, the attack reaches 0.533 against a bound of 0.55 at , and 0.613 against
Table 2: Membership inference attacks on trained models, against the closed-form bound and the Gaussian pair. Each trial trains two models that differ only in one target record, and the attacker sees one of them. Bound is of Theorem 3.3, Gaussian pair is the attack accuracy of from Theorem 4.1, and optimal is the attack accuracy of the optimal attack on the released linear model, with for the target and for . Measured is the balanced accuracy of our attack with one standard error, over 150 trials for ResNet-18 and 300 for each linear row. Values of are rounded to three decimals, and the runs and computed columns use the unrounded values.
| model | M | E | σ | bound | Gaussian pair | optimal | measured |
|---|---|---|---|---|---|---|---|
| ResNet-18 | 100 | 10 | 1.737 | 0.55 | 0.5394 | - | 0.513 ± 0.007 |
| ResNet-18, ClipBKD | 100 | 10 | 1.737 | 0.55 | 0.5394 | - | 0.510 ± 0.006 |
| linear | 128 | 125 | 5.039 | 0.55 | 0.5394 | 0.5391 | 0.533 ± 0.007 |
| linear, exact σ | 128 | 125 | 3.994 | 0.564 | 0.5500 | 0.5492 | 0.552 ± 0.009 |
| linear | 128 | 125 | 1.561 | 0.70 | 0.6374 | 0.6242 | 0.613 ± 0.012 |
| linear, x★ = 0 | 128 | 125 | 1.561 | 0.70 | 0.6374 | 0.5000 | 0.500 ± 0.000 |
0.70 at , in agreement with the predicted of 0.539 and 0.624. At the exact for , where the Gaussian pair has attack accuracy 0.55, it reaches against the predicted 0.549. In every linear row of Table 2 the optimal attack is below the Gaussian pair, which is below the bound, and the measured attack is within one standard error of the optimal one. At the closed-form for the optimal test on this model is correct with probability 0.5391, and the optimal test on the pair itself, computed with Theorem 4.1, with probability 0.5394. So the linear model keeps of the pair's advantage over random guessing, and at , where the two are 0.6242 and 0.6374. Training can therefore come close to the pair. The remaining distance to the bound, from 0.5394 to 0.55, is the gap between the closed form and the exact value.
6 RELATED WORK AND LIMITATIONS
Random allocation. Random allocation gives each record a fixed number of participations (Chua et al., 2025; Shenfeld and Feldman, 2025; Dong et al., 2025). Choquette-Choo et al. (2025) use the same sampling for one epoch in matrix mechanisms with correlated noise and compute guarantees by Monte Carlo, and Schuchardt and Kalinin (2026) compute such guarantees without sampling. We study DP-SGD with independent noise and a fresh allocation in every epoch.
Attack-based measures and calibration. Total variation is the optimal advantage (Yeom et al., 2018) of a membership test for one pair of neighboring datasets (Chatzikokolakis et al., 2023). For DP-SGD with Poisson subsampling, Mahloujifar et al. (2022) estimate a bound on this advantage by Monte Carlo, Kulynych et al. (2024) search with an account- tant for the that meets a target advantage, Cherubin et al. (2024) give closed-form record-inference bounds up to an error term, and van Dijk et al. (2024) choose parameters before training from a closed-form guarantee. Appendix G gives related work in full.
Limitations. Our bound and the exact concern the total variation of the pair, which caps the accuracy of every membership test, and we do not obtain an expression for the full trade-off function or the privacy profile. These may be of separate interest when protection against membership inference is needed at small false-positive rates. Appendix H discusses the limitations, including a chi-square bound at small false-positive rates, groups of records and guarantees.
7 CONCLUSION
For DP-SGD with random allocation, one number, , bounds the accuracy of every membership test on the released model, and the bound solves for in closed form. At fixed the total-variation bound exceeds the exact value by a factor that tends to as grows with , and on single-epoch targets the closed form needs to more noise than the exact . The exact is the smallest that any accountant that knows only , and could certify. It takes seconds to find and minutes to certify. The exact gives the mean test or validation accuracy of the accountant's to within 0.06 points. Over the closed form it raised the mean test or validation accuracy of every model by 0.43 to 2.38 points. As with at fixed , the trade-off curve of the pair tends to Gaussian differential privacy, which is random guessing if and only if . A linear model shows that training can come close to the pair, while an attack on ResNet-18 stays well below the bound.
AI use statement
In this work, we used generative AI tools (large language models) to formulate mathematical claims, to provide critical ingredients for proofs, to assist in writing and checking proofs, to give feedback on the design of experiments, to implement methods by writing and reviewing the code for experiments, and to help interpret results. We have not used generative AI tools to develop theoretical models or conceptual frameworks or to propose or refine hypotheses, and generating synthetic datasets, translation, cleaning or reformatting datasets and qualitative or thematic data analysis are not applicable to this work. Additionally, we used generative AI tools to draft and edit text, to write code for analysis, figures and tables, and to search and read the literature. We have reviewed all AI-assisted work. The language models wrote the proofs in an iterative process that the authors led. The authors chose which statements to prove, steered each argument toward an approach, pointed out gaps and errors, and reviewed every result. All AI-assisted proofs were checked line by line by the authors. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
Acknowledgements
The contribution of Marten van Dijk and Murat Bilgehan Ertan to this publication is part of the project CiCS of the research program Gravitation which is (partly) financed by the Dutch Research Council (NWO) under the grant 024.006.037. We acknowledge the use of the DAS-6 HPC cluster at VU Amsterdam (Bal et al., 2016).
References
Martín Abadi, Andy Chu, Ian J. Goodfellow, H. Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In Edgar R. Weippl, Stefan Katzenbeisser, Christopher Kruegel, Andrew C. Myers, and Shai Halevi, editors, Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria, October 24-28, 2016, pages 308–318. ACM, 2016. doi: 10.1145/2976749.2978318. URL https://doi.org/10.1145/2976749.2978318.
Henri E. Bal, Dick H. J. Epema, Cees de Laat, Rob van Nieuwpoort, John W. Romein, Frank J. Seinstra, Cees Snoek, and Harry A. G. Wijshoff. A medium-scale distributed system for computer science research: Infrastructure for the long term. Computer, 49(5):54–63, 2016. doi: 10.1109/MC.2016.127. URL https://doi.org/10.1109/MC.2016.127.
Borja Balle and Yu-Xiang Wang. Improving the Gaussian mechanism for differential privacy: Analytical calibration and optimal denoising. In Jennifer G. Dy and Andreas Krause, editors, Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholm, Sweden, Stockholm, Sweden, July 10-15, 2018, volume 80 of Proceedings of Machine Learning Research, pages 394–403. PMLR, 2018. URL http://proceedings.mlr.press/v80/balle18a.html.
Borja Balle, Peter Kairouz, Brendan McMahan, Om Dipakbhai Thakkar, and Abhradeep Thakurta. Privacy amplification via random check-ins. In Hugo Larochelle, Marc'Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. URL https://proceedings.neurips.cc/paper/2020/hash/313f422ac583444ba6045cd122653b0e-Abstract.html.
Zhiqi Bu, Jinshuo Dong, Qi Long, and Weijie J. Su. Deep learning with Gaussian differential privacy. CoRR, abs/1911.11607, 2019. doi: 10.48550/ARXIV.1911.11607. URL https://doi.org/10.48550/arXiv.1911.11607. Also published in Harvard Data Science Review, 2020.
Nicholas Carlini, Steve Chien, Milad Nasr, Shuang Song, Andreas Terzis, and Florian Tramèr. Membership inference attacks from first principles. In 43rd IEEE Symposium on Security and Privacy, SP 2022, San Francisco, CA, USA, May 22-26, 2022, pages 1897–1914. IEEE, 2022. doi: 10.1109/SP46214.2022.9833649. URL https://doi.org/10.1109/SP46214.2022.9833649.
Douglas G. Chapman and Herbert Robbins. Minimum variance estimation without regularity assumptions. The Annals of Mathematical Statistics, 22(4):581–586, 1951. doi: 10.1214/aoms/1177729548.
Konstantinos Chatzikokolakis, Giovanni Cherubin, Catuscia Palamidessi, and Carmela Troncoso. Bayes security: A not so average metric. In 36th IEEE Computer Security Foundations Symposium, CSF 2023, Dubrovnik, Croatia, July 10-14, 2023, pages 388–406. IEEE, 2023. doi: 10.1109/CSF57540.2023.000111. URL https://doi.org/10.1109/CSF57540.2023.000111.
Giovanni Cherubin, Boris Köpf, Andrew Paverd, Shruti Tople, Lukas Wutschitz, and Santiago Zanella-Béguelin. Closed-form bounds for DP-SGD against record-level inference attacks. In Davide Balzarotti and Wenyuan Xu, editors, 33rd USENIX Security Symposium, USENIX Security 2024, Philadelphia, PA, USA, August 14-16, 2024. USENIX Association,
Christopher A. Choquette-Choo, Arun Ganesh, Saminul Haque, Thomas Steinke, and Abhradeep Guha Thakurta. Near-exact privacy amplification for matrix mechanisms. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025. OpenReview.net, 2025. URL https://openreview.net/forum?id=txV4dNeusx.
Lynn Chua, Badih Ghazi, Pritish Kamath, Ravi Kumar, Pasin Manurangsi, Amer Sinha, and Chiyuan Zhang. How private are DP-SGD implementations? In Ruslan Salakhutdinov, Zico Kolter, Katherine A. Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, volume 235 of Proceedings of Machine Learning Research, pages 8904–8918. PMLR / OpenReview.net, 2024a. URL https://proceedings.mlr.press/v235/chua24a.html.
Lynn Chua, Badih Ghazi, Pritish Kamath, Ravi Kumar, Pasin Manurangsi, Amer Sinha, and Chiyuan Zhang. Scalable DP-SGD: Shuffling vs. Poisson subsampling. In Amir Globersons, Lester Mackey, Danielle Belgrave, Angela Fan, Ulrich Paquet, Jakub M. Tomczak, and Cheng Zhang, editors, Advances in Neural Information Processing Systems 37: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, 2024b. URL http://papers.nips.cc/paper_files/paper/2024/hash/81c252b45b3bd7d9bf080eb27794b762-Abstract-Conference.html.
Lynn Chua, Badih Ghazi, Charlie Harrison, Pritish Kamath, Ravi Kumar, Ethan Leeman, Pasin Manurangsi, Amer Sinha, and Chiyuan Zhang. Balls-and-bins sampling for DP-SGD. In Yingzhen Li, Stephan Mandt, Shipra Agrawal, and Mohammad Emtiyaz Khan, editors, International Conference on Artificial Intelligence and Statistics, AISTATS 2025, Mai Khao, Thailand, 3-5 May 2025, volume 258 of Proceedings of Machine Learning Research, pages 946–954. PMLR, 2025. URL https://proceedings.mlr.press/v258/chua25a.html.
C. J. Clopper and E. S. Pearson. The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika, 26(4):404–413, 1934. ISSN 1464-3510. doi: 10.1093/biomet/26.4.404. URL http://dx.doi.org/10.1093/biomet/26.4.404.
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In 2009 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR 2009), 20-25 June 2009, Miami, Florida, USA, pages 248–255. IEEE Computer Society, 2009. doi: 10.1109/CVPR.2009.5206848. URL https://doi.org/10.1109/CVPR.2009.5206848.
DLMF. NIST Digital Library of Mathematical Functions. https://dlmf.nist.gov/, Release 1.2.8 of 2026-09-15, 2026. F. W. J. Olver, A. B. Olde Daalhuis, D. W. Lozier, B. I. Schneider, R. F. Boisvert, C. W. Clark, B. R. Miller, B. V. Saunders, H. S. Cohl, and M. A. McClain, eds.
Andy Dong and Arun Ganesh. Privacy amplification for BandMF via b-min-sep subsampling. CoRR, abs/2602.09338, 2026. doi: 10.48550/ARXIV.2602.09338. URL https://doi.org/10.48550/arXiv.2602.09338.
Andy Dong and Ayfer Özgür. Less random, more private: What is the optimal subsampling scheme for DP-SGD? CoRR, abs/2605.07072, 2026. doi:10.48550/ARXIV.2605.07072. URL https://doi.org/10.48550/arXiv.2605.07072.
Andy Dong, Wei-Ning Chen, and Ayfer Özgür. Leveraging randomness in model and data partitioning for privacy amplification. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, volume 267 of Proceedings of Machine Learning Research. PMLR / OpenReview.net, 2025. URL https://proceedings.mlr.press/v267/dong25a.html.
Jinshuo Dong, Aaron Roth, and Weijie J. Su. Gaussian differential privacy. CoRR, abs/1905.02383, 2019. doi: 10.48550/ARXIV.1905.02383. URL https://doi.org/10.48550/arXiv.1905.02383. Also published in Journal of the Royal Statistical Society Series B 84(1):3–37, 2022. Result numbers as in the arXiv version.
Vadym Doroshenko, Badih Ghazi, Pritish Kamath, Ravi Kumar, and Pasin Manurangsi. Connect the dots: Tighter discrete approximations of privacy loss distributions. Proc. Priv. Enhancing Technol., 2022(4):552–570, 2022. doi: 10.56553/POPETS-2022-0122. URL https://doi.org/10.56553/popets-2022-0122.
Rick Durrett. Probability: Theory and Examples. Cambridge University Press, fifth edition, April 2019. ISBN 9781108473682. doi: 10.1017/9781108591034. URL http://dx.doi.org/10.1017/9781108591034. Theorem numbers as in the author's version of January 11, 2019, https://services.math.duke.edu/~rtd/PTE/PTE5_011119.pdf.
Cynthia Dwork, Krishnaram Kenthapadi, Frank McSherry, Ilya Mironov, and Moni Naor. Our data, ourselves: Privacy via distributed noise generation. In Serge Vaudenay, editor, Advances in Cryptology - EUROCRYPT 2006, 25th Annual International Conference on the Theory and Applications of Cryptographic Techniques, St. Petersburg, Russia, May 28 - June 1, 2006, Proceedings, volume 4004 of Lecture Notes in Computer Science, pages 486–503. Springer, 2006a. doi: 10.1007/11761679_29. URL https://doi.org/10.1007/11761679_29.
Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam D. Smith. Calibrating noise to sensitivity in private data analysis. In Shai Halevi and Tal Rabin, editors, Theory of Cryptography, Third Theory of Cryptography Conference, TCC 2006, New York, NY, USA, March 4-7, 2006, Proceedings, volume 3876 of Lecture Notes in Computer Science, pages 265–284. Springer, 2006b. doi: 10.1007/11681878_14. URL https://doi.org/10.1007/11681878_14.
Murat Bilgehan Ertan and Marten van Dijk. Fundamental limitations of favorable privacy-utility guarantees for DP-SGD. CoRR, abs/2601.10237, 2026. doi: 10.48550/ARXIV.2601.10237. URL https://doi.org/10.48550/arXiv.2601.10237. The authors state that the paper is accepted at ACM CCS 2026.
Vitaly Feldman and Moshe Shenfeld. Efficient privacy loss accounting for subsampling and random allocation. In Tong Zhang, Miroslav Dudik, Martin Jaggi, Alekh Agarwal, Sharon Li, Dale Schuurmans, Jerry Zhu, Felix Berkenkamp, Hanze Dong, and Alberto Bietti, editors, Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 29897–29929. PMLR, 06–11 Jul 2026. URL https://proceedings.mlr.press/v306/feldman26a.html.
Arun Ganesh. Tighter privacy analysis for truncated Poisson sampling. CoRR, abs/2508.15089, 2025. doi:10.48550/ARXIV.2508.15089. URL https://doi.org/10.48550/arXiv.2508.15089.
Elena Ghazi and Ibrahim Issa. Total variation meets differential privacy. IEEE J. Sel. Areas Inf. Theory, 5:207–220, 2024. doi: 10.1109/JSAIT.2024.3384083. URL https://doi.org/10.1109/JSAIT.2024.3384083.
Juan Felipe Gómez, Bogdan Kulynych, Georgios Kaissis, Flávio P. Calmon, Jamie Hayes, Borja Balle, and Antti Honkela. Position: Gaussian DP for reporting differential privacy guarantees in machine learning. In IEEE Conference on Secure and Trustworthy Machine Learning, SaTML 2026, Munich, Germany, March 23-25, 2026, pages 462–480. IEEE, 2026. doi:
10.1109/SATML68715.2026.00033. URL https://doi.org/10.1109/SATML68715.2026.00033.
J. M. Hammersley. On estimating restricted parameters. Journal of the Royal Statistical Society: Series B (Methodological), 12(2):192–229, 1950. doi: 10.1111/j.2517-6161.1950.tb00056.x.
Charles R. Harris, K. Jarrod Millman, Stéfan van der Walt, Ralf Gommers, Pauli Virtanen, David Cournapeau, Eric Wieser, Julian Taylor, Sebastian Berg, Nathaniel J. Smith, Robert Kern, Matti Picus, Stephan Hoyer, Marten H. van Kerkwijk, Matthew Brett, Allan Haldane, Jaime Fernández del Río, Mark Wiebe, Pearu Peterson, Pierre Gérard-Marchant, Kevin Sheppard, Tyler Reddy, Warren Weckesser, Hameer Abbasi, Christoph Gohlke, and Travis E. Oliphant. Array programming with NumPy. Nat., 585:357–362, 2020. doi: 10.1038/S41586-020-2649-2. URL https://doi.org/10.1038/s41586-020-2649-2.
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 770–778. IEEE Computer Society, 2016. doi: 10.1109/CVPR.2016.90. URL https://doi.org/10.1109/CVPR.2016.90.
Pao-Lu Hsu. Absolute moments and characteristic function. Journal of the Chinese Mathematical Society (New Series), 1(3):257–280, 1951. doi:10.12386/A1951sxxb0013.
Matthew Jagielski, Jonathan R. Ullman, and Alina Oprea. Auditing differentially private machine learning: How private is private SGD? In Hugo Larochelle, Marc'Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. URL https://proceedings.neurips.cc/paper/2020/hash/fc4ddc15f9f4b4b06ef7844d6bb53abf-Abstract.html.
Fredrik Johansson. Arb: Efficient arbitrary-precision midpoint-radius interval arithmetic. IEEE Trans. Computers, 66(8):1281–1292, 2017. doi: 10.1109/TC.2017.2690633. URL https://doi.org/10.1109/TC.2017.2690633.
Fredrik Johansson. Computing hypergeometric functions rigorously. ACM Trans. Math. Softw., 45(3): 30, 2019. doi: 10.1145/3328732. URL https://doi.org/10.1145/3328732.
Peter Kairouz, Sewoong Oh, and Pramod Viswanath. The composition theorem for differential privacy. In
Francis R. Bach and David M. Blei, editors, Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, volume 37 of JMLR Workshop and Conference Proceedings, pages 1376–1385. JMLR.org, 2015. URL http://proceedings.mlr.press/v37/kairouz15.html.
Antti Koskela, Joonas Jälkö, and Antti Honkela. Computing tight differential privacy guarantees using FFT. In Silvia Chiappa and Roberto Calandra, editors, The 23rd International Conference on Artificial Intelligence and Statistics, AISTATS 2020, 26-28 August 2020, Online [Palermo, Sicily, Italy], volume 108 of Proceedings of Machine Learning Research, pages 2560–2569. PMLR, 2020. URL http://proceedings.mlr.press/v108/koskela20b.html.
Antti Koskela, Mikko A. Heikkilä, and Antti Honkela. Numerical accounting in the shuffle model of differential privacy. Trans. Mach. Learn. Res., 2023. URL https://openreview.net/forum?id=11osftjEbF.
Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
Bogdan Kulynych, Juan Felipe Gómez, Georgios Kaissis, Flávio P. Calmon, and Carmela Troncoso. Attack-aware noise calibration for differential privacy. In Amir Globersons, Lester Mackey, Danielle Belgrave, Angela Fan, Ulrich Paquet, Jakub M. Tomczak, and Cheng Zhang, editors, Advances in Neural Information Processing Systems 37: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, 2024. URL http://papers.nips.cc/paper_files/paper/2024/hash/f33e853ba1f5f038268f9839e37821d5-Abstract-Conference.html.
Alexey Kurakin, Natalia Ponomareva, Umar Syed, Liam MacDermed, and Andreas Terzis. Harnessing large-language models to generate private synthetic text. CoRR, abs/2306.01684, 2023. doi:10.48550/ARXIV.2306.01684. URL https://doi.org/10.48550/arXiv.2306.01684.
Alan L. Lewis. A simple option formula for general jump-diffusion and other exponential Lévy processes. Working paper, Envision Financial Systems and OptionCity.net, August 2001. URL http://dx.doi.org/10.2139/ssrn.282110. Revised September 2001. SSRN 282110.
Xuechen Li, Florian Tramèr, Percy Liang, and Tatsunori Hashimoto. Large language models can be strong differentially private learners. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022.
OpenReview.net, 2022. URL https://openreview.net/forum?id=bVuP3ltATMz.
Seng Pei Liew and Tsubasa Takahashi. Shuffle Gaussian mechanism for differential privacy. CoRR, abs/2206.09569, 2022. doi: 10.48550/ARXIV.2206.09569. URL https://doi.org/10.48550/arXiv.2206.09569.
Gwo Dong Lin and Chin-Yuan Hu. Formulas of absolute moments. Sankhya A, 83(1):476–495, 2021. ISSN 0976-8378. doi: 10.1007/s13171-019-00196-x. URL http://dx.doi.org/10.1007/s13171-019-00196-x.
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. RoBERTa: A robustly optimized BERT pretraining approach. CoRR, abs/1907.11692, 2019. doi: 10.48550/ARXIV.1907.11692. URL https://doi.org/10.48550/arXiv.1907.11692.
Albert Madansky. Bounds on the expectation of a convex function of a multivariate random variable. The Annals of Mathematical Statistics, 30(3):743–746, 1959. doi: 10.1214/aoms/1177706203.
Saeed Mahloujifar, Alexandre Sablayrolles, Graham Cormode, and Somesh Jha. Optimal membership inference bounds for adaptive composition of sampled Gaussian mechanisms. CoRR, abs/2204.06106, 2022. doi: 10.48550/ARXIV.2204.06106. URL https://doi.org/10.48550/arXiv.2204.06106.
Ilya Mironov. Rényi differential privacy. In 30th IEEE Computer Security Foundations Symposium, CSF 2017, Santa Barbara, CA, USA, August 21-25, 2017, pages 263–275. IEEE Computer Society, 2017. doi:10.1109/CSF.2017.11. URL https://doi.org/10.1109/CSF.2017.11.
Milad Nasr, Jamie Hayes, Thomas Steinke, Borja Balle, Florian Tramèr, Matthew Jagielski, Nicholas Carlini, and Andreas Terzis. Tight auditing of differentially private machine learning. In Joseph A. Calandrino and Carmela Troncoso, editors, 32nd USENIX Security Symposium, USENIX Security 2023, Anaheim, CA, USA, August 9-11, 2023, pages 1631–1648. USENIX Association, 2023. URL https://www.usenix.org/conference/usenixsecurity23/presentation/nasr.
Milad Nasr, Thomas Steinke, Borja Balle, Christopher A. Choquette-Choo, Arun Ganesh, Matthew Jagielski, Jamie Hayes, Abhradeep Guha Thakurta, Adam Smith, and Andreas Terzis. The last iterate advantage: Empirical auditing and principled heuristic analysis of differentially private SGD. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April
24-28, 2025. OpenReview.net, 2025. URL https://openreview.net/forum?id=DwqoBkj2Mw.
Jerzy Neyman and Egon Sharpe Pearson. On the problem of the most efficient tests of statistical hypotheses. Philosophical Transactions of the Royal Society of London. Series A, Containing Papers of a Mathematical or Physical Character, 231(694-706):289–337, February 1933. ISSN 2053-9258. doi:10.1098/rsta.1933.0009. URL http://dx.doi.org/10.1098/rsta.1933.0009.
Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Z. Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. PyTorch: An imperative style, high-performance deep learning library. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d'Alché-Buc, Emily B. Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 8024–8035, 2019. URL https://proceedings.neurips.cc/paper/2019/hash/bdbca288fee7f92f2bfa9f7012727740-Abstract.html.
Igal Sason and Sergio Verdú. f-divergence inequalities. IEEE Trans. Inf. Theory, 62(11):5973–6006, 2016. doi: 10.1109/TIT.2016.2603151. URL https://doi.org/10.1109/TIT.2016.2603151.
Jan Schuchardt and Nikita Kalinin. Sampling-free privacy accounting for matrix mechanisms under random allocation. CoRR, abs/2601.21636, 2026. doi: 10.48550/ARXIV.2601.21636. URL https://doi.org/10.48550/arXiv.2601.21636.
Moshe Shenfeld and Vitaly Feldman. Privacy amplification by random allocation. In Danielle Belgrave, Cheng Zhang, Laura N. Montoya, Hsuan-Tien Lin, Razvan Pascanu, Piotr Koniusz, Marzyeh Ghassemi, Nancy Chen, Iván Vladimir Meza Ruíz, and Arturo Loaiza-Bonilla, editors, Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2025, NeurIPS 2025, San Diego, CA, USA, December 2-7, 2025 / Mexico City, Mexico, November 30 - December 5, 2025, 2025. URL http://papers.nips.cc/paper_files/paper/2025/hash/8a724af64e891da5c84078af2c308a72-Abstract-Conference.html.
Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Y. Ng, and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, EMNLP 2013, 18-21 October 2013, Grand Hyatt Seattle, Seattle, Washington, USA, A meeting of SIGDAT, a Special Interest Group of the ACL, pages 1631–1642. ACL, 2013. doi: 10.18653/V1/D13-1170. URL https://doi.org/10.18653/v1/d13-1170.
The FLINT team. FLINT: Fast Library for Number Theory, 2026. Version 3.6.0, https://flintlib.org.
A. W. van der Vaart. Asymptotic Statistics. Cambridge University Press, October 1998. ISBN 9780521784504. doi: 10.1017/cbo9780511802256. URL http://dx.doi.org/10.1017/CB09780511802256.
Marten van Dijk and Murat Bilgehan Ertan. Trade-off functions for DP-SGD with subsampling based on random allocation: Tight upper and lower bounds. CoRR, abs/2605.06259, 2026. doi: 10.48550/ARXIV.2605.06259. URL https://doi.org/10.48550/arXiv.2605.06259. Result numbers as in arXiv version 3 of 2 October 2026.
Marten van Dijk, Nhuong V. Nguyen, Toan N. Nguyen, Lam M. Nguyen, and Phuong Ha Nguyen. Proactive DP: A multiple target optimization framework for DP-SGD. In Ruslan Salakhutdinov, Zico Kolter, Katherine A. Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, volume 235 of Proceedings of Machine Learning Research, pages 49029–49077. PMLR / OpenReview.net, 2024. URL https://proceedings.mlr.press/v235/van-dijk24a.html.
Tim van Erven and Peter Harremoës. Rényi divergence and Kullback-Leibler divergence. IEEE Trans. Inf. Theory, 60(7):3797–3820, 2014. doi: 10.1109/TIT.2014.2320500. URL https://doi.org/10.1109/TIT.2014.2320500.
Pauli Virtanen, Ralf Gommers, Travis E. Oliphant, Matt Haberland, Tyler Reddy, David Cournapeau, Evgeni Burovski, Pearu Peterson, Warren Weckesser, Jonathan Bright, Stéfan J. van der Walt, Matthew Brett, Joshua Wilson, K. Jarrod Millman, Nikolay Mayorov, Andrew R. J. Nelson, Eric Jones, Robert Kern, Eric Larson, C J Carey, Ilhan Pollat, Yu Feng, Eric W. Moore, Jake VanderPlas, Denis Laxalde, Josef Perktold, Robert Cimrman, Ian Henriksen, E. A. Quintero, Charles R. Harris, Anne M. Archibald, Antônio H. Ribeiro, Fabian Pedregosa, Paul van Mulbregt, and SciPy 1.0 Contributors. SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nature Methods, 17(3):261–272, 2020. doi: 10.1038/s41592-019-0686-2. URL https://doi.org/10.1038/s41592-019-0686-2.
Bengt von Bahr. On the convergence of moments in the central limit theorem. The Annals of Mathematical Statistics, 36(3):808–818, June 1965. ISSN 0003-4851. doi: 10.1214/aoms/1177700055. URL http://dx.doi.org/10.1214/aoms/1177700055.
Bengt von Bahr and Carl-Gustav Esseen. Inequalities for the th absolute moment of a sum of random variables, . The Annals of Mathematical Statistics, 36(1):299–303, February 1965. ISSN 0003-4851. doi: 10.1214/aoms/1177700291. URL http://dx.doi.org/10.1214/aoms/1177700291.
Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019. URL https://openreview.net/forum?id=rJ4km2R5t7.
Wenhao Wang, Shujie Cui, Hui Cui, and Xingliang Yuan. Rethinking the security of DP-SGD: A corrected analysis of differentially private machine learning. CoRR, abs/2605.15648, 2026. doi: 10.48550/ARXIV.2605.15648. URL https://doi.org/10.48550/arXiv.2605.15648.
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. Transformers: State-of-the-art natural language processing. In Qun Liu and David Schlangen, editors, Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, EMNLP 2020 - Demos, Online, November 16-20, 2020, pages 38–45. Association for Computational Linguistics, 2020. doi:10.18653/V1/2020.EMNLP-DEMOS.6. URL https://doi.org/10.18653/v1/2020.emnlp-demos.6.
Yuxin Wu and Kaiming He. Group normalization. In Vittorio Ferrari, Martial Hebert, Cristian Sminchisescu, and Yair Weiss, editors, Computer Vision - ECCV 2018 - 15th European Conference, Munich, Germany, September 8-14, 2018, Proceedings, Part XIII, volume 11217 of Lecture Notes in Computer Science, pages 3–19. Springer, 2018. doi: 10.1007/978-3-030-01261-8_1. URL https://doi.org/10.1007/978-3-030-01261-8_1.
Samuel Yeom, Irene Giacomelli, Matt Fredrikson, and Somesh Jha. Privacy risk in machine learning: Analyzing the connection to overfitting. In
31st IEEE Computer Security Foundations Symposium, CSF 2018, Oxford, United Kingdom, July 9-12, 2018, pages 268–282. IEEE Computer Society, 2018. doi: 10.1109/CSF.2018.00027. URL https://doi.org/10.1109/CSF.2018.00027.
Ashkan Yousefpour, Igor Shilov, Alexandre Sablayrolles, Davide Testuggine, Karthik Prasad, Mani Malek, John Nguyen, Sayan Ghosh, Akash Bharadwaj, Jessica Zhao, Graham Cormode, and Ilya Mironov. Opacus: User-friendly differential privacy library in PyTorch. CoRR, abs/2109.12298, 2021. doi: 10.48550/ARXIV.2109.12298. URL https://doi.org/10.48550/arXiv.2109.12298. Accepted at the Privacy in Machine Learning workshop at NeurIPS 2021.
Xiang Zhang, Junbo Jake Zhao, and Yann LeCun. Character-level convolutional networks for text classification. In Corinna Cortes, Neil D. Lawrence, Daniel D. Lee, Masashi Sugiyama, and Roman Garnett, editors, Advances in Neural Information Processing Systems 28: Annual Conference on Neural Information Processing Systems 2015, December 7-12, 2015, Montreal, Quebec, Canada, pages 649–657, 2015. URL https://proceedings.neurips.cc/paper/2015/hash/250cf8b51c773f3f8dc8b4be867a9a02-Abstract.html.
Yuqing Zhu, Jinshuo Dong, and Yu-Xiang Wang. Optimal accounting of differential privacy via characteristic function. In Gustau Camps-Valls, Francisco J. R. Ruiz, and Isabel Valera, editors, International Conference on Artificial Intelligence and Statistics, AISTATS 2022, 28-30 March 2022, Virtual Event, volume 151 of Proceedings of Machine Learning Research, pages 4782–4817. PMLR, 2022. URL https://proceedings.mlr.press/v151/zhu22c.html.
Closed-Form Noise Calibration Against Membership Inference for Random-Allocation DP-SGD: Supplementary Materials
A NOTATION AND STANDARD FACTS
Distributions and likelihood ratios. and are probability distributions on a common space. We write ( is absolutely continuous with respect to ) when every event of -probability zero also has -probability zero. Then has a density with respect to , the likelihood ratio, by the Radon–Nikodym theorem (Fact A.1). Also , because has total mass one. For the Gaussian pair is strictly positive, because by (8) it is an average of exponentials.
Total variation and tests. The total variation distance is , over all events . Let and be densities of and with respect to a measure that dominates both, for example , and write . For every event , , with equality for . Since , the positive and negative parts of have the same integral, so
With this gives
When this reads , where the last form uses .
A test is a measurable function with values in , the probability of deciding for . Its type-I error is and its type-II error is . For every test,
with equality for the likelihood-ratio test , which is when . When the two hypotheses are equally likely, a test is correct with probability . So the optimal test is correct with probability .
Trade-off functions and Gaussian differential privacy. The trade-off function of against is
the smallest type-II error of a test with type-I error at most (Dong et al., 2019, Definition 2.1). Random guessing, , gives . When , tests that threshold are optimal, by the Neyman–Pearson lemma (Neyman and Pearson, 1933). To see this, let equal 1 on and 0 on for some . Every test with then satisfies
because everywhere.
For each test with , (17) gives , so . At the type-I error of the test , equality in (17) gives the reverse inequality. Hence
Since , a bound is the same as , where is the trade-off function of -differential privacy (Dong et al., 2019, Proposition 2.5 and Kairouz et al., 2015, Theorem 2.1). Ertan and van Dijk (2026, Definitions 5.1 and 5.2) define the separation of a trade-off function as , the largest Euclidean distance from the curve of to the random-guessing line. By (19), .
Let be the standard normal distribution function. For , the likelihood ratio of against is nondecreasing in . So by (18) the test that rejects when is optimal, and the trade-off function of against is
For the event is , so the total variation of this pair is .
Chi-square and Rényi divergence. . The Rényi divergence of order is , so . Rényi divergence adds over product distributions (van Erven and Harremoës, 2014, Theorem 28), which is why multiplies.
Privacy profile. For the hockey-stick divergence is for densities with respect to any dominating both. The privacy profile of a pair is . At both orders equal . As in (17), each hockey-stick divergence is a supremum over tests, , attained at . A randomized algorithm is -differentially private if, for every two datasets that differ by adding or removing one record, the privacy profile of its two output distributions satisfies , that is, and for every event . A bound on the total variation alone gives no such guarantee with . On three points the distributions and have , and for every , since each puts mass on a point where the other puts none.
Markov kernels and data processing. A Markov kernel from to assigns to each a probability distribution on , measurably in . It is a randomized map. Applying it to gives . Pushing both distributions through the same randomized map does not make them easier to tell apart, (Dong et al., 2019, Lemma 2.9), because a test on gives the test on , which has the same type-I and type-II errors. The same argument proves the inequality for total variation and for both hockey-stick divergences, since each of them is a supremum over tests.
Other notation. Throughout, , and are positive integers and , . denotes convergence in distribution, and for distribution functions means that at every where is continuous. and are the real and imaginary parts of a complex number , and its conjugate. is a quantity bounded in absolute value by , with depending only on . is the characteristic function of .
Standard results. The proofs use the following standard results of measure theory, probability and complex analysis. Each is stated in the form we use, with its hypotheses, and the proofs refer to it by its number. All functions in these results are assumed measurable.
Measure and integration.
Fact A.1 (Radon–Nikodym theorem, Durrett, 2019, Theorem A.4.8). If and are -finite measures and , then there is a measurable with for every measurable set , and is unique up to a set of -measure zero.
Fact A.2 (Uniqueness of measures, Durrett, 2019, Theorem A.1.5). Let be a -system, a class of sets closed under finite intersections. If two measures agree on , and there are sets with and finite measure, then the two measures agree on the -field generated by . In particular, two measures on a product space that agree on every rectangle and give the whole space finite measure are equal, since the rectangles are closed under intersection and generate the product -field.
Fact A.3 (Fubini–Tonelli theorem, Durrett, 2019, Theorem 1.7.2). Let and be -finite measures, and let be measurable on the product space. If , or if , then
The case is Tonelli's theorem and the integrable case is Fubini's theorem. A complex with satisfies the same identity, applied to its real and imaginary parts.
Fact A.4 (Dominated convergence, Durrett, 2019, Theorems 1.5.8 and 1.6.7). If almost everywhere, for all and , then . For expectations, if almost surely, for all and , then . Complex satisfy the same, applied to their real and imaginary parts.
Inequalities.
Fact A.5 (Hölder's inequality, Durrett, 2019, Theorem 1.6.3). If and , then . The case is the Cauchy-Schwarz inequality .
Fact A.6 (Markov and Chebyshev inequalities, Durrett, 2019, Theorem 1.6.4). If and is a Borel set, then . Taking gives Markov's inequality for and , and for , Markov's inequality for with is Chebyshev's inequality .
Independence.
Fact A.7 (Independence from distribution functions, Durrett, 2019, Theorem 2.1.8). Random variables are independent if for all .
Fact A.8 (Functions of independent groups, Durrett, 2019, Theorem 2.1.10). If the random variables with and are independent and each is measurable, then the variables with are independent.
Fact A.9 (Product rule, Durrett, 2019, Theorem 2.1.13). If are independent and either for all , or for all , then the expectation of exists and .
Convergence in distribution.
Fact A.10 (Quantile transform and coupling, Durrett, 2019, proofs of Theorems 1.2.2 and 3.2.8). For a distribution function let for . If is uniform on , then has distribution function . If distribution functions satisfy , then for all but countably many , so almost surely.
Fact A.11 (Continuous mapping theorem, Durrett, 2019, Theorem 3.2.10). Let be measurable with set of discontinuity points . If and , then . If in addition is bounded, then .
Fact A.12 (Converging together lemma, Durrett, 2019, Exercises 3.2.12 and 3.2.13). Convergence in probability implies convergence in distribution, and for a constant implies in probability. If and for a constant , then .
Fact A.13 (Integration to the limit, Durrett, 2019, Exercise 3.2.5). Let and be continuous with and as . If and , then .
Fact A.14 (Central limit theorem, Durrett, 2019, Theorem 3.4.1). If are independent and identically distributed with and , and , then .
Fact A.15 (Lindeberg–Feller central limit theorem, van der Vaart, 1998, Proposition 2.27). For each let be independent random variables with finite variances. If for every and as , then . The numbers may depend on in any way.
Characteristic functions and Gaussian vectors.
Fact A.16 (Characteristic functions, Durrett, 2019, Theorem 3.3.1(e) and Examples 3.3.5 and 3.3.16). For real a and b, . The standard Gaussian distribution has characteristic function , so has . The standard Cauchy distribution, with density , has characteristic function .
Fact A.17 (Inversion formula, Durrett, 2019, Theorem 3.3.14). If , then has the bounded continuous density .
Fact A.18 (Gaussian vectors, Durrett, 2019, Section 3.10). If has independent standard Gaussian coordinates and is a real matrix, then has the multivariate normal distribution with mean 0, covariance matrix and characteristic function . If is nonsingular, has the density .
Complex analysis and the Gamma function.
Fact A.19 (Principal logarithm and powers, DLMF, 2026, Eqs. 4.2.3 and 4.2.28 and Section 4.2(i)). The principal logarithm , with , is a single-valued analytic function of off the half-line . Powers are principal values, .
Fact A.20 (Gamma function, DLMF, 2026, Eqs. 5.2.1 and 5.9.1 and Section 5.2(i)). For the Gamma function is the convergent integral , and the Gamma function has no zeros. For and , with the principal power.
Fact A.21 (Cauchy's theorem, DLMF, 2026, Eq. 1.9.29). If is continuous within and on a simple closed contour and analytic within , then .
B PROOFS
B.1 One epoch and composition
Let be the density of and . For the jth component of (6) every factor of except coordinate cancels, so
Averaging over j gives (8).
Proof of Proposition 3.1. For and real , completing the square gives
With s = t and s = 2t,
So each has mean 0 and second moment . By (8), is an average of independent terms, and by the product rule (Fact A.9) the cross terms with vanish. Since ,
For product distributions the likelihood ratio of the product is the product of the likelihood ratios. Let with for . For events , Tonelli's theorem (Fact A.3) gives
So the measure with density with respect to agrees with on all rectangles . With and the whole spaces, both measures give the whole product space measure 1, so the two measures are equal (Fact A.2). Hence the likelihood ratio of the product is . The two coordinates are independent under , so by the product rule (Fact A.9)
and induction over the factors gives (9).
B.2 Chi-square to total variation, and the closed-form bound
We prove (10). Mason and Verdú (2016, Eq. (7)) state it in the inverse form, as a lower bound on the chi-square divergence in terms of . As in the definition of chi-square in Appendix A, let with likelihood ratio , and let and . By Appendix A and the Cauchy–Schwarz inequality (Fact A.5),
for every . This proves the case . For , let and , so that . Then , and the Cauchy–Schwarz inequality (Fact A.5) gives . Hence
The second inequality holds because has derivative for , so on it is largest at . This proves (10).
The constants are attained by pairs on two points. When , take and with . Both entries of are positive, so , and
When , take and . Again , and
Finally, for every . It is an equality for , and for the inequality gives .
Mahloujifar et al. (2022, Section 3.2) bound the total variation by Pinsker's inequality and the Rényi divergence of order , . With the order-two Rényi divergence of the Gaussian pair this bound is also a closed form, but at it needs 25.1% to 38.5% more noise than (12) in the nine training cells of Section 5.2. With the Kullback–Leibler divergence, which has no closed form for the pair, Pinsker's inequality needs 0.67% to 0.94% less noise than (12) at and 5.7% to 8.7% less at in the same nine cells, with the divergence taken in either order.
Proof of Theorem 3.3. By (9) the composed divergence is , and (10) and (2) give (11). For the bounds on stated after the theorem, put and . All terms of the binomial expansion of are nonnegative, and its first two terms give , which is Bernoulli's inequality. The power series of gives , so . Therefore
Proof of Corollary 3.4. The two definitions of solve on the two branches of . Setting and solving for gives (12). Theorem 3.3 then gives . By (7) the released model has , and (2) gives .
B.3 The Gaussian differential privacy limit
The proof expands the log-likelihood ratio of each epoch to second order. Across epochs these terms form a triangular array whose sum is Gaussian in the limit, with variance . A fourth-moment bound,
, makes the higher-order terms vanish. The trade-off curve is an integral of the quantile function of the likelihood ratio, and convergence of these quantile functions gives uniform convergence of the curve. We say that a sequence of pairs converges to random guessing when its total variation tends to 0. By (19) this means that its trade-off function converges to uniformly in .
Lemma B.1 (Central limit theorem for the log-likelihood ratio). For each , let have a positive likelihood ratio , and set . Let and suppose
Let be positive integers with . Then converges uniformly to .
Proof. Put and . Write a sample of as and put . These are independent copies of , and by Appendix B.1 the likelihood ratio of the product pair is . Probabilities and expectations are under the null . Since , (20) gives and .
Step 1, a central limit theorem for the sum. The summands are centered, since . For every , the fourth moment gives the Lindeberg condition
since . The condition says that the summands larger than carry a vanishing part of the variance. Our variables are independent and centered, and their variances sum to , so for the Lindeberg–Feller central limit theorem (Fact A.15) gives . For the limit is the point mass at 0, and we check this case directly. The sum has mean 0 and variance , so it converges to 0 in probability by Chebyshev's inequality (Fact A.6). The fourth moment also gives, in probability,
The first holds by Chebyshev's inequality (Fact A.6), because the left side has mean and variance . The second follows from Markov's inequality (Fact A.6) and a union bound, since for every we have . The third follows from Markov's inequality and the bound
which is the Cauchy–Schwarz inequality (Fact A.5) applied to .
Step 2, the log-likelihood ratio. For the power series of gives
where the last step uses . Let . Since , on the event we have . By Step 1 this event has probability tending to one and in probability, so in probability. Hence in probability. The converging together lemma (Fact A.12), a form of Slutsky's theorem, gives
Step 3, the whole trade-off curve. Take any pair with and likelihood ratio . Let be the distribution function of under , and for . If is uniform on , then has distribution function (Fact A.10). We show that
At both sides are 0, because a test with has . At both sides are 1, since . For , let , which is at least 0 because , and let , which has the distribution of . Since is nondecreasing,
Put and . Taking probabilities in (24) gives . Let if and if , so that , and let . This test has the form required in (18) and . By (24), . So (18) gives
Apply (23) to the product pair, whose likelihood ratio has null distribution function , and to the pair against . The likelihood ratio of the second pair is with under the null, which has the distribution of in (22). Let be its distribution function. The trade-off function of this pair is . Set and . Then, for every ,
By (22) and the continuous mapping theorem (Fact A.11), . By Fact A.10, then for all but countably many , so almost surely. Both variables are nonnegative with mean one, since and . Therefore
by and by dominated convergence (Fact A.4), since almost surely and with . So the trade-off function of the product pair converges uniformly to .
Proof of Theorem 3.5. We check (20). Put , so with independent , and . Hence . Write the fourth power of as a sum over ordered quadruples of indices. A quadruple in which some index appears exactly once has mean zero, because that factor is independent of the others and has mean zero. The other quadruples either have four equal indices, and there are of these, or have two distinct indices that each appear twice. There are of the latter, since the four positions split into two pairs in 3 ways and the two indices can be chosen in ordered ways. So
where follows from . Also , since every is positive. Lemma B.1 with gives (13). By (19), the total variations of two pairs differ by at most the largest distance between their trade-off functions. So uniform convergence of the trade-off functions gives convergence of the total variation to that of with , which is (Appendix A). By (2), .
For the last sentence of the theorem, let be any sequence of positive integers and put . If , then , and Theorem 3.3 with the bounds and of Appendix B.2 gives . For the converse, let be the sum of all coordinates of a sample. Under it is . Under each epoch shifts exactly one coordinate by , whichever step it is, so is . Dividing by gives against with . A function of the sample is a Markov kernel, so by data processing and Appendix A
at every . If does not tend to , there are and a subsequence along which , and along it the total variation is at least . The sum is the statistic that the optimal test on the linear model of Section 5.3 thresholds.
A second formula. Setting the limit of Theorem 3.5 equal to with gives another one-line noise multiplier, . This multiplier comes from a limit and not from a bound, so a finite run calibrated with it may exceed the target. In the nine training cells of Section 5.2, at , the multiplier lies to above the exact , but no result shows that it stays above the exact at other and . The closed form of Corollary 3.4 pays its extra noise for a bound that holds at every , and .
B.4 Small false-positive rates
By (19), a bound allows a test with false-positive rate a true-positive rate up to , which is far above when is small. The chi-square value gives a bound that shrinks with , by the Cauchy–Schwarz inequality (Fact A.5).
Proposition B.2 (Small false-positive rates). Let with . Every test with has , and for . So every test on the model released by Algorithm 1 with false-positive rate at most has true-positive rate at most .
Proof. Let . Since , the Cauchy–Schwarz inequality (Fact A.5) gives
The first factor is . Since , we have , so , and the first claim follows. The function increases on , because does. So a test with has type-II error , which bounds . The pair has by (9), and (7) gives with . A test on the released model with false-positive rate at most therefore has true-positive rate at most . The same Cauchy–Schwarz step, with an unbiased estimator in place of , gives the variance bound of Hammersley (1950, Eq. (31)) and Chapman and Robbins (1951, Eq. (3)).
Table 3 compares, at the exact of two training cells of Section 5.2, the true-positive rate of the optimal test on the pair with the bound of Proposition B.2 and with the line , . The optimal test thresholds and randomizes at the threshold. We take the density of under that the computation of Appendix C.4 forms on the grid for the exact , and the density under is times it. In all nine cells the second grid of Appendix C.4 gives the same rates to within . At and , Monte Carlo samples under each distribution give false-positive and true-positive rates within 0.6 standard errors of the computed ones. In all nine cells, at , the pair's true-positive rate is 0.0022 to 0.0024 and the bound is 0.0090 to 0.0092, against .
Table 3: True-positive rate of the optimal test and two upper bounds on it at false-positive rate , at the exact of two cells of Table 1 for . Pair is the true-positive rate of the optimal test on , chi-square is the bound of Proposition B.2, and total variation is . By (7) both bounds hold for every test on the released model.
| pair | chi-square | total variation | pair | chi-square | total variation | |
| 0.1 | 0.1516 | 0.1767 | 0.2000 | 0.1523 | 0.1771 | 0.2000 |
| 0.01 | 0.0191 | 0.0354 | 0.1100 | 0.0194 | 0.0356 | 0.1100 |
| 0.001 | 0.0023 | 0.0091 | 0.1010 | 0.0024 | 0.0091 | 0.1010 |
B.5 A run of Algorithm 1 that releases the Gaussian pair
Fix the target record and a dataset that does not contain and has , so that and are both valid inputs of Algorithm 1. Take a model with coordinates, starting at zero.
Take the loss for and for every other record. The gradient of the target is then , which has length and is not changed by clipping, and every record of has gradient zero, like a ghost record. At the th of the EM updates, let the optimizer set to times the first coordinate of and leave the other coordinates of unchanged. This optimizer is fixed in advance, as Algorithm 1 requires. By line 6, the first coordinate of at the th update is , where is 1 if the target is in the step of that update and 0 otherwise, and are independent standard Gaussian values. So the released model has the coordinates . On every is 0, and is distributed as . On the target is in exactly one step of each epoch, chosen uniformly and independently across epochs, so the coordinates of an epoch are distributed as with , independently across epochs, and is distributed as . The total variation between the released models on and on is therefore . Fix a target on the total variation. An accountant whose guarantee holds for every run of Algorithm 1 with the same , and also covers this run, so every it certifies for has . These lie in the interval of Appendix C.4, whose left end is the exact .
C THE EXACT TOTAL VARIATION
This appendix proves Theorem 4.1. We first prove three integral formulas, one for each formula of the theorem, and then combine them. After that we bound the error from cutting the integrals off at a finite point, describe the computation, and prove the limit stated after Theorem 3.5.
Notation. Under the coordinates are independent standard Gaussians, and . As in (8) and before Theorem 4.1,
so . Each is lognormal, hence positive, so . Also and (Appendix B.1). The terms are independent with mean zero and variance . Hence
Over epochs we have independent copies of , one for each epoch. By Appendix B.1, the likelihood ratio of the product pair is their product
For and a complex number we write , so that . For ,
because when and when . With this gives , and . So for the one-epoch factor
is finite. Since , we have . The factors are independent, and the expectation of a product of independent integrable variables is the product of their expectations (Fact A.9). This extends to complex factors. Write with and real. Then and . For every set of epochs, the variables with and with are functions of different epochs, so they are independent (Fact A.8). Expanding the product and applying the real case to each term,
So
In particular . By Appendix A, . For every real we have , since both sides equal when and when . So also
C.1 Three integral formulas
Lemma C.1 (The absolute value as an integral, von Bahr and Esseen, 1965, Eqs. (7) and (8) with ). For every real ,
Taking expectations gives von Bahr and Esseen (1965, Lemma 2) with , the step behind (16). The same formula for is the case of Lin and Hu (2021, Theorem 1(a)), and Lin and Hu attribute their Theorem 1 to Hsu (1951, Theorems 2.1 and 4.1).
Proof. Both sides are zero at . For , substitute , so that and . Since is even, , and
It remains to show that the last integral equals . We use two Laplace integrals. First, for every , substituting gives
because has derivative , equals -1 at and tends to 0 as , so the last integral is . Second, for every and real ,
Here the complex integral equals because is an antiderivative of the integrand, applied to its real and imaginary parts, so that
since .
Now write with the first integral. The integrand is nonnegative, so Tonelli's theorem (Fact A.3) lets us exchange the order of integration,
The inner integral follows from and (25) with ,
Hence, since arctan has derivative ,
Multiplying by gives .
☐
Lemma C.2 (The minimum as an integral, Lewis, 2001, Table 3.1). For every x > 0,
where .
For the payoff in Lewis (2001, Table 3.1) has the transform for , and inverting it along , as on his p. 11, gives the lemma at .
Proof. Let have the standard Cauchy density . Then has the density , which is the weight in the integral, so the right side of the lemma is
The characteristic function of is (Fact A.16), so the right side of the lemma is , which is 1 for and for .
For completeness we derive this characteristic function from (25) and the inversion formula. The density is even, so by (25), with 1 in place of its parameter , in place of and as the variable of integration, it has the characteristic function , which is integrable. By the inversion formula (Fact A.17), the same distribution then has the continuous density
The two continuous densities and have the same integral over every interval, and a continuous function whose integral over every interval is zero vanishes at every point. Hence for every real , which is with .
Lemma C.3 (A power as an integral, DLMF, 2026, Eqs. 5.9.6 and 5.9.7). Let be a complex number with . For every ,
and the integral converges absolutely.
With in place of the of those formulas, they give , and the substitution and one integration by parts give the lemma. For real and the lemma is the case , of the integral that von Bahr (1965, pp. 810–811) evaluates.
Proof. Put . For real we have and . With this gives
The right side is integrable because ,
We first compute the integral with replaced by , where , and then let tend to . For and we have , so , and also . Hence , which is integrable by the computation above with in place of . Powers of a complex off the half-line are principal values, with and (Fact A.19). For , the Gamma integral of Fact A.20 with gives
since . Since , the function has derivative . Integrating by parts on with gives
By the two bounds on , the boundary term is at most at and at most at , and both tend to zero because . The last integral converges absolutely, since its integrand has modulus . Letting and , for
because .
Take with , so that , and let . On the left, the integrand tends to , and its modulus is at most , since . This bound is integrable, so dominated convergence (Fact A.4), applied to the real and imaginary parts, holds along every sequence . On the right, the principal logarithm is analytic, hence continuous, off the half-line (Fact A.19). The point lies off this half-line, with and . Hence
So
The number is finite, because , and it is not zero, because the Gamma function has no zeros (Fact A.20). So we may multiply both sides by , which gives the claim.
C.2 Proof of Theorem 4.1
Proof. We prove the three formulas in turn.
The one-epoch formula (16). For we have , so
Apply Lemma C.1 with and take expectations. The integrand is nonnegative, so Tonelli's theorem (Fact A.3) lets us exchange the expectation and the integral,
Finally, . Dividing by 2M gives (16). The integral converges absolutely. For real , since for ,
so the integrand is at most . It is also at most .
The formula (14) for every . Apply Lemma C.2 with , which is positive, and take expectations. Since ,
Fubini's theorem (Fact A.3), applied to the real and the imaginary part, allows the exchange, because and
Here 2 arctan(2u) is an antiderivative of , which gives the factor . The Cauchy–Schwarz inequality (Fact A.5) gives .
By the product formula for in the notation above, the numerator is . Since is positive, is real, and
Taking expectations, . Write
The numerator is then , and also . Split the integral at zero and replace u by -u on the negative half,
Hence
Since , subtracting from one gives
which is (14). The integrand is nonnegative, because
Here the modulus of an expectation is at most the expectation of the modulus, so . The Cauchy–Schwarz inequality (Fact A.5) gives . The integrand is also at most , so the integral converges absolutely.
The one-epoch factor (15). Fix with . Apply Lemma C.3 with , which is positive, and take expectations,
Fubini's theorem (Fact A.3), applied to the real and the imaginary part, allows the exchange. Indeed, by (26) with ,
The second inequality holds because a minimum is at most each of its two terms, so . The last integral is the case of the integral computed in the proof of Lemma C.3.
Since , we have . Split
The integral before the split converges absolutely, by the Fubini bound above and . The first part converges absolutely and contributes , by Lemma C.3 with . The integrand of the second part is the difference of these two integrands, so its integral also converges absolutely, by the triangle inequality. It is the integral in (15), and this proves (15).
C.3 Truncation bounds
The computation cuts each integral off at a point . The next lemma bounds the part that is cut off.
Lemma C.4 (Truncation). Let , and recall that is the shift in the Gaussian pair (6).
(i) Let . The part of the integral in (14) over differs from by at most .
(ii) Let . The part of the integral in (16) over differs from by at most .
Proof. (i) The Gaussian decay comes from the mean of the coordinates, which contributes an independent Gaussian term to . Let be this mean. Splitting each exponent,
where the constants add up because . So with
The mean is independent of . To see this, let be an orthogonal matrix whose first row is . Such an exists because every unit vector extends to an orthonormal basis. Let with . As a linear image of a vector of independent standard Gaussians, has the multivariate normal distribution with covariance matrix , which by Fact A.18 has the density
By Tonelli's theorem (Fact A.3) the distribution function of is then the product of standard normal distribution functions, so are independent standard Gaussians (Fact A.7). The first column of is , so and
Thus is a function of and is a function of , so they are independent (Fact A.8). Also .
Next, let and . Completing the square,
so for bounded . With and the characteristic function of (Fact A.16),
With and this gives . At this gives . Since is independent of and both factors of are positive, by the product rule (Fact A.9), and the Cauchy–Schwarz inequality (Fact A.5) gives . We need only . Both factors of are then integrable, since has mean and has mean at most 1. Since is independent of , the product rule for expectations, extended to complex factors as in the notation above, gives
For we have and , so
For as in the proof of Theorem 4.1 this gives
The part of (14) over is
The first term is
because is an antiderivative of the integrand, and for . The last identity holds because the left side has derivative and equals at . In the second term, and , so it is at most
in absolute value.
(ii) As in (8) and Section 4, with , so and, since , for . Differentiating in gives the lognormal density of ,
It tends to zero at both ends of , because as the term quadratic in in the exponent outweighs the factor . Its logarithmic derivative is
which is positive for and negative for . So rises to a single maximum at the mode and then falls. At the mode , so
Since increases from 0 to and then decreases to 0,
For , integration by parts on gives
The boundary term tends to zero as and , because and tends to zero at both ends. Since is integrable,
Hence . The part of (16) over is
The first term equals . The second is at most
in absolute value.
C.4 Numerical method and checks
The exact . With , the distribution does not depend on , and is the average of over the allocations , which take one step in each epoch. At two values and , the two averages have the same weights, and the means of their components differ by in coordinates. By the triangle inequality and the convexity of total variation, the exact total variations at and at differ by at most , so the exact total variation is continuous in . As in the proof of Theorem 3.5, the sum of all coordinates, divided by , is against , so the exact total variation is at least , which tends to as . By Theorem 3.3 it tends to as . It also does not grow with . Scaled by , the pair adds to every step and, with the record, shifts one step of each epoch by 1. So the pair at arises from the pair at by adding independent to every step under both distributions, which cannot increase their total variation. Hence, for the that meet the target form an interval with , and the exact is .
One epoch. We compute by Gauss–Hermite quadrature, since is a function of one standard Gaussian. The integrand of (16) changes most for of order . There the factor is close to one, and subtracting it from one loses precision. So we compute the difference directly,
using a power series when is small. We then form , which equals for the principal logarithm because is an integer. When we compute the logarithm as
and otherwise we compute the real part as and the imaginary part as above. Here and is the angle in of the point . The function is accurate for small , where taking the logarithm of the rounded value of loses most digits of , and gives the argument of in every quadrant. We integrate up to . The integral over is close to , and we add this term exactly. By part (ii) of Lemma C.4, the error of this tail term is smaller than in every reported cell. The quadrature error has no certified bound, and the checks below test it.
The values pass four checks. At , direct integration of agrees with . The values agree with Monte Carlo at five settings including . They are stable across quadrature orders. They lie between the bounds
The upper bound is the Cauchy–Schwarz inequality (Fact A.5). The lower bound is Hölder's inequality (Fact A.5) with exponents and 3 applied to ,
with from the proof of Theorem 3.5, where . Dividing the lower bound on by , with , gives the lower bound on displayed above.
Several epochs. We invert the characteristic function of the standardized variable on a grid to obtain the density of . To damp the oscillation of , some of the grids below evaluate it on a contour shifted into the complex plane. For and ,
and we take . This shift changes the quadrature integrand without changing . On the shifted line the first factor has modulus , which decays as for , so the integrand no longer oscillates with modulus one.
To justify the shift, note that the integrand, as a function of , is analytic in the whole plane, so its integral around the rectangle with corners and is zero by Cauchy's theorem (Fact A.21). On the two vertical sides , so , and . So each of these sides contributes at most , which tends to zero as . The same argument applies to above, whose integrand is also analytic. On the vertical sides its first factor has modulus at most , since there, and still tends to zero.
To combine the epochs, we use . The terms are independent, so the density of their sum is the convolution of their one-epoch densities. We tabulate the density of on a grid with spacing and multiply it by , which gives approximate probabilities of the grid cells. We shift this vector cyclically so that comes first, raise its discrete Fourier transform to the power , transform back and undo the shift. By the discrete convolution theorem this gives the periodic discrete convolution of copies, and dividing it by gives an approximation to the density of , as in the accountant of Koskela et al. (2020, Eq. (4.1) and Section 5.2). Integrating against it approximates . From the same one-epoch density we also evaluate (14) directly.
Grids. Let and . We invert the characteristic function of at the angular frequencies up to a cutoff, on equally spaced points with spacing 1/512, and interpolate the density of by a cubic spline. The density of is then , which we tabulate on an equally spaced grid that covers one period , starts at minus half of it and has an even number of points, so that 0 is a grid point. Negative values are set to zero, and the total mass is not renormalized. We integrate against the computed density of by the sum over the grid points times the spacing , and add , where is the computed density at 0. The added term corrects the sum for the kink of at . We use a value only if the removed negative mass is at most , the total mass differs from one by at most , and is at most at the cutoff. The cells of Table 11 in Appendix F and the settings , 5.039 and 1.561 of Table 2 use 1,001 Hermite nodes on the shifted contour, the cutoff 48, 262,144 points for on and 262,144 points for . Every exact , in Table 1 and in Table 2, uses 4,001 Hermite nodes on the real line, the cutoff 24, 131,072 points for on and 131,072 points for .
In every cell of Table 11 in Appendix F and at these three settings, the two computations and a second grid, with 8,001 Hermite nodes on the real line and the cutoff 24, agree to within . At the formula for in the proof of Lemma C.4 gives . Also , because the pair is then against , whose likelihood ratio depends only on , a standard Gaussian that the target shifts by . With this , formula (14) reproduces to over 24 settings. This checks the formula and its quadrature, not the density inversion.
All 27 values of Table 11 in Appendix F lie between the largest lower bound and the smallest upper bound on the total variation that the privacy loss distribution accountant of Feldman and Shenfeld (2026) gives in the add and the remove direction. Both directions bound the same number, because total variation is symmetric. They also agree with independent Monte Carlo estimates from samples. Each estimate averages over independent draws under , since , and its standard error is the standard deviation of the draws divided by the square root of their number. The squared standardized differences sum to 28.8 over the 27 cells. If the computed values are correct, this sum behaves like a chi-square variable with 27 degrees of freedom, whose mean is 27, and a value of 28.8 or more has probability 0.37. At three settings of Table 2, , 5.039 and 1.561, estimates from samples agree with the computed values, each within one standard error. Table 11 in Appendix F lists the values to five decimal places.
C.5 A certificate that the exact meets the target
The exact of Table 1 comes from a numerical evaluation of Theorem 4.1. A second, finite computation certifies that each of the nine values meets the target . It uses no quadrature, and it runs in ball arithmetic (Johansson, 2017), which encloses every computed number in an interval that contains the exact value. Like any certificate computed by software, it trusts that software, here FLINT 3.6.0 (The FLINT team, 2026) and python-flint 0.9.0.
Lemma C.5 (Mean-preserving rounding lowers a separately concave expectation). Let be nonnegative random variables, and let be a Borel measurable function from to that is concave in each coordinate when the others are fixed. For each let and be Borel measurable functions with . Given , let be independent, with if , and otherwise with probability and with the remaining probability. Then .
Proof. For a concave function and with , concavity gives . For , given and , the conditional expectation of is this combination for the concave function , so it is at most . Taking expectations and chaining the inequalities gives the lemma.
The same argument, applied coordinate by coordinate to a convex function of independent random variables on a fixed rectangle, gives the upper bound of Madansky (1959, Section 5).
Write for the of (8) in epoch , so that , and (Appendix C). With all but one fixed, for some , which is concave in . With all but one fixed, it is , which is concave in . The computation lowers in four steps.
(i) Fix a grid spacing . Each in is rounded to or as in Lemma C.5, and its mass above a cap, rounded up to a multiple of , is deleted. The masses at the grid points have closed forms, since and with . The computation encloses with the complementary error function of FLINT (Johansson, 2019).
(ii) The rounded values of one epoch sum to a multiple of , and the masses of the sum are the coefficients of after deleting sums above , where is the mass that step (i) puts at .
(iii) Each epoch value after steps (i) and (ii), the rounded sum of the epoch divided by , is rounded to the endpoints of its interval on the grid for a spacing , again as in Lemma C.5, and values outside are deleted, where and .
(iv) The product over the epochs adds the exponents , so the masses of the product are the coefficients of , where is the mass that step (iii) puts at , and after the rounding is .
Each deletion only lowers the sum, since , and so does replacing every computed mass by the lower end of its ball, or by zero if that end is negative, rounded down to a multiple of . The masses are then those of a measure of total mass at most one, which is never renormalized, and Lemma C.5 holds for such measures too, since its proof integrates an inequality that holds at every point. So the lower end of the final sum satisfies , and . The accountant of Feldman and Shenfeld (2026, Section 4) also discretizes one step and convolves the steps of an epoch by repeated squaring. For a pair with likelihood ratio , rounding to the endpoints of its interval on a grid, as in Lemma C.5, keeps at every grid point and makes it linear in between grid points, as the pessimistic discretization of Doroshenko et al. (2022, Section 4) does.
Table 4 gives the grids and 1 – O at the exact of each cell. The bound 1 – O is at most 0.0999999977, so every exact meets the target. One run on these grids took 36 to 598 seconds on one CPU core at 100 bits of precision. The grids were set by hand after a first run at the same on a coarser grid, which took 23 to 433 seconds and certified the bound in only one of the nine cells. The two runs together took 70 to 670 seconds, the certification
Table 4: The certificate of Appendix C.5 at the exact of each cell of Table 1. The grid spacing and the cap on are those of step (i), and is the spacing of the logarithms of the epoch grid of step (iii). The bound is , rounded up, and every bound is below . Certify is the time of one run on these grids, and first grid is the time of an earlier run at the same on a coarser grid, which certified the bound only at , . Each run used one CPU core and 100 bits of precision.
| exact | cap | bound on | certify (s) | first grid (s) | ||||
|---|---|---|---|---|---|---|---|---|
| 100 | ||||||||
| 100 | ||||||||
| 100 | ||||||||
| 250 | ||||||||
| 250 | ||||||||
| 250 | ||||||||
| 500 | ||||||||
| 500 | ||||||||
| 500 |
time of Table 1. The computation does not certify that less noise misses the target, which rests on the numerical evaluation of Appendix C.4.
C.6 The ratio of the bound to the exact value as
Proposition C.6. Fix and let with positive integers such that . Put . Then
so the bound divided by the exact total variation tends to .
Proof. Write , and . Then , and because . Write for the independent epochs, so that . Under we have and . The linear part of is , with . We show that differs from by a remainder that is small in mean square, and that is a normalized sum of independent copies of one variable.
The remainder. For each , by independence and the product rule (Fact A.9),
so . With from (9),
Since , we have . For ,
With this gives once . Since , the Cauchy–Schwarz inequality (Fact A.5) then gives
The linear part. Since , it is times a sum of independent copies of , whose distribution does not depend on . Let be the sum of independent copies of . Since , the variable has the distribution of . The central limit theorem (Fact A.14) gives as . These variables have second moment 1, so Fact A.13 with and gives . The conditions of Fact A.13 hold because and are continuous, , as , and the means of equal 2. Since , also . By the remainder bound, differs from by at most . So
The bound. Since , eventually and , because by the remainder step, so . The ratio therefore tends to .
For intuition, is close to , and half the mean absolute value of is . This is also the leading term of , the total variation between and . The bound is larger by the factor . For the proposition gives the limit of the single-epoch ratios computed after Theorem 4.1.
D ONE CHI-SQUARE VALUE DOES NOT DETERMINE THE DISTANCE
Fix , take , and choose , so for every . Write and . The chi-square divergence of the pair is carried by rare large values of . We show that these values carry a vanishing part of the mean of , and that without them concentrates at its mean, so that .
Fix and write , where retains the smaller values and collects the rare large ones. We will show that and .
Completing the square gives for . With , this gives , where . With and , independence gives , since .
Since and , the Cauchy–Schwarz inequality (Fact A.5) gives
So in and while stays at . At the same gives . So no function of alone is within a fixed factor of the distance for all and with . In particular the ratio is unbounded along this sequence. Numerically, at the bound is 0.100 at every , while the exact value is 0.0787 at ( ) and 0.0586 at ( ).
E EXPERIMENTAL DETAILS
Training runs (Sections 5.2 and 5.3). ResNet-18 (He et al., 2016) with group normalization (Wu and He, 2018), sixteen groups and no batch normalization, on CIFAR-10 (Krizhevsky, 2009). The padded size is , the clipping norm , and . The loss is the cross-entropy of each record, and the optimizer is SGD with momentum 0.9 and no weight decay. The learning rate follows , where 180 is at . We chose this rule, and the weight decay before any trial on a public split of 5,000 training images, 4,000 to train and 1,000 to score, at and , among 72 candidates with base rate 0.05, 0.1, 0.25 or 0.5, exponent 0, 0.5 or 1 in , and weight decay 0 or . The rule gives the initial rate, which is multiplied by at update of the EM updates. Random crops and flips are applied. Noise and allocations come from deterministic pseudorandom streams in single precision, so the runs implement the Gaussian mechanism of Algorithm 1 up to pseudorandom number generation and floating-point rounding. In the comparison of Table 1, the three runs of a cell and seed of every model share their initialization, their allocation and the Gaussian draws behind their noise, so only differs. The three runs of a cell and seed of an image model ran one after another on one GPU, an RTX A5000 for CIFAR-10 and an RTX A4000 for CIFAR-100. The accountant of each cell is the smallest the accountant certified in a binary search that stops at relative width . Its upper bound on the total variation, the larger of the add and remove directions, is at most . The accountant is 0.24% to 0.52% above the exact of Theorem 4.1.
The exact (Section 5.2). As Balle and Wang (2018) do for the Gaussian mechanism, we solve the exact condition numerically. We find the exact of a cell by Brent's method on the total variation of Theorem 4.1, computed as in Appendix C.4, and round it up to a multiple of . At the nine exact values the total variation is 0.099999917 to 0.099999998, and 0.100000008 to 0.100000146 at the value lower. We timed this search on one core of the machine that ran the accountant's search for the same cell, while the accountant's search set no limit on threads. To time the accountant without a search, we also ran it once at its trained on one core, in the add direction, which suffices because at either direction gives the total variation. We tried the numerical accuracies 0.003, 0.0025 and 0.002 in turn and stopped at the first that certified the . Table 5 gives the time of the exact search and of this run in each cell. For one run the numerical accuracy is the library's loss discretization, and for a search it is the width that the accountant's interval on must reach. The search that gave the trained uses 0.02 and repeats an undecided at 0.005. Table 6 gives the of each at .
The accountant’s fast Fourier route. PLD_accounting 0.5.0 convolves the steps of an epoch in two ways, which it can also combine (Feldman and Shenfeld, 2026, Appendix F). Its default, used above, convolves directly on a grid evenly spaced in the privacy loss. The other uses the fast Fourier transform (FFT) on a grid evenly spaced in the exponential of the privacy loss. Its bounds are valid, but Feldman and Shenfeld (2026, Appendix F) give no guarantee on how close they are. The library caps the grid of each step of an epoch at about 1/M of a fixed budget of points, and we set this budget to , 400 times its default. We searched with this route as in the coarse search, at loss discretization and tail truncation , on the machine that ran the accountant’s search for the same cell, with one thread. The search starts at the closed form, steps down by the factor 0.75 to the first that the route does not certify, and then bisects and recertifies. At each E the noise of its above the exact one grew with M, from at most 0.28% at M = 100 to 1.94% to 4.07% at M = 500 (Table 5). With a budget of points it grew in the same way, from at most 0.28% to 6.54% to 11.70%, so a smaller grid per step costs noise. Run once at the accountant’s trained right after its search, the route took 26 to 60 seconds and certified that in four of the nine cells. Table 7 extends the comparison to M up to and E up to 100. There the fast Fourier route certified 1.005 times the exact only at M = 100, and with 1,000 or more steps per epoch it did not certify even 1.02 times the exact . One run of the default route in both directions certified 1.02 times the exact in seven of the nine settings, in 7 seconds to 2.0 hours, and did not finish within 4 hours at E = 100 with M = 1,000 and M = 10,000. The exact took 6.5 to 42.9 seconds. The growth with M of the noise that the fast Fourier route certifies, at a fixed target and grid budget, fits the explanation of Feldman and Shenfeld (2026, Appendix F), that the route works on the exponential of the privacy loss, whose range is much wider. A larger M needs a smaller , which widens this range further, and it also leaves fewer grid points for each step. Our searches with the accountant certify a only when the upper bounds of the add and the remove direction are both at most , although at either bound alone bounds the total variation. Accepting either bound shortened the fast Fourier search by 7% to 27% and the coarse search by 21% to 37%, gave the same on the fast Fourier route at , and lowered the noise by 0.11 to 0.24 percentage points on that route at M = 500 and by 0.11 to 0.37 percentage points in the coarse search. The searches stop when the bracket around is narrower than of its upper end. At M = 250 and E = 10, where the fast Fourier search certified the least noise among the searches faster than the exact , accepting either bound and stopping at and at certified 0.65% and 0.62% more noise than the exact in 326 and 456 seconds, against 680 seconds to find and certify the exact . The route did not certify, in either direction, the last that the finer search rejected, 0.6155% above the exact one.
CIFAR-100 linear classifier (Section 5.2). A linear layer on the 2,048 features of a ResNet-50 (He et al., 2016) pretrained on ImageNet (Deng et al., 2009). The network is frozen, and only the linear layer is trained. The images of CIFAR-100 (Krizhevsky, 2009) are resized to before the network. A fixed random split of the 50,000 training images gives the images of the training set and 15,000 public images. Test accuracy is on the 10,000 test images. The clipping norm is , and the learning rate follows , where 140 is at . This rule was chosen before any trial, among twelve candidates with base rate 0.05, 0.1 or 0.25, and exponent 0 or 0.5, each trained at and on 13,000 of the public images and scored on the other 2,000. The loss, the optimizer, the cosine decay and the shared randomness of a cell are as for CIFAR-10, without augmentation.
Table 5: Time to find in each cell of Table 1. The first group ran on the machine that ran the accountant's search for that cell. Exact is the root search on Theorem 4.1, accountant is the search that gave the trained , coarse is the same search at numerical accuracy 0.05 without escalation, and FFT is the search on the accountant's fast Fourier route. Coarse and FFT are each followed by the noise of their above the exact . The second group is one run of the accountant with its default route in one direction at its trained , with no search, at the largest loss discretization that certifies that . Every run except the accountant's search used one thread. Appendix E describes the searches and defines the numerical accuracy and the loss discretization.
| M | E | exact (s) | accountant (h) | search | one run of the accountant time (min) | loss discretization | |||
|---|---|---|---|---|---|---|---|---|---|
| coarse (min) | coarse above exact | FFT (min) | FFT above exact | ||||||
| 100 | 10 | 9.8 | 5.5 | 4.5 | 4.31% | 4.9 | 0.26% | 6.5 | 0.003 |
| 100 | 20 | 9.4 | 12.6 | 9.5 | 4.75% | 6.5 | 0.27% | 19.6 | 0.0025 |
| 100 | 40 | 8.8 | 27.5 | 20.4 | 5.04% | 10.6 | 0.28% | 40.2 | 0.0025 |
| 250 | 10 | 10.1 | 19.0 | 18.3 | 2.90% | 6.5 | 0.71% | 36.1 | 0.003 |
| 250 | 20 | 10.4 | 45.4 | 42.4 | 3.39% | 8.1 | 0.44% | 131.7 | 0.003 |
| 250 | 40 | 9.5 | 103.3 | 93.0 | 3.73% | 10.9 | 0.60% | 180.4 | 0.003 |
| 500 | 10 | 9.6 | 40.5 | 38.9 | 2.38% | 5.8 | 4.07% | 106.2 | 0.0025 |
| 500 | 20 | 10.1 | 105.3 | 99.7 | 2.90% | 7.4 | 2.90% | 160.7 | 0.003 |
| 500 | 40 | 10.4 | 248.9 | 231.7 | 3.36% | 10.7 | 1.94% | 425.4 | 0.003 |
Table 6: The at of the three values of in each cell of Table 1. The closed-form is the largest of the three and the exact the smallest, so in each cell the closed form has the smallest and the exact the largest. Each entry is the upper end of the interval that the privacy loss distribution accountant of Feldman and Shenfeld (2026) gives at numerical accuracy 0.01, in the larger of the add and the remove direction.
| M | E | closed | exact | accountant |
|---|---|---|---|---|
| 100 | 10 | 0.727 | 0.949 | 0.942 |
| 100 | 20 | 0.724 | 0.940 | 0.934 |
| 100 | 40 | 0.723 | 0.939 | 0.933 |
| 250 | 10 | 0.733 | 0.970 | 0.963 |
| 250 | 20 | 0.725 | 0.944 | 0.938 |
| 250 | 40 | 0.724 | 0.939 | 0.934 |
| 500 | 10 | 0.745 | 1.022 | 1.015 |
| 500 | 20 | 0.728 | 0.952 | 0.946 |
| 500 | 40 | 0.724 | 0.941 | 0.935 |
RoBERTa-base on SST-2 and AG News (Section 5.2). RoBERTa-base (Liu et al., 2019) with a new classification head is fine-tuned in full, with all 124.6 million parameters trained and each text cut or padded to 128 tokens. Dropout is switched off everywhere in the model. SST-2 (Socher et al., 2013) is taken from GLUE (Wang et al., 2019). A fixed random split of its 67,349 training examples gives the records of the training set, 20,000 public records to train on when choosing the recipe and 1,000 public records to score it. We report validation accuracy on the 872 validation sentences. AG News (Zhang et al., 2015) has four classes. The same kind of split of its 120,000 training articles gives sets of the same sizes, and test accuracy is on its 7,600 test articles. For each dataset the recipe was chosen on its public records before any trial, at and , among six candidates, with base rate , or , clipping norm and exponent 0.5 or 1 in . For both datasets the rule chosen is . The score of a candidate is its mean top-1 accuracy on the 1,000 scoring records over one run at each . On AG News we stopped after 14 of the 18 runs, since no candidate with a missing run could reach the score of the best candidate even if each missing run matched the best finished run with the same . The loss, the optimizer and the cosine decay are as for CIFAR-10. All runs used RTX A6000 GPUs.
Other targets (Section 5.2). Table 8 repeats the comparison of the closed form and the exact at , without the accountant and with the training setup above. The exact raises the test accuracy in each of the 99 (cell, seed) pairs. At these targets the mean gain is 1.08 to 4.77 points on CIFAR-100 and 0.94 to 1.97 points on CIFAR-10, largest at for both models.
Comparison with published results (Section 5.2). At the exact the RoBERTa-base runs have between
Table 7: The accountant of Feldman and Shenfeld (2026) with its two routes against the exact over larger settings, on one CPU core. The fast Fourier column gives the smallest of 1.005 and 1.02 times the exact and the closed form (12) that the fast Fourier route certifies at grid budget , loss discretization and tail truncation , and none means that it certifies none of the three. The default column times one run of the default route in both directions, the library's default, at 1.02 times the exact , loss discretization 0.01 and tail truncation , which certifies that in every setting where it finished within 4 hours. At the exact is found with (16) as in Table 10 in Appendix F, and otherwise as in Table 1. Each setting ran on one machine with one thread.
| M | E | λ | exact σ | exact (s) | fast Fourier certifies | default route (time) |
|---|---|---|---|---|---|---|
| 100 | 1 | 0.10 | 0.6770 | 6.5 | 1.005× exact | 7 s |
| 1,000 | 1 | 0.10 | 0.4520 | 42.9 | none | 47 s |
| 10,000 | 1 | 0.10 | 0.3532 | 32.8 | none | 2 min |
| 100,000 | 1 | 0.10 | 0.2970 | 38.0 | none | 5 min |
| 100 | 100 | 0.10 | 4.0400 | 9.9 | 1.005× exact | 24 min |
| 1,000 | 10 | 0.10 | 0.7048 | 12.0 | none | 31 min |
| 10,000 | 10 | 0.10 | 0.4821 | 12.6 | none | 2.0 h |
| 1,000 | 100 | 0.10 | 1.4289 | 12.3 | closed form (12) | more than 4 h |
| 10,000 | 100 | 0.10 | 0.7085 | 12.0 | none | more than 4 h |
Table 8: Test accuracy at the closed-form and the exact for four targets . The linear classifier on CIFAR-100 uses the nine cells and ResNet-18 on CIFAR-10 the cells and (500, 20), each with three seeds. In each cell and seed the two runs share the seed, initialization and allocation, so only differs. Noise is how much larger the closed-form is than the exact one, over the cells. Test accuracies are means over cells and seeds in percent, gain is exact minus closed form in points, and positive counts the (cell, seed) pairs with a positive gain. The rows at use the runs of Table 1 in these cells.
| model | λ | noise (%) | closed form | exact | gain | positive |
|---|---|---|---|---|---|---|
| CIFAR-100 linear | 0.01 | 24.9 to 25.4 | 6.12 | 8.63 | +2.51 | 27/27 |
| 0.05 | 19.9 to 25.3 | 41.83 | 46.60 | +4.77 | 27/27 | |
| 0.10 | 14.9 to 25.3 | 53.58 | 55.96 | +2.38 | 27/27 | |
| 0.20 | 13.3 to 25.6 | 58.58 | 59.66 | +1.08 | 27/27 | |
| CIFAR-10 ResNet-18 | 0.01 | 25.1 to 25.3 | 16.25 | 17.98 | +1.73 | 6/6 |
| 0.05 | 22.1 to 24.2 | 33.78 | 35.76 | +1.97 | 6/6 | |
| 0.10 | 17.8 to 21.8 | 38.90 | 39.91 | +1.01 | 6/6 | |
| 0.20 | 14.6 to 19.4 | 41.55 | 42.48 | +0.94 | 6/6 |
0.940 and 0.952 at . On SST-2 they reach to validation accuracy, and Li et al. (2022) report validation accuracy at for full fine-tuning of RoBERTa-base with a standard classification head. On AG News they reach to test accuracy from the title and description of 45,000 private articles, and Kurakin et al. (2023) report at and at for BERT fine-tuned with differential privacy on the titles of 108,000 training articles.
Confidence intervals (Section 5.2). For each model the cells are fixed in advance and the seed is the unit of replication. So we average a difference in test or validation accuracy over the cells of each seed, nine for the image models and three for RoBERTa-base, and give the nominal interval, with 2 degrees of freedom, for the mean of the three seed averages. The exact minus the closed form gives points with interval [0.75, 1.41] on CIFAR-10, points with interval [2.26, 2.50] for the linear classifier on CIFAR-100, points with interval [0.70, 2.46] on SST-2 and points with interval [0.34, 0.53] on AG News. The exact minus the accountant's gives points with interval on CIFAR-10, points with interval [0.040, 0.065] on CIFAR-100, 0.000 points with interval on SST-2 and points with interval on AG News, all far below the differences to the closed form.
Licenses of the datasets and models. The download pages of CIFAR-10 and CIFAR-100 (Krizhevsky, 2009) (https://www.cs.toronto.edu/~kriz/cifar.html) and of the Stanford Sentiment Treebank (Socher et al., 2013) (https://nlp.stanford.edu/sentiment/) state no license, and the CIFAR page asks users to cite the technical report. The GLUE benchmark (Wang et al., 2019) refers users of SST-2 to the license of the original dataset
(https://gluebenchmark.com/faq). AG News (Zhang et al., 2015) is built from the AG corpus of A. Gulli, whose page permits any non-commercial use and leaves the copyright of the articles with the original news sources (http://groups.di.unipi.it/~gulli/AG_corpus_of_news_articles.html). We use the torchvision ResNet-50 weights IMAGENET1K_V2. The torchvision code is released under the BSD-3-Clause license, torchvision states no separate license for these weights, and the ImageNet terms of access allow only non-commercial research and educational use. RoBERTa-base (Liu et al., 2019) is released through fairseq, whose README states that its MIT license also applies to the pretrained models (https://github.com/facebookresearch/fairseq). Our use of all these assets is non-commercial research, and we do not redistribute any of the datasets or weights.
Computing infrastructure and software. The experiments ran on an institutional cluster. Each training run of ResNet-18, of the linear classifier on CIFAR-100 and of RoBERTa-base used one NVIDIA GPU, an RTX A4000, A5000 or A6000, and the models of the attack trials were trained on RTX A5000 and RTX A6000 GPUs. The linear model of Section 5.3 was trained without a GPU, on AMD EPYC 7402P processors, and the accountant runs and the timings of the calibration methods ran on the same processors. The code uses PyTorch (Paszke et al., 2019), torchvision, Opacus (Yousefpour et al., 2021) for the per-record gradients, Transformers (Wolf et al., 2020) for RoBERTa-base, NumPy (Harris et al., 2020) and SciPy (Virtanen et al., 2020), and the certificate of Appendix C.5 uses python-flint and FLINT (The FLINT team, 2026). The accountant of Feldman and Shenfeld (2026) is the library PLD_accounting 0.5.0, and FS uses the library dp_accounting 0.6.0 of the Google Differential Privacy Team. PyTorch, NumPy and SciPy are released under BSD licenses, Opacus, Transformers and dp_accounting under the Apache License 2.0, PLD_accounting and python-flint under the MIT license, and FLINT under the GNU Lesser General Public License, version 3 or later.
The ResNet-18 attack. In the attack trials consists of 44,999 CIFAR-10 training images and adds the target, so . The models of these trials reach 37.8% test accuracy on average. The target is CIFAR-10 test image 0 with its label changed from 3 to 4. The seven candidate scores are the target's negative loss, its logit-scaled confidence , where is the probability the model gives the assigned label , and its margin, each on the image itself and averaged over six fixed views, and minus the norm of its gradient. The views are the image, its horizontal flip and its circular shifts by two pixels up, down, left and right. Four candidates tied for the highest balanced accuracy on the pilot trials, each at its best threshold, and the selection took the first in a fixed order, the margin, with the threshold . On the 150 evaluation trials the attack is correct on 104 of the models trained with the target and on 50 of those trained without it. The attack classifies both models of a trial correctly in 4 trials and exactly one of them in the other 146. Let be the probability that the attack classifies both models of a trial correctly and the probability that it classifies neither. The balanced accuracy is half the expected number of models of a trial classified correctly, so it equals . The one-sided 97.5% Clopper–Pearson bound (Clopper and Pearson, 1934) on , from 4 of 150 trials, puts the balanced accuracy at most 0.534. For successes in independent trials, the one-sided upper Clopper–Pearson bound at level is the with if and 1 if . The standard errors in Table 2 are those of the mean over trials of the fraction of the two models of a trial that the attack classifies correctly, which is the balanced accuracy.
(a) one released model

(b) difference within a pair
Figure 2: The membership score of the target in 150 trials of ResNet-18. (a) The score of one released model, trained with the target (blue, solid) or without it (orange, dashed). The dotted line is the threshold chosen on the pilot trials. (b) The difference between the two models of each trial. It is positive on average, but much smaller than the spread in (a). The two panels have different horizontal scales.
Figure 2 shows why the margin attack stays near chance. In 97 of the 150 trials, adding the record raises the score of the target (paired t = 4.54), but the standard deviation of the score across trials is 62 times its average change. The attacker sees only one model, and in 146 of the 150 trials both models of the trial land on the same side of the threshold.
The second attack of Table 2 was chosen on 24 pilot trials, eight for each of three canaries (a white image, a black image and the ClipBKD image), over the same seven scores, by the largest paired t. It selected the ClipBKD canary, an image along the direction in which the public CIFAR-10 images vary least, whose label is the class a reference model trained on public data finds least likely (Jagielski et al., 2020, Algorithm 4), the averaged logit-scaled confidence and the threshold -2.0553, the midpoint of the pilot means. On the 150 evaluation trials it is correct on 86 models trained with the canary and on 67 trained without it. The attack classifies both models of a trial correctly in 3 trials and exactly one of them in the other 147, so the same bound puts its balanced accuracy at most 0.529. The second attack has a larger paired t than the margin attack, 8.5 against 4.54, yet a smaller balanced accuracy from one model.
The linear model. Without the target, . With the target, , since every epoch contributes once, regardless of its allocated step. Put and . Since is a unit vector, is without the target and with it. The likelihood ratio of the second distribution of to the first is with , which is . By the Neyman–Pearson lemma (Neyman and Pearson, 1933) the optimal tests threshold this ratio, and with the two hypotheses equally likely, (17) in Appendix A shows that the optimal test declares membership when the ratio exceeds 1. Here that is the test , and it is correct with probability under each hypothesis. The model has and is trained with , , , , the constant learning rate and no momentum. The indices hold the twelve zero-feature records of , the target under , and ghost records. A step holds none of the 12 records of with probability , and in each setting about 8.7 million of the 9.6 million steps add noise to an empty sum (line 6 of Algorithm 1). When the target has zero features, the two runs release the same model and the attack is exactly at chance.
Table 9: Noise multipliers and test accuracy in each cell of Table 1. The three values of depend only on , and , so every model uses the same in a cell. Test accuracy is in percent (validation accuracy for SST-2). It is the mean over three seeds with their standard deviation. Each difference is the exact run minus the other run, in points, averaged over the seeds and computed before rounding, so it can differ by 0.01 from the difference of the printed means.
| M | E | σ | ResNet-18 on CIFAR-10 | exact minus | |||||
|---|---|---|---|---|---|---|---|---|---|
| closed | exact | accountant | closed | exact | accountant | closed | accountant | ||
| 100 | 10 | 1.7370 | 1.4262 | 1.4333 | 37.63 ± 1.27 | 39.11 ± 1.00 | 39.16 ± 0.96 | +1.48 | -0.05 |
| 100 | 20 | 2.3621 | 1.9071 | 1.9169 | 39.13 ± 0.54 | 40.28 ± 0.65 | 40.33 ± 0.65 | +1.14 | -0.06 |
| 100 | 40 | 3.2689 | 2.6105 | 2.6241 | 40.60 ± 0.63 | 42.14 ± 0.53 | 42.20 ± 0.64 | +1.54 | -0.06 |
| 250 | 10 | 1.2088 | 1.0245 | 1.0282 | 38.46 ± 0.46 | 39.17 ± 0.35 | 39.09 ± 0.40 | +0.71 | +0.08 |
| 250 | 20 | 1.5826 | 1.3094 | 1.3152 | 40.13 ± 0.45 | 40.64 ± 0.74 | 40.70 ± 0.75 | +0.51 | -0.06 |
| 250 | 40 | 2.1352 | 1.7328 | 1.7411 | 41.00 ± 0.19 | 42.43 ± 0.18 | 42.39 ± 0.12 | +1.44 | +0.04 |
| 500 | 10 | 0.9592 | 0.8344 | 0.8365 | 38.66 ± 0.08 | 39.35 ± 0.67 | 39.27 ± 0.66 | +0.69 | +0.08 |
| 500 | 20 | 1.2093 | 1.0260 | 1.0298 | 40.17 ± 0.60 | 40.71 ± 0.67 | 40.63 ± 0.45 | +0.54 | +0.08 |
| 500 | 40 | 1.5829 | 1.3101 | 1.3155 | 41.33 ± 0.57 | 42.97 ± 0.52 | 43.06 ± 0.44 | +1.64 | -0.09 |
| M | E | σ | linear classifier on CIFAR-100 | exact minus | |||||
|---|---|---|---|---|---|---|---|---|---|
| closed | exact | accountant | closed | exact | accountant | closed | accountant | ||
| 100 | 10 | 1.7370 | 1.4262 | 1.4333 | 52.56 ± 0.46 | 53.72 ± 0.58 | 53.68 ± 0.63 | +1.16 | +0.04 |
| 100 | 20 | 2.3621 | 1.9071 | 1.9169 | 55.23 ± 0.18 | 56.92 ± 0.15 | 56.87 ± 0.16 | +1.69 | +0.05 |
| 100 | 40 | 3.2689 | 2.6105 | 2.6241 | 56.14 ± 0.34 | 58.83 ± 0.22 | 58.77 ± 0.22 | +2.69 | +0.06 |
| 250 | 10 | 1.2088 | 1.0245 | 1.0282 | 53.63 ± 0.20 | 55.08 ± 0.17 | 55.05 ± 0.16 | +1.45 | +0.03 |
| 250 | 20 | 1.5826 | 1.3094 | 1.3152 | 55.05 ± 0.18 | 57.40 ± 0.26 | 57.35 ± 0.25 | +2.35 | +0.05 |
| 250 | 40 | 2.1352 | 1.7328 | 1.7411 | 54.17 ± 0.57 | 57.64 ± 0.53 | 57.55 ± 0.53 | +3.47 | +0.09 |
| 500 | 10 | 0.9592 | 0.8344 | 0.8365 | 52.34 ± 0.34 | 54.18 ± 0.20 | 54.14 ± 0.22 | +1.84 | +0.04 |
| 500 | 20 | 1.2093 | 1.0260 | 1.0298 | 53.05 ± 0.72 | 55.86 ± 0.74 | 55.81 ± 0.72 | +2.81 | +0.05 |
| 500 | 40 | 1.5829 | 1.3101 | 1.3155 | 50.02 ± 0.22 | 54.00 ± 0.05 | 53.94 ± 0.02 | +3.98 | +0.06 |
| M | E | σ | RoBERTa-base on SST-2 (validation accuracy) | exact minus | |||||
|---|---|---|---|---|---|---|---|---|---|
| closed | exact | accountant | closed | exact | accountant | closed | accountant | ||
| 100 | 20 | 2.3621 | 1.9071 | 1.9169 | 86.85 ± 1.32 | 88.49 ± 0.98 | 88.49 ± 1.08 | +1.64 | 0.00 |
| 250 | 20 | 1.5826 | 1.3094 | 1.3152 | 86.28 ± 1.10 | 87.61 ± 0.41 | 87.58 ± 0.48 | +1.34 | +0.04 |
| 500 | 20 | 1.2093 | 1.0260 | 1.0298 | 84.56 ± 1.13 | 86.31 ± 1.16 | 86.35 ± 1.20 | +1.76 | -0.04 |
| M | E | σ | RoBERTa-base on AG News | exact minus | |||||
|---|---|---|---|---|---|---|---|---|---|
| closed | exact | accountant | closed | exact | accountant | closed | accountant | ||
| 100 | 20 | 2.3621 | 1.9071 | 1.9169 | 89.60 ± 0.53 | 90.13 ± 0.47 | 90.13 ± 0.48 | +0.54 | 0.00 |
| 250 | 20 | 1.5826 | 1.3094 | 1.3152 | 89.74 ± 0.15 | 90.09 ± 0.06 | 90.09 ± 0.07 | +0.36 | 0.00 |
| 500 | 20 | 1.2093 | 1.0260 | 1.0298 | 89.50 ± 0.23 | 89.91 ± 0.22 | 89.90 ± 0.22 | +0.41 | +0.01 |
F NUMERICAL CHECKS

Figure 3: Monte Carlo estimates of at along (sublinear) and (linear), with samples per point, against the prediction of Theorem 3.5 with at each point (lines).
Figure 3 checks Theorem 3.5 at finite . Each point is , with the Monte Carlo estimate of the total variation described in Appendix C.4, and its interval is standard errors. Along the attack accuracy falls from 0.553 at toward chance. Along it stays near 0.547. At all ten points the prediction lies inside the 95% Monte Carlo interval, with a largest deviation of .
Settings of Table 10. The bound/exact column uses the four settings , , and at . Its second row takes the closed-form of each of the nine targets below and the exact value of (16) at 4,001 and at 8,001 Hermite nodes, which agree to within . The ratio in that row is largest where is smallest (Appendix D). The FS row with uses the accountant's finest grid, . FS is stated for , and it also holds at , where it bounds the total variation, because both sides of each of its inequalities are continuous in . The tuned row takes, in each setting, the smallest of 18 runs, crossed with grid widths . van Dijk and Ertan (2026) is their Theorem 3.1 with the exact third absolute moment in place of its simplified factor, which is allowed when and (van Dijk and Ertan, 2026), as in every setting here, and with the Berry–Esseen constant set to 0.4748, the upper end of the range [0.4097, 0.4748] they give for it. The noise and time columns use nine targets, crossed with , at . The exact that the noise column compares with solves by root search on (16) to within in . The timed root searches of every method stop at a tolerance of in , and their wall-clock times are the fastest of three runs where repeated. The FS noise and time use an accountant grid of . For these two columns the tuned row solves for at each of the six rates, takes the smallest , and reports the total time of the six searches. The smallest comes from at and from at . With the accountant's grid width set to , the exact root search is faster than FS by a factor of 7 to 384 at and 44 to 2,223 with tuning. On the accountant's default grid of , the noise and time of FS at are 9.0% to 35.6% and 10 to 33 s. On that grid, FS at is faster than the exact root search in three of the nine cells. At the bound of FS is times the total variation between steps that each include the record with probability and steps without it, where . The first distribution is a mixture, with weight on the second distribution and the rest on the distribution given at least one participation, so the bound equals the total variation between that conditioned distribution and the second distribution. As the conditioned distribution tends to one participation at a uniformly chosen step, which gives the Gaussian pair, so in exact arithmetic the bound tends to the exact value. The library dp_accounting evaluates the Poisson total variation on a grid, and , at least , multiplies the numerical error of that evaluation. With tuned over the six rates, the library's values need 0.2% to 3.5% more noise than the exact , an excess that comes from both the positive rates and the numerical error. The closed form of van Dijk and Ertan (2026) is applicable to seven
Table 10: Comparison of five ways of setting for a total-variation target at one epoch. Bound/exact divides the method's bound on by the exact value (Theorem 4.1) at four settings of , and for the closed form also at its for the nine targets. Noise is how much larger the method's is than the exact , over nine targets. Time is the wall-clock time to find , with the scan over for FS with tuned. FS is Theorem 4.3 of Shenfeld and Feldman (2025) with auxiliary Poisson rate , and its rows are the values that the library dp_accounting computes. All rows bound the same random-allocation pair, and Appendix F lists the settings. For the accountant of Feldman and Shenfeld (2026) at one epoch, see Table 7 in Appendix E.
| method | bound/exact | noise | time |
|---|---|---|---|
| closed form (Corollary 3.4) | 1.2533–1.2561 | 7.4–16.7% | |
| at the nine targets | 1.25–2.13 | ||
| exact (Theorem 4.1) | 1 | 0 | 0.27–42 s |
| FS, | 1.58–1.75 | 9.0–34.3% | 104–343 s |
| FS, tuned | 1.019–1.586 | 0.2–3.5% | 608–2181 s |
| van Dijk and Ertan (2026) | 10.7–20.0 | 128–267% | 0.19–0.20 s |
of the nine targets, that is, only for these does some satisfy both the bound on and condition (2) of their Theorem 3.1. FS at needs less noise than the closed form at the largest targets and more at the smallest.
Table 11: Exact total variation at the closed-form on 27 configurations, checked against the accountant and Monte Carlo. Each is from Corollary 3.4 for the target , and exact is that of from Theorem 4.1. Accountant is the interval between the largest lower bound and the smallest upper bound on the total variation that the privacy loss distribution accountant of Feldman and Shenfeld (2026) gives in the add and the remove direction. Monte Carlo uses samples, one standard error. Ratio is the bound divided by the exact value.
| λ | M | E | σ | exact dTV | accountant | Monte Carlo | ratio |
|---|---|---|---|---|---|---|---|
| 0.10 | 100 | 10 | 1.7370 | 0.07885 | [0.07434, 0.08359] | 0.07884 ± 0.00002 | 1.2683 |
| 0.10 | 100 | 20 | 2.3621 | 0.07887 | [0.07436, 0.08364] | 0.07888 ± 0.00002 | 1.2679 |
| 0.10 | 100 | 40 | 3.2689 | 0.07888 | [0.07439, 0.08364] | 0.07889 ± 0.00002 | 1.2678 |
| 0.10 | 250 | 10 | 1.2088 | 0.07880 | [0.07486, 0.08286] | 0.07877 ± 0.00002 | 1.2691 |
| 0.10 | 250 | 20 | 1.5826 | 0.07886 | [0.07487, 0.08286] | 0.07886 ± 0.00002 | 1.2681 |
| 0.10 | 250 | 40 | 2.1352 | 0.07887 | [0.07491, 0.08289] | 0.07888 ± 0.00002 | 1.2678 |
| 0.10 | 500 | 10 | 0.9592 | 0.07870 | [0.07482, 0.08269] | 0.07865 ± 0.00002 | 1.2706 |
| 0.10 | 500 | 20 | 1.2093 | 0.07884 | [0.07497, 0.08286] | 0.07884 ± 0.00002 | 1.2684 |
| 0.10 | 500 | 40 | 1.5829 | 0.07887 | [0.07500, 0.08289] | 0.07888 ± 0.00002 | 1.2679 |
| 0.20 | 100 | 10 | 1.0458 | 0.15193 | [0.14778, 0.15612] | 0.15200 ± 0.00004 | 1.3164 |
| 0.20 | 100 | 20 | 1.3403 | 0.15254 | [0.14839, 0.15681] | 0.15243 ± 0.00004 | 1.3111 |
| 0.20 | 100 | 40 | 1.7787 | 0.15270 | [0.14852, 0.15699] | 0.15273 ± 0.00004 | 1.3098 |
| 0.20 | 250 | 10 | 0.8018 | 0.15079 | [0.14712, 0.15449] | 0.15086 ± 0.00004 | 1.3263 |
| 0.20 | 250 | 20 | 0.9752 | 0.15223 | [0.14856, 0.15590] | 0.15226 ± 0.00004 | 1.3138 |
| 0.20 | 250 | 40 | 1.2336 | 0.15262 | [0.14897, 0.15628] | 0.15257 ± 0.00004 | 1.3105 |
| 0.20 | 500 | 10 | 0.6840 | 0.14923 | [0.14575, 0.15277] | 0.14923 ± 0.00004 | 1.3402 |
| 0.20 | 500 | 20 | 0.8025 | 0.15172 | [0.14816, 0.15534] | 0.15175 ± 0.00004 | 1.3182 |
| 0.20 | 500 | 40 | 0.9757 | 0.15249 | [0.14890, 0.15613] | 0.15248 ± 0.00004 | 1.3116 |
| 0.35 | 100 | 10 | 0.7849 | 0.24117 | [0.23757, 0.24485] | 0.24118 ± 0.00006 | 1.4513 |
| 0.35 | 100 | 20 | 0.9521 | 0.24572 | [0.24203, 0.24944] | 0.24575 ± 0.00006 | 1.4244 |
| 0.35 | 100 | 40 | 1.2003 | 0.24724 | [0.24352, 0.25100] | 0.24721 ± 0.00006 | 1.4156 |
| 0.35 | 250 | 10 | 0.6437 | 0.23524 | [0.23207, 0.23846] | 0.23527 ± 0.00005 | 1.4878 |
| 0.35 | 250 | 20 | 0.7459 | 0.24318 | [0.23994, 0.24645] | 0.24319 ± 0.00006 | 1.4393 |
| 0.35 | 250 | 40 | 0.8930 | 0.24643 | [0.24314, 0.24970] | 0.24644 ± 0.00006 | 1.4203 |
| 0.35 | 500 | 10 | 0.5716 | 0.22923 | [0.22620, 0.23233] | 0.22919 ± 0.00005 | 1.5268 |
| 0.35 | 500 | 20 | 0.6449 | 0.24004 | [0.23692, 0.24320] | 0.24001 ± 0.00006 | 1.4581 |
| 0.35 | 500 | 40 | 0.7467 | 0.24523 | [0.24206, 0.24842] | 0.24533 ± 0.00006 | 1.4272 |
G RELATED WORK IN FULL
Random allocation. Random allocation gives each record a fixed number of participations (Chua et al., 2025; Shenfeld and Feldman, 2025; Dong et al., 2025). Choquette-Choo et al. (2025) propose the same sampling for one epoch as balls-in-bins batching, reuse the same batches in every epoch, and compute guarantees of matrix mechanisms with correlated noise by Monte Carlo accounting. Schuchardt and Kalinin (2026) compute such guarantees without sampling, from Rényi divergence bounds and conditional composition. We study DP-SGD with independent noise and a fresh allocation in every epoch, as Chua et al. (2025) and Shenfeld and Feldman (2025) do, and bound the total variation in closed form. Koskela et al. (2023) study the Gaussian pair (6), scaled by , in the shuffle model and estimate its hockey-stick divergence by Monte Carlo integration in up to seven dimensions. Random allocation is related to random check-ins, in which records choose their participation times independently and may abstain (Balle et al., 2020). Dong et al. (2025) and Dong and Özgür (2026) study balanced iteration subsampling, in which each record takes part in of steps chosen uniformly at random. One epoch of random allocation is the case and , and our epochs compose independent copies of it. Balanced iteration subsampling with and instead spreads the steps of a record over all steps and need not use the record in every epoch. Related schemes are truncated Poisson sampling (Ganesh, 2025) and subsampling for banded matrix mechanisms (Dong and Ganesh, 2026).
Attack-based measures of privacy. Total variation is the optimal advantage 2 Acc* -1 (Yeom et al., 2018) of a membership test for one pair of neighboring datasets (Chatzikokolakis et al., 2023), and Ghazi and Issa (2024) study it as a privacy parameter. For DP-SGD with Poisson subsampling, Mahloujifar et al. (2022) bound this advantage by the total variation between a Gaussian and a Gaussian mixture, which they estimate by Monte Carlo, and Kulynych et al. (2024) search with a privacy loss distribution accountant for the that meets a target advantage or target attack error rates. Cherubin et al. (2024) give closed-form record-inference bounds, up to an error term, for DP-SGD with Poisson sampling when all intermediate models are released, and Gómez et al. (2026) advocate reporting guarantees as Gaussian differential privacy. Gaussian differential privacy and its central limit theorem are due to Dong et al. (2019).
Setting parameters before training. van Dijk et al. (2024) also choose DP-SGD parameters before training, from a closed-form ( ) guarantee for Poisson subsampling derived with a generalized moments accountant.
H LIMITATIONS IN DETAIL
Our bound (5) concerns one added or removed record, and by the triangle inequality the total-variation bound for a group of records is times as large. A bound on the total variation says little about tests with a small false-positive rate (Carlini et al., 2022; Kulynych et al., 2024), because the bound allows such a test a true-positive rate up to . The chi-square value gives a limit that shrinks with . Every test on the released model with false-positive rate at most has true-positive rate at most (Appendix B.4). At and the exact of our training cells for , the chi-square limit is at most 0.0092, while the total variation alone allows 0.101. Total variation alone gives no guarantee with (Appendix A), and a release that needs one can use a privacy-profile accountant.