Guided Diffusion: A guided diffusion method for trustworthy synthetic text generationGuided Diffusion for Trustworthy Synthetic Text Generation
GD achieves 32.89% accuracy on PubMed, Dream-7B, ε=1, higher than PE and DP-SGD on the same backbone.
The synthetic text satisfies (ε,δ)-DP with respect to the private corpus, with adjacency defined as add/remove (adding or removing one record). E and Mθ are public and not trained on private samples; hyperparameters are fixed before accessing the data. Only the noisy centroids from DP clustering are released; generation no longer reads private data, guaranteeing propagation through post-processing. Under replace-one it is (2ε,2δ)-DP. DSI constrains poisoning and memorization of protected groups across multiple sources.
- Large models may reproduce sensitive training text verbatim. Entity masking has no formal privacy guarantee, and directly adding DP noise in vocabulary space easily damages sentences. The authors want to put privacy noise on semantic embeddings and then restore them into usable text.
- Guided Diffusion modifies two steps of the masked DLM: during sampling, it selects candidates among fluency, Hamming distance, and embedding distance; during remasking, it decides keep-or-mask by the embedding distance after masking that token. Private text is first DP-clustered, and generation reads only the noisy centroids. The same interface can be swapped for DSI aggregation.
- Under (ε,δ)=(1,10^{-6}) and 2,000 samples, the authors state distribution fidelity is higher in all four backbone–data settings, and utility is also higher except for Dream-7B on ICLR26. On PubMed, Dream-7B accuracy is 32.89%. DSI's trigger-test ASR is 0/60.
- The authors leave the cost of per-token ablation, fixed-length generation, and extension to multilingual, code and structured output for future work (§7). The experimental backbones are LLaDA-8B-Instruct and Dream-7B; the poisoning test uses 60 trigger samples, and the memorization test uses 50 Yelp reviews.
- Evaluated models
- LLaDA-8B-InstructDream-7B
- Benchmarks
- Yahoo Answers TopicsIMDBPubMedICLR26ICLR23Yelp
- Metrics
- cosine similarityperplexitymacro-F1causal next-token accuracyFDJSDDistinct-2MAUVEASRACCROUGE-L
Guided Diffusion proposes a paradigm for privacy-preserving synthetic text generation that exploits the steerability of diffusion language models, using a sampling and remasking process to guide iterative denoising and generate fluent text that conforms to a target semantic distribution. The framework is compatible with differential privacy (DP): after semantic embeddings are protected, the DP guarantee is passed to the generated text through post-processing; on two datasets and two diffusion backbones, its distributional fidelity and downstream utility outperform Private Evolution and DP-SGD-based fine-tuning, generation is faster, and it extends to DSI, providing certificates against data poisoning and memorization at a small utility cost.
Paper analysis
What problem does this paper attempt to solve?
The authors use guided diffusion to restore noised semantic embeddings into text with DP or DSI guarantees.
How to still generate usable synthetic text under formal privacy guarantees.
- Setting: The authors state that large models can verbatim reproduce training samples (Carlini et al., 2021), which conflicts with regulations such as GDPR and CCPA. Synthetic text should preserve statistical properties and semantics while not leaking individual records.
- Existing shortcomings: Sanitization such as entity masking has no formal guarantees, and the authors state it fails under reconstruction attacks. DP-SGD has guarantees, but the variance in vocabulary space is very high; semantically similar sentences can be orthogonal one-hot vectors; noise calibrated by absolute distance is often so large that it destroys language structure, and the authors state the output will be repetitive or incoherent.
- Core observation: The authors believe that applying differential privacy (DP) on low-dimensional continuous semantic embeddings has a better chance of preserving utility than applying it on the sparse vocabulary. The difficulty is turning noisy embeddings back into coherent discrete text; the authors state that autoregressive models struggle to use a fixed embedding for global guidance, whereas masked diffusion language models (DLMs) can compare the whole-sentence embedding at each step.
- This paper's approach: Proposes Guided Diffusion, which uses semantics-aware sampling and semantics-aware remasking to pull the DLM toward the target embedding. After the embeddings are protected by off-the-shelf DP clustering, the guarantee propagates to the text via post-processing. The same interface can be swapped for data-specific indistinguishability (DSI), providing formal certificates for poisoning and memorization. The authors plan to release code.
- Threat model:
- Goal: The synthetic set satisfies (ε, δ)-DP with respect to the private corpus. Adjacency is add/remove, i.e., adding or removing one record. The adversary must distinguish two adjacent datasets from the output.
- Knowledge: The encoder E and the DLM are treated as public and are not trained on private samples. The number of clusters, the per-cluster sample budget, the generation hyperparameters, and the encoder are fixed before accessing the private data.
- Release boundary: Only the noisy centroids of the DP clustering are released; if the number of centroids depends on the data, that number is also a DP output. The original cluster sizes and assignments are not released, nor used in decoding. Generation no longer accesses the private data.
- DSI: The corpus comes from multiple sources. The protected group is the records of one source within a certain class/cluster. The output must be indistinguishable, under a chosen divergence, from a safe reference with these groups removed.
What related research exists?
The authors place the gap in discrete text lacking embedding guidance, and connect it to DP and DSI.
Appendix B and §6 group related work into image guidance, DP synthetic data, and reconstructing data from privatized embeddings.
Guided diffusion in images
- Embedding-guided image diffusion (Song and Ermon, 2019; Ho et al., 2020; Dhariwal and Nichol, 2021; Rombach et al., 2022, etc.): embeddings pull generation toward specified conditions; Ramesh et al. (2022), Ye et al. (2023), Zhang et al. (2023), etc. continue image-side guidance. The authors state that this line remains little explored on DLMs, and state that to their knowledge this work is the first to effectively guide semantic embeddings into coherent text.
DP synthetic data
- DP-SGD line (Yoon et al., 2019; Yu et al., 2021; Yue et al., 2023, etc.): train or fine-tune a generative model with per-sample gradient clipping. The authors state the computational overhead is large and utility is often poor when scaled to LLMs.
- Private Evolution (PE) and its variants (Lin et al., 2024; Xie et al., 2024; Hou et al., 2024; Zhang et al., 2025): repeatedly query a public LLM to obtain many candidates, then add Gaussian noise to distance histograms for DP selection. The authors state it relies on hand-crafted sampling prompts, and diversity and sample size are constrained by rejection sampling.
- The authors state the two lines are structurally limited by per-sample clipping and rejection sampling, respectively.
Reconstructing data from privatized embeddings
- Zhou et al. (2025): reconstruct images from DP embeddings using diffusion image editing. The authors state this is the closest contemporaneous work; text is discrete, and no ready-made guided text diffusion pipeline exists, so direct transfer is nontrivial.
- DSI (Xiao et al., 2025): requires outputs to be indistinguishable from specified safe references, rather than a worst-case guarantee over arbitrary adjacent datasets; the original paper discusses backdoors, copyright, and unintended memorization.
Baselines and data
- Baselines: PE (Xie et al., 2024) and DP-SGD+LoRA (Li et al., 2024) on the same DLM backbone. Appendix E also lists PE from the official PE implementation and DP-SGD-FT on GPT-2 Large (Yue et al., 2023), as well as DP-SGD+LoRA run in this work on Llama-3-8B.
- Benchmarks/datasets: main experiments use PubMed and ICLR26; embedding alignment uses Yahoo Answers Topics and IMDB; DSI uses ICLR23 and Yelp.
The authors state in their contributions that this is the first framework that can produce rigorously privacy-protected synthetic data with a DLM. The positioning is to fill the text-side embedding-to-data gap with guided denoising, so that the same interface can connect both DP clustering and DSI.
How does the paper address this problem?
Use the target embedding as guidance in denoising sampling and remasking, with privacy added to embedding aggregation.
Guided Diffusion does not change backbone weights; it only changes the sampling and remasking at each step of the masked DLM, so that the sentence embedding moves closer to the target vector Etgt. Privacy or DSI constraints are added to embedding aggregation, and generation consumes only the aggregation result.
Denoising setup
- Iterate from xT, all [MASK], to t=0. At each step the mask predictor Mθ outputs a probability matrix Pt of shape sequence length L by vocabulary size.
- The standard procedure first samples independently per position, then sets low-confidence tokens back to [MASK]. This work looks at the target embedding in both steps.
- Backbones are LLaDA-8B-Instruct and Dream-7B. Appendix D: L=448, number of denoising steps T=448, LLaDA default block size 32, noise schedule follows the backbone's linear schedule.
Semantic-aware sampling
- Independently sample αN candidates from Pt, requiring them to differ from each other by at least one token. Keep N by the mixed score, then use encoder E to select the one with the smallest Euclidean distance to Etgt as the base sequence for this step (Algorithm 1).
- The selection score is Sk = a · log pθ(x̂′(k)) + b · Ham(x̂′(k)), i.e., a weighted sum of the model log-probability and the Hamming distance to the highest-likelihood sequence, to balance fluency and diversity.
- Appendix D fixes α=20, N=32, a=1, b=0.1. Appendix E states that quality varies little across the tested b/a and α ranges, and states that a and b were not tuned sufficiently.
Semantic-aware remasking
- For each position in the base sequence, replace that token with [MASK] and observe the change in distance from the embedding to the target. Δi = |E∖ i − Etgt|2 − |Ebase − Etgt|2. A large Δi means the token is key to alignment; near 0 means irrelevant; negative means masking it moves closer to the target.
- When the schedule is to mask ρt tokens, first mask the ρt/2 with the smallest Δi, then mask the ρt/2 with the lowest predicted probability, with the two groups non-overlapping (Algorithm 2). The authors state this preserves both alignment and denoising.
- The authors state that sampling pulls candidates toward the target manifold, and remasking preserves key tokens across steps; removing either harms alignment and downstream utility.
DP synthesis pipeline
- The three stages are shown in Figure 3. First embed private text into vectors with L2 norm 1 to simplify aggregation sensitivity. The encoder and DLM are assumed not to contain private samples.
- Then use DP clustering of Chang and Kamath (2021). The requested number of clusters K=100 is a public constant. When labels exist, cluster separately by class; the paper uses ICLR26 ratings as an example; synthetic samples inherit the centroid label, and the budget per class is fixed in advance. Proposition I.1 states that an unlabeled corpus degenerates to a single class.
- Parallel composition: under add/remove, classes are disjoint, so the union remains (ε, δ)-DP; under replace-one, one record can span two classes, so the union is (2ε, 2δ)-DP.
- Only the noisy centroids are released, along with the number of centroids the algorithm returns, if any. The number of generations per centroid is uniformly fixed in advance, not using private cluster sizes. Proposition I.1: when hyperparameters are fixed in advance and generation no longer accesses D, the synthetic set Y inherits the above DP.
DSI extension
- The corpus comes from multiple sources. Embed first, then partition (K-Means may be used; the number of clusters may be 1, degenerating to the overall mean). The protected group within a class/cluster is the intersection of that cluster with a given source.
- leave-k-groups-out: each reference removes any k protected groups within the same class/cluster. The optimal DSI Gaussian mechanism uses an anisotropic covariance to minimize the expected noise norm under the constraint; the convex optimization is in Appendix C. In experiments, poisoning uses leave-one-source-group-out, and memorization uses leave-one-sample-out.
- Definition 5.1: the noisy output and the output of each safe reference differ by at most γi under divergence Df. When Df is Rényi divergence of order α, γi corresponds to the ε of Rényi DP on that reference. Proposition I.2: when generation no longer accesses the corpus, the certificate propagates to the synthetic text through post-processing.
What experiments did the paper conduct?
The authors state that distribution fidelity is higher in all four groups, and utility is not higher than DP-SGD+LoRA in one group.
Experimental setup
- Backbones: all methods share LLaDA-8B-Instruct or Dream-7B. Alignment experiments use only the former. PPL uses Qwen3-8B. Embeddings: sentence-t5-base for Yahoo and PubMed; stsb-roberta-base-v2 for IMDB, ICLR26, ICLR23, and Yelp.
- Data: 1,000 reference sentences longer than 256 tokens are randomly sampled from each of Yahoo and IMDB. PubMed has 75,316 medical abstracts. ICLR26 is ICLR 2026 reviews, released after the models under review, with splits following the ICLR 2023 review set used by PE; the original number of records is not reported in the paper. Main experiments generate 2,000 samples per method.
- Baselines: PE (four rounds of propose–select) and DP-SGD+LoRA under the same backbone, same private data, same privacy parameters, same synthesis scale, same prompts, and same downstream evaluation. Appendix E additionally has DP-SGD+LoRA on Llama-3-8B; numbers marked † in Table 4 come from the official PE implementation, not from this work's reproduction with a DLM.
- Downstream and metrics: PubMed fine-tunes BERT-small on synthetic samples and reports causal next-token accuracy on test abstracts. ICLR26 uses roberta-base to predict five rating classes and reports macro-F1 on real held-out reviews. Fidelity metrics are Fréchet distance (FD) on MPNet embeddings, unigram Jensen–Shannon divergence (JSD), Distinct-2, and MAUVE. The paper does not state which language model MAUVE uses. Alignment uses cosine similarity and PPL.
- Privacy and repetition: main tables use (ε, δ)=(1, 10^{-6}); Table 2 reports mean±std over four seeds. The budget sweep uses δ=10^{-6} as well.
- Exposure assumption: §4.1 states that ICLR26 was constructed so that "the model was not trained on private samples" holds in evaluation. PubMed abstracts predate these DLMs; the formal guarantee is unaffected, but empirical utility may partly reflect pretraining exposure.
Main results
Per Table 2. ICLR26 Utility is macro-F1 (%); PubMed is accuracy (%). Arrow direction: higher Utility is better.
Swipe horizontally to read the table
Backbone / Data PE DP-SGD+LoRA Guided Diffusion LLaDA / ICLR26 13.34±1.38 20.12±4.16 24.85±2.80 Dream-7B / ICLR26 12.49±0.57 29.23±3.37 28.68±2.40 LLaDA / PubMed 22.15±0.08 25.45±0.11 32.68±0.08 Dream-7B / PubMed 20.46±0.18 25.16±0.14 32.89±0.08 - The authors state utility is highest in three of the four settings; the gap between Dream-7B on ICLR26 and DP-SGD+LoRA falls within the standard deviation. The authors state that on PubMed it is more than 7 percentage points above DP-SGD+LoRA.
- In Table 2, FD and JSD are lowest for Guided Diffusion in all four settings, and Distinct-2 and MAUVE are highest. For example, on LLaDA with ICLR26, FD is 0.3995±0.0020, versus 0.7753±0.0032 for PE and 0.6026±0.0015 for DP-SGD+LoRA; on PubMed with Dream-7B, FD is 0.2387±0.0039. The authors state that higher Distinct-2 indicates fidelity is not achieved by collapsing to a few prototype sentences.
- The authors state that under the same PubMed protocol, the method exceeds 27.90% for the official PE implementation and 31.10% for DP-SGD-FT on GPT-2 Large (both †, default generator), and approaches 34.60% for fine-tuning on the real corpus (Table 4). The generator and the DLM reproduction in Table 2 are not the same setup.
Computational cost
- What was measured: eight A100s, same DLM backbone, 2,000 ICLR26 samples.
- Results: Guided Diffusion 2.74 hours; one PE round 4.19 hours, four rounds 12.20 hours. The authors state it is 4.45× faster, and one PE round is already 1.53× its time. Table 7 (single A100, batch 16, BF16): 631.86 seconds per batch, peak 16.35 GiB, 21.94 hours for 2,000 samples on a single GPU.
- Authors' interpretation: PE generates many candidates per round and then selects with a DP histogram, whereas this work aligns within a single denoising pass. Of the time, DLM forward passes are 47.6%, the encoder 29.0%, and candidate construction 17.0%. The paper states that the cost of autoregressive PE with KV cache was not measured. DP-SGD is not included in this timing; the authors relay that Xie et al. (2024) state DP fine-tuning is more than 10× slower than PE.
Semantic alignment
- What was measured: §3.3, LLaDA-8B-Instruct only, 1,000 reference sentences each from Yahoo and IMDB.
- Results: median cosine similarity in Figure 2 is 0.91 for Yahoo and 0.60 for IMDB with guided generation; the median for IMDB without guidance is 0.28. Median Qwen3-8B PPL is 6.51 for Yahoo and 4.83 for IMDB; IMDB without guidance is 4.89. Table 1 means (mean±std) are lower than the medians: full method Yahoo 0.90±0.04, IMDB 0.59±0.11; without remasking 0.79±0.02 and 0.35±0.10; without sampling 0.80±0.02 and 0.34±0.10.
- Authors' interpretation: the authors state that on IMDB, PPL with and without guidance is comparable; on Yahoo, guided PPL is higher than unguided but still below human references, and the paper does not give medians for the latter two groups. The authors state the two components are complementary, and on IMDB keeping only one component is close to no guidance.
DSI: poisoning and memorization
- Poisoning: Appendix G, ICLR23, m=3 sources, one source injects 45 semantically triggered poisoned reviews and rewrites ratings, ASR computed on 60 trigger tests, ε=1, classifier roberta-base, trained on 2,000 synthetic samples. Table 8: clean training ACC 47.80%, ASR 0%; after implanting the backdoor, ACC 48.82%, ASR 100%. Synthetic without DSI has ASR 0 and ACC 39.85%; with DSI, ASR remains 0 and ACC 37.74%.
- Memorization: Appendix H, 50 1-star Grocery reviews from Yelp. Prefix 100 tokens, 10 completions per item, maximum ROUGE-L taken; the paper treats below 0.2 as low memorization. ε=2. Table 9: without DSI 0.1446±0.0223, semantic alignment 0.80±0.07; with DSI 0.1460±0.0187 and 0.76±0.07.
- Authors' interpretation: the authors state that without DSI, these two tests already observe no successful attack or above-threshold copying, and what DSI adds is a formal certificate relative to safe references, not an observed further decrease; limited samples cannot rule out untested triggers or rarer memorization. The authors state that 37.74% in Appendix G is close to PE without DP noise (Llama-2-7B, 38.5%); the paper does not state whether 38.5% is reproduced in this work.
Other ablations and analyses
- Privacy budget (Table 4, PubMed, LLaDA-8B-Instruct, δ=10^{-6}): accuracy at ε=1/2/4 is 32.68% / 32.65% / 32.48%; fine-tuning on the real corpus 34.60%; no fine-tuning 0.07%.
- Official implementation (Table 4, †): PE is 27.90% at ε=1 and 28.60% at ε=∞; DP-SGD-FT on GPT-2 Large is 31.10% at ε=1 and 33.10% at ε=∞. The authors state that without noise PE only reaches 28.60%, and therefore consider the bottleneck to be propose–select rather than DP noise.
- DP-SGD+LoRA on Llama-3-8B (Table 4, run in this work): ε=1/2/4 is 24.88% / 24.70% / 24.37%. The authors state this is lower than GPT-2 Large DP-SGD-FT at ε=1 in the same table (31.10%, †).
- Number of synthetic samples (Table 5, ICLR26, LLaDA, ε=1, mean±std): macro-F1 for 100/500/1,000/2,000 samples is 13.13±5.59 / 20.46±6.30 / 20.83±5.71 / 24.85±2.80. The authors state that generating more samples does not increase privacy cost.
- Generation hyperparameters (Table 6, ICLR26): default Guide sim. 0.6920, MPNet sim. 0.5396, PPL 4.218; at T=224, 0.6756 / 0.5335 / 7.948. Across the tested α and b/a, Guide sim. is lowest at 0.6910 (b/a=0.5) and highest at 0.6930 (α=10).
- DP component ablation (Table 3, PubMed, LLaDA, ε=1): full 32.68%; without semantic-aware sampling 18.01%; without semantic-aware remasking 26.73%.
What are some points that can be further explored?
The authors leave ablation cost, fixed-length generation, and short English text to future work.
Limitations and future directions noted by the authors
- Per-token ablation: semantic-aware remasking computes an ablation embedding once per token. The authors state that sparse or batched ablation may amortize this cost for very long sequences (§7).
- Fixed-length generation: the pipeline works on fixed-length token blocks. The authors state that longer documents can be handled with hierarchy or sliding windows, and leave this for future work (§7).
- English short texts: experiments focus on English short-text generation. The authors state that transferring to multilingual corpora, code and structured output is a promising direction (§7).
Scope of experiments
- Alignment: §3.3 uses only LLaDA-8B-Instruct; 1,000 reference sentences each from Yahoo and IMDB exceeding 256 tokens; PPL uses Qwen3-8B.
- Main DP experiments: the backbones in Table 2 are LLaDA-8B-Instruct and Dream-7B; the data are PubMed (75,316 abstracts) and ICLR26; 2,000 synthetic samples per method, four seeds, (ε, δ)=(1, 10^{-6}). The paper does not report the number of original ICLR26 reviews.
- Comparisons: the baselines in the same table are PE (four rounds) and DP-SGD+LoRA on the same DLM. Appendix E includes Llama-3-8B run in this paper, as well as numbers marked † and cited from the official PE implementation.
- DSI: Appendix G is ICLR23, m=3, ε=1, 60 trigger test samples, 45 injected samples; Appendix H is 50 1-star Grocery reviews from Yelp, ε=2, 100-token prefix, 10 completions per item, threshold 0.2.
- Boundaries stated in the paper: E and Mθ are assumed not to contain private samples; PubMed abstracts predate these DLMs, the formal guarantee is unaffected, and empirical utility may partly reflect pretraining exposure (§4.1). The paper does not report agreement with human review. §4.2 states that the runtime of autoregressive PE with KV cache was not measured.
Summarize the main content of the paper
Apply DP or DSI in embedding space, then restore text with guided diffusion, and compare against baselines on two datasets.
Decoding noised semantic embeddings into synthetic text with a diffusion language model, connected to differential privacy and data-specific indistinguishability.
Large-model training data may be reproduced verbatim. Adding privacy noise directly on the discrete vocabulary destroys sentences, while entity scrubbing alone gives no formal guarantee.
Guided Diffusion does not update the backbone. At each denoising step it first filters candidates by log-probability and Hamming distance, then selects the one closest to the target embedding; remasking keeps tokens whose distance changes most after ablation. DP clustering or DSI Gaussian noise is added only to embeddings, and generation is post-processing.
- Main experiments: Table 2 compares PE and DP-SGD+LoRA on the same backbone under (ε, δ)=(1, 10^{-6}), 2,000 samples, four seeds. On PubMed, next-token accuracy for Dream-7B and LLaDA-8B-Instruct is 32.89% and 32.68%, respectively. ICLR26 macro-F1 is 24.85% on LLaDA; Dream-7B is 28.68%, below DP-SGD+LoRA's 29.23%, and the authors state the gap is within the standard deviation.
- Fidelity and speed: in all four settings in Table 2, FD and unigram JSD are lowest for this method, and Distinct-2 and MAUVE are highest. Generating 2,000 ICLR26 samples on eight A100s takes 2.74 hours, versus 12.20 hours for four rounds of PE, which the authors state is 4.45× faster.
- Alignment and certificates: in Figure 2, after guidance the median IMDB cosine similarity is 0.60, versus 0.28 without guidance. On the 60 trigger tests in Appendix G, ASR is 0 both with and without DSI; max ROUGE-L in Appendix H is below 0.2 in both cases. The authors state that DSI adds a formal certificate at small utility cost.
- Authors' conclusion: the authors consider distribution fidelity better than these baselines; downstream utility in Table 2 is not higher than DP-SGD+LoRA in one setting. DP still holds, and DSI adds poisoning and memorization certificates at a small utility cost. The authors plan to release code.