Skip to content
Hub Nexus

No author yetClaim it

Version 2Updated 4 min read

Support

An anonymised spreadsheet does not prevent people from being re-identified. A synthetic dataset made with differential privacy keeps the original's shape, can be opened in any tool, and comes with a mathematical privacy guarantee. This NIST post, part of its series on differential privacy, explains the idea with an imaginary pumpkin spice latte company.

The problem it solves

Earlier posts in the series showed ways to answer queries over data with differential privacy. Each needs changed tools, usually because noise is added to the answers. Suppose the company's marketing department exports monthly sales data to a spreadsheet and does not want to learn or buy new tools. The first option is a "de-identified" or "anonymized" copy with identifying information removed, but the series' first post explains that this approach does not prevent re-identification of individuals.

A differentially private synthetic dataset offers the same workflow. It has the same schema as the original and tries to keep properties such as correlations between attributes, but it gives a provable privacy guarantee for the individuals in the original. NIST notes that many ways of generating synthetic data do not satisfy differential privacy or any privacy property. They may offer partial protection, but not protection backed by mathematical proof.

Use and accuracy

Once the data has been privatized, no further protection is needed. It can be analysed, shared and combined with other datasets without additional risk to privacy, and the analysts need not be privacy-aware. That makes it easier to use than the earlier approaches, which all required changes to tools and workflows.

A diagram of the uses of differentially private synthetic data, where downstream users need not be privacy-aware

Uses of differentially private synthetic data. PSK stands for pumpkin spice latte. Image from NIST's page.

The main challenge is accuracy. Building accurate differentially private synthetic data is extremely challenging in practice, and as a rule of thumb a purpose-built differentially private analysis will generally do better than the same analysis on synthetic data. Tools are developing quickly, though. NIST's 2018 Differential Privacy Synthetic Data Challenge drew submissions using many techniques, and on its benchmark problems the top-scoring solutions produced extremely accurate synthetic data. Rough accuracy is also enough for some uses, such as spotting insights and trends.

How the data is made

Every method for generating synthetic data, private or not, starts by building a probabilistic model of the population the original data was sampled from, then uses the model to generate new data. If the model is accurate, the new data keeps the population's properties, but every generated record is a "fake" individual who does not exist. Building the model is the hard part. The top five algorithms in the Challenge were released as open-source software.

Marginal distributions. Count how many of each drink were sold, add noise to the histogram to satisfy differential privacy, then divide each noisy count by the total. The result is a one-way marginal distribution that looks at only one attribute and ignores correlations between attributes. To make a fake purchase, pick a drink type at random, weighted by that distribution. In the post's example, 60.8% of the generated purchases should be pumpkin spice lattes, 24.1% lattes and 15.0% regular coffees.

A diagram of generating differentially private synthetic data from a marginal distribution of drink sales

Generating differentially private synthetic data with a marginal distribution. Image from NIST's page.

The difficulty is correlation. If customer age is added and younger customers are more likely to buy pumpkin spice lattes, handling each attribute separately loses that link. A two-way marginal over both attributes keeps it, but has many more combinations, so each gets a weaker signal relative to the noise. The winning algorithm in the 2018 Challenge, by Ryan McKenna, uses a differentially private step to find the correlations and then measures three-way marginals that include the correlated attributes, which preserves them while keeping the signal strong. The second-, third- and fourth-place entries also used marginal distributions, which NIST calls the basis for many differentially private synthetic data algorithms.

Deep learning. A neural network can learn the population instead. A generative adversarial network (GAN) is behind thispersondoesnotexist.com, which produces convincing photos of imaginary people. Trained on the right data, such a network can generate synthetic sales data, and training it with a differentially private algorithm means the data it generates also satisfies differential privacy, by the post-processing property. Open-source implementations exist in TensorFlow Privacy and Opacus. The fifth-place Challenge entry, from a team at the University of California, Los Angeles, used a GAN. For low-dimensional tabular data like the latte example, deep learning is generally less accurate than marginal-based methods, though it may prove extremely effective for high-dimensional data such as images, audio and video.

What comes next

The next post in the series covers how to make sure differential privacy is implemented correctly. NIST warns that buggy differentially private programs do not crash; they silently violate privacy in ways that can be hard to detect.

Sources

Comments

Spinner Logo

More on Science

By Hub Nexus editors
Top 10 in AI, week of 2 November 2026
By Hub Nexus editors
Top 10 in AI, week of 26 October 2026
By Hub Nexus editors
Top 10 in AI, week of 19 October 2026
By Hub Nexus editors
Top 10 in AI, week of 12 October 2026
CC0 1.0 (public domain)
What Ohio gets from being mapped by laser
CC0 1.0 (public domain)
Delta 2020 Intensifies into a Major Hurricane