Differential Privacy
Differential privacy (DP) is a mathematical framework that provides provable privacy guarantees for statistical analysis, with the core promise that the addition or removal of any single record has only a negligible effect on the output distribution. It turns privacy from a vague ethical concept into a quantifiable, composable and auditable engineering metric.
Core principles
The formal definition was established by Dwork and colleagues around 2006: for any two neighboring datasets differing in a single record, and any set of outputs, a randomized algorithm satisfies that the probability ratio does not exceed e to the power of epsilon, that is, epsilon-differential privacy. The smaller epsilon is, the stronger the privacy, the larger the noise and the lower the utility, so epsilon is an explicit privacy-utility knob.
Differential privacy is mainly implemented by adding noise. The most common is the Laplace mechanism: add noise following a Laplace distribution to the query result, with the noise scale determined jointly by the sensitivity of the query function and epsilon. Sensitivity is the maximum difference in query results on neighboring datasets, for example 1 for a counting query; the larger the sensitivity, the more noise is needed, and the inevitable result is degraded analytical precision. For sum, count and histogram queries, this mechanism is simple and optimal. The Gaussian mechanism suits settings needing a relaxed definition ((epsilon, delta)-DP) and, together with approximate differential privacy, is more common in deep learning.
Differential privacy satisfies two key properties: immunity to post-processing, where any further computation on the output cannot weaken the guarantee; and composability, where the privacy budgets of multiple queries add up, making the overall privacy cost accountable. Organizations can thereby split the total budget across business lines and set approval gates for overuse. This also means multiple releases on the same dataset must be accounted for uniformly, otherwise scattered queries accumulate leakage far beyond expectation.
Key points
By trust boundary it divides into central differential privacy and local differential privacy. The former has a trusted data holder add noise after aggregation, giving higher precision; the latter has users perturb data on their own devices before uploading, requiring no trust in the platform. Apple uses local differential privacy in iOS keyboard emoji prediction and health data statistics, and Google has similar practice in Chrome's RAPPOR and in later federated learning schemes.
Training deep models uses DP-SGD: clip per-sample gradients to limit single-sample influence, add Gaussian noise, and track cumulative epsilon with privacy accounting. The costs are significant: lower accuracy, markedly longer training, tuning effort, and the choice of epsilon is itself an art, since epsilon under different assumptions cannot be compared directly. Also note the risks of data correlation and small subgroups: mean estimation and rare-group statistics leak more at the same epsilon, often requiring a minimum group threshold. For statistical reports released repeatedly, coordination between differential privacy and statistical confidentiality should also be considered.
Common misconceptions
One misconception is equating "added random noise" with differential privacy; anonymization, generalization and k-anonymity do not provide DP's provable guarantee. A second is thinking that a larger epsilon is always better and comparing privacy across systems by epsilon at will, when the meaning of epsilon depends on the mechanism and assumptions. A third is not understanding composition effects: many small queries can accumulate leakage, requiring privacy accounting to manage the total budget. To judge whether a system is truly safe, look at whether it discloses the mechanism, the sensitivity analysis and the basis for its epsilon, not just the marketing line.
Application scenarios
Census data release, publication of statistical reports, sharing of medical and financial data, federated learning, privacy protection in large model training, and aggregated analysis of location trajectories.