DP-2Stage: Adapting Language Models as Differentially Private Tabular Data Generators
Tejumade Afonja, Hui-Po Wang, Raouf Kerkouche, Mario Fritz
TL;DR
This work tackles the challenge of generating synthetic tabular data under differential privacy by leveraging pre-trained GPT-2 language models. It introduces DP-2Stage, a two-stage fine-tuning framework where Stage 1 non-privately learns table structure from pseudo data and Stage 2 privates content is learned under DP, with two pseudo-data options: uniform (DP-2Stage-U) and out-of-distribution data (DP-2Stage-O). Empirical results show DP-2Stage improves utility (F1) by 12–25% and fidelity (Hist) by 1–3% over direct DP fine-tuning, while DP-2Stage-U achieves up to 21x faster inference. The approach highlights the importance of decoupling table structure learning from private content learning to make DP training of LLMs more effective, and releases code to foster reproducibility and further research.
Abstract
Generating tabular data under differential privacy (DP) protection ensures theoretical privacy guarantees but poses challenges for training machine learning models, primarily due to the need to capture complex structures under noisy supervision signals. Recently, pre-trained Large Language Models (LLMs) -- even those at the scale of GPT-2 -- have demonstrated great potential in synthesizing tabular data. However, their applications under DP constraints remain largely unexplored. In this work, we address this gap by applying DP techniques to the generation of synthetic tabular data. Our findings shows that LLMs face difficulties in generating coherent text when fine-tuned with DP, as privacy budgets are inefficiently allocated to non-private elements like table structures. To overcome this, we propose DP-2Stage, a two-stage fine-tuning framework for differentially private tabular data generation. The first stage involves non-private fine-tuning on a pseudo dataset, followed by DP fine-tuning on a private dataset. Our empirical results show that this approach improves performance across various settings and metrics compared to directly fine-tuned LLMs in DP contexts. We release our code and setup at https://github.com/tejuafonja/DP-2Stage.
