Abstract
OptiMUS-0.3 is a modular, LLM-based agentic system designed to bridge the "expertise gap" in mathematical optimization. By decomposing complex natural language descriptions into a structured pipeline—encompassing parameter extraction, mathematical formulation, and iterative code debugging—OptiMUS-0.3 outperforms state-of-the-art methods by over 20% on challenging benchmarks. This paper details the architecture, evaluation datasets, and performance gains of the system.
Introduction: The Optimization Barrier
Mixed-Integer Linear Programming (MILP) is a powerful tool for solving complex logistical and operational problems, from flight scheduling to power grid management. However, the transition from a natural language business problem to a solvable mathematical model typically requires specialized expertise in Operations Research. While Large Language Models (LLMs) offer potential for automation, they face significant hurdles: long descriptions that exceed context windows, massive numerical datasets, hallucinations regarding constraints, and the generation of computationally inefficient models. OptiMUS-0.3 addresses these challenges through a modular, agentic approach.
Methods: A Modular Engineering Pipeline
OptiMUS-0.3 treats optimization modeling as a multi-stage engineering pipeline rather than a single-shot generation task. Its core innovations include:
- Modular Pipeline: Specialized agents handle distinct tasks: parameter extraction, clause detection (objectives and constraints), LaTeX formulation, and Python code generation using the
gurobipylibrary. - The Connection Graph: To manage long-context problems, the system maintains a bipartite graph tracking variable-constraint relationships. This allows agents to "zoom in" on relevant context for specific sub-tasks without needing the entire problem description in every prompt.
- Self-Reflective Error Correction: The system employs domain-specific reflective prompts (e.g., verifying unit consistency) and assesses its own confidence. It utilizes iterative debugging to refine models based on solver feedback.
- Structure Detection: It identifies advanced solver features like Special Ordered Sets (SOS) or indicator variables to optimize solve times and implements techniques like "sifting" for massive datasets.
Datasets
The system was evaluated against standard benchmarks and a new, more rigorous dataset developed by the authors to test the limits of modular reasoning.
The evaluation included:
- NLP4LP (New): A comprehensive dataset of 355 problems. As shown in the table above, the "Hard" subset features significantly longer descriptions (912.3 ± 498.2 words) and multi-dimensional parameters, providing a more realistic test of LLM capabilities.
- NL4Opt: A standard benchmark for natural language optimization.
- IndustryOR: 100 real-world case studies across eight industries.
To ensure the integrity of the results, the authors implemented measures to prevent data leakage, including Captchas and plagiarism verification for the problem texts.
Key Results and Insights
Experimental results demonstrate that OptiMUS-0.3 significantly advances the state-of-the-art in automated optimization:
- Superior Performance: The system outperformed existing methods by 22% on easy datasets and 24% on hard datasets.
- Human-Level Speed: OptiMUS-0.3 achieved a median solve time of just 108 seconds, whereas a human expert might take 150 minutes to model a similar complex problem.
- Modularity Beats Scale: A modular agent using a "weaker" model like Llama-3-70B can outperform a monolithic GPT-4o approach, highlighting the value of the pipeline architecture.
- Criticality of Debugging: Ablation studies showed that iterative debugging is the most vital component, improving accuracy on hard problems by nearly 50%.
Conclusion and Future Work
OptiMUS-0.3 demonstrates that a modular, agentic framework can effectively bridge the gap between natural language and formal optimization. While currently focused on MILP, future work aims to extend these capabilities to non-linear programming and improve reliability for safety-critical applications where human-in-the-loop verification remains essential.
Summary updated