用小模型自动生成百万级数学推理题,提升开源大模型能力
Unleashing LLM Reasoning Capability via Scalable Question Synthesis from Scratch
- 用两阶段微调让小模型学会生成数学题
- 自建100万对题解数据,性能超越现有开源数据集
- 适合想提升模型推理能力的研究者和开发者
提升大语言模型(LLM)的数学推理能力对推动人工智能发展至关重要。然而,获取大规模、多样化且高质量的推理数据仍是重大挑战,尤其对开源社区而言。本文提出ScaleQuest,一种新颖、可扩展且低成本的数据合成方法,仅使用轻量级7B规模模型即可生成大规模数学推理数据集。ScaleQuest采用两阶段问题调优流程——问题微调(QFT)与问题偏好优化(QPO),激活模型的问题生成能力。我们从零开始生成多样化题目,无需依赖强大专有模型或种子数据,构建了包含100万组问题-解答对的数据集。实验表明,基于该数据训练的模型在领域内和领域外评估中均优于现有开源数据集。此外,随着训练数据量增加,性能持续提升,展现出良好的可扩展性。代码推理任务中的显著改进也验证了方法的泛化能力。本工作为开源社区提供了切实可行的方案,以增强LLM的数学推理能力。
原文摘要 · Abstract (English)
Improving the mathematical reasoning capabilities of Large Language Models (LLMs) is critical for advancing artificial intelligence. However, access to extensive, diverse, and high-quality reasoning datasets remains a significant challenge, particularly for the open-source community. In this paper, we propose ScaleQuest, a novel, scalable, and cost-effective data synthesis method that enables the generation of large-scale mathematical reasoning datasets using lightweight 7B-scale models. ScaleQuest introduces a two-stage question-tuning process comprising Question Fine-Tuning (QFT) and Question Preference Optimization (QPO) to unlock the question generation capabilities of problem-solving models. By generating diverse questions from scratch -- without relying on powerful proprietary models or seed data -- we produce a dataset of 1 million problem-solution pairs. Our experiments demonstrate that models trained on our data outperform existing open-source datasets in both in-domain and out-of-domain evaluations. Furthermore, our approach shows continued performance improvement as the volume of training data increases, highlighting its potential for ongoing data scaling. The extensive improvements observed in code reasoning tasks demonstrate the generalization capabilities of our proposed method. Our work provides the open-source community with a practical solution to enhance the mathematical reasoning abilities of LLMs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。