cs.LGNov 24, 2026

Understanding Failure Patterns in LLM-Based Mathematical Optimization Modeling

Authors: Ryoichi Takase, Xian Yeow Lee, Hikaru Tomonari, Masaya Tsunokake

Organizations: Hitachi America, Ltd., California, USA · Hitachi, Ltd., Tokyo, Japan

Abstract

Industrial optimization involves complex constraints, making optimization modeling difficult to automate. Large language models (LLMs) have been explored for generating optimization models from natural language, but their reliability in end-to-end settings remains limited, often producing non-executable, infeasible, or feasible but incorrect solutions. In this work, we study failure modes in LLM-based optimization modeling by decomposing the process into three components: mathematical reasoning, solver usage, and domain knowledge, and constructing datasets that target each aspect. Using these datasets, we analyze how different components relate to errors and find that they are associated with different types of failure, although these relationships are not always strong or consistent. Furthermore, while combining these components improves execution reliability, feasible but incorrect solutions remain the dominant failure mode, suggesting a remaining gap between executability and correctness. These findings highlight limitations of current dataset designs and suggest the importance of data that better capture constraint completeness and formulation accuracy to enhance reliability.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Right Answers, Costly Models: The Efficiency Gap in LLM-based Optimization Modeling

    Sep 30, 2026Zhong Li, Xin Huang, Jinhui Wan +6LLM EvaluationLarge Language Model-Guided Optimization

  2. Understanding Large Language Models as Numerical Optimizers

    Oct 27, 2026Lingyun Guo, Ali BereyhiLarge Language Model-Guided OptimizationNumerical Reasoning in Language Models

  3. Opt-Verifier: Unleashing the Power of LLMs for Optimization Modeling via Dual-Side Verification

    May 28, 2026Haoyang Liu, Jie Wang, Boxuan Niu +8Natural Language to Optimization Modeling