Automated Optimization Modeling via a Localizable Error-Driven Perspective

Weiting Liu, Han Wu, Yufei Kuang, Xiongwei Han, Tao Zhong, Jianfeng Feng, Wenlian Lu

Abstract

Automated optimization modeling via Large Language Models (LLMs) has emerged as a promising approach to assist complex human decision-making. While post-training has become a pivotal technique to enhance LLMs' capabilities in this domain, its effectiveness is severely constrained by the scarcity and underutilization of high-quality training data. However, through a detailed profiling of error patterns across various problem-response pairs drawn from post-training, we identify two fundamental limitations of existing automated optimization modeling approaches: (L1) the sparsity of error-specific problems and (L2) the sparse rewards associated with difficult problems. We demonstrate that these limitations can result in suboptimal performance in domain-specific post-training for LLMs. To tackle the above two limitations, we propose a novel error-driven learning framework -- namely, automated optimization modeling via a localizable error-driven perspective (MIND) -- that customizes the whole model training framework from data synthesis to post-training. MIND is based on our key observation of the unique localizable patterns in error propagation of optimization modelings, that is, modeling errors may remain localized to specific semantic segments and do not propagate throughout the entire solution. Thus, in contrast to holistic reasoning tasks such as mathematical proofs, MIND leverages the construction of a focused, high-density training corpus and proposes Dynamic Supervised Fine-Tuning Policy Optimization (DFPO) to tackle difficult problems through localized refinement. Experiments on six benchmarks demonstrate that MIND consistently outperforms all the state-of-the-art automated optimization modeling approaches.

Introduction

Automated optimization modeling—the process of translating natural language problems into mathematical code—is a high-stakes task for LLMs. Currently, two major hurdles block progress: data scarcity and the "sparse reward" problem. In standard training, a model is usually rewarded only if the entire solution is 100% correct. For difficult problems, a model might get 90% of the constraints right but receive a "zero" reward, providing no useful signal for improvement.

Existing approaches treat optimization like a mathematical proof, where one early error cascades into total failure. This paper argues that optimization is different: an error in one constraint doesn't necessarily "poison" the logic of the variables or the objective function. This "localizability" of errors is the core insight behind the MIND framework.

Comparison between cascading errors in mathematical reasoning and localizable errors in optimization modeling.

Methodology

The MIND framework consists of two main stages designed to exploit localized error patterns:

  1. Error-Driven Reverse Data Synthesis: Instead of just collecting correct examples, the researchers used a "reverse" pipeline. They identified common error patterns LLMs make (like misidentifying variable types) and then prompted a teacher LLM to synthesize new, challenging problems that specifically incorporate these "traps." This creates a high-density training corpus of "hard-to-solve" problems.
  2. Dynamic Supervised Fine-Tuning Policy Optimization (DFPO): To solve the sparse reward problem, they moved away from binary pass/fail. They introduced "fidelity rewards" that give the model partial credit if its mathematical formulation is structurally close to the ground truth. Additionally, when the model fails a task during training, a stronger "teacher" model steps in to refine the model's own incorrect response, ensuring the learning signal stays close to the model's natural distribution.
The MIND framework overview, illustrating the pipeline from seed questions to quality-controlled training data.

Datasets and Benchmarks

The study utilizes a wide array of benchmarks to validate the framework:

  • MIND-Train (New): A high-density training dataset of 10,000 instances synthesized using the error-driven pipeline.
  • MIND-Bench (New): A challenging new benchmark consisting of 69 curated operations research problems from industry scenarios and textbooks.
  • Existing Benchmarks: NL4Opt (linear programming), IndustryOR (industrial applications), MAMO (mixed-integer programming), OptMATH-Bench, and OptiBench (tabular data).

Key Results

MIND demonstrates a clear leap over existing state-of-the-art (SOTA) models:

  • Superior Performance: MIND-Qwen2.5-7B improved the base model's performance by 14.3% across six benchmarks. On difficult benchmarks like IndustryOR and OptMATH, the gains were as high as 24.1%.
  • Outperforming Proprietary Models: The 7B and 8B versions of MIND consistently outperformed much larger proprietary models, including GPT-4 and OpenAI o3, as well as specialized reasoning models like DeepSeek-R1.
  • Generalization: On the new MIND-Bench, the MIND-Qwen3-8B model achieved a 68.1% accuracy, outperforming larger models like SIRL-Qwen2.5-32B.

Limitations and Future Work

While MIND excels in many areas, it achieved only marginal improvements on OptiBench, which relies heavily on tabular data. This suggests that the current error-driven synthesis doesn't yet fully capture the nuances of reasoning over large tables. Future research will explore how these localized error-driven perspectives scale to even larger foundation models and highly non-linear, specialized formulations.

Summary updated

BibTeX
@misc{liu2026automated,
  author = {Weiting Liu and Han Wu and Yufei Kuang and Xiongwei Han and Tao Zhong and Jianfeng Feng and Wenlian Lu},
  title = {{Automated Optimization Modeling via a Localizable Error-Driven Perspective}},
  year = {2026},
  eprint = {2602.11164},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.11164},
}
Figure