atlas

Research map / Large language models / Agents, code and math

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

NeurIPS 2025 · Large language models › Agents, code and math · approach: LLMs for optimization and heuristics · 2 citations (OpenAlex)

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

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train with SIRL instead of existing offline-learning or agent-based approachesQwen2.5-7B · NL4OPT, MAMO Easy, MAMO Complex, IndustryOR, OptMATHaccuracy (pass@1)Helped
train with SIRL rather than use the strongest reported baselineQwen2.5-32B · NL4OPT, MAMO Easy, OptMATHaccuracy (pass@1)Helped
train with SIRL rather than use the strongest reported baselineQwen2.5-32B · MAMO Complex, IndustryORaccuracy (pass@1)Hurt
add instance-level optimization direction and variable-count consensus to value voting (ablation)Qwen2.5 self-consistency · MAMO Complex, IndustryOR, OptMATHaccuracy: 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, OptMATHaccuracy: 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, OptMATHaccuracy (pass@1): 51.7% -> 48.3%; 33.0% -> 30%; 30.5% -> 28.3%Hurt
remove KL regularization (ablation)SIRL · MAMO Complex, IndustryOR, OptMATHaccuracy (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 · NL4OPTaccuracy (pass@1): 96.3% -> 96.7%Helped
use Stage-1 reward only, removing the Stage-2 bonus reward (ablation)SIRL · MAMO Complexaccuracy (pass@1): 51.7% -> 46.8%Hurt
use Stage-1 reward only, removing the Stage-2 bonus reward (ablation)SIRL · OptMATHaccuracy (pass@1): 30.5% -> 28.9%Hurt
use Stage-2 reward only, removing Stage-1 reward (ablation)SIRL · NL4OPTaccuracy (pass@1): 96.3% -> 92.2%Hurt
use Stage-2 reward only, removing Stage-1 reward (ablation)SIRL · MAMO Complexaccuracy (pass@1): 51.7% -> 49.3%Hurt

Surprising findings

Limitations

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

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy