OptiMind: Teaching LLMs to Think Like Optimization Experts

Zeyi Chen, Xinzhi Zhang, Humishka Zope, Hugo Barbalho, Konstantina Mellou +4 more
9/26/2025
cs.LG

No confident code implementation found for this paper.

Abstract

Mathematical programming -- the task of expressing operations and decision-making problems in precise mathematical language -- is fundamental across domains, yet remains a skill-intensive process requiring operations research expertise. Recent advances in large language models for complex reasoning have spurred interest in automating this task, translating natural language into executable optimization models. Current approaches, however, achieve limited accuracy, hindered by scarce and noisy training data without leveraging domain knowledge. In this work, we systematically integrate optimization expertise to improve formulation accuracy for mixed-integer linear programming, a key family of mathematical programs. Our approach first cleans training data through class-based error analysis to explicitly prevent common mistakes within each optimization class. We then develop multi-turn inference strategies that guide LLMs with class-specific error summaries and solver feedback, enabling iterative refinement. Experiments across multiple base LLMs demonstrate that combining cleaned data with domain-informed prompting and feedback improves formulation accuracy by 14 percentage points on average, enabling further progress toward robust LLM-assisted optimization formulation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2025optimind,
  title  = {OptiMind: Teaching LLMs to Think Like Optimization Experts},
  author = {Zeyi Chen and Xinzhi Zhang and Humishka Zope and Hugo Barbalho and Konstantina Mellou and Marco Molinaro and Janardhan Kulkarni and Ishai Menache and Sirui Li},
  year   = {2025},
  eprint = {2509.22979},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.22979v1}
}

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/2509.22979.svg)](https://codeofpaper.com/paper/2509.22979)

Discussion