Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

OptMATH: A Scalable Bidirectional Data Synthesis Framework for Optimization Modeling

About

Despite the rapid development of large language models (LLMs), a fundamental challenge persists: the lack of high-quality optimization modeling datasets hampers LLMs' robust modeling of practical optimization problems from natural language descriptions (NL). This data scarcity also contributes to the generalization difficulties experienced by learning-based methods. To address these challenges, we propose a scalable framework for synthesizing a high-quality dataset, named OptMATH. Starting from curated seed data with mathematical formulations (MF), this framework automatically generates problem data (PD) with controllable complexity. Then, a back-translation step is employed to obtain NL. To verify the correspondence between the NL and the PD, a forward modeling step followed by rejection sampling is used. The accepted pairs constitute the training part of OptMATH. Then a collection of rejected pairs is identified and further filtered. This collection serves as a new benchmark for optimization modeling, containing difficult instances whose lengths are much longer than these of NL4OPT and MAMO. Through extensive experiments, we demonstrate that models of various sizes (0.5B-32B parameters) trained on OptMATH achieve superior results on multiple modeling benchmarks, thereby validating the effectiveness and scalability of our approach. Our dataset is publicly available at https://github.com/AuroraLHL/OptMATH.

Hongliang Lu, Zhonglin Xie, Yaoyu Wu, Can Ren, Yuxuan Chen, Zaiwen Wen• 2025

Related benchmarks

TaskDatasetResultRank
Optimization ModelingOptMATH
Accuracy Rate (AR)34.7
60
Optimization ModelingNL4OPT
Accuracy (pass@1)95.9
53
Optimization modeling and solvingIndustryOR
Pass@1 (SA)19
42
Optimization modeling and solvingNLP4LP
SA Score68.6
34
Optimization ModelingOptiBench--
34
Optimization ModelingComplexOR
SA33.33
28
Optimization ModelingIndustryOR
Accuracy (pass@1)19
23
Optimization ModelingComplexOR
Accuracy (pass@1)33.33
21
Optimization ModelingMAMO Complex
ER64.46
19
Optimization modeling and solvingNL4OPT
Solution Accuracy78.7
19
Showing 10 of 42 rows

Other info

Follow for update