SemOPT: Fixing Semantic Errors in LLM-based Optimization Modeling via Reward-Guided Search
Zetong Zhou, Wentao Zhang, Jingyuan Wang, Yifan Yang, Zizhuo Wang, Shixi Hu
Key points
From the paper's conclusion- Introducing SemOPT, a semantic-guided framework for correcting LLM-based optimization models to fix semantic errors that do not trigger runtime failures.
- SemOPT combines a semantic reward model with an adaptive correction system that applies hierarchical reward-guided search over the modeling space.
- Experiments show that SemOPT establishes a new state of the art and achieves an average 7.6% accuracy improvement over the strongest baseline on complex datasets.
Abstract
Operations research supports decision-making in domains such as energy, economics, and healthcare. Solving operations research problems typically begins with optimization modeling, which translates a natural-language problem description into executable solver code. LLMs offer a promising way to automate this process, but they remain prone to errors. In practice, these errors can be divided into two categories: syntactic errors refer to solver code that fails to run successfully or is judged infeasible by the solver; semantic errors refer to solver code that successfully returns an objective value but violates the intent of the original problem. Since semantic errors do not trigger runtime failures, they are difficult to detect and rectify. To address this problem, we introduce SemOPT, a semantic-guided framework for correcting LLM-based optimization models. SemOPT combines a semantic reward model that distinguishes faithful math models from plausible but incorrect ones with an adaptive correction system that applies hierarchical reward-guided search over the modeling space. Experiments on seven optimization modeling benchmarks show that SemOPT establishes a new state of the art and achieves an average 7.6% accuracy improvement over the strongest baseline on complex datasets.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Introducing SemOPT, a semantic-guided framework for correcting LLM-based optimization models to fix semantic errors that do not trigger runtime failures.
- SemOPT combines a semantic reward model with an adaptive correction system that applies hierarchical reward-guided search over the modeling space.
- Experiments show that SemOPT establishes a new state of the art and achieves an average 7.6% accuracy improvement over the strongest baseline on complex datasets.
Readers' thoughts
No reader thoughts yet.
Related papers
- ORSMT: Unleashing the Potential of Satisfiability Modulo Theories for Semantic Verification and Repair in LLM-Based OptimizationarXiv · 2026
- Fix What's Wrong, Keep What's Right: Hallucination Repair for LLM-Based Optimization ModelingarXiv · 2026
- COMPASS: Composable Policy-Amortized Structured Search for LLM-Based Optimization ModelingarXiv · 2026
- VERAS: Verification-Guided Adaptive Search for Reliable Operations ResearcharXiv · 2026
- Harnessing Language Models as Optimization Modeling AgentsarXiv · 2026
- Teaching LLMs to Generate Challenging MILP Instances via Solver FeedbackarXiv · 2026