arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.37932cs.AIcs.LGeess.SP
收藏

将大语言模型理解为数值优化器

Understanding Large Language Models as Numerical Optimizers

Lingyun Guo, Ali Bereyhi

AI总结:

本文研究将大语言模型(LLMs)作为数值优化器的能力,开发评估框架对比其与确定性求解器的性能,发现迭代精化可提升其可靠性,为混合优化方法提供了依据。

摘要:

大语言模型(LLMs)已成为数值优化领域的潜在工具,尽管取得了不错的结果,但其内在的优化能力与局限性仍未被充分理解,尤其是在高维场景下。本文研究LLMs利用数学问题结构、生成可行且接近最优解的能力,开发了一套评估框架,该框架将解的质量与执行失败(包括数值不准确、约束违反、输出格式错误)区分开来。我们使用凸优化、分式规划、约束投影的代表性问题,在不同维度下将LLMs的性能与确定性参考求解器进行对比评估。结果表明,LLMs能够捕捉有用的优化结构并生成接近最优的解,即便其输出不满足数值或格式要求。不过,可靠性随问题维度增加而下降,且高度依赖于底层优化结构。为进一步探究局限性,我们部署了迭代精化机制,该机制会提供关于可行性和解质量的针对性反馈。结果显示,迭代精化可大幅提升可靠性,并扩展LLMs生成有效解的问题维度范围。然而,持续存在的数值与结构错误限制了其作为独立优化器的适用性。这些发现为基于LLM的优化的能力与局限性提供了见解,并推动了将LLM推理与确定性数值验证相结合的混合方法的发展。

英文摘要:

Large language models (LLMs) have emerged as potential tools for numerical optimization. Despite promising results, their intrinsic optimization capabilities and limitations remain poorly understood, particularly in high dimensions. This paper investigates the ability of LLMs to exploit mathematical problem structures and generate feasible, near-optimal solutions. We develop an evaluation framework that distinguishes solution quality from execution failures, including numerical inaccuracies, constraint violations, and output-format errors. Using representative problems from convex optimization, fractional programming, and constrained projection, we assess LLM performance against deterministic reference solvers across different dimensions. Our results reveal that LLMs can capture useful optimization structures and produce near-optimal solutions, even when their outputs fail to satisfy numerical or formatting requirements. However, reliability deteriorates with increasing problem dimension and depends strongly on the underlying optimization structure. To further investigate the limitations, we deploy an iterative refinement mechanism that provides targeted feedback on feasibility and solution quality. The results demonstrate that iterative refinement substantially improves reliability and extends the range of problem dimensions over which LLMs produce valid solutions. Nevertheless, persistent numerical and structural errors limit their applicability as standalone optimizers. These findings provide insights into the capacity and limits of LLM-based optimization and motivate hybrid approaches that combine LLM reasoning with deterministic numerical verification.

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

↑