Papers
Topics
Authors
Recent
Search
2000 character limit reached

EPSVec: Private Synthetic Text Generation

Updated 4 July 2026
  • EPSVec is a method that steers a frozen language model using sanitized dataset vectors to capture the gap between private and public distributions.
  • The method privatizes a one-time, compact dataset-level signal to enable efficient text synthesis without incurring additional privacy cost per generated token.
  • EPSVec overcomes challenges like data efficiency, compute cost, and privacy-budget coupling by employing paired mean differences and fixed-shot prompting.

Searching arXiv for the specified paper to ground the article. EPSVec is a method for differentially private synthetic text generation that steers a frozen LLM using sanitized dataset vectors, defined as directions in activation space that capture the distributional gap between a private corpus and a public or synthetic prior. The method is introduced in "EPSVec: Efficient and Private Synthetic Data Generation via Dataset Vectors" (Banayeeanzade et al., 31 Jan 2026). Its central design is to privatize once a compact dataset-level signal and then perform standard decoding as pure post-processing, thereby decoupling the privacy budget from the number and length of generated samples. The reported motivation is to address three bottlenecks in prior private text generation methods: data efficiency, compute cost, and privacy-budget coupling to token generation.

1. Problem formulation and design rationale

Private synthetic data generation for text is presented as being constrained by three practical bottlenecks: data efficiency, compute cost, and privacy-budget coupling to the number of generated tokens (Banayeeanzade et al., 31 Jan 2026). Training-based methods such as DP-SGD fine-tuning or DP LoRA are described as requiring large private corpora, careful hyperparameter tuning under DP noise, and substantial GPU hours. Inference-time methods such as PATE-style aggregation of next-token distributions and DP private prediction are described as needing large private batches at every decoding step, which makes long-form generation and large-scale sampling expensive and tightly couples privacy cost to the number of tokens generated.

EPSVec addresses these shortcomings by privatizing once a compact dataset-level signal—dataset vectors—that captures the distributional gap between the target private corpus and a public or synthetic prior in the LLM’s activation space. After the one-time release of sanitized vectors, all subsequent decoding is pure post-processing of DP outputs and therefore incurs no additional privacy cost. The reported consequences are strong compute efficiency, because generation runs at the cost of standard decoding with no per-token DP aggregation; data efficiency, because vectors are estimated from modest private sample counts such as 500 per class; fidelity, because steering nudges the model toward subtle dataset-level properties such as style, subtopic mixtures, and lexical distributions; and privacy-budget decoupling, because arbitrarily many samples and arbitrary sequence lengths can be generated at zero additional privacy cost.

The paper further states that fidelity and diversity are improved by pairing dataset-vector steering with fixed-shot prompting in pretrained base models, selected via a small DP budget. Pretrained models are reported to have broader stylistic support and diversity than instruction-tuned variants, but to need stable scaffolding; fixed-shots are used to provide that scaffold while preserving privacy. This suggests that EPSVec is not only a privacy mechanism but also a representation-space control method for aligning a pretrained generator with a private dataset distribution.

2. Representation-space formulation

The frozen LLM is denoted by ff, with LL transformer layers and hidden dimension dd (Banayeeanzade et al., 31 Jan 2026). For an input text xx with T(x)T(x) tokens, token-level hidden states at layer \ell are denoted by a,t(x)Rda_{\ell,t}(x) \in \mathbb{R}^d, with t{1,,T(x)}t \in \{1,\dots,T(x)\}. EPSVec uses mean-pooled sequence representations per layer:

h(x)=(1/T(x))t=1T(x)a,t(x)Rd.h_{\ell}(x) = (1 / T(x)) \sum_{t=1}^{T(x)} a_{\ell,t}(x) \in \mathbb{R}^d.

The private dataset for a target attribute or class yy is denoted by LL0, and a public or synthetic reference dataset is denoted by LL1. In the reported implementation, LL2 is constructed by prompting LL3 with a fixed-shot template LL4, selected privately, to produce a negative synthetic set LL5 of the same size as LL6. Private samples are denoted by LL7 and synthetic samples by LL8, and they are paired by index LL9.

A canonical dataset-vector definition is the difference between per-layer mean representations of the private and public or synthetic distributions:

dd0

dd1

EPSVec estimates this distributional gap through paired mean differences:

dd2

dd3

followed by unit-norm normalization:

dd4

The paper states that this estimator cancels coarse shared attributes, because both sets are conditioned on dd5 via prompting, and emphasizes subtler dataset-specific differences such as lexical distributions, formatting, and structure. EPSVec constructs vectors from multiple layers; the main experiments use dd6 layers in Llama-3.1-8B, specifically layers 18–21. Sequence-level mean pooling is used rather than per-token vectors. Whitening and PCA are noted as not being used in the core pipeline.

This formulation places EPSVec in the family of activation-space steering methods, but with the steering signal estimated from private-versus-synthetic distributional contrasts rather than from direct prompting alone. A plausible implication is that the method is designed to encode properties that are difficult to specify explicitly in prompts while still remaining compatible with standard decoder-only generation.

3. Differential privacy mechanism and accounting

For each layer dd7, the per-pair difference dd8 is clipped to dd9 norm xx0:

xx1

The clipped average over xx2 private pairs is then perturbed with Gaussian noise:

xx3

and normalized to unit norm (Banayeeanzade et al., 31 Jan 2026).

Under substitution adjacency, the xx4-sensitivity of the clipped mean is bounded by xx5. Applying the Gaussian mechanism yields the condition

xx6

The theorem reported in the paper states that, for any xx7 and xx8, if the per-layer noise scale satisfies this inequality, then extracting xx9 is T(x)T(x)0-DP. By basic composition over T(x)T(x)1 layers, releasing T(x)T(x)2 is T(x)T(x)3-DP.

A central property of EPSVec is privacy-budget decoupling by post-processing. Once T(x)T(x)4 are released under DP, all subsequent operations—scaling, combining, injection during decoding, rejection sampling, and filtering—are pure post-processing and add no privacy cost by DP invariance. The paper therefore states that sampling any number of sequences of any length incurs zero additional privacy loss.

If only a fraction T(x)T(x)5 of the private corpus is used to build vectors, with T(x)T(x)6, the overall pipeline, including fixed-shot selection, satisfies

T(x)T(x)7

Here T(x)T(x)8 is the budget for fixed-shot extraction and T(x)T(x)9 is the vector-construction budget. The paper attributes this to privacy amplification by subsampling and basic composition.

Fixed-shot selection is itself privatized. EPSVec builds a synthetic candidate pool \ell0 by zero-shot prompting the pretrained model, embeds both private and candidate texts via Qwen-3-Embedding-8B, forms a coverage histogram over nearest neighbors, adds Gaussian noise calibrated to \ell1, and returns the top-\ell2 exemplars \ell3. The reported setting uses \ell4 and \ell5 shots per attribute.

The implementation is reported to use Opacus to compute exact Gaussian noise calibrations, and moments or RDP accounting is described as unnecessary because release is a single-shot Gaussian mechanism per layer with basic composition. The paper also describes a sensitivity variant for the direct difference-of-means estimator:

\ell6

which yields

\ell7

EPSVec instead uses paired differences with \ell8.

4. Steering and generation pipeline

At decoding step \ell9, the current hidden state at layer a,t(x)Rda_{\ell,t}(x) \in \mathbb{R}^d0 is denoted by a,t(x)Rda_{\ell,t}(x) \in \mathbb{R}^d1. EPSVec applies additive steering using the sanitized, normalized dataset vectors:

a,t(x)Rda_{\ell,t}(x) \in \mathbb{R}^d2

for a per-layer steering strength a,t(x)Rda_{\ell,t}(x) \in \mathbb{R}^d3 (Banayeeanzade et al., 31 Jan 2026). This is applied at every decoding step. If injection occurs at the final hidden layer a,t(x)Rda_{\ell,t}(x) \in \mathbb{R}^d4 with output head a,t(x)Rda_{\ell,t}(x) \in \mathbb{R}^d5, then

a,t(x)Rda_{\ell,t}(x) \in \mathbb{R}^d6

In the main experiments, multi-layer injection is used, with late transformer layers steered; for Llama-3.1-8B these are layers 18–21. Vectors are a,t(x)Rda_{\ell,t}(x) \in \mathbb{R}^d7-normalized. Steering is described as interacting naturally with standard sampling such as temperature and top-a,t(x)Rda_{\ell,t}(x) \in \mathbb{R}^d8/top-a,t(x)Rda_{\ell,t}(x) \in \mathbb{R}^d9; in the main experiments, a single temperature is set and other decoding defaults are used. The steering is tokenwise and constant across timesteps; no gating or context-dependent schedules are used in the core pipeline.

Fixed-shot prompting is integral to the reported pipeline. Every prompt embeds a small fixed-shot scaffold t{1,,T(x)}t \in \{1,\dots,T(x)\}0 of t{1,,T(x)}t \in \{1,\dots,T(x)\}1 exemplars selected under t{1,,T(x)}t \in \{1,\dots,T(x)\}2 via a DP histogram. These shots are used both in generating the synthetic negative set t{1,,T(x)}t \in \{1,\dots,T(x)\}3 for vector estimation and in conditioning downstream generation. The paper states that fixed-shots stabilize generation in base models and improve distributional alignment by anchoring the format and coarse attributes, which in turn yields a better synthetic negative set so that the vectors capture subtler differences between real and synthetic text.

The reported pseudocode consists of two phases. In vector extraction, paired representations are differenced, clipped, noised, and normalized to produce t{1,,T(x)}t \in \{1,\dots,T(x)\}4. In sampling, the model is initialized with a prompt containing t{1,,T(x)}t \in \{1,\dots,T(x)\}5; at each decoding step the hidden states are computed, each steered layer is updated by adding t{1,,T(x)}t \in \{1,\dots,T(x)\}6, logits are computed, and the next token is sampled. The generated text may optionally be filtered by rejection sampling using Qwen-3-4B-Instruct as an LLM-as-a-judge with threshold overall t{1,,T(x)}t \in \{1,\dots,T(x)\}7.

This design implies that the privacy-sensitive computation is concentrated in a one-time representation extraction stage, whereas the sampling loop remains operationally close to ordinary inference. That separation is central to the method’s stated compute and privacy advantages.

5. Efficiency and empirical evaluation

Estimating t{1,,T(x)}t \in \{1,\dots,T(x)\}8 requires t{1,,T(x)}t \in \{1,\dots,T(x)\}9 forward passes over private samples and h(x)=(1/T(x))t=1T(x)a,t(x)Rd.h_{\ell}(x) = (1 / T(x)) \sum_{t=1}^{T(x)} a_{\ell,t}(x) \in \mathbb{R}^d.0 over synthetic candidates to compute h(x)=(1/T(x))t=1T(x)a,t(x)Rd.h_{\ell}(x) = (1 / T(x)) \sum_{t=1}^{T(x)} a_{\ell,t}(x) \in \mathbb{R}^d.1, with complexity reported as h(x)=(1/T(x))t=1T(x)a,t(x)Rd.h_{\ell}(x) = (1 / T(x)) \sum_{t=1}^{T(x)} a_{\ell,t}(x) \in \mathbb{R}^d.2 for mean-pooling hidden states across h(x)=(1/T(x))t=1T(x)a,t(x)Rd.h_{\ell}(x) = (1 / T(x)) \sum_{t=1}^{T(x)} a_{\ell,t}(x) \in \mathbb{R}^d.3 layers (Banayeeanzade et al., 31 Jan 2026). The memory footprint is described as modest, involving storage of per-sample h(x)=(1/T(x))t=1T(x)a,t(x)Rd.h_{\ell}(x) = (1 / T(x)) \sum_{t=1}^{T(x)} a_{\ell,t}(x) \in \mathbb{R}^d.4 and accumulation of means. The negative set h(x)=(1/T(x))t=1T(x)a,t(x)Rd.h_{\ell}(x) = (1 / T(x)) \sum_{t=1}^{T(x)} a_{\ell,t}(x) \in \mathbb{R}^d.5 is generated once using fixed-shots. During generation, steering adds a single vector addition per steered layer per token and otherwise runs standard decoding. No per-token DP aggregation, batching, or teacher-student PATE steps are required.

Empirical efficiency is reported on a single A100 (80GB). EPSVec is said to generate full 2K samples efficiently, whereas baselines that require per-token aggregation, specifically PP and PP++, face scalability bottlenecks and even fail under tighter budgets; PP++ is reported to fail at h(x)=(1/T(x))t=1T(x)a,t(x)Rd.h_{\ell}(x) = (1 / T(x)) \sum_{t=1}^{T(x)} a_{\ell,t}(x) \in \mathbb{R}^d.6. The paper further states that EPSVec achieves strong fidelity with the fewest private samples among compared baselines and remains viable for longer sequences under low h(x)=(1/T(x))t=1T(x)a,t(x)Rd.h_{\ell}(x) = (1 / T(x)) \sum_{t=1}^{T(x)} a_{\ell,t}(x) \in \mathbb{R}^d.7, while per-token DP methods often exhaust budget or become prohibitively slow.

The evaluation uses four corpora: IMDb (25K, 2 classes), Yelp Polarity (560K, 2), BioRxiv abstracts (25K filtered to post-2023, 4 categories), and OpenReview ICLR reviews (11K, 2). The target is h(x)=(1/T(x))t=1T(x)a,t(x)Rd.h_{\ell}(x) = (1 / T(x)) \sum_{t=1}^{T(x)} a_{\ell,t}(x) \in \mathbb{R}^d.8 synthetic samples per dataset, balanced across classes. Backbones are Llama-3.1-8B in pretrained and instruction-tuned forms. Distributional fidelity is measured via MAUVE with scaling factor 5 and 200 buckets, and downstream utility via BERT fine-tuning in the synthetic-train, real-test setting ("TSTR"). Additional analyses include text quality via LLM-as-a-judge, BERT TRTS, and in-context learning TRTS/TSTR. The paper explicitly notes that higher TRTS or text quality than real data can indicate oversimplified synthetic samples rather than higher fidelity, and identifies MAUVE as the primary fidelity metric.

Dataset Reported EPSVec++ result Additional reported utility
IMDb MAUVE 72.3 at h(x)=(1/T(x))t=1T(x)a,t(x)Rd.h_{\ell}(x) = (1 / T(x)) \sum_{t=1}^{T(x)} a_{\ell,t}(x) \in \mathbb{R}^d.9; 67.8 at yy0 BERT TSTR yy1–yy2
Yelp MAUVE 62.9 at yy3; 67.3 at yy4 BERT TSTR yy5–yy6
BioRxiv MAUVE 62.2 at yy7; 60.7 at yy8 BERT TSTR yy9
OpenReview MAUVE 33.0 at LL00 and LL01 BERT TSTR LL02–LL03

Across datasets, EPSVec methods are reported to deliver substantial gains in fidelity, especially in smaller-data domains such as IMDb, BioRxiv, and OpenReview, at significantly lower compute than aggregation-based inference methods. The paper reports an average LL04 MAUVE improvement across four datasets over the next-best method in low-data regimes.

The comparison to baselines is numerically explicit. On IMDb at LL05, EPSVec++ MAUVE 72.3 exceeds PP++ 14.9, PP 3.1, InvisibleInk 0.4, and Aug-PE 0.5. On BioRxiv at LL06, EPSVec++ 62.2 exceeds PP++ 1.9, PP 1.7, InvisibleInk 0.9, and Aug-PE 0.5. On OpenReview at LL07, EPSVec++ 33.0 exceeds PP++ 5.5, PP 2.3, InvisibleInk 0.5, and Aug-PE 0.4.

The paper also reports that instruction-tuned models show lower lexical diversity, for example fewer unique opening 3-grams, and tend to produce overly fluent, homogenized text, whereas pretrained models with EPSVec produce more diverse, nuanced outputs closer to real distributions. MAUVE generally decreases as LL08 decreases because of increased noise, but non-monotonic effects are also reported: moderate noise can increase diversity and slightly improve MAUVE for transitions from very large LL09 to moderate LL10. Compatibility tests on Olmo-3-1025-7B, Qwen-3-4B-Base, and Gemma-3-4B-PT report consistent gains over fixed-shots-only baselines, including average MAUVE improvement LL11 and BERT accuracy LL12 on Yelp at LL13.

6. Hyperparameters, limitations, extensions, and reproducibility

The reported practical defaults for Llama-3.1-8B pretrained are injection layers LL14, steering coefficients LL15 per injected layer, clipping LL16, and noise LL17 calibrated by

LL18

The main experiments use LL19 private samples per class for vector construction, temperature LL20, top-LL21 defaults, fixed-shots with LL22, LL23, and Qwen-3-Embedding-8B for the embedding model (Banayeeanzade et al., 31 Jan 2026). Generation optionally uses rejection sampling via Qwen-3-4B-Instruct with threshold overall LL24. For other models, the paper reports indicative settings: Olmo-3-1025-7B layers 15–16 with LL25; Qwen-3-4B-Base layers 19–20 with LL26; Gemma-3-4B-PT layers 17–18 with LL27. These differences are attributed to internal normalization, and the paper states that DP guarantees are unaffected.

Ablation results are reported to show that fixed-shots improve fidelity substantially: on IMDb at LL28, removing DP-histogram selection degrades EPSVec++ MAUVE from 67.8 to 42.9. Steering is also reported to increase fidelity consistently across zero-shot and fixed-shot baselines; on IMDb, MAUVE increases from zero-shot pretrained 19.2 to EPSVec++ without fixed shots 48.2 and to EPSVec++ with fixed shots 67.8. Later-layer injection is described as more robust, whereas too-large LL29 over-steers and harms fidelity and quality. Moderate temperature is reported to increase diversity, while overly high temperature causes off-distribution content.

The paper identifies several limitations and risks. Extremely small LL30 or very tight LL31 can yield noisy, low-signal vectors that reduce steering effectiveness and fidelity. Domain shift can be problematic if the pretrained model cannot produce a reasonable candidate pool or fixed-shots; in such cases, the synthetic LL32 may be too mismatched, and dataset vectors may correct large prompt mismatches rather than subtler gaps. Over-steering with large LL33 can distort semantics or induce off-distribution modes, and earlier-layer injection is described as more sensitive and capable of degrading stability. The paper also cautions that some baselines show high TRTS or text quality because of oversimplification; EPSVec aims to match real distributions, but MAUVE can itself be sensitive to hyperparameters. Residual leakage risks are described as mitigated by DP guarantees, but practitioners are advised to adhere to correct accounting and conservative LL34. Fixed-shot selection uses a small budget, yet selected exemplars may be close to private data in embedding space, so the paper recommends following organizational policies on release and use.

Several extensions are proposed. These include multi-vector mixtures with one vector per subtopic or label and conditional steering; layer ensembles that weight multiple layers and learn LL35 via small public validation; low-rank projections or PCA to denoise vector estimates and reduce variance under strong privacy; adaptive LL36 schedules that vary LL37 over timesteps; and whitening or RDM-based normalization to reduce layer-wise scaling disparities across models. These are explicitly presented as extensions rather than components of the core pipeline.

For reproducibility, the paper provides code at https://github.com/noiseeboi/EPSVec. The reported backbones are Llama-3.1-8B in pretrained and instruction-tuned forms, with compatibility tests on Olmo-3-1025-7B, Qwen-3-4B-Base, and Gemma-3-4B-PT. The datasets are IMDb, Yelp Polarity, BioRxiv abstracts filtered to post-2023 categories—Neuroscience, Bioinformatics, Microbiology, and Cell Biology—and OpenReview ICLR reviews. The main tables use LL38, fixed-shot LL39, and LL40 chosen per the Gaussian mechanism via Opacus. The theoretical guarantees are summarized as Gaussian mechanism privacy with layerwise sensitivity LL41, composition to LL42-DP across layers, DP-free generation by post-processing invariance, and subsampling amplification according to

LL43

Taken together, EPSVec is characterized as a method that privatizes a dataset-level direction in representation space and then uses that direction for efficient synthetic text generation under differential privacy. The paper’s reported results position its main contribution in the combination of one-time DP vector release, fixed-shot scaffolding, and activation-space steering, with particular emphasis on low-data regimes, long-form generation, and the separation of privacy accounting from the act of sampling itself.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to EPSVec.