arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.16476cs.AI
收藏

NP-Engine:借助可验证的合成 NP 问题增强大型语言模型中的优化推理

NP-Engine: Empowering Optimization Reasoning in Large Language Models with Verifiable Synthetic NP Problems

Tongji University(同济大学);Shanghai AI Lab(上海人工智能实验室);Zhejiang University(浙江大学);Fudan University(复旦大学)

Xiaozhe Li, Xinyu Fang, Shengyuan Ding, Linyang Li, Haodong Duan, Qingwen Liu, Kai Chen

AI总结:

本文提出 NP-ENGINE 框架与 NP-BENCH,利用可验证合成 NP-hard 问题开展 RLVR 训练,显著提升同规模模型性能及域外泛化。

摘要:

大型语言模型(LLM)已展现出强大的推理能力,OpenAI 的 O 系列和 DeepSeek R1 等模型通过带可验证奖励的强化学习(RLVR),在数学、编程、逻辑和谜题等任务上表现出色。然而,它们解决更复杂优化问题(尤其是 NP-hard 任务)的能力仍未得到充分研究。为弥合这一差距,我们提出 NP-ENGINE,这是首个用于在 NP-hard 问题上训练和评估 LLM 的综合框架。NP-ENGINE 涵盖五个领域的 10 项任务,每项任务均配备:(i)可控实例生成器,(ii)基于规则的验证器,以及(iii)提供近似最优解作为真值的启发式求解器。这一生成器—验证器—启发式方法流水线支持在分层难度下进行可扩展且可验证的 RLVR 训练。我们还推出 NP-BENCH,这是一个源自 NP-ENGINE-DATA 的基准,专门用于评估 LLM 应对 NP-hard 级别推理问题的能力,不仅关注可行性,也关注解的质量。此外,我们提出 QWEN2.5-7B-NP:该模型在 Qwen2.5-7B-Instruct 上通过结合课程学习的 zero-RLVR 训练得到,在 NP-BENCH 上显著优于 GPT-4o,并在相同模型规模下达到 SOTA 性能。除领域内任务外,我们证明在 NP-ENGINE-DATA 上进行 RLVR 训练,可对推理任务(逻辑、谜题、数学和知识)以及指令遵循等非推理任务产生很强的域外(OOD)泛化能力。我们还观察到一种扩展趋势:增加任务多样性可改善 OOD 泛化。这些发现表明,任务丰富的 RLVR 训练是推进 LLM 推理能力的一个有前景方向,并为 RLVR 的扩展定律揭示了新的洞见。

英文摘要:

Large Language Models (LLMs) have shown strong reasoning capabilities, with models like OpenAI's O-series and DeepSeek R1 excelling at tasks such as mathematics, coding, logic, and puzzles through Reinforcement Learning with Verifiable Rewards (RLVR). However, their ability to solve more complex optimization problems - particularly NP-hard tasks - remains underexplored. To bridge this gap, we propose NP-ENGINE, the first comprehensive framework for training and evaluating LLMs on NP-hard problems. NP-ENGINE covers 10 tasks across five domains, each equipped with (i) a controllable instance generator, (ii) a rule-based verifier, and (iii) a heuristic solver that provides approximate optimal solutions as ground truth. This generator-verifier-heuristic pipeline enables scalable and verifiable RLVR training under hierarchical difficulties. We also introduce NP-BENCH, a benchmark derived from NP-ENGINE-DATA, specifically designed to evaluate LLMs' ability to tackle NP-hard level reasoning problems, focusing not only on feasibility but also on solution quality. Additionally, we present QWEN2.5-7B-NP, a model trained via zero-RLVR with curriculum learning on Qwen2.5-7B-Instruct, which significantly outperforms GPT-4o on NP-BENCH and achieves SOTA performance with the same model size. Beyond in-domain tasks, we demonstrate that RLVR training on NP-ENGINE-DATA enables strong out-of-domain (OOD) generalization to reasoning tasks (logic, puzzles, math, and knowledge), as well as non-reasoning tasks such as instruction following. We also observe a scaling trend: increasing task diversity improves OOD generalization. These findings suggest that task-rich RLVR training is a promising direction for advancing LLM's reasoning ability, revealing new insights into the scaling laws of RLVR.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑