NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Solver-Informed RL: Grounding Large Language Models for Authentic Optimization Modeling

Yitian Chen, Jingfan Xia, Siyu Shao, Dongdong Ge, Yinyu Ye

Introduction

Mathematical optimization modeling is a cornerstone of industrial logistics and financial planning, yet translating natural language descriptions into executable code remains a significant challenge. While Large Language Models (LLMs) excel at general coding tasks, they often fail to "ground" their reasoning in the strict mathematical requirements of solvers, leading to hallucinations or infeasible models. This paper introduces Solver-Informed Reinforcement Learning (SIRL), a framework designed to bridge this gap by using mathematical solvers as verifiable reward oracles.

Methodology

Instance-Enhanced Self-Consistency

To generate high-quality training data, the authors developed a robust filtering mechanism. Instead of relying solely on final numerical answers, they extract structural metadata from .lp files—the standard intermediate format for solvers. By comparing variable counts, objective directions, and constraint types across multiple model iterations, the system can distinguish between truly correct models and "lucky" guesses that happen to yield the right answer.

Solver-Informed Reinforcement Learning (SIRL)

The core of the approach is a Reinforcement Learning with Verifiable Rewards (RLVR) loop. The model's output is directly executed in a solver, providing an objective reward signal.

The Solver-Informed Reinforcement Learning (SIRL) framework utilizes solver feedback and a Partial KL regularization strategy.

The SIRL process incorporates two key innovations:

  1. Staged Rewards: The model is incrementally rewarded for syntax/execution (Stage 1) and then for advanced modeling logic like Big-M formulations (Stage 2).
  2. Partial KL Divergence: To balance exploration and stability, the authors omit the KL penalty during the "reasoning" phase (the <think> block) while strictly enforcing it during the "modeling" phase. This allows the model to explore diverse logical paths while remaining syntactically disciplined.

Experimental Setup

The framework was evaluated across several diverse benchmarks:

  • NL4OPT & MAMO: Covering linear and mixed-integer linear programming tasks.
  • IndustryOR: 100 real-world industrial optimization scenarios.
  • OptMATH: Complex problems involving Second-Order Cone Programming (SOCP) and Nonlinear Programming (NLP).

Key Results

The SIRL-32B model demonstrates superior performance compared to much larger proprietary models.

Performance comparison of SIRL models against state-of-the-art baselines across multiple optimization benchmarks.

As shown in the results table, SIRL-32B achieved a 68.3% Macro Average accuracy, outperforming DeepSeek-V3 (65.0%) and OpenAI-o3 (57.1%). Notably, on the challenging OptMATH benchmark, SIRL-32B reached 45.8% accuracy, a nearly 3x improvement over the base Qwen2.5-32B-Instruct model (16.6%). These results suggest that grounding LLMs via solver feedback is more effective than simple scale or standard supervised fine-tuning.

Conclusion

SIRL effectively addresses the grounding problem in optimization modeling by treating solvers as objective truth-tellers. By combining verifiable rewards with a novel Partial KL regularization, the framework enables smaller models to rival or exceed the performance of industry giants. Future work will address "reward hacking" and improve performance on long-context industrial dependencies.

Summary updated

BibTeX
@inproceedings{chen2025solver,
  author = {Yitian Chen and Jingfan Xia and Siyu Shao and Dongdong Ge and Yinyu Ye},
  title = {{Solver-Informed RL: Grounding Large Language Models for Authentic Optimization Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=80L235oVBe},
}
Figure