arXiv:2409.19759cs.CLcs.LG2024-09被引 22

对比三种合成数据生成策略,找到低成本高效提升大模型性能的最优方案。

Balancing Cost and Effectiveness of Synthetic Data Generation Strategies for LLMs

  • 按生成方式分三类:答案增强、问题改写、新问题生成。
  • 低预算时改写旧问题最有效,高预算时生成新问题更优。
  • 小数据场景下方法选择影响巨大,适合资源有限的模型调优者。

随着大语言模型应用日益广泛,为微调构建高质量、任务特定的数据集已成为模型提升的瓶颈。尽管高质量人工数据仍是主流,但在许多场景下成本过高。近年来出现了合成数据或混合数据等替代方法,但其有效性在资源受限及难以验证的任务中仍不明确。为此,我们将合成数据生成策略归纳为三类:答案增强、问题重述和新问题生成,并在不同约束条件下(种子指令集大小与查询预算)评估学生模型的表现。结果表明,不同策略的有效性因场景而异。当教师查询预算与种子指令集规模比值较低时,对现有问题生成新答案最为有效;随着该比值上升,生成新问题成为最优选择。所有任务中,增广方法及其他设计选择在低至中等数据环境下影响显著,远超大数据场景。本文提出一个实用框架,支持根据预算、可扩展性、数据验证需求及生成模型差异,选择最优增广策略。

原文摘要 · Abstract (English)

As large language models (LLMs) are applied to more use cases, creating high quality, task-specific datasets for fine-tuning becomes a bottleneck for model improvement. Using high quality human data has been the most common approach to unlock model performance, but is prohibitively expensive in many scenarios. Several alternative methods have also emerged, such as generating synthetic or hybrid data, but the effectiveness of these approaches remain unclear, especially in resource-constrained scenarios and tasks that are not easily verified. To investigate this, we group various synthetic data generation strategies into three representative categories -- Answer Augmentation, Question Rephrase and New Question -- and study the performance of student LLMs trained under various constraints, namely seed instruction set size and query budget. We demonstrate that these strategies are not equally effective across settings. Notably, the optimal data generation strategy depends strongly on the ratio between the available teacher query budget and the size of the seed instruction set. When this ratio is low, generating new answers to existing questions proves most effective, but as this ratio increases, generating new questions becomes optimal. Across all tasks, we find that choice of augmentation method and other design choices matter substantially more in low to mid data regimes than in high data regimes. We provide a practical framework for selecting the appropriate augmentation method across settings, taking into account additional factors such as the scalability of each method, the importance of verifying synthetic data, and the use of different LLMs for synthetic data generation.

合成数据大模型微调数据生成效率优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。