Harnessing Language Models as Optimization Modeling Agents

cs.AI Yunxiang Luo, Xin Xu, Tianhao Chen, Zhixi Xiong, Peiqi Jiang, Fan Zhang, Wei Shao, Xuejian Gao, Yuwei Fan, Can Yang · Oct 22, 2026
Local to this browser
What it does
This paper tackles the challenge of translating natural-language optimization problems into correct, executable solver programs using frozen LLMs. It introduces OptiCycle, a lightweight inference harness that iterates code generation,...
Why it matters
It introduces OptiCycle, a lightweight inference harness that iterates code generation, execution, and repair in a persistent Python state, and OptiState, which adds an explicit five-element revisable formulation. Across nine benchmarks...
Main concern
The paper makes a strong, well-controlled empirical argument that inference-time execution loops can dominate both task-specific architectures and additional training for optimization modeling. By fixing the backbone and grading protocol...
Community signal
0
0 up · 0 down
Sign in to vote with arrows
AI Review AI reviewed
Plain-language introduction

This paper tackles the challenge of translating natural-language optimization problems into correct, executable solver programs using frozen LLMs. It introduces OptiCycle, a lightweight inference harness that iterates code generation, execution, and repair in a persistent Python state, and OptiState, which adds an explicit five-element revisable formulation. Across nine benchmarks spanning 2,634 problems and 11 Qwen variants, execution-guided revision produces broad accuracy gains and outperforms heavier multi-agent workflows and post-trained specialist models without any parameter updates, though the extra formulation structure helps only some backbones.

Critical review
Verdict
Bottom line

The paper makes a strong, well-controlled empirical argument that inference-time execution loops can dominate both task-specific architectures and additional training for optimization modeling. By fixing the backbone and grading protocol while varying only the harness, the authors obtain credible gains and are careful to note where their claims stop. The work is practically motivated and methodologically transparent about its limitations.

“OptiCycle improves Qwen3.5-9B macro accuracy by 18.74 percentage points over Direct Generation.”
paper · Section 1
“These comparisons share the backbone and evaluation protocol while retaining method-specific inference budgets.”
paper · Section 1
What holds up

The unified harness abstraction cleanly separates model capabilities from inference procedure, and the experimental design keeps model weights, benchmarks, and grading constant. The gains from executable interaction are large and consistent: OptiCycle raises macro accuracy by up to 49.46 percentage points over direct generation and achieves 65.21% on Qwen3.5-9B, exceeding the strongest competing baseline by 4.29 points while using fewer tokens. The cost analysis adds practical value, showing OptiCycle consumes 11.77k tokens per trajectory versus 14.54k for Reflexion and 34.38k for AutoFormulation.

“Our results show that execution-guided revision consistently improves macro accuracy over direct generation for all evaluated models, with gains of up to 49.46 percentage.”
paper · Abstract
“It uses 11.77 thousand input plus output tokens per trajectory, versus 14.54 for Reflexion, 31.60 for OptiMUS, and 34.38 for AutoFormulation.”
paper · Section 4.4
Main concerns

The value of OptiState’s explicit formulation state is erratic and not well explained: Qwen3-14B, Qwen3-8B, and Qwen3.6-27B show little to no macro gain over OptiCycle, and some backbones lose accuracy on individual benchmarks like ComplexOR and OptMath. The authors describe this as model-dependent but offer no mechanistic diagnosis. The evaluation metric is also narrow—correctness is judged solely by objective-value agreement or infeasible/unbounded status, ignoring constraint satisfaction, decision-vector feasibility, and formulation equivalence.
The comparisons further mix method-specific inference budgets rather than matched steps or tokens. The authors concede that matched-budget ablations are still needed to isolate the value of individual components, which weakens cost-adjusted conclusions.

“Explicit formulation state provides further but model-dependent improvements, suggesting that additional structure is not universally beneficial.”
paper · Abstract
“our evaluation uses objective-value or status agreement as a common outcome-level measure across benchmarks. Extending verification to decision-vector feasibility, constraint satisfaction, and formulation equivalence would provide a more comprehensive assessment of modeling correctness.”
paper · Limitations
“matched-budget ablations, trajectory-level repair analysis, and latency measurements can further clarify the contributions and costs of individual components.”
paper · Limitations
Evidence and comparison

The core evidence—that executable interaction beats direct generation and six adapted agent baselines under shared backbones—is solid and clearly tabulated. However, the comparison with post-trained specialist models in Figure 4 mixes different families and sizes, making it illustrative rather than rigorous. The claim that formulation state is selectively beneficial is fair given the mixed per-benchmark results, yet the paper does not ablate the initial formulation call from the revisable workspace itself, so it is unclear which sub-component drives the gains on the subset of models that do improve.

“Both OptiCycle and OptiState achieve higher macro accuracy than all six adapted baselines on Qwen3-4B and Qwen3.5-9B (Table 1).”
paper · Section 4.3
Reproducibility

Sampling hyperparameters, model lists, and solver environments are documented, but the exact system prompts, feedback summarization rules, state-editing instructions, and controller logic are not released in the manuscript. The authors note that configuration revisions differ across model generations, implying that prompts were hand-tuned per family. Without code or templates, independent reproduction would require substantial guesswork. On the positive side, the authors report missing scores, timeout exceptions, and scoring rules transparently.

“Configuration revisions differ across model generations, so these results characterize the evaluated model–harness settings.”
paper · Limitations
“All model calls, including individual stages of the baseline workflows, use a maximum output length of 16,384 tokens.”
paper · Appendix A.1
Abstract

Large language models (LLMs) can translate natural-language optimization problems into solver programs, but reliably producing correct formulations and implementations remains challenging. Existing approaches improve optimization modeling through agentic workflows or task-specific post-training. This raises a practical question: can a lightweight harness using a single model role achieve competitive performance without additional training? We introduce OPTICYCLE and OPTISTATE, two lightweight inference harnesses for optimization modeling, and evaluate them on nine benchmarks comprising 2,634 problems using 11 Qwen variants spanning 0.6B-27B parameters. Our results show that execution-guided revision consistently improves macro accuracy over direct generation for all evaluated models, with gains of up to 49.46 percentage points. Despite their simplicity, both harnesses outperform six adapted agentic workflows in same-model comparisons and four evaluated post-trained optimization models at comparable model sizes, without additional training. Explicit formulation state provides further but model-dependent improvements, suggesting that additional structure is not universally beneficial.

Challenge the Review

Pick a starting point or write your own. Challenges run in the background, so you can keep reading while the AI investigates.

No challenges yet. Disagree with the review? Ask the AI to revisit a specific claim.