Local differential privacy (LDP) is a model of differential privacy in which each user randomizes their own data on their device before sending it, so the data collector never sees a true individual value. In privacy engineering, it is the strongest practical answer to the question of how to gather useful statistics from millions of people without trusting the collector with raw data.
LDP keeps the formal guarantee of differential privacy, expressed through the privacy parameter epsilon, but moves the noise from a central server to the edge. The price of that shift is much larger statistical error, which is why the technique suits high-volume telemetry rather than small studies.
How local differential privacy randomizes data
A mechanism M satisfies epsilon-local differential privacy if, for any two possible inputs x and x’ and any output y, the probability that M(x) produces y is at most e to the power epsilon times the probability that M(x’) produces y. Because the condition holds for every pair of inputs, a single report reveals only a bounded amount about what the user actually holds.
The classic mechanism is randomized response, first proposed for sensitive survey questions in the 1960s. For a yes-or-no question, the device reports the true answer with probability e^epsilon / (1 + e^epsilon) and the opposite otherwise. With epsilon equal to ln 3, the truthful answer is sent 75% of the time, so any single report is plausibly deniable.
The collector then debiases the aggregate. Knowing the flipping probability, it inverts the expected distortion to estimate the true proportion across the population. Individual noise largely cancels out, but only when the number of reports is large.
The table shows how the choice of epsilon changes the behavior of binary randomized response.
| Epsilon | Probability of a truthful report | Privacy for one report |
|---|---|---|
| 0.5 | About 62% | Strong deniability |
| 1.0 | About 73% | Strong to moderate |
| ln 3 (about 1.1) | 75% | Moderate |
| 2.0 | About 88% | Weaker |
| 4.0 | About 98% | Weak in practice |
Local and central differential privacy compared
The essential difference between the two models is where the trust boundary lies. In central differential privacy, users send true data to a curator that adds noise to query results; in local differential privacy, no party ever holds the raw value.
| Property | Central model | Local model |
|---|---|---|
| Trusted party | A curator holds raw data | None, noise is added on device |
| Error for a count | Roughly 1 / epsilon | Roughly the square root of n / epsilon |
| Data needed | Works on thousands of records | Typically needs millions of reports |
| Breach impact | Raw data can leak | Only noisy reports can leak |
| Typical use | Official statistics, research releases | Browser and operating system telemetry |
In relative terms, the error of a frequency estimate in the local model shrinks with one over the square root of n, while in the central model it shrinks with one over n. A shuffle model sits between the two: reports are anonymized and mixed by an intermediary, which can amplify privacy and narrow the accuracy gap.
Common mechanisms and deployments
Binary randomized response does not scale to large value domains such as URLs or emoji, so practical systems use encoding plus randomization. The mechanisms below differ mainly in how they compress the domain before noise is applied.
| Mechanism | Encoding idea | Typical application |
|---|---|---|
| Randomized response | Flip a single bit | Yes or no questions |
| RAPPOR | Bloom filter bits with two noise stages | Browser settings and homepages |
| Unary encoding | One bit per category | Small categorical domains |
| Count mean sketch | Hashed sketch rows | Popular words and emoji |
| Local hashing | Hash into a small range, then randomize | Large domains with low bandwidth |
Major technology vendors have deployed LDP for browser and operating system telemetry, including discovering frequently visited domains, popular new words and app usage counters. These deployments show that the model works at scale, but published analyses have also noted high per-day epsilon values and repeated collection that weaken the effective guarantee.
Privacy budget and repeated collection
Epsilon behaves like a privacy budget that is consumed with every report. Under basic composition, a user who sends ten independent reports at epsilon 1 has a cumulative loss of up to epsilon 10, which offers little protection. Telemetry that runs daily therefore needs a deliberate budget policy.
- Memoization: compute one permanent randomized answer per value and reuse it, so repeats reveal nothing new.
- Instantaneous noise on top of the memoized answer prevents the report itself from becoming a stable identifier.
- Budget caps per period, such as a fixed epsilon per day, bound the worst-case cumulative loss.
- Sampling, where each device reports only some of the time, reduces total disclosure.
Limitations and common misconceptions
LDP is often misunderstood as a general-purpose anonymization method. It is not: it protects the value inside each report, but metadata such as IP addresses, timestamps and device identifiers can still enable re-identification unless they are removed separately.
- Small populations produce estimates dominated by noise, so rare values cannot be measured reliably.
- Correlated attributes collected separately can leak more than each epsilon suggests.
- Poisoning attacks are easier, because the server cannot verify noisy inputs from malicious clients.
- A low epsilon on paper means little if collection is repeated without memoization.
LDP also complements rather than replaces pseudonymization, k-anonymity and data minimization. A sound design applies it to the sensitive value and still minimizes everything else sent with the report.
Explained without jargon
Imagine a survey asking whether you have ever skipped work while pretending to be ill. Before answering, you secretly flip a coin. On heads you tell the truth; on tails you flip again and answer yes or no by that second coin. Nobody can tell whether your yes is real or just the coin.
Across thousands of people, however, the coin effects are predictable and can be subtracted, so the overall percentage comes out quite accurately. Local differential privacy does the same thing automatically on your phone or computer: your device adds the randomness before anything leaves it, so the company learns about the crowd but not about you.
A typical use case
A web browser vendor wants to know which homepage settings are most common among its roughly 50 million weekly active users, partly to detect software that hijacks the homepage. Collecting raw homepage URLs would expose personal and sometimes sensitive sites, so the team uses local differential privacy.
Each browser hashes its homepage into a Bloom filter, memoizes a permanent randomized version, and on each weekly report adds fresh instantaneous noise. The effective epsilon is capped per report and memoization prevents the budget from growing with repeated weeks.
On the server, the team decodes the aggregate and reliably identifies the top few hundred homepages, including several malicious domains that appeared suddenly. Rare personal homepages never rise above the noise, which is exactly the intended outcome: useful population trends without a record of any individual’s choice.