atlas

Research map / Large language models / Agents, code and math

OptMATH: A Scalable Bidirectional Data Synthesis Framework for Optimization Modeling

ICML 2025 · Large language models › Agents, code and math · approach: LLMs for optimization and heuristics · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes OptMATH, a bidirectional data synthesis framework that generates optimization problem data with controllable complexity, back-translates it to natural language, and validates via forward modeling and optimal-value rejection sampling, then fine-tunes Qwen2.5 models (0.5B-32B) as AutoFormulator.

Problem

Optimization modeling (translating natural-language optimization problems into solver-ready formulations) is limited by the scarcity of high-quality, verified (NL, MF, PD) training data and by weak generalization of learning-based methods.

Approach

Generate solver-level problem instances from 53 seed generators with LLM-tuned complexity controls, back-translate them to NL with an iterative self-critique/refine pipeline, and keep only NL-to-model pairs whose solved optimal values match the originals (rejection sampling), using the accepted pairs to fine-tune an optimization formulator and the rejected hard pairs as a benchmark.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Fine-tune Qwen2.5-32B on OptMATH-Train (ablation)Qwen2.5-32B · NL4OPTpass@1 accuracy: 92.65% -> 95.9%Helped
Fine-tune Qwen2.5-32B on OptMATH-Train (ablation)Qwen2.5-32B · MAMO EasyLPpass@1 accuracy: 82.21% -> 90.49%Helped
Fine-tune Qwen2.5-32B on OptMATH-Train (ablation)Qwen2.5-32B · MAMO ComplexLPpass@1 accuracy: 44.55% -> 52.6%Helped
Fine-tune Qwen2.5-32B on OptMATH-Train (ablation)Qwen2.5-32B · OptMATH-Benchpass@1 accuracy: 9.33% -> 30.6%Helped
Use mixed original and augmented training data instead of raw data only (ablation)Qwen2.5-7B · NL4OPTpass@1 accuracy: 86.9% -> 87.3%Helped
Use mixed original and augmented training data instead of raw data only (ablation)Qwen2.5-7B · MAMO EasyLPpass@1 accuracy: 88.0% -> 87.7%Hurt
Use mixed original and augmented training data instead of raw data only (ablation)Qwen2.5-7B · MAMO ComplexLPpass@1 accuracy: 44.5% -> 48.1%Helped
Use mixed original and augmented training data instead of raw data only (ablation)Qwen2.5-7B · OptMATH-Benchpass@1 accuracy: 31.1% -> 33.3%Helped
Train with augmented data only rather than raw data (ablation)Qwen2.5-7B · MAMO ComplexLPpass@1 accuracy: 44.5% -> 44.7%Helped
Train with augmented data only rather than raw data (ablation)Qwen2.5-7B · NL4OPTpass@1 accuracy: 86.9% -> 82.9%Hurt
Add the Self-Refine loop to direct generation (ablation)OptMATH backtranslation pipeline · OptMATH-Train synthesis sampleacceptance rate: T=1 achieves a satisfactory acceptance rate of 61.56%Helped
Increase the OptMATH-Train data used for fine-tuning (ablation)Qwen2.5 models · Optimization modeling benchmarkspass@1 accuracyMixed

Surprising findings

Limitations

Experimental setup

Datasets: MIPLIB 2017 netlib NL4OPT MAMO EasyLP MAMO ComplexLP

Benchmarks: NL4OPT MAMO EasyLP MAMO ComplexLP OptMATH-Bench

Metrics: pass@1 accuracy micro average macro average acceptance rate

Baselines: GPT-3.5-turbo GPT-4 Deepseek-V3 Chain-of-Experts Optimus ORLM-LLaMA-3-8B

Builds on: OR-Instruct self-refine chain-of-thought LoRA rejection sampling

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy