NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Differentially Private Tabular Data Synthesis using Large Language Models

Toan V. Tran, Li XiongarXiv 2024 · DOI

Abstract

Sharing tabular data in sensitive domains like healthcare and finance is critical for research but poses significant privacy risks. This paper introduces DP-LLMTGen, a framework that utilizes pretrained Large Language Models (LLMs) to generate synthetic tabular data under strict Differential Privacy (DP) guarantees. By employing a two-stage fine-tuning strategy and custom loss functions for numerical accuracy, DP-LLMTGen outperforms existing generative models in capturing complex data relationships and enables controllable generation to mitigate data biases.

Introduction

In the era of data-driven research, synthetic data serves as a vital tool for sharing information without compromising individual privacy. However, providing formal privacy guarantees requires Differential Privacy (DP), which introduces mathematical noise that often degrades data utility. Traditional methods like DP-GANs frequently struggle with convergence under noisy conditions, while marginal-based methods fail to capture high-dimensional dependencies. DP-LLMTGen addresses these challenges by treating tabular data as natural language, leveraging the inherent structural knowledge of LLMs.

Methodology

The DP-LLMTGen framework transforms tabular rows into text strings (e.g., "Age is 25, Job is Engineer") and follows a specialized training pipeline to optimize the use of a limited privacy budget.

Overview of the DP-LLMTGen framework, illustrating the two-stage fine-tuning process and tabular-to-text encoding.

Two-Stage Fine-Tuning

  1. Stage 1: Format Learning: The model is first trained on randomly generated tabular data. This stage teaches the LLM the specific syntax of the table (headers, delimiters, and value ranges) without consuming the privacy budget on sensitive data.
  2. Stage 2: DP Fine-Tuning: The model is then fine-tuned on real sensitive data using Differentially Private Stochastic Gradient Descent (DP-SGD). Since the format is already learned, the privacy budget is dedicated entirely to learning the underlying data distributions.

Specialized Loss Functions

To improve accuracy, the authors introduce:

  • Weighted Cross Entropy Loss (WCEL): Prioritizes the generation of actual data values over formatting tokens like "is" or commas.
  • Numerical-Understanding Loss (NUL): A squared-error component that helps the model understand the proximity of numerical values, treating "10.1" as closer to "10.0" than "99.9".

Experimental Evaluation

The framework was evaluated on five datasets: Bank Marketing, Adult Census Income, Online Food Order, Apple Quality, and Shipping Classification. To prevent data contamination, several datasets were selected that were released after the Llama-2 training cutoff.

Key Results

DP-LLMTGen demonstrates superior performance in statistical fidelity compared to state-of-the-art marginal-based methods such as RAP++ and GSD.

Comprehensive performance comparison across five datasets showing Statistical Fidelity (TVD) and downstream ML utility (XGBoost ACC/AUC).
  • Statistical Fidelity: DP-LLMTGen consistently achieved lower Total Variation Distance (TVD) across 1-way to 5-way marginals, indicating a better capture of multi-dimensional correlations.
  • Fairness and Control: Through "value-specified sampling," the authors reduced demographic parity bias in the Adult dataset by approximately 85% with minimal impact on predictive accuracy.
  • Contextual Advantage: Unlike numerical models, LLMs leverage pretrained knowledge of feature names (e.g., "Age"), allowing them to learn realistic patterns more efficiently.

Discussion and Limitations

While DP-LLMTGen sets a new benchmark for DP tabular synthesis, it faces challenges regarding computational overhead. Fine-tuning 7-billion-parameter models is resource-intensive compared to traditional statistical approaches. Additionally, while statistical fidelity is high, there remains a "utility gap" in downstream machine learning tasks like XGBoost classification. Future work may involve prioritizing the accuracy of target columns through weighted loss and exploring more efficient, smaller LLM architectures.

Conclusion

DP-LLMTGen represents a significant step forward in privacy-preserving data synthesis. By reframing tabular data as a language modeling task and utilizing a strategic two-stage training approach, it provides a robust solution for generating high-quality, private synthetic datasets.

Summary updated

BibTeX
@misc{tran2024differentially,
  author = {Toan V. Tran and Li Xiong},
  title = {{Differentially Private Tabular Data Synthesis using Large Language Models}},
  year = {2024},
  eprint = {2406.01457},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.01457},
}
Figure