DecompGym 基准测试:LLM 智能体能否正确实现分解算法
DecompGym: Benchmarking LLM Agents on Designing Decomposition Algorithms
拿 12 个 GPT、Claude、Gemini 模型考手写 Benders 分解和列生成求解器,考题是 81 个实例,结果发现只看输出根本查不出代码里的猫腻,反思式纠错能多救回四分之一的失败。
研究团队推出 DecompGym 基准,包含来自 9 个问题家族的 81 个实例(5 个 Benders 分解、4 个列生成),要求编码智能体按规定方法写出求解器。求解器需满足 60 秒内运行、数值可行并通过方法审计、目标值与最优解差距在 1% 以内三项标准。测试覆盖 GPT、Claude、Gemini 共 12 个模型,首次尝试中仅 2 个模型解决全部实例,7 个模型解决超过 90%。Benders 分解的 62 次失败中有 48 次是解缺失或次优,而仅靠输出检查会漏掉 108 次未通过方法审计尝试中的 93 次。引入反思机制后,重试成功率从独立重新生成的 39% 提升到 66%。
DecompGym: Benchmarking LLM Agents on Designing Decomposition Algorithms
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.