English

ORLM: A Customizable Framework in Training Large Models for Automated Optimization Modeling

Computation and Language 2025-07-30 v5 Artificial Intelligence Computational Engineering, Finance, and Science Machine Learning

Abstract

Optimization modeling plays a critical role in the application of Operations Research (OR) tools to address real-world problems, yet they pose challenges and require extensive expertise from OR experts. With the advent of large language models (LLMs), new opportunities have emerged to streamline and automate such task. However, current research predominantly relies on closed-source LLMs such as GPT-4, along with extensive prompt engineering techniques. This reliance stems from the scarcity of high-quality training datasets for optimization modeling, resulting in elevated costs, prolonged processing times, and privacy concerns. To address these challenges, our work is the first to propose a viable path for training open-source LLMs that are capable of optimization modeling and developing solver codes, eventually leading to a superior ability for automating optimization modeling and solving. Particularly, we design the {\sc OR-Instruct}, a semi-automated data synthesis framework for optimization modeling that enables customizable enhancements for specific scenarios or model types. This work also introduces IndustryOR, the first industrial benchmark for evaluating LLMs in solving practical OR problems. We train several 7B-scale open-source LLMs using synthesized data (dubbed ORLMs{https://github.com/Cardinal-Operations/ORLM}), which exhibit significantly enhanced optimization modeling capabilities, achieving competitive performance across the NL4OPT, MAMO, and IndustryOR benchmarks. Additionally, our experiments highlight the potential of scaling law and reinforcement learning to further enhance the performance of ORLMs. The workflows and human-machine interaction paradigms of ORLMs in practical industrial applications are also discussed in the paper.

Keywords

Cite

@article{arxiv.2405.17743,
  title  = {ORLM: A Customizable Framework in Training Large Models for Automated Optimization Modeling},
  author = {Chenyu Huang and Zhengyang Tang and Shixi Hu and Ruoqing Jiang and Xin Zheng and Dongdong Ge and Benyou Wang and Zizhuo Wang},
  journal= {arXiv preprint arXiv:2405.17743},
  year   = {2025}
}

Comments

accepted by Operations Research

R2 v1 2026-06-28T16:43:05.784Z