Research map / Large language models / Agents, code and math
Solver-Informed RL: Grounding Large Language Models for Authentic Optimization Modeling
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes SIRL, an RLVR framework where solver feedback (execution, feasibility, objective accuracy, .lp-based bonus) rewards LLMs for optimization modeling, plus an instance-enhanced self-consistency method for data synthesis and a Partial KL surrogate.
Problem
LLMs generating optimization models from natural language often produce non-executable, infeasible, or incorrect formulations, and offline SFT/preference methods do not guarantee functional correctness.
Approach
Use an optimization solver and the generated .lp file as verifiable reward sources for online RL (REINFORCE++ with a Partial KL penalty applied only to formulation and code segments), and use solver-derived instance features (objective value, direction, binary/integer counts) in a weighted self-consistency vote to build training data.
Key results
- SIRL-Qwen2.5-32B achieves 68.3% macro average accuracy across five benchmarks, above DeepSeek-V3.1 (65.0%), DeepSeek-R1 (64.6%) and OpenAI-o3 (57.1%).
- SIRL-Qwen2.5-7B reaches 60.6% macro average, above OptMATH-Qwen2.5-7B (55.4%) and ORLM-LLaMA-3-8B (46.4%).
- Instance-enhanced self-consistency improves over value-based voting, e.g. OptMATH 32B pass@10 rises from 27.5% to 34.2%.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| train with SIRL instead of existing offline-learning or agent-based approaches | Qwen2.5-7B · NL4OPT, MAMO Easy, MAMO Complex, IndustryOR, OptMATH | accuracy (pass@1) | Helped |
| train with SIRL rather than use the strongest reported baseline | Qwen2.5-32B · NL4OPT, MAMO Easy, OptMATH | accuracy (pass@1) | Helped |
| train with SIRL rather than use the strongest reported baseline | Qwen2.5-32B · MAMO Complex, IndustryOR | accuracy (pass@1) | Hurt |
| add instance-level optimization direction and variable-count consensus to value voting (ablation) | Qwen2.5 self-consistency · MAMO Complex, IndustryOR, OptMATH | accuracy: 29.9% vs 25.1%; 26.0% vs 25.0%; 13.0% vs 5.7% (7B val_sc@5 vs inst_sc@5) | Helped |
| add instance-level optimization direction and variable-count consensus to value voting (ablation) | Qwen2.5 self-consistency · NL4OPT, MAMO Easy, MAMO Complex, IndustryOR, OptMATH | accuracy: 69.0% vs 68.6% (7B NL4OPT @10); 72.2% vs 73.5% (32B NL4OPT @10) | Mixed |
| replace Partial KL with full-sequence KL regularization (ablation) | SIRL · MAMO Complex, IndustryOR, OptMATH | accuracy (pass@1): 51.7% -> 48.3%; 33.0% -> 30%; 30.5% -> 28.3% | Hurt |
| remove KL regularization (ablation) | SIRL · MAMO Complex, IndustryOR, OptMATH | accuracy (pass@1): 51.7% -> 47.3%; 33.0% -> 29%; 30.5% -> 29.5% | Hurt |
| use Stage-1 reward only, removing the Stage-2 bonus reward (ablation) | SIRL · NL4OPT | accuracy (pass@1): 96.3% -> 96.7% | Helped |
| use Stage-1 reward only, removing the Stage-2 bonus reward (ablation) | SIRL · MAMO Complex | accuracy (pass@1): 51.7% -> 46.8% | Hurt |
| use Stage-1 reward only, removing the Stage-2 bonus reward (ablation) | SIRL · OptMATH | accuracy (pass@1): 30.5% -> 28.9% | Hurt |
| use Stage-2 reward only, removing Stage-1 reward (ablation) | SIRL · NL4OPT | accuracy (pass@1): 96.3% -> 92.2% | Hurt |
| use Stage-2 reward only, removing Stage-1 reward (ablation) | SIRL · MAMO Complex | accuracy (pass@1): 51.7% -> 49.3% | Hurt |
Surprising findings
- Pure textual reasoning without solver execution yields very low accuracy (e.g., 1.4% on MAMO Complex for Qwen2.5-7B-Instruct), indicating solver use is essential.
- Removing KL regularization entirely lowers execution rate substantially (e.g., 87.0% vs 96.0% on IndustryOR), though it helps reasoning diversity.
Limitations
- Reward hacking persists according to the authors.
- Performance remains limited on harder benchmarks such as IndustryOR and OptMATH.
- Benchmark test sets were manually corrected by the authors, which may make comparisons with originally reported baselines inconsistent.
Experimental setup
Datasets: NL4OPT MAMO IndustryOR OptMATH synthetic OR-Instruct data from seed cases
Benchmarks: NL4OPT MAMO Easy MAMO Complex IndustryOR OptMATH
Metrics: pass@1 accuracy macro average execution rate
Baselines: GPT-4 DeepSeek-V3.1 DeepSeek-R1 OpenAI-o3 OptiMUS ORLM-LLaMA-3-8B LLMOpt-Qwen2.5-14B OptMATH-Qwen2.5-7B OptMATH-Qwen2.5-32B
Builds on: REINFORCE++ OR-Instruct (ORLM) GRPO-style RLVR self-consistency Verl
Closest papers by meaning
- $\mathcal{B}$-Coder: Value-Based Deep Reinforcement Learning for Program Synthesis (ICLR 2024 · similarity 0.89)
- Prompted Policy Search: Reinforcement Learning through Linguistic and Numerical Reasoning in LLMs (NeurIPS 2025 · similarity 0.88)
- Large Language Models as End-to-end Combinatorial Optimization Solvers (NeurIPS 2025 · similarity 0.88)
- SolverLLM: Leveraging Test-Time Scaling for Optimization Problem via LLM-Guided Search (NeurIPS 2025 · similarity 0.88)
- PEARL: Solver-in-the-Loop Interactive Optimization Modeling from Natural Language (NeurIPS 2026 · similarity 0.88)
- MM-OptBench: A Solver-Grounded Benchmark for Multimodal Optimization Modeling (NeurIPS 2026 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
