Unleashing Reasoning Capability of LLMs via Scalable Question Synthesis from Scratch
该论文提出了一种名为ScaleQuest的可扩展数据合成方法,利用小型开源模型从零开始生成问题,有效提升了大型语言模型(LLMs)的推理能力。
更新于 2024-11-09。作者:Yuyang Ding、Xinyu Shi、Xiaobo Liang、Juntao Li、Qiaoming Zhu、Min Zhang。
中文摘要
高质量数据的存在是提升大型语言模型推理能力的重要因素之一。现有研究已证明,从种子问题或知识库中创建更多指令数据的有效性。近期研究表明,持续扩大从强大模型(如GPT-4)进行数据合成的规模可以进一步激发推理性能。尽管前景看好,但开源社区在规模化和成本效益的数据合成方法上仍缺乏高质量数据。为解决这一问题,我们提出了ScaleQuest,这是一种可扩展且新颖的数据合成方法,它利用“小型”(例如,70亿参数)的开源模型从头生成问题,而无需使用具有复杂增强约束的种子数据。借助高效的ScaleQuest,我们自动构建了一个包含100万个问题-解决方案对的数学推理数据集,其效果优于现有的开源数据集。它可以通过在MATH上实现29.2%至46.4%的提升,普遍提高主流开源模型(即Mistral、Llama3、DeepSeekMath和Qwen2-Math)的性能。值得注意的是,仅使用我们的数据集微调Qwen2-Math-7B-Base模型甚至可以超越Qwen2-Math-7B-Instruct,后者是一个在闭源数据上强大且与数据高度一致的模型,以及如GPT-4 Turbo和Claude-3.5 Sonnet等专有模型。
英文摘要
The availability of high-quality data is one of the most important factors in improving the reasoning capability of LLMs. Existing works have demonstrated the effectiveness of creating more instruction data from seed questions or knowledge bases. Recent research indicates that continually scaling up data synthesis from strong models (e.g., GPT-4) can further elicit reasoning performance. Though promising, the open-sourced community still lacks high-quality data at scale and scalable data synthesis methods with affordable costs. To address this, we introduce ScaleQuest, a scalable and novel data synthesis method that utilizes "small-size" (e.g., 7B) open-source models to generate questions from scratch without the need for seed data with complex augmentation constraints. With the efficient ScaleQuest, we automatically constructed a mathematical reasoning dataset consisting of 1 million problem-solution pairs, which are more effective than existing open-sourced datasets. It can universally increase the performance of mainstream open-source models (i.e., Mistral, Llama3, DeepSeekMath, and Qwen2-Math) by achieving 29.2% to 46.4% gains on MATH. Notably, simply fine-tuning the Qwen2-Math-7B-Base model with our dataset can even surpass Qwen2-Math-7B-Instruct, a strong and well-aligned model on closed-source data, and proprietary models such as GPT-4-Turbo and Claude-3.5 Sonnet.
解读
一句话总结
该论文提出了一种名为ScaleQuest的可扩展数据合成方法,利用小型开源模型从零开始生成问题,有效提升了大型语言模型(LLMs)的推理能力。
问题1:这篇论文想要解决什么具体问题?
• 问题背景:提高LLMs推理能力的关键因素之一是高质量数据的可用性。现有方法在创建更多指令数据方面表现出有效性,但开源社区缺乏大规模的高质量数据和可扩展的数据合成方法。 • 现有方案不足:现有方法通常依赖于强大的模型(如GPT-4),但高API成本使得生成大规模数据不切实际。 • 研究目标:提出一个可扩展和低成本的数据合成方法,以提升LLMs的推理能力。
问题2:论文的核心创新点是什么?
• 技术创新:ScaleQuest方法,利用小型开源模型生成问题,无需复杂的数据增强约束。 • 方法改进:引入两阶段问题微调过程(QFT和QPO)来提升问题生成能力。 • 优势:成本效益高,可扩展性强,生成的数据质量高。
问题3:实验结果如何验证了方法的有效性?
• 关键实验:构建了包含100万个问题-解决方案对的数学推理数据集,并在多个基准测试中评估了模型性能。 • 性能提升:在MATH基准测试中,主流开源模型性能提升了29.2%至46.4%。 • 对比结果:与基线方法相比,ScaleQuest方法在多个基准测试中均表现出优异的性能。
问题4:这个研究的实际应用价值是什么?
• 应用场景:适用于需要推理能力的应用,如教育、问答系统、辅助决策等。 • 实施建议:结合实际应用需求,选择合适的LLMs和ScaleQuest方法。 • 局限与展望:未来可以探索更广泛的任务和数据类型,提升数据生成质量和效率。
来源
机器可读索引:llms.txt