Risk In Context: Benchmarking Privacy Leakage of Foundation Models in Synthetic Tabular Data Generation

Jessup Byun, Xiaofeng Lin, Joshua Ward, Guang ChengarXiv 2025 · DOI

Introduction

Synthetic tabular data generation has long been a cornerstone of privacy-preserving data science, enabling the sharing of sensitive datasets without exposing individual records. Traditionally, this required training specialized generative models like GANs or VAEs, which often struggle in "low-data" regimes. The emergence of Foundation Models (FMs) and In-Context Learning (ICL) has shifted this paradigm. By providing a few "seed" examples in a prompt, models like Llama 3 and GPT-4o can generate high-fidelity synthetic rows instantly.

However, this convenience comes with a potential "privacy tax." Because ICL requires placing sensitive data directly into the model's prompt, there is a significant risk that the model might "parrot" these training examples. This paper provides the first comprehensive benchmark to quantify membership leakage in foundation models compared to traditional synthetic data generators.

Benchmarking Methodology

The researchers evaluated two distinct families of generators across 35 real-world classification tables from the OpenML CTR23 suite, covering healthcare, finance, and public policy domains.

  1. Foundation Models (ICL): GPT-4o-mini, LLaMA 3.3 70B, and TabPFN v2.
  2. Data-Specific Baselines: Traditional deep learning models (CTGAN, TVAE, TabDiff) and interpolation methods (SMOTE).

To simulate realistic constraints, models were tested on tiny training subsets (n=32, 64, and 128). Privacy was measured using 13 different Membership Inference Attacks (MIAs), which attempt to determine if a specific record was part of the original seed set.

The Privacy-Utility Frontier

A central challenge in synthetic data is balancing statistical fidelity with privacy. While traditional models often sacrifice utility when data is scarce, foundation models maintain high utility but frequently at the cost of increased privacy risk.

The trade-off between Privacy (Average Max AUC) and Utility AUC across generative models.

As shown in the privacy-utility landscape, models like SMOTE and LLaMA 3.3 70B occupy the high-utility but high-leakage quadrant. In contrast, GPT-4o-mini and TabPFNv2 offer varying degrees of balance, with TabPFNv2 showing strong utility while maintaining more moderate leakage levels compared to the largest LLMs.

Key Results: Quantifying the Privacy Tax

The benchmark revealed that foundation models consistently sit at the high-risk end of the privacy spectrum. Unlike traditional models that undergo weight updates (which can act as a form of lossy compression), ICL allows models to reproduce seed rows token-by-token.

Average Max AUC (Privacy Leakage) across different models and subset sizes. Higher AUC indicates greater privacy risk.

Key findings from the leakage analysis include:

  • LLaMA's High Risk: LLaMA 3.3 70B was the leakiest foundation model, yielding a True Positive Rate up to 54 percentage points higher than the safest deep-learning baselines.
  • The Size Effect: In traditional models like TVAE, leakage typically drops as the sample size increases. However, for foundation models, the risk remains high and dispersed regardless of whether 32 or 128 rows are used.
  • Rare Values as Vulnerabilities: Privacy leakage is primarily driven by the reproduction of "rare" values. When models focus on majority patterns, leakage drops significantly.

Mitigation Strategies: The "Zero-Cost" Recipe

The study identifies several prompting tweaks that can slash privacy risks without requiring expensive model retraining or specialized hardware:

  1. Small Generation Batches: Reducing the batch size to 10 rows cut worst-case attack AUC by 14 percentage points, as it limits the model's ability to cross-reference multiple seed rows simultaneously.
  2. Low Temperature Sampling: Using a low temperature (e.g., 0.1) reduces the likelihood of the model emitting rare, identifying tokens, effectively forcing it to stick to more general patterns.
  3. Global Summary Statistics: Counter-intuitively, including means and variances in the prompt decreases leakage. These statistics act as a "soft regularizer," anchoring the model to population-level trends rather than individual records.

Conclusion and Future Work

While foundation models offer unprecedented ease for synthetic data generation, their inherent privacy risks cannot be ignored. This research demonstrates that while the "privacy tax" is real, it can be mitigated through strategic prompt engineering. Future work will focus on expanding the scope of attacks to include reconstruction and attribute inference, as well as integrating formal Differential Privacy (DP) guarantees into the ICL workflow to provide mathematical certainty alongside high data utility.

Summary updated

BibTeX
@misc{byun2025risk,
  author = {Jessup Byun and Xiaofeng Lin and Joshua Ward and Guang Cheng},
  title = {{Risk In Context: Benchmarking Privacy Leakage of Foundation Models in Synthetic Tabular Data Generation}},
  year = {2025},
  eprint = {2507.17066},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.17066},
}
Figure