Papers › UniGen: A Unified Framework for Textual Dataset Generation Using Large Language Models

UniGen: A Unified Framework for Textual Dataset Generation Using Large Language Models

27 Jun 2024arXiv:2406.18966archive 2025-07-28

Siyuan Wu, Yue Huang, Chujie Gao, Dongping Chen, Qihui Zhang, Yao Wan, Tianyi Zhou, Xiangliang Zhang, Jianfeng Gao, Chaowei Xiao, Lichao Sun

Large Language Models (LLMs) such as GPT-4 and Llama3 have significantly impacted various fields by enabling high-quality synthetic data generation and reducing dependence on expensive human-generated datasets. Despite this, challenges remain in the areas of generalization, controllability, diversity, and truthfulness within the existing generative frameworks. To address these challenges, this paper presents UniGen, a comprehensive LLM-powered framework designed to produce diverse, accurate, and highly controllable datasets. UniGen is adaptable, supporting all types of text datasets and enhancing the generative process through innovative mechanisms. To augment data diversity, UniGen incorporates an attribute-guided generation module and a group checking feature. For accuracy, it employs a code-based mathematical assessment for label verification alongside a retrieval-augmented generation technique for factual validation. The framework also allows for user-specified constraints, enabling customization of the data generation process to suit particular requirements. Extensive experiments demonstrate the superior quality of data generated by UniGen, and each module within UniGen plays a critical role in this enhancement. Additionally, UniGen is applied in two practical scenarios: benchmarking LLMs and data augmentation. The results indicate that UniGen effectively supports dynamic and evolving benchmarking, and that data augmentation improves LLM capabilities in various domains, including agent-oriented abilities and reasoning skills.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.18966")

Code

Syntology Ran 8 of 13 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 8 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

howiehwong/unigen officialmentioned in papermentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 8 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

8ran
5unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from howiehwong/unigen. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

add_attributes howiehwong/unigen/unigen/utils/attribute.py official repository ran no licence file found · pointer only · 7421f8de0a5caf4e · report
compute_remote_clique howiehwong/unigen/unigen/utils/diversity.py official repository ran fingerprinted no licence file found · pointer only · 79f6e0366bf30a94 · report
extract_data_item howiehwong/unigen/unigen/utils/data_format.py official repository ran no licence file found · pointer only · 78863f707d5b4e0f · report
extract_options howiehwong/unigen/unigen/utils/eval_utils.py official repository ran no licence file found · pointer only · a6edfbf0d55757b4 · report
find_initial_capital howiehwong/unigen/unigen/utils/eval_utils.py official repository ran fingerprinted no licence file found · pointer only · 188ef64b1d2cf415 · report
find_uppercase_ABCD howiehwong/unigen/unigen/utils/eval_utils.py official repository ran fingerprinted no licence file found · pointer only · f962247213e4a442 · report
get_attribute howiehwong/unigen/unigen/utils/attribute.py official repository ran no licence file found · pointer only · 87e37083a793c0c3 · report
singleton howiehwong/unigen/unigen/utils/LLM_model.py official repository ran no licence file found · pointer only · 673da1d74b51ce33 · report
get_res_data howiehwong/unigen/unigen/utils/data_format.py official repository unverified no licence file found · pointer only · 81c725273582fec4 · report
get_res_str howiehwong/unigen/unigen/utils/data_format.py official repository unverified no licence file found · pointer only · f8089bfa383fb47b · report
improve_el howiehwong/unigen/unigen/utils/challenge.py official repository unverified no licence file found · pointer only · 3e7fced92e28c346 · report
input howiehwong/unigen/unigen/utils/IO.py official repository unverified no licence file found · pointer only · 234463419a38fd08 · report
process_dataset howiehwong/unigen/unigen/utils/challenge.py official repository unverified no licence file found · pointer only · c81e8bf3d510cc9e · report

Tasks

AttributeBenchmarkingData AugmentationDataset GenerationDiversityRetrieval-augmented GenerationSynthetic Data Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutGPT-4Label SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections