LLM for Large-Scale Optimization Model Auto-Formulation: A Lightweight Few-Shot Learning Approach

Kuo Liang, Yuhang Lu, Jianming Mao et al.

January 14, 2026 Score: 7.7 Deep analyzed

Interest Score Breakdown

Seismic Impact (30%)

7.0/10

Industry-wide significance

Ecosystem Relevance (70%)

8.0/10

Applicable to your apps

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. Leveraging LLMs' text-processing capabilities and common modeling practices, the workflow decomposes the modeling task into a sequence of structured sub-tasks and offloads mechanical data-handling operations to auxiliary tools. This design alleviates the downstream agent's burden related to planning and data handling, allowing it to focus on the most challenging components that cannot be readily standardized. 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.

Deep Analysis

Get a detailed analysis of this paper's relevance to your ecosystem.

How to Use in Your Ecosystem

This approach could be directly applied to the prediction market and sports forecasting apps (high_score_basketball, soccer_elo) by automating complex optimization model generation. The agent-based workflow for model construction aligns perfectly with Zac's existing Claude-powered orchestrator, potentially enhancing the reliability and complexity of predictive modeling tools. The few-shot learning and workflow decomposition techniques could be integrated into the code_quality and ai_tracker apps to improve automated model generation and optimization strategies. Rationale:

Source