Differentially Private Term Statistics for Efficient Synthetic Text Generation

Maximilian Andreas Hoefler, Sebastian Hoefler, Karsten Mueller, Wojciech SamekInfPriv @ NeurIPS 2026

TL;DR

If you want an LLM to generate privacy-preserving synthetic text, you don't need to fine-tune it or run thousands of expensive back-and-forth API calls. DP-STATPROMPT shows that you can simply release a noisy, differentially private list of which words appear in your private dataset—just once—and use those keywords to prompt a fixed LLM. It beats state-of-the-art methods on text classification while cutting LLM inference calls by more than 15×.

What Problem Does This Paper Address?

Suppose you have a sensitive text dataset—medical abstracts, customer reviews, private emails—and you want to train a downstream model on it without leaking anyone's data. One popular solution is generating differentially private (DP) synthetic text using Large Language Models (LLMs).

You can do this by DP fine-tuning the LLM, but that requires access to model weights and heavy compute. Alternatively, newer inference-only methods (like Aug-PE) keep the LLM frozen and use it via API calls: they repeatedly generate candidate texts, score them against the private data using noisy votes, and refine them over multiple rounds. The catch? This iterative search can burn through tens of thousands of generated candidates and massive amounts of compute.

The authors ask a refreshingly simple question: What is the minimal private representation of a sensitive dataset needed to guide an LLM toward useful synthetic data?

Methods

The core idea behind DP-STATPROMPT is to separate the private data access from the LLM generation entirely. An off-the-shelf LLM already knows grammar, style, and general world knowledge; it just needs to know what topics and vocabulary are specific to your private dataset.

Here is how it works:

  1. One-Time Private Release: For each document, the authors build a binary term-presence vector over a public vocabulary (recording whether a word appears, not how often, so repeating a word doesn't inflate a document's influence). They append a constant coordinate to track class size, normalize each document's vector to $L_2$ norm 1, and sum them per class. Because every document has norm 1, adding or removing a document changes the sum by at most 1. They then add Gaussian noise calibrated to $(\varepsilon, \delta)$-differential privacy using the analytic Gaussian mechanism.
  2. Post-Processing & Prompting: Everything after this single release touches only the noisy statistics—incurring zero additional privacy cost. For each class, the method estimates each word's prevalence, ranks the top 60 words, and samples keywords with probability proportional to $\sqrt{1 + s_{kt}}$ (the square root softens the distribution so it doesn't just repeat the same handful of top words).
  3. Generation: These sampled keywords, along with the public class label, are fed into a fixed LLM (Mistral-7B-Instruct-v0.3) to generate synthetic documents. For sequence-sensitive tasks without class labels, they also study an optional second-order extension.

Datasets

The authors evaluate their approach on three standard benchmarks, generating 5,000 synthetic examples per corpus across privacy budgets $\varepsilon \in \{1, 2, 5\}$ ($\delta = 10^{-5}$):

  • Yelp Stars: 5-class sentiment classification of reviews.
  • AG News: 4-class topic classification of news articles.
  • PubMed: Next-word prediction in biomedical abstracts (using the version from Xie et al., 2024, evaluated with BERT-mini and BERT-small).

Key Insights and Ideas

  • One-shot beats iterative budget-splitting at tight privacy: Concentrating the entire privacy budget into a single, clean statistical release avoids diluting the budget across multiple voting rounds.
  • The LLM supplies the prose; statistics supply the steering: By decomposing the utility gap between synthetic and real training data, the authors show that DP noise itself barely hurts accuracy (costing at most 3.0 points). The real bottleneck is the representation—how much information is lost by summarizing text as word-presence statistics.
Table 2: Decomposition of the utility gap to real- data training at ε = 2. For each column we report accuracy/macro-F1.
  • Word order matters for next-word prediction, less so for classification: On Yelp and AG News, class-conditional keywords are plenty to steer the LLM. On PubMed, where local word order is what the downstream task actually tests, marginal word statistics lose more signal.

Key Results

  • Classification Performance: DP-STATPROMPT outperforms all evaluated baselines (DP-KPS, Aug-PE, and DP-FT) on Yelp and AG News at every privacy budget. At $\varepsilon = 2$, it reaches 64.0% accuracy on Yelp and 83.6% on AG News, compared to 59.6% and 80.1% for the strongest baseline, Aug-PE.
Table 1: Synthetic-text utility. Top rows are non-private references independent of ε.
  • Massive Compute Savings: On Yelp at $\varepsilon = 2$, DP-STATPROMPT requires just 1 round and 157 batch-32-equivalent LLM calls (7.09 minutes). Aug-PE requires 7 rounds and 2,388 calls (147.5 minutes)—a 15.2× reduction in LLM calls.
Table 3: Generation cost on Yelp at ε = 2. Calls are batch-32-equivalent batches; decoded- sequence counts are in Appendix D.
  • Next-Word Prediction: On PubMed, Aug-PE holds a slight edge (~1.5% in next-word accuracy), though DP-STATPROMPT still improves over the prompt-only baseline by 2.2 BERT-mini points at $\varepsilon = 2$ (26.1% vs. 23.9%) at a fraction of the compute.

Limitations and Future Work

The main limitation is the flip side of the method's simplicity: low-order word statistics cannot capture complex, ordered local dependencies. As a result, on sequence-sensitive tasks like PubMed next-word prediction, the generated text reads as fluent, generic biomedical prose rather than matching the exact local style of the source corpus. The authors suggest that adjusting tone or capturing finer-grained prose may require more domain-specific prompting or using their one-time statistical release as a cheap, strong initialization before running iterative private search.

Summary updated

BibTeX
@inproceedings{hoefler2026differentially,
  author = {Maximilian Andreas Hoefler and Sebastian Hoefler and Karsten Mueller and Wojciech Samek},
  title = {{Differentially Private Term Statistics for Efficient Synthetic Text Generation}},
  booktitle = {InfPriv @ NeurIPS},
  year = {2026},
  url = {https://openreview.net/forum?id=xSZLgxFLgV},
}
Figure