Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

DiffLM: Controllable Synthetic Data Generation via Diffusion Language Models

About

Recent advancements in large language models (LLMs) have significantly enhanced their knowledge and generative capabilities, leading to a surge of interest in leveraging LLMs for high-quality data synthesis. However, synthetic data generation via prompting LLMs remains challenging due to LLMs' limited understanding of target data distributions and the complexity of prompt engineering, especially for structured formatted data. To address these issues, we introduce DiffLM, a controllable data synthesis framework based on variational autoencoder (VAE), which further (1) leverages diffusion models to reserve more information of original distribution and format structure in the learned latent distribution and (2) decouples the learning of target distribution knowledge from the LLM's generative objectives via a plug-and-play latent feature injection module. As we observed significant discrepancies between the VAE's latent representations and the real data distribution, the latent diffusion module is introduced into our framework to learn a fully expressive latent distribution. Evaluations on seven real-world datasets with structured formatted data (i.e., Tabular, Code, and Tool data) demonstrate that DiffLM generates high-quality data, with performance on downstream tasks surpassing that of real data by 2%-7% in certain cases. Data and code are available at https://github.com/bytedance/DiffLM.

Ying Zhou, Xinyao Wang, Yulei Niu, Yaojie Shen, Lexin Tang, Fan Chen, Ben He, Le Sun, Longyin Wen• 2024

Related benchmarks

TaskDatasetResultRank
Code GenerationHumanEval (test)
Pass@142.24
444
Code GenerationMBPP (test)
Pass@144.42
276
Structured JSON GenerationMultiWOZ, Super-NaturalInstructions, TruthfulQA, and Self-Instruct Averaged
Similarity Score0.74
16
Tabular Data GenerationMagic (test)
MLE0.917
12
Tabular Data GenerationBeijing (test)
MLE0.696
12
Tabular Data GenerationAdult (test)
MLE0.906
12
Tabular Data GenerationShoppers (test)
MLE0.915
12
Tabular Data GenerationDefault (test)
MLE0.794
11
Human EvaluationTools 100 pairs
Win Rate88
1
Tool GenerationToolBench (test)
DiffLM Win Rate28.3
1
Showing 10 of 10 rows

Other info

Code

Follow for update