Papers › Differentially Private Synthetic Data via Foundation Model APIs 2: Text

Differentially Private Synthetic Data via Foundation Model APIs 2: Text

4 Mar 2024arXiv:2403.01749archive 2025-07-28

Chulin Xie, Zinan Lin, Arturs Backurs, Sivakanth Gopi, Da Yu, Huseyin A Inan, Harsha Nori, Haotian Jiang, Huishuai Zhang, Yin Tat Lee, Bo Li, Sergey Yekhanin

Text data has become extremely valuable due to the emergence of machine learning algorithms that learn from it. A lot of high-quality text data generated in the real world is private and therefore cannot be shared or used freely due to privacy concerns. Generating synthetic replicas of private text data with a formal privacy guarantee, i.e., differential privacy (DP), offers a promising and scalable solution. However, existing methods necessitate DP finetuning of large language models (LLMs) on private data to generate DP synthetic data. This approach is not viable for proprietary LLMs (e.g., GPT-3.5) and also demands considerable computational resources for open-source LLMs. Lin et al. (2024) recently introduced the Private Evolution (PE) algorithm to generate DP synthetic images with only API access to diffusion models. In this work, we propose an augmented PE algorithm, named Aug-PE, that applies to the complex setting of text. We use API access to an LLM and generate DP synthetic text without any model training. We conduct comprehensive experiments on three benchmark datasets. Our results demonstrate that Aug-PE produces DP synthetic text that yields competitive utility with the SOTA DP finetuning baselines. This underscores the feasibility of relying solely on API access of LLMs to produce high-quality DP synthetic texts, thereby facilitating more accessible routes to privacy-preserving LLM applications. Our code and data are available at https://github.com/AI-secure/aug-pe.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.01749")

Code

Syntology Ran 6 of 11 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · violated contract; 5 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ai-secure/aug-pe officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
microsoft/dpsda mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 6 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
5ran
5unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from AI-secure/aug-pe. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

calculate_fid AI-secure/aug-pe/metric.py official repository ran fingerprinted Apache-2.0 (permissive) · fb7941cb1fafb89d · report
load_embeddings AI-secure/aug-pe/dpsda/logging.py official repository ran Apache-2.0 (permissive) · 2404f2b745222315 · report
log_samples AI-secure/aug-pe/dpsda/logging.py official repository ran Apache-2.0 (permissive) · 55f14b1415459c51 · report
sample_dataset AI-secure/aug-pe/dpsda/data_loader.py official repository ran Apache-2.0 (permissive) · db19b32cf584c992 · report
str2bool AI-secure/aug-pe/dpsda/arg_utils.py official repository ran · violated contract Apache-2.0 (permissive) · 7c508037b40522af · report
timeout AI-secure/aug-pe/apis/utils.py official repository ran Apache-2.0 (permissive) · 0b978e0d687562ae · report
calculate_all_metrics AI-secure/aug-pe/metric.py official repository unverified Apache-2.0 (permissive) · 0a476b02add6c207 · report
dp_nn_histogram ai-secure/aug-pe/dpsda/dp_counter.py official repository unverified Apache-2.0 (permissive) · c65344585c2872db · report
get_subcategories AI-secure/aug-pe/apis/utils.py official repository unverified Apache-2.0 (permissive) · 7a4ed6749d9abfcf · report
load_data AI-secure/aug-pe/dpsda/data_loader.py official repository unverified Apache-2.0 (permissive) · e313afc9b63d7994 · report
load_dataset_with_special AI-secure/aug-pe/dpsda/data_loader.py official repository unverified Apache-2.0 (permissive) · 393870d61a0df0c0 · report

Tasks

Privacy Preserving

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDiffusionDropoutGPT-3Layer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionResidual ConnectionSoftmaxWeight Decay

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections