atlas

Research map / Multi-agent systems and games / LLM agents

RefactorBench: Evaluating Stateful Reasoning in Language Agents Through Code

ICLR 2025 · Multi-agent systems and games › LLM agents · approach: Self-evolving language agent learning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces RefactorBench, 100 handcrafted multi-file Python refactoring tasks with AST-based subtask tests, shows LM agents struggle (SWE-agent ~22% base), and improves them with state-aware interfaces that condition on a natural-language summary of prior edits.

Problem

LM agents are mainly evaluated on GitHub issue-solving, which is noisy and skews task styles; their stateful reasoning and action tracking across multi-file code refactors is under-measured.

Approach

A benchmark of multi-file refactoring tasks with three instruction specificity levels (lazy, base, descriptive), AST-based subtask tests, and a state-aware interface where an externally computed natural-language state summary of prior edits is appended before each agent action.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add recurring representations of previous edits to the SWE-agent interfaceSWE-agent with GPT-4o · RefactorBenchtask success rate: 43.9\% relative increaseHelped
Add recurring representations of previous edits to the SWE-agent interfaceSWE-agent with GPT-4o · RefactorBenchsubtask completion rate: 71\% increaseHelped

Surprising findings

Limitations

Experimental setup

Datasets: RefactorBench

Benchmarks: RefactorBench

Metrics: task success rate (all AST tests pass) subtask completion rate

Baselines: SWE-agent SWE-agent with prompt adjustment

Builds on: SWE-agent SWE-bench

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy