arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.14023cs.CL
收藏

利用大语言模型生成合成数据:文本与代码领域的进展

Synthetic Data Generation Using Large Language Models: Advances in Text and Code

Faculty of Mathematics and Computer Science, Babeş-Bolyai University(巴贝什-博耶亚大学数学与计算机科学系);KlusAI Research Lab(KlusAI研究实验室)

Mihai Nadas, Laura Diosan, Andreea Tomescu

AI总结:

本文探讨了利用大语言模型生成合成数据在文本和代码领域的新进展,分析了其在低资源任务和代码应用中的潜力及挑战。

摘要:

本文综述了大型语言模型(LLMs)如何在自然语言和代码领域改变合成训练数据生成的方式。通过生成人工但与任务相关的示例,这些模型可以显著增强甚至替代真实世界的数据集,特别是在标记数据稀缺、昂贵或敏感的情况下。本文回顾了利用LLMs创建合成文本和代码的最新进展,强调了关键技术,如基于提示的生成、检索增强的流水线以及迭代自我完善。我们探讨了这些方法如何通过自动验证功能正确性来丰富低资源任务(例如分类、问答)并促进代码中心应用(例如指令调优、代码翻译、错误修复)。除了潜在的好处——成本效益、广泛覆盖和可控的多样性外,我们还讨论了伴随的挑战,包括生成文本中的事实不准确、风格或分布不现实的不足以及偏见放大风险。提出的缓解策略包括过滤和加权合成输出,以及在代码领域使用强化学习与执行反馈。我们最后概述了开放的研究方向,如自动化提示工程、跨模态数据合成和稳健的评估框架,强调了LLM生成的合成数据在加速AI发展中的日益重要,同时强调了伦理和质量保障的重要性。

英文摘要:

This survey reviews how large language models (LLMs) are transforming synthetic training data generation in both natural language and code domains. By producing artificial but task-relevant examples, these models can significantly augment or even substitute for real-world datasets, particularly in scenarios where labeled data is scarce, expensive, or sensitive. This paper surveys recent advances in leveraging LLMs to create synthetic text and code, highlighting key techniques such as prompt-based generation, retrieval-augmented pipelines, and iterative self-refinement. We examine how these methods can enrich low-resource tasks (e.g., classification, question answering) and facilitate code-centric applications (e.g., instruction tuning, code translation, bug repair) through automated verification of functional correctness. Alongside potential benefits - cost-effectiveness, broad coverage, and controllable diversity - we discuss the accompanying challenges, including factual inaccuracies in generated text, insufficient stylistic or distributional realism, and risks of bias amplification. Proposed mitigation strategies range from filtering and weighting synthetic outputs to reinforcement learning with execution feedback in code domains. We conclude by outlining open research directions, such as automated prompt engineering, cross-modal data synthesis, and robust evaluation frameworks, underscoring the growing importance of LLM-generated synthetic data in accelerating AI development while emphasizing ethical and quality safeguards.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑