How to Synthesize Text Data without Model Collapse?
本文提出了一种名为token-level editing的数据合成方法,通过在人类生成的数据上进行token级别的编辑来获得半合成数据,以避免模型在合成数据上的崩溃,并提高语言模型训练的效果。
更新于 2024-12-20。作者:Xuekai Zhu、Daixuan Cheng、Hengli Li、Kaiyan Zhang、Ermo Hua、Xingtai Lv、Ning Ding、Zhouhan Lin、Zilong Zheng、Bowen Zhou。
中文摘要
合成数据中的模型崩溃表明,在自生成数据上进行的迭代训练会导致性能逐渐下降。随着AI模型的普及,合成数据将从根本上重塑网络数据生态系统。未来的GPT-{n}模型不可避免地将结合合成数据和人工生成数据进行训练。本文重点关注两个问题:合成数据对语言模型训练的影响,以及如何在不出现模型崩溃的情况下合成数据?我们首先在不同比例的合成数据上预训练语言模型,揭示了合成数据比例与模型性能之间的负相关关系。我们进一步对合成数据进行统计分析,以揭示分布偏移现象和n-gram特征的过度集中。受上述发现启发,我们提出在人工生成数据上进行标记编辑以获得半合成数据。作为一个概念验证,我们从理论上证明了标记级编辑可以防止模型崩溃,因为测试误差被限制在一个有限的最高值。我们在从头开始预训练、持续预训练和监督微调方面进行了大量实验。结果表明,我们的理论证明得到了验证,标记级编辑可以提升数据质量并增强模型性能。
英文摘要
Model collapse in synthetic data indicates that iterative training on self-generated data leads to a gradual decline in performance. With the proliferation of AI models, synthetic data will fundamentally reshape the web data ecosystem. Future GPT-{n} models will inevitably be trained on a blend of synthetic and human-produced data. In this paper, we focus on two questions: what is the impact of synthetic data on language model training, and how to synthesize data without model collapse? We first pre-train language models across different proportions of synthetic data, revealing a negative correlation between the proportion of synthetic data and model performance. We further conduct statistical analysis on synthetic data to uncover distributional shift phenomenon and over-concentration of n-gram features. Inspired by the above findings, we propose token editing on human-produced data to obtain semi-synthetic data. As a proof of concept, we theoretically demonstrate that token-level editing can prevent model collapse, as the test error is constrained by a finite upper bound. We conduct extensive experiments on pre-training from scratch, continual pre-training, and supervised fine-tuning. The results validate our theoretical proof that token-level editing improves data quality and enhances model performance.
解读
一句话总结
本文提出了一种名为token-level editing的数据合成方法,通过在人类生成的数据上进行token级别的编辑来获得半合成数据,以避免模型在合成数据上的崩溃,并提高语言模型训练的效果。
问题1:这篇论文想要解决什么具体问题?
• 问题背景:合成数据在人工智能模型训练中的应用日益广泛,但迭代训练合成数据会导致模型性能逐渐下降,即模型崩溃。 • 现有方案不足:目前的研究主要关注迭代模型崩溃的理论基础和通过多样化提示在合成数据集上的实践实现,但缺乏对非迭代模型崩溃的研究和对合成数据对语言模型训练影响的深入理解。 • 研究目标:研究合成数据对语言模型训练的影响,并提出一种避免模型崩溃的数据合成方法。
问题2:论文的核心创新点是什么?
• 技术创新:提出了token-level editing方法,通过对人类生成的数据进行token级别的编辑来获得半合成数据。 • 方法改进:通过统计分析揭示了合成数据分布的偏移现象和n-gram特征的过度集中,并提出了基于此的token-level editing方法。 • 优势:该方法可以防止模型崩溃,并提高语言模型在预训练、持续预训练和监督微调等阶段的性能。
问题3:实验结果如何验证了方法的有效性?
• 关键实验:在预训练、持续预训练和监督微调等阶段进行了大量实验,验证了token-level editing方法的有效性。 • 性能提升:实验结果表明,与原始数据相比,token-level editing方法可以显著提高语言模型的性能。 • 对比结果:与基线方法相比,token-level editing方法在多个任务上均取得了更好的性能。
问题4:这个研究的实际应用价值是什么?
• 应用场景:该方法可以应用于语言模型、机器翻译、文本生成等领域的模型训练。 • 实施建议:在训练模型时,可以结合token-level editing方法和其他数据增强技术,以提高模型的性能和泛化能力。 • 局限与展望:该方法在处理大规模数据集时可能存在计算成本较高的问题,未来可以研究更高效的数据合成方法。
来源
机器可读索引:llms.txt