Synthetic Data and Anonymization — Safe-to-Share Data

Sometimes the goal isn't to compute privately on real data but to produce data that's safe to share, publish, or hand to a less-trusted team — data that looks and behaves like the real thing without being about any real person. Synthetic data and anonymization promise exactly this, and they're widely used — but they also hide the subtlest privacy traps in the whole field. This post covers how to make shareable data, and the honest truth about how well it actually protects privacy.

Posts 3–6 protected data during use (differential privacy, federated learning, secure computation). This post covers the fourth angle from post 1: don’t use the real data at all — transform or generate data so it can be shared freely. It’s the most intuitive approach and the one most prone to false confidence, which is exactly why it needs careful treatment.

Anonymization and why it’s weaker than it looks

Anonymization transforms real data to remove identifying information while keeping it useful. The classic techniques: - Removing direct identifiers — strip names, SSNs, account numbers. - Generalization — coarsen values (exact age → age range, full ZIP → first three digits) so individuals blur into groups. - Suppression — remove especially rare or risky values that would single someone out. - k-anonymity and its successors — a formal-ish goal where each record is indistinguishable from at least k−1 others on the identifying attributes (so no one is unique), extended by l-diversity and t-closeness to also protect the sensitive values within those groups.

These help, and they’re often required, but post 1’s warning applies in full: anonymization is fragile against re-identification. The quasi-identifiers that remain (combinations of ZIP, birthdate, sex, diagnosis, timestamps, behavior) often still single people out, and linking the “anonymized” data to any auxiliary dataset can re-identify individuals — as repeatedly demonstrated on supposedly-anonymized medical, location, and ratings data. k-anonymity and friends raise the bar but don’t provide a provable guarantee the way differential privacy does, and they degrade as more auxiliary data becomes available in the world. The honest stance: anonymization reduces risk and may satisfy a regulation, but it is not a strong or future-proof privacy guarantee, and treating anonymized data as “safe, done” is the field’s most common mistake.

Synthetic data: generate instead of transform

Synthetic data takes a different approach: instead of transforming real records, generate artificial ones that preserve the statistical properties of the real data without corresponding to real individuals. You train a generative model on the real data, then sample new, fake records that have the same distributions, correlations, and patterns — so a model trained on the synthetic data, or an analysis run on it, gives similar results to the real thing, but no synthetic record is a real person.

The appeal is strong: - Shareable — synthetic data can (in principle) be published, shared across teams, or used in development/testing where real sensitive data shouldn’t go. - Useful — if it preserves the right statistics, downstream ML and analytics work on it, unblocking work that real-data restrictions would stall. - Abundant — you can generate as much as you want, and even balance under-represented groups.

But synthetic data carries a crucial and under-appreciated catch: it is not automatically private. A generative model trained on real data can memorize and reproduce real examples (exactly post 2’s memorization problem — the generator is itself a model that saw the real data), so synthetic records can inadvertently leak or even copy real individuals, especially outliers. “It’s synthetic” is not a privacy guarantee any more than “it’s aggregated” was (post 2). The quality that makes synthetic data useful — faithfully capturing the real data’s patterns — is in tension with privacy, because perfectly capturing the patterns can mean capturing individuals.

The resolution is the recurring theme of the series: combine with a formal guarantee. Differentially private synthetic data — generate the synthetic data under a differential-privacy guarantee (posts 3–4) — ensures the generator provably can’t have depended too much on any real individual, so the output is both useful and provably private. Synthetic data gives shareability; differential privacy gives the guarantee; together they’re trustworthy. Synthetic data without a formal privacy mechanism should be treated with the same skepticism as anonymization — helpful, not guaranteed.

Choosing an approach — and the unifying lesson

Anonymization and synthetic data occupy a specific niche in the toolkit: - Use them when the goal is a shareable artifact — a dataset to publish, hand to a vendor, use in non-production environments, or give a team that shouldn’t have the raw data. That “release a dataset” goal is their natural fit, where differential privacy’s noisy-statistics and federated learning’s no-sharing models don’t directly apply. - Prefer synthetic-with-differential-privacy over bare anonymization when you need a real guarantee, because anonymization’s protection is fragile and unprovable while DP-synthetic is provable. - Remember the utility-privacy trade-off persists — heavily anonymized or strongly-private synthetic data loses fidelity, and the more faithfully synthetic data mirrors reality, the more privacy risk it carries. There’s no escaping the trade-off; you only choose where to sit on it.

The unifying lesson of the whole series crystallizes here: no privacy technique is “automatically private.” Anonymization fails to re-identification; aggregation and synthetic data fail to memorization; federated learning leaks through updates; even securing the data doesn’t secure the model. Each technique protects against a specific threat and must be matched to the actual threat model — and real privacy comes from combining techniques, ideally anchored by a technique with a formal, provable guarantee (differential privacy) rather than a technique that merely feels safe (anonymization, bare synthetic data). The approaches that feel most intuitively private — “I removed the names,” “it’s fake data” — are precisely the ones that lull you into false confidence. Knowing that is the difference between privacy theater and privacy engineering.

The throughline: when the goal is safe-to-share data, you have two tools, both prone to false confidence. Anonymization (remove identifiers, generalize, suppress, aim for k-anonymity/l-diversity/t-closeness) helps and may satisfy regulation but is fragile against re-identification via quasi-identifiers + auxiliary data, with no provable, future-proof guarantee — “anonymized = safe” is the field’s most common mistake. Synthetic data generates artificial records preserving the real data’s statistics — shareable, useful, abundant — but is not automatically private, because the generative model can memorize and reproduce real individuals (post 2), especially outliers. The fix is the series’ recurring move: differentially private synthetic data combines shareability with a provable guarantee. The unifying lesson: no technique is automatically private — each counters a specific threat, so match to the threat model and combine, anchored by a formal guarantee (differential privacy) rather than what merely feels safe.

Key takeaways

Further reading

Sources & References