arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.18374cs.LGcs.AI
收藏

超越推理时间搜索:强化学习合成可重用求解器

Beyond Inference-Time Search: Reinforcement Learning Synthesizes Reusable Solvers

ETH Zürich(苏黎世联邦理工学院);University of Maryland(马里兰大学)

Soheyl Massoudi, Gabriel Apaza, Milad Habibi, Mark Fuge

AI总结:

本文探讨了强化学习能否将组合优化的推理成本转移到代码LLM的权重中,从而合成可重用的求解器。通过Synergistic Dependency Selection问题,研究发现强化学习能有效生成约束感知的模拟退火模板,并在多个领域展示出更高的效率和鲁棒性。

摘要:

大型语言模型(LLMs)通常将组合优化视为推理时间的过程,通过采样、搜索或重复提示单独解决每个实例。我们询问强化学习是否可以将部分推理成本转移到代码LLM的权重中,从而让模型为整个问题家族合成可重用的求解器。我们研究了Synergistic Dependency Selection(SDS),一种受约束的二次背包问题的受控变体,旨在暴露特定的失败模式:局部信号和严格可行性约束使贪心启发式方法具有吸引力但不可靠。在相同的框架下,Best-of-64基础模型采样在接近全局虚拟最佳求解器(VBS)的28.7%差距处饱和;代码审计显示基础模型经常检索模拟退火模板但错误实现Metropolis接受规则。我们使用可行性门控奖励和轻量结构框架对Qwen2.5-Coder-14B-Instruct进行微调,使用组相对策略优化(GRPO)。所得到的策略在99.8%的可行SDS输出中收敛到一个约束感知的模拟退火模板,达到VBS的5.0%差距,并且在生成后执行/搜索成本方面比累积Best-of-64评估便宜91倍。一次编译检查显示,每个种子的最优冻结求解器在SDS测试集上重复使用时仍然高度竞争,而额外领域评估在作业调度问题上提供了更窄但积极的证据,表明框架可以超越SDS。负消融揭示了这种配方的局限性:标准稳定器会降低性能,软可行性门控失败,结果仍对奖励归一化和领域特定设计选择敏感。

英文摘要:

Large language models (LLMs) typically approach combinatorial optimization as an inference-time procedure, solving each instance separately through sampling, search, or repeated prompting. We ask whether reinforcement learning can instead shift part of this reasoning cost into the weights of a code LLM, so that the model synthesizes a reusable solver for an entire problem family. We study this question on Synergistic Dependency Selection (SDS), a controlled variant of constrained Quadratic Knapsack designed to expose a specific failure mode: local signals and strict feasibility constraints make greedy heuristics attractive but unreliable. Under identical scaffolding, Best-of-64 base-model sampling saturates at an approximately 28.7% gap to the global Virtual Best Solver (VBS); code audits show that the base model often retrieves Simulated Annealing templates but misimplements the Metropolis acceptance rule. We fine-tune Qwen2.5-Coder-14B-Instruct with Group Relative Policy Optimization (GRPO) using a feasibility-gated reward and light structural scaffolding. The resulting policy converges to a constraint-aware Simulated Annealing template in 99.8% of feasible SDS outputs, achieves a 5.0% gap to that VBS, and is 91 times cheaper in post-generation execution/search cost than cumulative Best-of-64 evaluation. A compile-once check shows that one best frozen solver per seed remains highly competitive when reused unchanged across the SDS test set, while an additional-domain evaluation on Job Shop Scheduling provides narrower but positive evidence that the scaffold transfers beyond SDS. Negative ablations reveal the limits of this recipe: standard stabilizers degrade performance, a soft feasibility gate fails, and results remain sensitive to reward normalization and domain-specific design choices.

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

↑