Opt-Verifier: Unleashing the Power of LLMs for Optimization Modeling via Dual-Side Verification

Haoyang Liu, Jie Wang, Boxuan Niu, Xiongwei Han, Yian Xu +6 more
5/28/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Building mathematical optimization models is critical in operations research (OR), while it requires substantial human expertise. Recent advancements have utilized large language models (LLMs) to automate this modeling process.

Show full abstract

However, existing works often struggle to verify the correctness of the generated optimization models, without checking the rationality of the constraints and variables or the validity of solutions to the generated models. This hampers the subsequent verification and correction steps, and thus it severely hurts the modeling accuracy. To address this challenge, we propose a novel LLM-based framework with Dual-side Verification (Opt-Verifier) from both structure and solution perspectives, thereby improving the modeling accuracy. The structure-side verification ensures that the modeling structure of the generated optimization models aligns with the original problem description, accurately capturing the problem's constraints and requirements. Meanwhile, the solution-side verification interprets and evaluates the solutions' validity, confirming that the optimization models are logically and mathematically sound. Experiments on popular benchmarks demonstrate that our approach achieves over 20\% improvement in accuracy.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2026optverifier,
  title  = {Opt-Verifier: Unleashing the Power of LLMs for Optimization Modeling via Dual-Side Verification},
  author = {Haoyang Liu and Jie Wang and Boxuan Niu and Xiongwei Han and Yian Xu and Mingxuan Ye and Zijie Geng and Fangzhou Zhu and Tao Zhong and Mingxuan Yuan and Jianye Hao},
  year   = {2026},
  eprint = {2605.29556},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.29556v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.29556.svg)](https://codeofpaper.com/paper/2605.29556)

Discussion