acceptodds
Published as a conference paper at NeurIPS 2026

From Expert Knowledge to Optimization Modeling: Prototype-Based Data Synthesis and Logical Reinforcement Learning

Bo Hu, Qingcan Kang, Qian Liu, Mingxuan Yuan

Abstract

Existing approaches to optimization modeling using large language models (LLMs) treat tasks through from-scratch construction, generating variables, objectives, and constraints without leveraging reusable structural knowledge. However, in real-world scenarios, expert modelers typically begin by identifying the canonical type or core structure of a problem, followed by iterative refinements based on specific task requirements. To incorporate this expert incremental logic, we propose a novel two-stage framework. In the first stage, we conduct Logic-Anchored Data Synthesis starting from 17 canonical prototypes, preserving critical bottleneck constraints and generating synthetic problem–formulation pairs. These pairs, together with the OR-Instruct dataset, are used for supervised fine-tuning (SFT) to initialize a policy. Separately, for each generated problem, we produce multiple modeling trajectories that follow a prototype-grounded order with variables preceding expressions. These trajectories are ranked according to criteria of accuracy and efficiency, and subsequently used to train a Logical Reward Model (LRM). In the second stage, we introduce Logic-Test-Time Group Relative Policy Optimization (Logic-TGRPO), which leverages the LRM during test-time reinforcement learning to reward accurate prototype identification and disciplined structural adherence while penalizing illogical patterns. Evaluated across seven benchmarks, our 8B parameter model achieves an average accuracy of 79.9%, outperforming comparably scaled baselines and competing effectively with heavyweight multi-agent systems with far fewer parameters. Strong performance on out-of-distribution tasks confirms that the model exhibits genuine incremental reasoning rather than mere memorization. Ablation studies further validate that both stages in our framework are essential.

Keywords:
Sydney

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 3 reviews, above 17% of the others.
Reviewer_sRoTOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
2
Quality
2
Significance
2
Read review
Summary

This paper studies the use of LLMs to automate Optimization Modeling, namely generating mathematical models and gurobipy code from natural-language problem descriptions. The core method is a two-stage framework. The paper claims that its 8B model achieves an average solution accuracy of 79.9% across seven OR modeling benchmarks, outperforming comparably scaled baselines and approaching the performance of multi-agent/tree-search systems.

Strengths and weaknesses

Strengths

  1. The core intuition of the paper is reasonable: human modelers often first identify the problem prototype, then inherit the core constraint structure and incrementally modify it. Explicitly injecting this prototype-first modeling process into data synthesis and the RL reward is an effective approach.
  2. The paper covers seven benchmarks and compares against both single-pass fine-tuned/RL baselines and multi-agent/tree-search baselines, resulting in a relatively broad experimental scope.
  3. The paper is generally well-structured.

Weaknesses

  1. The paper repeatedly claims that the model exhibits “genuine incremental reasoning rather than mere memorization,” but the experiments do not substantiate this claim. The results only show improved benchmark accuracy, without directly demonstrating whether the model truly reasons through prototype identification and incremental derivation.
  2. From the perspective of evaluation validity, the “unlabeled test-time reinforcement learning” setting is not sufficiently discussed. The paper states that Logic-TGRPO performs test-time reinforcement learning on an unlabeled dataset, and that this dataset contains “synthetic data and raw unlabeled problems.” This raises an important question: what is the relationship between the unlabeled RL dataset and the benchmark distributions? If the model has adapted to in-domain unlabeled instances, then its post-adaptation performance cannot be directly compared with standard zero-shot or fixed-model baselines.
  3. The ablation studies do not sufficiently support the authors’ strong conclusions. In the SFT phase, the AVG of the Full Combined setting is 68.7, whereas removing the Problem Synthesis Prototype yields 69.5 and removing the Solution Synthesis Prototype yields 70.2, both of which are higher. This is inconsistent with the claim that “dual anchors are indispensable.” In the Logic-TGRPO phase, removing Rproto still gives an AVG of 79.9, the same as the Full model, and even performs better on ComplexOR and IndustryOR. Therefore, the necessity of Rproto has not been demonstrated.
  4. A more serious limitation of the paper is that the framework may encode a rigid taxonomy, biasing the model toward forcing each problem into one of the 17 categories, even when a hybrid or atypical formulation is needed. Another limitation is its reliance on external LLM-as-a-judge rewards, which may introduce hidden failure modes and vendor dependence.
Questions

See Weaknesses

Limitations

yes

Paper formatting concerns

None

Final justification

The response addresses several of my concerns, so I have increased my score.

Reviewer_ZyC7OpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper studies optimization modeling with LLMs. Instead of treating each problem as a from-scratch formulation task, it proposes to inject expert modeling knowledge through canonical optimization prototypes. The method first builds a logic-anchored synthetic dataset from 17 expert-curated prototypes and uses it for supervised fine-tuning. It also trains a Logical Reward Model to evaluate prototype identification, structural order, execution correctness, semantic alignment, and efficiency.

Strengths and weaknesses

I find the problem setting interesting and practically relevant. Incorporating expert modeling logic into LLM-based optimization modeling is a meaningful direction, especially because human modelers often start from canonical problem structures rather than generating formulations entirely from scratch. However, I have several concerns.

  1. The method relies heavily on the manually curated prototypes. I am not sure how the results would change if the prototype library were less complete, more fine-grained, or organized differently. Since these prototypes provide the main structural prior, I would like to see stronger evidence that the method can generalize beyond this specific prototype library.
  2. The ablation results do not fully support all component claims. For example, removing some prototype-related components does not always reduce the average performance. This makes it less clear whether all proposed components are truly necessary.
Questions
  1. How sensitive is the method to the choice and coverage of the manually curated prototype library?
  2. Can you provide stronger evidence that the method generalizes beyond the current 17 prototypes?
  3. Why do some prototype-related ablations not clearly reduce the average performance?
Limitations

yes

Paper formatting concerns

No major formatting concerns noted.

Reviewer_qkrNOpenReview ↗
Rating
4
Clarity
4
Confidence
4
Originality
2
Quality
3
Significance
3
Read review
Summary

This paper addresses the problem of automated optimization modeling (OM) using large language models. The authors propose a two-stage framework that injects expert incremental modeling logic into LLMs. In the first stage, they perform Logic-Anchored Data Synthesis starting from 17 canonical OR prototypes, generating synthetic problem-formulation pairs and preference-ranked modeling trajectories. These are used for supervised fine-tuning (SFT) and for training a Logical Reward Model (LRM). In the second stage, they introduce Logic-Test-Time Group Relative Policy Optimization (Logic-TGRPO), which leverages the LRM during test-time reinforcement learning to reward correct prototype identification, disciplined structural order, and execution efficiency. The 8B parameter model achieves 79.9% average accuracy across seven OR benchmarks, outperforming comparably scaled baselines and rivaling heavyweight multi-agent systems with significantly fewer parameters. The paper demonstrates strong performance on out-of-distribution tasks and provides comprehensive ablation studies validating both stages of the framework.

Strengths and weaknesses

Strengths

1. The prototype-grounded formulation addresses a real and underappreciated problem.

Most existing LLM-based OR modeling work treats each problem as an independent generation task, which ignores the fact that expert practitioners almost never model from scratch—they recognize familiar structure and adapt it. This paper makes that cognitive pattern explicit and trainable. The decision to anchor synthesis around 17 canonical prototypes is a concrete operationalization of that insight, not just a vague appeal to "structured reasoning."

2. The reward design goes beyond execution correctness.

A natural baseline for this kind of RL-based approach would be to reward only whether the generated model solves correctly. The authors instead decompose the reward into prototype identification, structural ordering, and execution—which means the policy receives a training signal even when the final output fails. The preference-ranked trajectory data feeding into the LRM is particularly well-suited to OR modeling, where the path to a correct formulation matters as much as the formulation itself.

3. The efficiency gains are credible and the OOD results hold up under scrutiny.

The 56% inference speedup over OptiTree-style search is not a minor implementation detail—it reflects a fundamental difference in how the model navigates the solution space. More importantly, the performance on ComplexOR and IndustryOR does not collapse relative to in-distribution benchmarks, which is the more telling test: a model that memorizes prototype mappings would degrade sharply on structurally unfamiliar problems, and that does not appear to be happening here.

Weaknesses

1. Non-uniform Gains and Performance Regression from Synthetic Data

While the full Logic-TGRPO outperforms the variant without synthetic data (79.9% vs. 78.3% on average), the improvement is marginal (+1.6%) and far from consistent across benchmarks. Critically, introducing the prototype-anchored synthetic data causes performance regression on simpler tasks: accuracy drops from 94.3% to 93.8% on MAMO EasyLP, and from 98.9% to 97.2% on NLP4LP. This suggests that the synthesized data, while beneficial for complex structured problems (e.g., +9.0% on MAMO ComplexLP), introduces an inductive bias that can mislead the model on standard linear programming tasks, undermining the claim of universal robustness. The authors should discuss why the "expert structural logic" sometimes hurts performance on simpler instances.

2. Critical Sampling Hyperparameters Are Not Specified

The paper completely omits the sampling temperature and top-p parameters used during both the RL sampling phase (Logic-TGRPO) and inference generation. Given that Group Relative Policy Optimization (GRPO) relies heavily on stochastic sampling to explore diverse reasoning trajectories, the absence of these hyperparameters severely hampers reproducibility. Without specifying these values (and preferably providing an ablation on their sensitivity), other researchers cannot faithfully replicate the policy optimization process, as the exploration-exploitation trade-off remains undefined.

3. Overlooked Confounding Effect of Qwen3-8B's Native Reasoning Capabilities

The authors treat Qwen3-8B as a generic base model, yet Qwen3-8B is inherently a reasoning-optimized model with a built-in "thinking mode." The paper fails to provide a baseline that activates this native thinking mode without any SFT or RL intervention. As a result, the impressive improvements (e.g., 55.6% zero-shot to 74.8% SFT+Thinking) may be largely attributed to Qwen3's intrinsic reasoning engine rather than the proposed Logic-Anchored SFT. Furthermore, the paper does not investigate whether forcibly injecting SFT and overriding the prompt template (as shown in Appendix C.2) conflicts with Qwen3's pre-trained chat/inference format, potentially causing catastrophic forgetting of its native reasoning abilities. A "Qwen3-8B (Thinking-only, No SFT)" baseline is essential to accurately quantify the net contribution of the authors' framework.

Questions
  1. Prototype Coverage and Generalization: The method relies on 17 manually curated prototypes. How would the framework perform on problems that genuinely do not fit any of these prototypes or require a composition of multiple prototypes (e.g., a hybrid of resource allocation and network flow)? Is there a mechanism to handle such cases gracefully, or would the model fall back to from-scratch construction? In the current formulation, if the LRM cannot match a problem to any prototype, R_proto = 0, which effectively penalizes the output. Could this discourage the model from attempting novel problems? A sensitivity analysis or qualitative examples of handling out-of-prototype problems would be very informative.

  2. Synthetic Data Scale Sensitivity: The SFT phase uses only 100 heavily curated synthetic samples. Was there a systematic exploration of how the number of synthetic samples affects downstream performance? Is 100 an optimal choice based on a hyperparameter sweep, or was it determined by computational constraints? If you had generated 500 or 1000 samples, would performance continue to improve, or would it saturate or even degrade due to noise? This information would help practitioners understand the data efficiency of the approach.

  3. LRM Training Data and Evaluation: The paper states that the LRM is trained "using execution traces derived from public OR datasets." Could you provide more specifics about the size, composition, and diversity of this training data? Additionally, both R_semantic and R_proto are evaluated using GPT-5-mini as a judge. Have you conducted any human evaluation or validation to confirm that the judge's assessments align with human expert judgments? This is important because any systematic biases in the judge could propagate to the LRM and ultimately to the policy.

  4. Distributional Relationship between Synthetic and Test Data: The paper qualitatively demonstrates semantic diversity of the synthetic data via t‑SNE visualization (Figure 2b) and claims strong performance on “out‑of‑distribution” tasks. However, the paper does not provide any quantitative metrics (e.g., MMD, classifier AUC, KL divergence) to measure the distributional distance between the synthetic data and each test benchmark, nor does it clearly define what constitutes “in‑distribution” versus “out‑of‑distribution.” This makes it difficult for readers to understand in what sense ComplexOR and IndustryOR are considered “out‑of‑distribution”—whether due to different problem structures, domains, complexity, or other factors. I suggest the authors supplement: (a) quantitative distribution distance metrics between the synthetic data and each test set; and (b) a performance analysis stratified by the degree of prototype matching, showing the performance difference on problems that match versus do not match the prototypes, to more convincingly support the claim of out‑of‑distribution generalization.

Limitations

The paper acknowledges the constraint of 17 fixed prototypes and outlines reasonable future directions, but leaves two substantive gaps unaddressed. First, the out-of-distribution claims rest entirely on t-SNE visualizations—no quantitative distribution distance metrics are provided, making it unclear whether ComplexOR and IndustryOR are genuinely out-of-distribution or merely structurally adjacent to the training prototypes. Second, the LLM-as-judge setup for R_semantic and R_proto carries well-known risks (positional bias, verbosity preference) that go unacknowledged; since the LRM is trained directly on these judgments, any systematic bias in the judge will propagate into the reward signal and shape the final policy. Both issues are worth addressing explicitly.

Paper formatting concerns

No major formatting issues detected.

Final justification

The issues have been clarified, and the limitations have been acknowledged.

Comments on the paper

1 comment
Meta-review

The paper proposes injecting expert structural knowledge into LLM-based optimization modeling via 17 canonical prototypes, with a two-stage SFT+RL pipeline. Empirically, they show that their method outperforms baselines. The core intuition—that expert modelers recognize familiar problem structures rather than formulate from scratch—is well-motivated. The reward decomposition (prototype identification, structural ordering, execution) provides richer signals than simple correctness. However, the prototype taxonomy is manually curated and may not generalize to hybrid/novel problems. The LLM-as-judge pipeline contains bias. Ablations show uneven gains for some prototype components, and evidence for "incremental reasoning". After rebuttal, the authors addressed the main concerns: prototype sensitivity experiments, quantitative OOD metrics, recomputed ablations, clarified test-time adaptation setting, and the missing no-adaptation baseline. All three reviewers raised their scores. Overall, the paper offers a useful direction with solid empirical results. Remaining limitations are acknowledged and reasonable for this stage. I recommend accept.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.