Draft-and-Audit Reinforcement Learning for Optimization Modeling

Zeping Min, Weihang Xu, Zhengzhong You, Wotao Yin, Xinshang WangICML 2026

Translating natural language into executable mathematical models—a task known as Natural Language to Optimization (NL2Opt)—is a critical frontier for AI in operations research. However, this task is plagued by a unique challenge: silent modeling failures. Unlike standard coding tasks where bugs often result in syntax errors or crashes, optimization models with incorrect logic (e.g., a missed constraint or a flipped inequality) will often execute perfectly and return a plausible, yet entirely incorrect, numerical answer.

Because these errors are virtually undetectable by standard execution feedback, they pose a severe risk to downstream decision-making. To address this, researchers have introduced Draft-and-Audit Reinforcement Learning (DA-RL), a novel framework that teaches Large Language Models (LLMs) to internalize self-correction and audit their own mathematical formulations.

The Limitations of Current Approaches

Existing solutions to NL2Opt typically rely on complex "agentic scaffolds" or external solver feedback to guide the model toward correct formulations. However, these methods have significant drawbacks:

  1. They often fail to catch subtle, silent logic errors that do not trigger solver crashes.
  2. The corrections do not "stick" to the model's internal weights, meaning the model relies entirely on inference-time crutches rather than genuinely learning the optimization domain.

The DA-RL Framework: Draft, Audit, and Synergize

DA-RL treats optimization modeling as a strict, two-turn interactive workflow:

  • Turn 1 (Drafting): The model generates a complete initial solver program based on the natural language problem prompt.
  • Turn 2 (Auditing): The model is fed its own draft alongside a fixed audit rubric. This rubric prompts the model to check for constraint completeness, parameter consistency, and variable domains. The model then produces a revised, final version of the code.

The Secret Sauce: Terminal-Only Verification

Unlike traditional multi-turn reinforcement learning that provides intermediate rewards, DA-RL employs terminal-only verification using Proximal Policy Optimization (PPO). The model receives absolutely no feedback between turns; the solver is only run on the final audited program, and the reward is based strictly on whether the final answer matches the ground truth.

Because the model's parameters are shared across both turns and the reward is terminal, the LLM develops a powerful cross-turn synergy. It learns that to maximize its reward, it must not only become a meticulous auditor but also a "helpful" drafter. The model begins generating Turn 1 drafts that are structurally organized to be easily verifiable and repairable in Turn 2.

Key Insights and Performance

The researchers evaluated DA-RL across five diverse optimization benchmarks (NL4Opt, MAMO-Easy, MAMO-Complex, IndustryOR, and OptMATH-Bench) using a strict 80/20 public-benchmark split to ensure true generalization.

  • Outperforming Frontier Models: Using a relatively small Qwen2.5-7B-Instruct base model, DA-RL achieved a Macro Average accuracy of 68.1%. On structured benchmarks like MAMO-Complex, the 7B model dramatically outperformed much larger frontier models, scoring 84.5% compared to Claude 3.5 Sonnet's 50.4%.
  • Eradicating Silent Failures: The audit process proved exceptionally effective at catching silent errors. In the MAMO-Complex dataset, silent modeling failures dropped from 32.6% in the draft phase to 0.0% after the audit.
  • Conservative, High-Yield Repairs: The trained auditor learns to be surgical. Instead of rewriting the entire program and risking new bugs, it intervenes only when a clear rubric violation is found. This resulted in an absolute accuracy gain (Net Lift) of up to 14% on complex problems, with a remarkable 0% regression rate—meaning the audit phase almost never broke a draft that was already correct.
  • Audit-Friendly Drafts: Turn 1 drafts generated by the DA-RL model were significantly stronger than those produced by a standard single-turn RL model, proving that the model successfully "sets itself up for success."

Limitations and Future Directions

While DA-RL represents a major leap forward for NL2Opt, the authors note a few remaining hurdles:

  • Format Drift: The primary cause of remaining failures is when the auditor identifies a bug but returns the corrected code wrapped in conversational prose rather than a clean, executable code block.
  • Sparse Rewards at Scale: Expanding the workflow beyond two turns makes the terminal reward too sparse, complicating the model's ability to attribute success to specific actions.
  • Complex Mathematical Notation: The model still struggles with benchmarks heavily reliant on dense mathematical notation (like OptMATH-Bench), indicating a need for improved domain-to-symbol mapping capabilities.

Ultimately, DA-RL demonstrates that forcing an LLM to internalize a self-correction rubric via terminal-only reinforcement learning is a highly effective strategy for eliminating silent failures in mathematical optimization.

Summary updated

BibTeX
@inproceedings{min2026draft,
  author = {Zeping Min and Weihang Xu and Zhengzhong You and Wotao Yin and Xinshang Wang},
  title = {{Draft-and-Audit Reinforcement Learning for Optimization Modeling}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=3rzJANFrMp},
}
Figure