Differential Privacy in Practice: What an Epsilon Budget Buys You

The product slide says the training run is differentially private. Ask which epsilon. Ask which delta. Ask whether the guarantee is per record or per user. Somewhere between question two and question three the conversation moves from product to engineering, and often it does not come back.

Here is the uncomfortable part: that silence is not always evasion. Plenty of competent teams ship a mechanism without running an accountant. They turn on a clipping, add some noise, tick the box, and never translate the configuration into a budget. The result is a privacy property nobody can state, which is functionally the same as not having one.

Differential privacy deserves better than that, for a simple reason. It is the rare privacy technology with a definition you can falsify. Most claims in this field (anonymisation, pseudonymisation, “we hashed the identifiers”) dissolve when you look at a specific attack. DP holds up a number instead: here is the bound on what you can learn about any one individual, take it apart if you can. That is why it is worth the paperwork. And the paperwork is the point. A privacy budget you publish is a commitment you can be audited against.

This post is the practitioner’s view: what the two numbers mean, where the noise actually goes in training, what a stated budget costs in model quality, and what it takes to run one operationally. Along the way I will use real numbers from a small project of mine rather than talking in the abstract.

The definition, without the algebra

An algorithm is ε-differentially private if, for any two datasets that differ by the contribution of a single individual, the probability of the algorithm producing any given output changes by at most a factor of e^ε. Remove one person from a training corpus, rerun, and the model’s outputs look statistically almost the same. ε controls “almost”. δ is the small probability that the guarantee lapses entirely; sane values are 1e-5 or smaller, and they should be chosen against the size of the dataset, not copied from a tutorial.

Four points that change how useful the definition is in practice:

It bounds influence, not exposure to every harm. DP says an individual’s data had, at most, a bounded effect on the output. It does not say your data engineer will not take a screenshot of the raw table, or that your staging database is encrypted. The guarantee attaches to a computation: a released model, a query result, a published statistic. Everything else is outside it.

It is closed under postprocessing. Anything derived from a differentially private release inherits the guarantee, because the release is the only place noise entered. This is what makes a published budget meaningful for a deployed model: the weights came from one training run, the run had a budget, the budget is the model’s privacy statement.

The privacy unit matters as much as the number. A budget per record means something very different from a budget per user. Apple’s published budgets are per user, per feature, per day, which is a far stronger statement than per record. When an audit asks “what is this person’s total exposure,” the unit is the answer to half of it.

Local and central DP are different trust models. Local DP adds noise on the user’s device before anything leaves it; the server never sees raw data. That is Apple’s model, and the price is enormous noise, which is why their systems measure coarse things like emoji frequency rather than train models. Central DP adds noise during training on a server that holds raw data. That is DP-SGD, and it is what most enterprise “differential privacy for fine-tuning” means. The training host still sees everything; the guarantee is about what leaks out of the model.

Where the noise goes when you are training

DP-SGD is mechanically simple. For each example, compute the gradient. Clip it to a fixed norm so one outlier record cannot dominate. Add Gaussian noise sized to the clipping bound. Accumulate these per-example gradients into the update. A privacy accountant records the sampling rate, the noise multiplier, the clipping norm, and the number of steps, then converts that ledger into (ε, δ), usually through Rényi differential privacy (RDP), which composes more tightly than naive addition.

The accountant is the part that gets skipped, and it is the part that matters. “We enabled Opacus” describes a mechanism. It says nothing about how many epochs you ran, how large each sampling batch was, or what cumulative loss of privacy the resulting number represents. Ten epochs of a loose configuration can spend more of an individual’s privacy than one epoch of a strict one, and only the accountant knows.

What a stated budget costs: some real numbers

Talk about the privacy-utility tradeoff tends to stay abstract, so I ran it. aorva is a small open-source project of mine: a privacy accounting control plane with a Rust core for the ledger and budget rules, plus Python examples on the ML side. It is a design draft, and its README says plainly that no privacy guarantees are implemented or validated. But one of its examples answers the question I care about here: what does tightening ε do to accuracy, measured?

The setup: a small model, a synthetic dataset, ten epochs at two hundred steps, Poisson sampling at rate 0.05, per-example gradients clipped at norm 1.0, δ = 1e-5, Opacus 1.6.0 with its RDP accountant. Three random seeds per configuration, three noise multipliers against a non-private baseline. The numbers:

Noise multiplier ε (RDP accountant) Mean accuracy Baseline (non-private)
none n/a 98.0% 98.0%
0.8 ≈ 8.7 95.3%
1.2 ≈ 3.8 93.5%
2.0 ≈ 1.7 89.3%

Read the table as the shape of the decision, not as calibrated rates. Moving from ε ≈ 8.7 to ε ≈ 1.7, roughly a fivefold strengthening of the guarantee, cost six points of accuracy on this toy problem. 2.7 points of loss gets you into a defensible zone around ε ≈ 8.7; 8.7 points gets you into the conservative zone. On a harder distribution the curve can be much steeper. On an easier one it can be nearly free. That variance is exactly the argument for publishing the number instead of gesturing at the mechanism.

Three caveats, because the caveats are the discipline. First, this is a toy at small scale on synthetic data; do not transfer the accuracy curve to production. Second, these are accountant estimates under an add/remove adjacency assumption I have not finished validating; the ε column is a model of the privacy loss, not a measurement of it. Third, the project says so itself: no implemented privacy guarantees. The numbers demonstrate the accounting workflow. They do not certify anything, and I would rather show them with that printed on them than present clean-looking numbers as if the argument were settled.

Two details of how aorva runs this are the actual point. Every result row carries the full tuple into JSON: noise multiplier, clip norm, sampling rate, accountant and version, δ, privacy unit, the adjacency assumption, the resulting ε estimate, and a release_eligible flag. That flag is false in every row I have, deliberately. Accounting is not approval; release is a human decision that reads the ledger, and the ledger exists so the human has something to read.

The other detail: the budget rules are modelled in TLA+ before the Python implements them. The model checker explores 218 abstract states of the spending rules before a line of application code is trusted with them. That sounds like ceremony for a toy ledger, and it is cheap ceremony. Budget leaks are logic bugs. Hand-rolled accounting is exactly the kind of code where the ledger and the truth quietly drift apart, because the tests all pass while the composition accumulates.

What published budgets look like

When teams do state numbers, they tend to cluster in ways worth knowing about.

Apple’s local DP deployment publishes per-feature budgets in their technical overview: ε = 2 for health data types, ε = 4 for lookup hints, emoji and Safari domains linked to energy problems, ε = 8 for QuickType and autoplay detection, all per user per day, with donations capped at one or two per day and raw donation data retained for three months at most. It is the most conservative end of the spectrum, and it is affordable because local DP is applied to narrow, well-chosen statistics.

Google’s Community Mobility Reports used ε = 2.64 per user per day. Their federated training work on Gboard language models reported a zero-concentrated DP parameter of ρ = 0.81 (McMahan et al., 2018), one of the first production neural language models with a formal guarantee. Different currency than ε, but the same shape: a published, bounded number someone can examine.

Then there is the loud end. The US Census Bureau set a total budget of ε = 19.61 for the 2020 redistricting data product (their parameter announcement is public), and the fallout was substantial. Demographers fought publicly over how much distortion the noise introduced, census officials compared the output to an Impressionist painting, blurry up close and clearer at a distance, and researchers formally asked for the noisy measurement file so they could model the error. A Science news piece captures the scale of the argument.

I find the census fight genuinely encouraging, even with the real costs in it. A stated budget produced a public, technical debate about the tradeoff, in the open, with named participants and explicit values. Compare that with the alternative used by organisations that will not state ε: nobody can even find the tradeoff to argue about it.

NIST’s reading of deployed systems lands close to how I price budgets too: in their overview and SP 800-226, ε below about 5 is conservative, 5 to 20 has proven robust protection across varied settings, and anything above 20 needs a case-by-case argument. Those are calibration points to argue from, not thresholds to hide behind. The specific right answer depends on the sensitivity of the data, the adversarial model, and what the downstream users of the release can tolerate.

Running the budget like infrastructure

Treat the budget the way you treat TLS versions or IAM policy: versioned, logged, gated. The controls that actually work:

  • An append-only ledger, keyed by privacy unit. Every training run, fine-tune, evaluation and export that consumes a population declares the unit, the adjacency, ε, δ, the accountant and its version. Append-only, because a mutable ledger is an invitation to rewrite history before an audit.
  • Accountants in CI, in the artefacts. The configuration-to-(ε, δ) conversion should happen in the pipeline, and the result should land in the artefact, not in a wiki. My results files carry the tuple for this reason. If your auditor cannot diff two runs, you do not have accounting.
  • δ discipline. Keep δ small relative to the population; a common requirement is δ well below one over the number of records. δ = 1e-5 is sensible for populations in the millions and sloppy for populations in the thousands. Values in the 1e-3 range are not a defensible privacy claim; if you meet one, the first question is what the budget is supposed to be protecting.
  • Composition across runs and models. Fine-tuning chains, ensemble members and repeated retraining all spend from the same population’s exposure. Sequential composition is real: two runs each “within budget” are not within budget taken together. Without a ledger there is no answer to the audit question “what is this person’s total exposure across everything you have trained?” There should be an answer.
  • A release decision that is visibly separate from accounting. A ledger entry saying ε = 3.8 is evidence for a human decision. Keep the gate and the meter apart. Tooling that silently approves releases because the checkbox passed is how the checkbox becomes decorative.

What to ask a vendor

When a product claims DP, the claim takes one paragraph to state properly. Yours can too, on a slide; it takes five properties:

  1. ε and δ, and where in the spectrum above they sit.
  2. The privacy unit: per record, per user, per organisation.
  3. Which outputs the guarantee covers: model weights, API responses, published aggregates, all three?
  4. The accountant and version, and the assumption set (adjacency, sampling).
  5. Where the noise is added, and what the non-DP side channels are: embeddings, gradients, logs, memories.

Refusing to answer is an answer, one that says the “differentially private” tick on the slide was decoration. And some of the most honest systems are the ones that narrow their DP claim: “the telemetry is ε = 4 per user per day; the model is not DP.” That sentence is more credible than an unscoped guarantee, because it is falsifiable.

Pick a unit, set a budget, account for it, publish it, and argue about it in the open when someone disagrees. That is the whole discipline. The alternative, a mechanism plus an unanswered question, is not differential privacy, it is differential marketing.