QueST: Incentivizing LLMs to Generate Difficult Problems
本文提出了一种名为QueST的新型框架,通过难度感知图采样和难度感知拒绝微调,直接优化专用生成器以创建具有挑战性的编码问题,从而提升大型语言模型在推理任务上的性能。
更新于 2025-10-21。作者:Hanxu Hu、Xingxing Zhang、Jannis Vamvas、Rico Sennrich、Furu Wei。
中文摘要
大型语言模型在推理任务上取得了显著成果,能够解决竞赛级别的编码和数学问题。然而,其可扩展性受到人类标注数据集的限制,以及缺乏大规模、具有挑战性的编码问题训练数据的制约。现有的竞赛编码数据集仅包含数千到数万道问题。之前的数据生成方法要么依赖于增强现有的指令数据集,要么从人类标注的数据中选择具有挑战性的问题。在本文中,我们提出了QueST,这是一个新的框架,它结合了难度感知的图采样和难度感知的拒绝微调,直接优化专门的生成器以创建具有挑战性的编码问题。我们训练的生成器在创建有助于下游性能的挑战性问题方面表现优于GPT-4o。我们利用QueST生成大规模的合成编码问题,然后用它们从具有长思维链的强大教师模型中提取知识,或者对较小模型进行强化学习,证明在两种场景中都有效。我们的蒸馏实验显示出显著的性能提升。具体来说,在用QueST生成的10万个难题对Qwen3-8B-base进行微调后,我们在LiveCodeBench上的表现超过了原始的Qwen3-8B。另外,通过增加112K个例子(即2.8K个人编写的难题搭配多个合成解决方案),我们的8B模型的表现与更大的DeepSeek-R1-671B相匹配。这些发现表明,通过QueST生成复杂问题是一种有效且可扩展的方法,能够推进大型语言模型在竞赛编码和推理前沿的发展。
英文摘要
Large Language Models have achieved strong performance on reasoning tasks, solving competition-level coding and math problems. However, their scalability is limited by human-labeled datasets and the lack of large-scale, challenging coding problem training data. Existing competitive coding datasets contain only thousands to tens of thousands of problems. Previous synthetic data generation methods rely on either augmenting existing instruction datasets or selecting challenging problems from human-labeled data. In this paper, we propose QueST, a novel framework which combines difficulty-aware graph sampling and difficulty-aware rejection fine-tuning that directly optimizes specialized generators to create challenging coding problems. Our trained generators demonstrate superior capability compared to even GPT-4o at creating challenging problems that benefit downstream performance. We leverage QueST to generate large-scale synthetic coding problems, which we then use to distill from strong teacher models with long chain-of-thought or to conduct reinforcement learning for smaller models, proving effective in both scenarios. Our distillation experiments demonstrate significant performance gains. Specifically, after fine-tuning Qwen3-8B-base on 100K difficult problems generated by QueST, we surpass the performance of the original Qwen3-8B on LiveCodeBench. With an additional 112K examples (i.e., 28K human-written problems paired with multiple synthetic solutions), our 8B model matches the performance of the much larger DeepSeek-R1-671B. These findings indicate that generating complex problems via QueST offers an effective and scalable approach to advancing the frontiers of competitive coding and reasoning for large language models.
解读
一句话总结
本文提出了一种名为QueST的新型框架,通过难度感知图采样和难度感知拒绝微调,直接优化专用生成器以创建具有挑战性的编码问题,从而提升大型语言模型在推理任务上的性能。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:大型语言模型在推理任务上表现出色,但受限于人类标注数据集和缺乏大规模、具有挑战性的编码问题训练数据。
- 现有方案不足:现有竞争编码数据集仅包含数千到数万道问题;先前的人工合成数据生成方法依赖于增强现有指令数据集或从人类标注数据中选择具有挑战性的问题。
- 研究目标:提出一种新的框架,直接优化专用生成器以创建具有挑战性的编码问题,并验证其有效性。
问题2:论文的核心创新点是什么?
- 技术创新:结合难度感知图采样和难度感知拒绝微调,直接优化专用生成器以创建具有挑战性的编码问题。
- 方法改进:创建迄今为止规模最大的合成编码问题集,包含超过10万个具有挑战性的编码问题及其详细的思维链解决方案。
- 优势:与基线方法相比,QueST生成的问题更具挑战性且对下游任务有益。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:使用QueST生成的100K个困难问题对Qwen3-8B进行微调,并在LiveCodeBench上超越了原始Qwen3-8B的性能。
- 性能提升:在LiveCodeBench上的得分超过了原始Qwen3-8B,并在DeepSeek-R1-671B上达到了与更大的模型相当的性能。
- 对比结果:与基线方法相比,QueST生成的数据在多个基准测试中表现出更好的性能。
问题4:这个研究的实际应用价值是什么?
- 应用场景:在竞争编码和推理领域,为大型语言模型提供有效的数据生成方法。
- 实施建议:利用QueST生成的大规模合成编码问题集,对强教师模型进行知识蒸馏,或对较小模型进行强化学习。
- 局限与展望:当前方法的难度计算复杂度高,未来工作将探索实时提供奖励的方法。