A$^{2}$utoLPBench: An Auto-Generated, Agent-Friendly LP Benchmark via Inverse-KKT Construction

Shuo Ren, Yaohui Han, Yifan Shi, Libo Shen, Haodong Lu, Dongfang Wu, Rongliang Fu, Bei Yu, Tsung-Yi HoarXiv 2026

TL;DR

A$^2$utoLPBench shifts linear programming (LP) evaluation from static, hand-labeled datasets to an automated, infinite generator using inverse Karush-Kuhn-Tucker (KKT) conditions. By constructing problems backward from a known optimal point, it delivers mathematically certified ground truths and parametrically adjustable difficulty levels. It also provides a turnkey, agent-friendly Docker environment and a dual-agent solver-critic baseline to robustly evaluate LLM agents without risk of data contamination.

What Problem Does This Paper Address?

Evaluating Large Language Model (LLM) agents on complex reasoning tasks like Linear Programming (LP)-from-text requires high-quality benchmarks. However, existing benchmarks (such as NL4OPT and MAMO) suffer from four structural limitations:

  1. High Cost & Limited Scale: They rely on human authors and annotators, making them expensive and small.
  2. Data Contamination: Once a static dataset is published, it inevitably leaks into the training data of future LLMs, turning capability tests into mere memorization checks.
  3. Fixed Difficulty: The difficulty distribution is frozen at release time and cannot adapt as models improve.
  4. Lack of Agent Infrastructure: Evaluation often requires manual intervention or custom, paper-specific harnesses rather than an out-of-the-box environment for autonomous agents.
Figure 1: Construction pipelines compared and the motivation of the A2utoLPBench. Left: tradi- tional LP benchmarks require three coordinated human roles (Teacher / Student / Coder). Right: A2utoLPBench replaces them with an inverse-KKT routine, an LLM-driven Natural Language (NL) drafter, and an automation layer that streams instances at any seed and dimension, removing per-item human labor and making the supply and the difficulty distribution programmable.

Methods

The authors introduce A$^2$utoLPBench, which splits into two core components: Auto (the generator) and Agent (the evaluation environment).

1. Inverse-KKT Generation

Instead of generating an LP problem and calling an external solver to find the answer (which introduces floating-point fragility), A$^2$utoLPBench builds the problem backward. It samples a strictly positive optimal primal-dual pair $(x, \lambda)$ and a constraint matrix $A$. Using the KKT optimality conditions, it directly computes the right-hand side vector $b = Ax$ and objective coefficients $c = A^\top \lambda$. The exact maximum value is guaranteed to be $\phi = c^\top x$ by construction, eliminating human error and solver drift.

2. Natural Language Drafting

An LLM "drafter" translates the raw matrices into a realistic word problem (e.g., resource allocation or diet optimization). A strict fidelity check verifies that every mathematical coefficient appears verbatim in the text.

3. Solver-Critic Loop & Docker Environment

To test agents, the benchmark bundles a dual-agent baseline operating in a Propose-Audit-Refine loop. A Solver Agent writes Python code using scipy.optimize.linprog, while a Critic Agent audits the code and output for common bugs (like matrix transpositions or incorrect signs), feeding back corrections up to a budget of $K=3$ rounds. The entire pipeline is packaged into a Docker image containing an AGENTS.md file that specifies tool-use skills in standard JSON-schema format for plug-and-play agent evaluation.

Figure 2: Overview of A2utoLPBench. (i) inverse-KKT constructs an LP pair, (ii) an LLM drafter renders it to a natural-language specification, (iii) at inference time the dual-agent solver-critic protocol Propose / Audit / Refine produces and iteratively revises candidate solutions.

Datasets

  • A$^2$utoLPBench: A procedural generator capable of streaming infinite unique problems. For standardized comparison, the authors release a reference snapshot of 256 instances stratified across 8 size classes (from simple $2 \times 3$ matrices up to complex $40 \times 40$ systems).
  • External Benchmarks: The authors evaluate their bundled solver-critic baseline on existing static datasets: NL4OPT (287 problems) and MAMO (divided into 652 easy and 211 complex problems).

Key Insights and Ideas

  • Procedural Generation Beats Contamination: By utilizing random seeds, evaluators can generate fresh problem batches post-dating any model's training cutoff, structurally blocking data leakage.
  • The "Difficulty Cliff": By scaling the matrix dimensions $(n, m)$, the benchmark uncovers a capability boundary. SOTA models achieve 100% accuracy on small scales but plummet to under 10% on $40 \times 40$ problems—a cliff invisible to older, simpler benchmarks.
  • Critiques Require a Reasoning Threshold: Multi-agent self-correction acts as a capability amplifier, but only if the underlying model is strong enough to act on structural feedback. Low-reasoning models often ignore the critic or perform shallow numerical tweaks rather than fixing the underlying logic.

Key Results

  • Performance Uplift: On the challenging MAMO complex benchmark, the bundled solver-critic loop significantly boosted performance over vanilla zero-shot baselines, yielding a +15.1 percentage point (pp) improvement for Kimi-K2.5 and a +11.3pp lift for Claude-Sonnet-4.6.
  • Diminishing Returns on Saturated Tasks: On benchmarks where models are already near-perfect (like NL4OPT at ~98%), the critic loop adds no value and can occasionally cause minor regressions due to false-alarm disagreements.
  • Cost Efficiency: Generating a new problem instance costs only a single LLM drafter call (median cost of ~$0.0015 using DeepSeek-V4 pricing), decoupling benchmark scaling from human annotation budgets.

Limitations and Future Work

  • Single-Pass Layout Challenges: At very large scales (e.g., $40 \times 40$), the inline text layout generated by the LLM drafter becomes highly difficult for solver agents to parse. Future iterations could benefit from explicit layout controls.
  • Domain Bias: The current drafter prompt is biased toward generic Operations Research scenarios (diet, production). Expanding to specialized domains like supply-chain logistics or power grid topology remains future work.

Summary updated

BibTeX
@misc{ren2026utolpbench,
  author = {Shuo Ren and Yaohui Han and Yifan Shi and Libo Shen and Haodong Lu and Dongfang Wu and Rongliang Fu and Bei Yu and Tsung-Yi Ho},
  title = {{A$^\{2\}$utoLPBench: An Auto-Generated, Agent-Friendly LP Benchmark via Inverse-KKT Construction}},
  year = {2026},
  eprint = {2607.02141},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.02141},
}
Figure