EPSVec: Efficient and Private Synthetic Data Generation via Dataset Vectors

Amin Banayeeanzade, Qingchuan Yang, Deqing Fu, Spencer Hong, Erin Babinsky, Alfy Samuel, Anoop Kumar, Robin Jia, Sai Praneeth Karimireddy

Generating synthetic text that mimics sensitive data—like medical records or internal company reviews—is a "holy grail" for machine learning. We want the utility of the data without the risk of leaking individual secrets. However, current methods for Differentially Private (DP) text generation are often stuck in a catch-22: they either require massive amounts of data to train or they become prohibitively "expensive" in terms of privacy budget as you generate more tokens.

A new paper, "EPSVEC: Efficient and Private Synthetic Data Generation via Dataset Vectors," proposes a clever way out of this trap. Instead of privatizing every word the model says, they privatize a single "steering signal" that nudges the model toward the right distribution.

TL;DR

EPSVEC generates high-quality synthetic text by steering Large Language Models (LLMs) with "dataset vectors"—compressed, privatized directions in the model's internal activation space. By privatizing the steering signal once, the method decouples the privacy budget from the amount of text generated, enabling infinite, efficient, and high-fidelity sampling even in low-data regimes.

What Problem Does This Paper Address?

Privacy-preserving synthetic data generation usually follows two paths, both with significant drawbacks:

  1. Private Fine-tuning (DP-SGD): This is computationally expensive and requires a large private corpus to work well.
  2. Inference-time Aggregation (Private Prediction): These methods aggregate the outputs of multiple model "votes" to ensure privacy. The problem? Every single token generated "leaks" a bit of privacy. If you want to generate a long document or a large dataset, you quickly run out of your privacy "budget" ($\epsilon$), resulting in gibberish or very short outputs.

The authors identify a need for a method that is data-efficient (works with small private sets), compute-light, and scalable (can generate unlimited text without extra privacy costs).

Methods

The core innovation is the Dataset Vector. This approach is grounded in the Linear Representation Hypothesis—the idea that high-level concepts (like sentiment or style) are represented as linear directions in an LLM's hidden layers.

The EPSVEC pipeline works in three main stages:

  1. Vector Extraction: The authors take a small sample of private data and a matching set of "standard" synthetic data. They pass both through an LLM and calculate the difference between their internal hidden states. This "difference vector" captures the subtle gap between what the model normally generates and what the real data actually looks like.
  2. Sanitization: To make this vector private, they apply standard DP techniques: they clip the vector's length (to limit the influence of any single record) and add Gaussian noise.
  3. Vector Injection: During generation, this privatized vector is added back into the LLM's hidden states at every decoding step. It acts like a rudder, steering the model's output toward the private distribution without the model ever "seeing" the raw private records during the actual generation.

Additionally, the authors introduce Fixed-shot Prompting. They use a DP-histogram to select a few synthetic examples that are most similar to the private data to serve as a permanent prompt "scaffold," which helps stabilize the generation process.

Datasets

The researchers evaluated EPSVEC across four diverse text domains:

  • IMDb: Movie reviews (Sentiment).
  • Yelp: Commercial reviews (Sentiment).
  • BioRxiv: Academic paper abstracts (Domain-specific classification).
  • OpenReview: ICLR paper reviews and decisions.

These datasets were chosen to test the model's ability to capture everything from simple sentiment to complex academic jargon and structural formatting.

Key Insights and Ideas

  • Decoupling Privacy from Generation: This is the "aha moment." Because the privacy budget is spent entirely on the vector and the fixed-shots, you can use those artifacts to generate a billion tokens without ever touching the private data again. Your privacy cost remains constant regardless of the output size.
  • Pretrained (Base) Models > Instruction-Tuned Models: The authors found that "Base" models (like Llama-3-8B) are actually better for synthetic data than their "Instruct" versions. Instruct models suffer from "diversity collapse"—they tend to produce very polished but repetitive and simplistic text. Base models, when steered correctly, produce much more diverse and "human-like" distributions.
  • The "Real vs. Synthetic" Gap: LLMs internally represent real human text and zero-shot synthetic text as distinct clusters (see Figure 2 in the paper). EPSVEC essentially calculates the bridge between these two clusters.

Key Results

  • Superior Fidelity: EPSVEC achieved an average 150% improvement in MAUVE scores (a measure of how well synthetic text matches real text distributions) over the next-best inference-time baseline.
  • Low-Data Efficiency: The method remains effective even when using as few as 10–50 private samples to construct the dataset vector.
  • Downstream Utility: Synthetic data generated by EPSVEC was used to fine-tune BERT classifiers. These models achieved accuracies nearly identical to those trained on real, private data.
  • Sequence Length: Unlike "Private Prediction" methods which fail as sequence length increases, EPSVEC can generate long, coherent documents (1000+ tokens) under very strict privacy budgets ($\epsilon=3$).

Limitations and Future Work

While powerful, EPSVEC has its bounds:

  • Separability: The method relies on the LLM's ability to distinguish between the public and private domains in its activation space. If the private data is entirely "alien" to the model, the steering vector might not be as effective.
  • Semantic Faithfulness: While the distribution is accurate, the authors note that MAUVE doesn't measure factual consistency. Future work is needed to ensure synthetic data doesn't just "sound" right but is also factually grounded.
  • Noise as a Regularizer: Interestingly, the authors noticed that sometimes more noise actually improved diversity. They suggest investigating whether DP noise can be intentionally designed to act as a useful regularizer for generation.

Summary updated

BibTeX
@inproceedings{banayeeanzade2026epsvec,
  author = {Amin Banayeeanzade and Qingchuan Yang and Deqing Fu and Spencer Hong and Erin Babinsky and Alfy Samuel and Anoop Kumar and Robin Jia and Sai Praneeth Karimireddy},
  title = {{EPSVec: Efficient and Private Synthetic Data Generation via Dataset Vectors}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=aaFfUg013C},
}
Figure