Skip to main content
QUICK REVIEW

[论文解读] OptiMUS: Scalable Optimization Modeling with (MI)LP Solvers and Large Language Models

Ali AhmadiTeshnizi, Wenzhi Gao|arXiv (Cornell University)|Feb 15, 2024
Topic ModelingComputer Science被引用 6
一句话总结

OptiMUS 是一个基于大语言模型的多代理系统,从自然语言中形成并求解(MI)LP 问题,具有模块化结构和连接图以处理长描述和大数据。它在多个数据集上优于先前方法,包括一个新的 NLP4LP 基准。

ABSTRACT

Optimization problems are pervasive in sectors from manufacturing and distribution to healthcare. However, most such problems are still solved heuristically by hand rather than optimally by state-of-the-art solvers because the expertise required to formulate and solve these problems limits the widespread adoption of optimization tools and techniques. This paper introduces OptiMUS, a Large Language Model (LLM)-based agent designed to formulate and solve (mixed integer) linear programming problems from their natural language descriptions. OptiMUS can develop mathematical models, write and debug solver code, evaluate the generated solutions, and improve its model and code based on these evaluations. OptiMUS utilizes a modular structure to process problems, allowing it to handle problems with long descriptions and complex data without long prompts. Experiments demonstrate that OptiMUS outperforms existing state-of-the-art methods on easy datasets by more than $20\%$ and on hard datasets (including a new dataset, NLP4LP, released with this paper that features long and complex problems) by more than $30\%$.

研究动机与目标

  • 通过自动化从自然语言描述进行问题表述与求解来缩小优化领域的专业差距。
  • 开发一个模块化的基于 LLM 的代理系统,能够生成数学模型、求解器代码并评估解。
  • 实现对长问题描述和大数据的处理,而不会导致提示爆炸。
  • 引入 NLP4LP 作为一个具有挑战性的开放数据集,用以测试长表述优化建模。

提出的方法

  • 将自然语言问题预处理为一个结构化问题,包含 Parameters、Clauses 和 Background。
  • 在循环中使用一个管理器和专用代理(Formulator、Programmer、Evaluator)来对每个子句进行表述、编码和测试。
  • 维护一个连接图,用于跟踪变量、参数及其在子句中的参与情况,以实现面向上下文的提示。
  • 利用求解器接口(如 Python 与 Gurobi)及结构感知的提示来利用问题结构,如 SOS 和指示器。
  • 提供一个优化层,捕捉模型结构并使用 cheatsheet 提示来应用高级优化技术。

实验结果

研究问题

  • RQ1基于 LLM 的多代理系统是否能够从自然语言描述中可靠地表述并求解 MILP/LP 问题?
  • RQ2带连接图的模块化提示是否提高了对长描述和大数据的可扩展性?
  • RQ3在简单和困难的优化数据集上,OptiMUS 相较于最先进的提示方法的表现如何?
  • RQ4代理编排(管理器、表述者、程序员、评估者)和调试对解的准确性的影响是什么?

主要发现

  • OptiMUS 在简单数据集上比现有方法高出超过 20%,在包括 NLP4LP 的困难数据集上高出超过 30%。
  • 采用带连接图的模块化方法可以处理长问题描述和大数据,而无需提示过长。
  • 基于 GPT-4 的配置显著比较小的 LLM 准确度高,调试和管理者角色在更困难的数据集上贡献更大。
  • 该系统通过允许更多的代理调用来扩展,在 ComplexOR 和 NLP4LP 数据集上提升性能。
  • 对于 OptiMUS,提示长度在各数据集上保持稳定,与某些基线随问题难度增加而增长的提示不同。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。