Peering Inside the Black Box: Uncovering LLM Errors in Optimization Modelling through Component-Level Evaluation
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) are increasingly used to convert natural language descriptions into mathematical optimization formulations. Current evaluations often treat formulations as a whole, relying on coarse metrics like solution accuracy or runtime, which obscure structural or numerical errors. In this study, we present a comprehensive, component-level evaluation framework for LLM-generated formulations. Beyond the conventional optimality gap, our framework introduces metrics such as precision and recall for decision variables and constraints, constraint and objective root mean squared error (RMSE), and efficiency indicators based on token usage and latency. We evaluate GPT-5, LLaMA 3.1 Instruct, and DeepSeek Math across optimization problems of varying complexity under six prompting strategies. Results show that GPT-5 consistently outperforms other models, with chain-of-thought, self-consistency, and modular prompting proving most effective. Analysis indicates that solver performance depends primarily on high constraint recall and low constraint RMSE, which together ensure structural correctness and solution reliability. Constraint precision and decision variable metrics play secondary roles, while concise outputs enhance computational efficiency. These findings highlight three principles for NLP-to-optimization modeling: (i) Complete constraint coverage prevents violations, (ii) minimizing constraint RMSE ensures solver-level accuracy, and (iii) concise outputs improve computational efficiency. The proposed framework establishes a foundation for fine-grained, diagnostic evaluation of LLMs in optimization modeling.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). First posted on arXiv 19 Oct 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026The Path Ahead for Agentic AI: Challenges and Opportunitiescited by 4
- 2026OptArgus: A Multi-Agent System to Detect Hallucinations in LLM-based Optimization Modelingcited by 3
- 2026Large Language Models as Optimizers: A Survey of Direct vs. Tool-Augmented Approaches and Their Performance Frontierscited by 0
- 2026OptArgus: A Multi-Agent System to Detect Hallucinations in LLM-based Optimization Modeling12 May 2026
- 2026Large Language Models as Optimizers: A Survey of Direct vs. Tool-Augmented Approaches and Their Performance Frontiers9 Apr 2026
- 2026The Path Ahead for Agentic AI: Challenges and Opportunities6 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2025OptiMind: Teaching LLMs to Think Like Optimization Experts
- 2025Teaching LLMs to Think Mathematically: A Critical Study of Decision-Making via Optimization
- 2024LLMOPT: Learning to Define and Solve General Optimization Problems from Scratch
- 2025LLMize: A Framework for Large Language Model-Based Numerical Optimization
- 2025Step-Opt: Boosting Optimization Modeling in LLMs through Iterative Data Synthesis and Structured Validation
- 2026OptiSkill: A Hierarchical and Evolving SkillBank for LLM-Based Optimization Modeling
- 2026OPT-Engine: Benchmarking the Limits of LLMs in Optimization Modeling via Complexity Scaling
- 2025A Systematic Survey on Large Language Models for Evolutionary Optimization: From Modeling to Solving