EvoOptiGraph: Weakness-Driven Coevolution via Graph-Based Structural Generation for Optimization Modeling

Qingcan Kang, Mingyang Liu, Xiaojin Fu, Shixiong Kai, Tao Zhong, Mingxuan Yuan

TL;DR

EvoOptiGraph introduces a closed-loop coevolution framework that automatically improves large language models (LLMs) for optimization modeling by generating training data tailored to the model's current structural weaknesses. By representing linear programs as graphs and applying genetic algorithms, it creates diverse, verified training instances that push an 8B model to outperform state-of-the-art generalist models like DeepSeek-V3 and GPT-4o.

What Problem Does This Paper Address?

Optimization modeling—the process of translating a natural language description of a business or engineering problem into formal mathematical constraints and solver code (like Gurobi)—is a massive bottleneck in operations research. While LLMs show promise in code generation, they struggle with the strict, formal logic required for mathematical programming.

The authors identify two primary limitations in current approaches:

  1. Lack of Structural Diversity: Existing synthetic datasets mainly vary text phrasing or numerical coefficients within fixed templates, failing to introduce novel mathematical structures.
  2. Static Training Pipelines: Data generation and model training are typically decoupled. Models are trained on a frozen dataset, making it impossible to target the specific structural blind spots where a model repeatedly fails.

Methods

To bridge this gap, the authors introduce EvoOptiGraph, a framework that unifies data synthesis and model training into a dynamic, closed loop.

Figure 1: Weakness-Guided Data–Model Coevolution Framework.

The method relies on four key pillars:

  • Graph-Based Representation: Instead of mutating text, EvoOptiGraph represents Mixed-Integer Linear Programs (MILPs) as attributed bipartite graphs. Nodes represent variables and constraints, while edges represent mathematical coefficients.
  • Controllable Data Evolution: The framework applies validity-preserving genetic operators (crossover and mutation) directly to these graphs to generate structurally novel problems. These graphs are then compiled into executable code and back-translated into natural language using an LLM with a multi-stage verification pipeline.
Figure 2: Crossover and mutation example. (a) Production scheduling; (b) knapsack; (c) hybrid after crossover (C); (d) mutated from C (C’, capacity 100→90). Red highlight indicates mutation.
  • Structural Weakness Analysis: The model is evaluated on a validation set. Graph-derived features (size, sparsity, coefficient statistics) are fed into an XGBoost classifier to predict model failures. SHAP (SHapley Additive exPlanations) values are extracted to create a "weakness profile" indicating which structural patterns cause the model to trip up.
  • Model Evolution via RLVR: This weakness profile updates the fitness function of the genetic algorithm, biasing the next generation of data toward the model's blind spots. The model is then updated via Reinforcement Learning with Verifiable Rewards (RLVR) using Group-Relative Policy Optimization (GRPO), where rewards are directly tied to whether the generated code compiles and yields the correct mathematical solution.

Datasets

The framework was evaluated across six prominent public Operations Research (OR) benchmarks:

  • NL4Opt: Linear programming problems from a well-known competition.
  • MAMO (split into EasyLP and ComplexLP): A mathematical modeling benchmark.
  • NLP4LP: Human-authored LP and MILP problems covering classical OR domains.
  • ComplexOR: Conceptually difficult, large-scale MILP problems requiring multi-step reasoning.
  • IndustryOR: Real-world optimization problems drawn from manufacturing, logistics, finance, and energy.

The authors utilized cleaned versions of these datasets to ensure reliable evaluation.

Key Insights and Ideas

  • Structure over Syntax: Mutating the underlying mathematical graph structure creates far more diverse and robust training data than simply rewriting text descriptions or perturbing numerical coefficients. EvoOptiGraph achieved a structural diversity score significantly higher than prior template-based methods.
  • Coevolution Beats Static Datasets: Training a model on a static dataset eventually leads to saturation or overfitting. By dynamically shifting the training data distribution to match the model's evolving failure modes, the model continues to learn across multiple rounds.
  • Data Quality Trumps Parameter Scale: A targeted 8B parameter model trained via coevolution can systematically outperform massive generalist models (like the 671B DeepSeek-V3) on domain-specific formal reasoning tasks.

Key Results

  • State-of-the-Art Performance: EvoOptiGraph (built on a Qwen3-8B backbone) achieved a macro-average Pass@1 accuracy of 78.1% across all six benchmarks.
  • Outperforming Giants: It significantly outperformed closed-source generalists like GPT-4o (68.0%) and massive open-source models like DeepSeek-V3 (73.3%), as well as specialized agentic frameworks like OptiMUS-v0.3 (70.1%).
Table 1: The overall performance of EvoOptiGraph and baselines with Pass@1 accuracy (%) on six OR benchmarks. Scores cited from original publications are marked with the symbol (*), while missing entries are denoted with (-). Best results are highlighted in bold and the second-highest values are underlined.
  • Ablation Validation: The two-stage training scheme proved vital: an SFT-only baseline dropped average performance by 9.6%, while an RL-only approach dropped it by 14.7%, proving that both the initial warm-up and the weakness-driven RL loop are necessary for stability and success.

Limitations and Future Work

  • Scope of Optimization: The current framework is strictly limited to Mixed-Integer Linear Programs (MILPs) and relies on the availability of initial expert-designed seed generators.
  • Computational Expense: Verifying generated instances via commercial solvers (like Gurobi) becomes computationally expensive as problem sizes scale up.
  • Interpretability: The weakness vector acts as a practical prioritization signal for data generation, but it provides a statistical correlation rather than a true causal explanation of model failure.

Future Directions: The authors suggest extending the framework to broader optimization classes (e.g., non-linear programming) and studying how weakness signals might transfer across different problem families.

Summary updated

BibTeX
@inproceedings{kang2026evooptigraph,
  author = {Qingcan Kang and Mingyang Liu and Xiaojin Fu and Shixiong Kai and Tao Zhong and Mingxuan Yuan},
  title = {{EvoOptiGraph: Weakness-Driven Coevolution via Graph-Based Structural Generation for Optimization Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=45RetuO3zX},
}
Figure