arXiv:2610.38175cs.AIOct 2026

Manuscript Offprint

arXiv:2610.38175

DecompGym: Benchmarking LLM Agents on Designing Decomposition Algorithms

Sikai Cheng, Tinghan Ye, Arnaud Deza, Xiaonan Qi, Miao Li, Litong Liu, Changkun Guan

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 optimality claim made without proof, 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 defect, far more often than objective 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.

Figure

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.

1 Introduction

Many large optimization problems in operations research are solved by decomposition. Benders decomposition fixes complicating decisions in a master problem and adds cuts generated by subproblems [5, 54]. Column generation solves a restricted master problem over a subset of columns and adds columns found by a pricing subproblem that uses the master's dual values [16, 43]. Both algorithms are difficult to implement. The master and subproblems must be formulated consistently; duals, cuts, or columns must pass correctly between them; and the stopping rule must match what the final solution certifies. An error in any of these steps can leave a program that runs and returns a plausible answer.

Large language models are now used to automate parts of algorithm design. Program-search methods evolve heuristics and algorithms with an LLM in the loop [41, 50, 56, 72]. In operations research, LLMs formulate optimization models [13, 71], design algorithms that match or beat published methods on most instances of inventory, queueing, and assortment problems [3], search over inventory policy classes [70], and act as preference oracles inside multi-objective selection algorithms [35]. Recent benchmarks evaluate coding agents on writing complete solvers for operations research tasks [36, 39]. These advances point toward agents that design and implement decomposition algorithms for new problems.

Building such agents first requires knowing how well current coding agents design and implement these algorithms and how they fail. This paper is an exploratory study of both. Existing evaluations let the agent choose the method and score the solution or policy it returns. Studies of coding agents show that passing tests does not imply meeting the specification when shortcuts are available [22, 74, 76]. For decomposition, output checks credit two kinds of solver that violate the method contract: one that reaches the optimal objective through a heuristic that bypasses the decomposition, and one that labels its solution optimal although its algorithm has not proved it. Measuring method use therefore requires an audit of the solver's code. We define the method-conformance gap as the attempts that pass every output check (execution, feasibility, and objective within 1% of the optimal objective) and fail the method audit. We measure it on ordinary tasks that plant no shortcut.

We conduct the study on DecompGym, a set of 81 instances from nine problem families (Figure 1) drawn from facility location, transportation, routing, stochastic planning, packing, assignment, and scheduling. Five families are posed for Benders decomposition and four for column generation, each at three sizes with three seeds. An agent receives an application description, instance data, an output format, and a method contract that specifies the required master-subproblem information flow, then writes a standalone Python solver. Each attempt is checked against three criteria in sequence: execution within a common 60-second time limit; numerical feasibility checks 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. A paired protocol shares the first attempt between two retry policies, independent regeneration and reflection (a separate model query that diagnoses the failed attempt and writes advice for the next one), so both start from the same outcome. The protocol records the attempts, time, and tokens each policy uses. DecompGym, including its instance generators, formulations, reference implementations, reference solutions, and the evaluation code, is available at https://github.com/SIKAI-C/DecompGym.

References (74)