arXiv:2605.17539cs.AI2026-05

用记忆机制提升大模型生成优化求解器的效率与稳定性

Memory-Guided Tree Search with Cross-Branch Knowledge Transfer for LLM Solver Synthesis

论文配图:Memory-Guided Tree Search with Cross-Branch Knowledge Transfer for LLM Solver Synthesis
图 1 · 摘自论文原文
  • 引入双层记忆架构,跨分支共享算法经验
  • 解决方案有效率96.7%,优于最强基线9.2个百分点
  • 结果稳定,重复运行波动小,适合工业级部署

组合优化(CO)广泛应用于物流、芯片设计等决策场景,不可行解无实际价值,微小质量提升即带来显著经济收益。近期研究利用大语言模型(LLMs)自动合成求解器:从自然语言描述生成可执行程序。但现有基于树搜索和进化的方法在并行优化候选路径时缺乏显式知识传递,重复出现约束违规,收敛于相似算法族。我们提出MEMOIR,一种带两级记忆层次的树搜索框架:分支本地记忆保存单个算法设计迭代中的执行细节,全局记忆则压缩存储跨分支的算法结构与失败模式摘要。在分支结束时通过反思步骤提炼这些摘要,实现跨分支知识迁移,同时避免低层调试痕迹污染后续上下文。在涵盖调度、路径规划、装箱与几何设计的七类组合优化问题上,MEMOIR 达到 96.7% 的解有效性(比最强基线高 9.2 个百分点),在相同计算预算下平均归一化得分提升 7.3 分。在四个问题上进行三次独立运行,其运行间有效性标准差低于所有基线一个数量级以上,表明记忆引导探索带来的提升具有高度一致性,而非采样噪声所致。

原文摘要 · Abstract (English)

Combinatorial optimization (CO) underlies decision-making from logistics to chip design, where infeasible solutions are operationally unusable and small quality gains translate into substantial economic value. Recent work uses large language models (LLMs) to automate solver synthesis: generating executable solver programs from natural-language specifications. However, existing tree-search and evolutionary agents refine candidate trajectories in parallel without explicit knowledge transfer, reintroducing the same constraint violations and converging on similar algorithm families. We introduce MEMOIR, a memory-guided tree-search framework with a two-level memory hierarchy: branch-local memory preserves execution-grounded refinement details within a branch as it iterates on a single algorithmic design, while global memory stores compressed algorithmic and failure-mode summaries across branches. A reflection step at branch termination distills these summaries, enabling cross-branch transfer without polluting future contexts with low-level debugging traces. Across seven CO problems spanning scheduling, routing, packing, and geometric design, MEMOIR achieves 96.7% solution validity (a 9.2 point gap over the strongest baseline) and improves the average normalized score by 7.3 points at matched per-method execution budget. Over three independent runs on four problems, MEMOIR's run-to-run validity standard deviation is more than an order of magnitude below that of every baseline we evaluated in this setting, suggesting that memory-guided exploration yields consistent improvements rather than reflecting sampling variance.

大模型求解组合优化记忆机制代码生成

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