SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks
Gabriel Orlanski, Devjeet R Roy, Alexander Yun, Changho Shin, Alex Gu, Albert Ge, Dyah Adila, Nicholas Roberts, Frederic Sala, Aws Albarghouthi
NeurIPS page · Open on the map
Category: LLM Agents, Evals & Benchmarks › Long-Horizon Coding and Proof Benchmarks · Type: benchmark or dataset · Keywords: coding agents, iterative benchmarks, code degradation, structural erosion, verbosity, software engineering
Areas: Code & Coding Agents › Code Verification › Coding agent benchmarks; AI Agents › Agent Benchmarking › Coding agent benchmarks; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Coding Agent Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › Coding Agent Benchmarks
Summary
SlopCodeBench is a benchmark of 36 iterative coding problems with 196 checkpoints that reveals how coding agents degrade over time through structural erosion and verbosity.
Explained to a 5-year-old
We made a test that asks computer programs to keep adding code to solve problems over and over. We watch if the code gets messy or too long. We found that the programs often get worse as they go. They make more mistakes than people do when they write code. The test helps us see problems that other tests cannot see.
Explained to a 5-year-old, longer
We created a new game for computer helpers that makes them solve problems step by step. Each step adds a little more code to the solution. The game has many different problems and many checkpoints to pass. We look at two kinds of problems: code that becomes too tangled and code that repeats itself. We let the helpers decide how to build their code, just like real programmers. We tested many different helpers, both those that are open and those that are private. We saw that none of the helpers could finish any problem perfectly. The best helper only passed a small part of the checkpoints. As the helpers kept going, their code got messier and longer more often than human code. Human code from real projects also gets worse over time, but not as much. Giving the helpers extra advice helped a little at the start, but they still got worse later. This game shows a problem that other simple tests cannot see.
For a technical reader
The paper introduces a benchmark that forces coding agents to iteratively extend their own solutions on 36 evolving problems with 196 checkpoints. It measures two degradation metrics-structural erosion (complexity concentration) and verbosity (redundant code)-to capture how code quality changes over time. Evaluations of 15 agents show that none fully solve any problem end-to-end, with the best passing only 14.8% of checkpoints. The study also compares agent code to human repositories, finding significantly higher erosion and verbosity, and shows that explicit quality guidance only reduces initial issues without altering degradation rates.
Problem
Existing coding agent benchmarks evaluate performance on single-shot tasks, failing to capture how agents' code quality deteriorates over multiple iterative extensions. Additionally, current iterative benchmarks overly restrict design choices, preventing faithful measurement of agents' long-horizon decision making.
Method
The benchmark presents 36 problems with evolving specifications and 196 checkpoints where agents iteratively extend their own solutions. It measures two degradation metrics-structural erosion and verbosity-across agent trajectories, and evaluates agents with and without explicit quality guidance.
Results
No agent fully solves any problem end-to-end, and the best agent passes only 14.8% of checkpoints. Structural erosion increases in 77% of trajectories and verbosity in 75.5%, and agent code is 2.3× more verbose and 2.0× more eroded than human repositories.
Contributions
The paper introduces a benchmark that captures long-horizon iterative coding tasks with evolving specifications, measures degradation metrics, and shows that agents degrade over time while human code degrades less. It also demonstrates that explicit quality guidance reduces initial verbosity and erosion but does not affect degradation rates.
Practical relevance
It provides a realistic benchmark for evaluating coding agents on iterative development, exposing degradation issues that single-shot tests miss.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction