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.
翻译:以GPT-4和Llama3为代表的大语言模型(LLMs)通过实现高质量合成数据生成并降低对昂贵人工标注数据集的依赖,已对多个领域产生显著影响。然而,现有生成框架在泛化性、可控性、多样性和真实性方面仍面临挑战。为应对这些挑战,本文提出UniGen——一个全面的LLM驱动框架,旨在生成多样化、准确且高度可控的数据集。UniGen具备良好的适应性,支持所有类型的文本数据集,并通过创新机制优化生成流程。为提升数据多样性,UniGen集成了属性引导生成模块和群组校验功能;为确保准确性,该框架采用基于代码的数学评估进行标签验证,并结合检索增强生成技术实现事实核查。同时,UniGen允许用户指定约束条件,从而可根据特定需求定制数据生成过程。大量实验表明,UniGen生成的数据质量显著优于基线方法,且框架中各模块均对性能提升起到关键作用。此外,UniGen在两个实际场景中得到应用:LLM基准测试与数据增强。实验结果表明,UniGen能有效支持动态演进的基准测试,且通过数据增强可全面提升LLM在多个领域的能力,包括智能体导向任务与推理技能。