arXiv:2605.08905cs.AI2026-05ACL

让大模型学会找最优解,而非仅正确解。

Forge: Quality-Aware Reinforcement Learning for NP-Hard Optimization in LLMs

论文配图:Forge: Quality-Aware Reinforcement Learning for NP-Hard Optimization in LLMs
图 1 · 摘自论文原文
  • 设计质量感知强化学习框架,提升模型求解能力
  • 在10类难题上达成93.1%成功率与46.6%质量比
  • 适合研究复杂推理与优化的学者参考

大型语言模型(LLMs)在数学、编程、逻辑等推理任务中表现卓越,主要依赖可验证奖励的强化学习(RLVR)。然而现有基准仅评估正确性,忽略最优性——即在约束条件下找到最佳解的能力。本文提出OPT-BENCH,首个针对NP难优化问题训练与评估LLMs的综合性框架。该框架包含:1)支持10类任务的可扩展训练基础设施,含实例生成器、质量验证器与最优基线;2)严格基准测试,涵盖1,000个实例,同时评估可行性(成功率,SR)与质量(质量比,QR);3)质量感知奖励机制,实现超越二值正确性的持续优化。在Qwen2.5-7B-Instruct-1M上使用15,000条数据训练后,取得93.1%的SR和46.6%的QR,显著优于GPT-4o(29.6% SR,14.6% QR)。此外,该训练还促进跨任务迁移,在数学、逻辑、知识和指令遵循上分别提升2.2%、1.2%、4.1%和6.1%。分析表明,质量感知奖励使解的质量提升28.8%,且任务多样性比数据量更关键,为复杂推理的强化学习扩展提供新见解。

原文摘要 · Abstract (English)

Large Language Models (LLMs) have achieved remarkable success on reasoning benchmarks through Reinforcement Learning with Verifiable Rewards (RLVR), excelling at tasks such as math, coding, logic, and puzzles. However, existing benchmarks evaluate only correctness, while overlooking optimality, namely the ability to find the best solutions under constraints. We propose OPT-BENCH, the first comprehensive framework for training and evaluating LLMs on NP-hard optimization problems through quality-aware RLVR. OPT-BENCH provides three key components: a scalable training infrastructure with instance generators, quality verifiers, and optimal baselines across 10 tasks; a rigorous benchmark with 1,000 instances evaluating both feasibility, measured by Success Rate, and quality, measured by Quality Ratio; and quality-aware rewards that enable continuous improvement beyond binary correctness. Training on Qwen2.5-7B-Instruct-1M with 15K examples achieves 93.1% SR and 46.6% QR, significantly outperforming GPT-4o, which achieves 29.6% SR and 14.6% QR. Beyond optimization, training on OPT-BENCH transfers to diverse tasks, including mathematics (+2.2%), logic (+1.2%), knowledge (+4.1%), and instruction following (+6.1%). Our analysis reveals that quality-aware rewards improve solutions by 28.8% over binary rewards, and that task diversity drives generalization more than data quantity, offering insights into RLVR scaling for complex reasoning.

强化学习优化问题大模型推理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。