[论文解读] Exploring the True Potential: Evaluating the Black-box Optimization Capability of Large Language Models
该论文系统性地评估了大型语言模型(LLMs)在离散与连续问题上的黑箱优化能力,揭示出尽管LLMs在纯数值任务中因数值理解能力差而表现欠佳,但在通过提示工程实现种群管理来模拟遗传算法时,其在优化任务中表现成功。核心贡献在于首次全面、渐进式地评估了LLMs在优化场景中的行为特征、局限性及启发式潜力。
Large language models (LLMs) have demonstrated exceptional performance not only in natural language processing tasks but also in a great variety of non-linguistic domains. In diverse optimization scenarios, there is also a rising trend of applying LLMs. However, whether the application of LLMs in the black-box optimization problems is genuinely beneficial remains unexplored. This paper endeavors to offer deep insights into the potential of LLMs in optimization through a comprehensive investigation, which covers both discrete and continuous optimization problems to assess the efficacy and distinctive characteristics that LLMs bring to this field. Our findings reveal both the limitations and advantages of LLMs in optimization. Specifically, on the one hand, despite the significant power consumed for running the models, LLMs exhibit subpar performance in pure numerical tasks, primarily due to a mismatch between the problem domain and their processing capabilities; on the other hand, although LLMs may not be ideal for traditional numerical optimization, their potential in broader optimization contexts remains promising, where LLMs exhibit the ability to solve problems in non-numerical domains and can leverage heuristics from the prompt to enhance their performance. To the best of our knowledge, this work presents the first systematic evaluation of LLMs for numerical optimization. Our findings pave the way for a deeper understanding of LLMs' role in optimization and guide future application of LLMs in a wide range of scenarios.
研究动机与目标
- 探究LLMs在黑箱优化中是否真正表现出色,还是其成功更多源于炒作而非内在能力。
- 评估LLMs在离散与连续优化问题中的表现,识别其在不同场景下的优势与劣势。
- 分析LLMs在优化过程中的行为机制,特别是其对数值数据的处理方式及对提示的敏感性。
- 从探索、开发与可扩展性等核心属性出发,将LLMs与传统优化算法进行对比。
- 通过识别可行的应用策略与局限性,为未来LLMs在优化中的集成奠定基础。
提出的方法
- 构建了一个渐进式评估框架,从基本优化特性逐步扩展至多种LLMs的高级行为特征。
- 为离散与连续优化问题设计了特定任务的提示模板,包括TSP与Haversine距离任务。
- 在标准基准问题上,对开源与闭源LLMs(如GPT-3.5、GPT-4、Gemini、LLaMA)进行评估,采用受控的提示变体。
- 采用Haversine距离度量来评估在城市名称被遮蔽或揭示情况下的地理优化性能。
- 通过对比研究分析模型行为,衡量提示清晰度与信息量变化对性能下降或提升的影响。
- 通过行为分析研究LLMs如何以类似遗传算法的方式,隐式维持种群与选择机制。

实验结果
研究问题
- RQ1LLMs在数值黑箱问题中,特别是在离散与连续领域,多大程度上表现出有效的优化性能?
- RQ2在提示中包含或遮蔽真实世界语境信息(如城市名称)在多大程度上影响LLMs的优化结果?
- RQ3LLMs在数值推理能力薄弱的情况下,通过何种行为机制实现优化成功?
- RQ4LLMs在探索、开发与可扩展性方面与传统优化算法相比如何?
- RQ5提示设计在多大程度上影响LLMs的优化性能,尤其是在额外信息导致性能下降时?
主要发现
- LLMs在纯数值优化任务中表现欠佳,原因在于对字符串格式数字的处理能力差及数值推理能力弱。
- 当提示中揭示城市名称时,性能出现下降——GPT-3.5与GPT-4在信息更多时表现更差,表明其对提示高度敏感。
- Gemini在揭示城市名称时表现出轻微改进,表明不同模型在提示利用与信息整合方面存在差异。
- LLMs在优化中的成功并非源于数值能力,而是通过提示工程实现的种群与幸存者选择,隐式模仿遗传算法。
- 尽管在启发式优化中表现成功,LLMs在时间和能耗方面效率极低,使其在大规模数值问题中不切实际。
- 由于模型更新与随机种子变化,闭源LLMs缺乏可复现性,给可靠的研究验证带来重大挑战。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。