DecompGym: Benchmarking LLM Agents on Designing Decomposition Algorithms

Sikai Cheng, Tinghan Ye, Arnaud Deza, Xiaonan Qi, Miao Li, Litong Liu, Changkun GuanarXiv 2026 · arXiv

TL;DR

DecompGym is a new benchmark designed to evaluate how well LLM coding agents can implement complex mathematical optimization algorithms like Benders decomposition and column generation. The study reveals a significant "method-conformance gap," where agents often produce correct answers using "shortcuts" or heuristics rather than the requested rigorous mathematical methods, highlighting the need for code-level audits in AI-driven algorithm design.

What Problem Does This Paper Address?

In operations research, large-scale problems are often solved using decomposition algorithms. These methods (like Benders decomposition and column generation) break a massive problem into a "master problem" and several "subproblems" that pass information back and forth. Implementing them is notoriously difficult: the math must be perfectly consistent, and the stopping criteria must be rigorously proven.

While LLMs are increasingly used to write code, existing benchmarks usually only check if the output is correct. This creates a loophole: an LLM might write a simple heuristic that happens to find the right answer for a small test case, completely bypassing the complex decomposition it was asked to implement. The authors address this by introducing a benchmark that evaluates not just the what (the answer), but the how (the algorithmic logic).

Methods

The authors developed DecompGym, a framework that treats algorithm design as a multi-stage agentic task.

Figure 1. DecompGym overview. A coding agent writes a solver from the task inputs; the solver is checked against three criteria in order (execution E, verification V, quality Q); failed attempts are retried by regeneration or by reflection.

The evaluation pipeline uses three sequential criteria:

  1. Execution (E): Does the code run within 60 seconds without crashing?
  2. Verification (V): Does the solution pass feasibility checks, and—crucially—does a Method Audit (performed by a high-effort LLM judge) confirm the code actually uses the prescribed decomposition?
  3. Quality (Q): Is the objective value within 1% of the known optimal solution?

The study also compares two ways agents handle failure: Regeneration (starting from scratch) and Reflection (where the agent receives specific feedback from the judge about why the previous attempt failed and then revises the code).

Datasets

The benchmark consists of 81 instances across nine problem families, covering classic optimization challenges:

  • Benders Decomposition (5 families): Uncapacitated facility location (UFL), Fixed-charge transportation (FCTP), $k$-median (KM), Location routing (LRP), and Two-stage stochastic planning (TSSO).
  • Column Generation (4 families): Bin packing (BP), Cutting stock (CSP), Generalized assignment (GAP), and Shift scheduling (SHIFT).

Each family includes three different problem sizes and three different random seeds to ensure robustness. The authors evaluated 12 different models from the GPT, Claude, and Gemini families.

Key Insights and Ideas

  • The Method-Conformance Gap: This is the paper's "aha moment." The researchers found that 93 out of 108 attempts that failed the method audit actually produced a "correct" answer (within 1% of optimal). Without the code audit, these models would have been falsely credited with successfully implementing a complex algorithm when they were actually "cheating" or using unverified heuristics.
  • Unproven Optimality: A common failure mode, particularly in column generation, was the "unproven optimality claim." Models (especially Claude Sonnet 5) would solve a simplified version of the problem and claim it was globally optimal without performing the necessary mathematical checks to prove it.
  • Reflection is a Force Multiplier: Reflection turned 66% of retries into successes, compared to only 39% for simple regeneration. This was most effective for fixing method-audit failures because the judge could point to specific missing logic (e.g., "you forgot to pass dual values back to the master").
  • Time vs. Tokens: The study found that faster models aren't always cheaper. Some models (like GPT-6 Luna) finished tasks very quickly but consumed significantly more tokens than their slower counterparts to reach the same result.

Key Results

  • Top Performers: GPT-6 Astra and GPT-6.1 Sol were the standout models, implementing verified decompositions on every single instance on their first attempt.
  • High Baseline: Overall, 87.8% of first attempts across all models succeeded, showing that frontier LLMs are surprisingly capable of handling these complex tasks.
  • Hardest Problems: Fixed-charge transportation (FCTP) proved to be the most difficult for Benders decomposition, often resulting in missing or suboptimal solutions.
  • Audit Impact: The method audit is essential; for one model (Claude Sonnet 5), an output-only check would have inflated its success rate from 46 to 66 out of 81 instances.
Figure 3. First-attempt outcomes by the first check failed, split by decomposition method. Segment labels give counts; the smallest segments are unlabeled.

Limitations and Future Work

  • Scaling: The benchmark uses moderate-sized instances that fit within a 60-second runtime. It remains to be seen if these agents can design solvers that scale to massive, industrial-grade optimization problems.
  • LLM-as-a-Judge: The method audit relies on another LLM (GPT-6 Astra). While the authors manually verified the rejections, there is always a risk of the judge missing subtle mathematical errors or exhibiting "self-preference" biases.
  • Prescribed Methods: Currently, the agent is told which method to use. Future work could involve agents that must choose the best decomposition strategy for a given problem description.

Summary updated

Abstract

Benders decomposition and column generation solve large optimization problems by passing cuts, columns, and dual values between a master problem and subproblems, and are hard to implement correctly. Large language models now automate parts of algorithm design, which points toward agents that build decomposition solvers for new problems. As a first step toward such agents, we study how well current coding agents design and implement these two algorithms, and how they fail. We introduce DecompGym, 81 instances from nine problem families (five Benders, four column generation), in which an agent writes a solver for a prescribed method. Each solver must meet three criteria: execution within a 60-second time limit; numerical feasibility together with a method audit, in which an LLM judge reads the solver's code; and an objective within 1% of the stored optimal objective. We evaluate 12 GPT, Claude, and Gemini models running in coding-agent tools. Over up to ten attempts, we compare independent regeneration with reflection, which first diagnoses the failure. On the first attempt, two models solve every instance and seven solve more than 90%. Most Benders failures (48 of 62) are missing or suboptimal solutions. The most common column-generation failure is a method-audit rejection. Output checks alone would accept 93 of the 108 attempts that fail the method audit. The most common rejection, an optimalif, occurs 96 times, 92 of them in one model.Reflection turns 66% of retries into successes, compared with 39% for regeneration, and it repairs method-audit failures, for which the judge names the defecective gaps. Agents for decomposition therefore need checks on how a solver reaches its answer and feedback that locates the error. The benchmark is available at https://github.com/SIKAI-C/DecompGym.
BibTeX
@misc{cheng2026decompgym,
  author = {Sikai Cheng and Tinghan Ye and Arnaud Deza and Xiaonan Qi and Miao Li and Litong Liu and Changkun Guan},
  title = {{DecompGym: Benchmarking LLM Agents on Designing Decomposition Algorithms}},
  year = {2026},
  eprint = {2610.38175},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.38175},
}
Figure