Large-Scale Optimization Model Auto-Formulation: Harnessing LLM Flexibility via Structured Workflow

Kuo Liang, Yuhang Lu, Jianming Mao, Shuyi Sun, Chunwei Yang +5 more
1/14/2026
cs.AIcs.LG

Official code: CoraLiang01/lean-llm-opt (8 stars, last commit 2026-04-10).

Abstract

Large-scale optimization is a key backbone of modern business decision-making. However, building these models is often labor-intensive and time-consuming. We address this by proposing LEAN-LLM-OPT, a LightwEight AgeNtic workflow construction framework for LLM-assisted large-scale OPTimization auto-formulation. LEAN-LLM-OPT takes as input a problem description together with associated datasets and orchestrates a team of LLM agents to produce an optimization formulation. Specifically, upon receiving a query, two upstream LLM agents dynamically construct a workflow that specifies, step-by-step, how optimization models for similar problems can be formulated. A downstream LLM agent then follows this workflow to generate the final output. The agentic workflow leverages common modeling practices to structure the modeling process into a sequence of sub-tasks, offloading mechanical data-handling operations to auxiliary tools. This reduces the LLM's burden in planning and data handling, allowing us to exploit its flexibility to address unstructured components. Extensive simulations show that LEAN-LLM-OPT, instantiated with GPT-4.1 and the open source gpt-oss-20B, achieves strong performance on large-scale optimization modeling tasks and is competitive with state-of-the-art approaches. In addition, in a Singapore Airlines choice-based revenue management use case, LEAN-LLM-OPT demonstrates practical value by achieving leading performance across a range of scenarios. Along the way, we introduce Large-Scale-OR and Air-NRM, the first comprehensive benchmarks for large-scale optimization auto-formulation. The code and data of this work is available at https://github.com/CoraLiang01/lean-llm-opt.

View on arXivView PDF

Code Implementations(1)

84Python, Jupyter NotebookJul 4, 20256 months ago

Similar Papers

Cite this paper

@article{liang2026largescale,
  title  = {Large-Scale Optimization Model Auto-Formulation: Harnessing LLM Flexibility via Structured Workflow},
  author = {Kuo Liang and Yuhang Lu and Jianming Mao and Shuyi Sun and Chunwei Yang and Congcong Zeng and Xiao Jin and Hanzhang Qin and Ruihao Zhu and Chung-Piaw Teo},
  year   = {2026},
  eprint = {2601.09635},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.09635v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.09635.svg)](https://codeofpaper.com/paper/2601.09635)

Discussion