HyperAIHyperAI

Command Palette

Search for a command to run...

LoopArena: 루프 엔지니어링을 위한 런타임 컨트롤러로서의 모델 벤치마킹

Yi Wang Haopeng Zhang Chengxiang Huang Rui Dai Kaikui Liu Piotr Koniusz Xiangxiang Chu

초록

루프 엔지니어링은 코딩 에이전트를 중심으로 개발 작업을 조직하는 실천 방식으로 부상하고 있다. 실무자는 매번 프롬프트를 수동으로 작성하는 대신, 진행 상황을 모니터링하고 작업을 할당하며 검사를 실행하고 에이전트가 다음에 무엇을 해야 할지 결정하는 루프를 설계한다. 유능한 코딩 에이전트가 있더라도 루프는 오래된 진행 메모를 신뢰하거나 필요한 검증을 건너뛰거나 예산을 잘못된 방향으로 소비하거나 작업이 제출하기에 안전해지기 전에 중단할 수 있다. 그러나 단일 엔드투엔드 실행의 최종 결과만으로는 성공 또는 실패가 루프의 지도 때문인지 코딩 에이전트의 작업 수행 능력 때문인지 알 수 없다. 본 논문에서는 하나의 모델이 별도의 코딩 에이전트를 장기 실행 작업을 통해 얼마나 잘 안내할 수 있는지 평가하기 위한 벤치마크인 LoopArena를 소개한다. 평가 대상 모델은 컨트롤러로서, 각 코딩 라운드 후에 실행에 대한 구조화된 요약을 받고 별도의 고정된 코딩 에이전트인 워커에게 다음에 무엇을 하거나 검증할지 지시하거나 중단 여부를 결정한다. LoopArena는 실행 범위와 비용이 다른 세 가지 상호 보완적인 설정에서 이 능력을 평가한다. 유형 I은 평가 시점에 워커를 실행하지 않고 실행 검증 질문을 통해 다음 단계 루프 계약 선택을 점수화한다. 유형 II는 전체 작업의 선택된 일부에 대해 반복적인 제어를 실행하며, 유형 III은 원래 상태에서 전체 작업의 쌍을 평가한다. 전체 작업에서 관찰된 최고 엄격 성공률은 24.69%로, 장기 지평 루프 제어에는 상당한 개선 여지가 남아 있다. 컨트롤러 전반에 걸쳐 추정 추론 비용의 쌍별 감소율은 평균 64.4%이며, 유형 II는 주요 핵심 기준에서 유사한 순위를 산출한다(스피어만 ρ = 0.9747). 벤치마크 데이터와 평가 코드는 https://github.com/AMAP-ML/LoopArena에서 공개한다.

One-sentence Summary

Researchers from DreamX Team, Alibaba Group, Beijing University of Posts and Telecommunications, UNSW Sydney, and colleagues introduce LoopArena, a benchmark that evaluates how well a model Controller guides a separate fixed Worker through long-running coding tasks across three execution-scoped settings, reporting a best Strict Success Rate of 24.69%, Spearman’s ρ = 0.9747, and a 64.4% average inference-cost reduction.

Key Contributions

  • The paper introduces LoopArena, a benchmark that isolates a Controller model's long-horizon loop guidance by keeping the coding Worker and control interface fixed and scoring next-step instructions, verification decisions, and stopping decisions from structured run summaries.
  • LoopArena provides three complementary evaluation settings: execution-validated next-step contract selection without running the Worker, repeated control over a selected task slice, and paired full-task execution from the original repository state. The benchmark data and evaluation code are made public.
  • Experimental results show a best observed Type III Strict Success Rate of 24.69% and a paired Type II reduction in estimated inference cost averaging 64.4%, while preserving similar Controller ordering relative to full tasks (Spearman's ρ = 0.9747). A fixed-goal policy does not improve over unguided execution, indicating effective loop control must adapt to the evolving run.

Introduction

Loop Engineering reflects a shift toward letting a model manage a separate coding agent over long-running tasks, rather than requiring a developer to inspect results and write every next prompt by hand. This matters because after many steps a plausible partial result can be mistaken for completion, and the next useful instruction may need to shift from implementation to verification, recovery, or stopping. Most prior coding benchmarks evaluate the final repository state or the complete agent system, so they do not directly isolate a model’s ability to guide another coding agent at runtime. The authors introduce LoopArena, a benchmark where the evaluated model acts as a Controller over a fixed Worker and execution setup. It evaluates runtime loop control at three complementary levels: low-cost individual control decisions, task-slice runtime guidance, and end-to-end long-horizon repository-level tasks.

Dataset

The authors construct the LoopArena benchmark, which evaluates a coding agent's Controller at three distinct scopes, using tasks sourced from SlopCodeBench (SCBench) and BeyondSWE. SCBench supplies long-horizon iterative coding tasks, while BeyondSWE covers a broader range of software-engineering challenges.

  • Type I: Contract selection. Each instance is a single control decision extracted at a restorable point in a Controller-guided trajectory. The input is an Evidence Packet and four candidate Loop Contracts. A correct answer is determined by executing all four candidates under two predeclared replay schedules from the same restored state, keeping only items where the same candidate uniquely wins under both schedules according to the success-and-cost rule. Once validated, evaluating a new Controller requires a four-way choice with no Worker execution.
  • Type II: Condensed coding task. A task slice taken from one coherent development stage of a full task. It begins from a prepared intermediate workspace and asks the Controller–Worker loop to complete that stage. A slice is retained only if the starting workspace fails at least one stage-introduced requirement and the source-provided completed state passes all expected requirements. Each Type II case is paired with its corresponding Type III task for matched comparisons.
  • Type III: Full coding task. The original full task executed from its initial state. The Controller manages the complete run from first investigation through implementation and verification to the final stop decision.

Sources and filtering:

  • Source tasks come from SCBench (native checkpoints provide Type II slices) and BeyondSWE (manually divided into coherent stages using official repairs and tests).
  • Type I items are anchored immediately before a recorded Controller decision; alternatives are frozen before any replay outcome is observed. Items without a unique replay-consensus winner are discarded.
  • Type II slices must satisfy the workspace requirement gap described above; otherwise they are dropped.
  • All subsets undergo automated consistency checks and LLM-assisted review to verify task, workspace, and evaluator consistency, and to ensure model inputs do not expose solution code, scoring results, or future events from the source trajectory. Task and slice selections are fixed before formal evaluation.

How the data is used: LoopArena assesses Controller ability at three levels: a single contract decision (Type I), a task slice (Type II), and the full task (Type III). The paired Type II and Type III cases enable direct comparisons of evaluation cost and Controller ordering across the two scopes. The benchmark’s sizes and further statistics are reported in the paper.

Method

The authors design LoopArena to evaluate and guide long-horizon coding tasks through a structured control cycle. The framework maintains a persistent Worker conversation throughout each run. The Worker is the sole component equipped with coding tools, following a native ReAct loop to inspect and modify the repository, run checks, and execute assigned work. When the Worker completes a segment, control returns to the harness, pausing the persistent conversation and initiating a control cycle.

At the start of each control cycle, the harness generates a temporary Reporter agent from a copy of the accumulated Worker conversation. The Reporter shares the same model configuration as the Worker but is restricted to read-only tools. It produces a four-part account of the run, detailing the task context, completed work and current state, available verification evidence, and remaining issues. Material claims in the report cite the corresponding Worker turns. The Reporter describes the current state without deciding subsequent actions, and it cannot execute code or modify the repository.

For an executable task iii at control cycle kkk, the harness packages the report and cited Worker turns into an Evidence Packet xi,kx_{i,k}xi,k, which serves as a structured, read-only summary for the Controller. Let π\piπ denote the Controller model and hi,kh_{i,k}hi,k represent its conversation history before the decision, encompassing earlier Packets and Contracts. At each control point, the Controller receives the latest Packet alongside this history but lacks direct access to the workspace or coding tools. It then produces a Loop Contract ci,kc_{i,k}ci,k:

ci,k=π(xi,k,hi,k)c_{i,k} = \pi(x_{i,k}, h_{i,k})ci,k=π(xi,k,hi,k)

The Contract records the decision to advance the work, request focused verification, or stop. If the Controller chooses to proceed, the Contract provides the Worker with a bounded next assignment and specifies when control should return to the harness. If the Controller chooses to stop, the harness sends the current workspace to the task evaluator.

To systematically evaluate this framework, the authors construct a benchmark using full coding tasks from SlopCodeBench and BeyondSWE, organizing them into three distinct settings.

Type III evaluates a full coding task from its original state, retaining the original specification, starting state, development process, and evaluator. Type II pairs a full task with one task slice beginning from a prepared intermediate workspace. For Type II, the case describes the work required for that specific stage, and its evaluator checks the requirements that should hold upon completion. A slice is retained only when the starting workspace fails at least one requirement introduced by the stage, and the source-provided completed state passes all expected requirements. Type I constructs execution-validated control questions at restorable points in Controller-guided trajectories. Each question is anchored immediately before a recorded Controller decision, using the Evidence Packet as context. The recorded Loop Contract is retained as one of four candidates, alongside three complete alternatives. A candidate becomes the correct option only when it is the unique winner under two predeclared matched replay schedules according to a success-and-cost rule.

Experiment

LoopArena evaluates controller ability at three levels: Type I tests a single control decision by selecting among four pre-executed Loop Contracts, while Type II and Type III score repeated Controller-Worker control over a condensed task slice and its paired full coding task. The shared Worker and reference policies allow matched comparisons across these settings. Results show that full-task control remains difficult, fixed goal restatement helps on bounded slices but not on full tasks, and the lower-cost Type II setting preserves the full-task ordering of evaluated controllers. Type I reveals meaningful differences in individual control decisions, with simple shortcuts failing to approach controller-level accuracy.

The benchmark compares three settings: Type I isolates individual control decisions without worker execution, while Type II and Type III share the same source tasks and executable controller-worker loop. Type II reduces worker turns, control cycles, and average inference cost relative to Type III while preserving similar controller ordering. Full-task Type III success remains limited, and fixed control helps in the bounded Type II setting but not in full tasks. Type II cuts average estimated inference cost relative to Type III and uses substantially fewer worker turns and control cycles per run. Controller ordering in Type II closely matches full-task Type III ordering, with no strictly ordered controller pair reversing. Type I responses all parse to one candidate, and deterministic shortcuts score well below controller accuracy.

Evaluated controllers achieve only modest full-task success, with the strongest Type III result below one quarter. Type II task-slice evaluation preserves a controller ordering close to Type III while reducing estimated inference cost by about two thirds on average. Fixed control helps over the shorter task slice but not on full tasks, and Type I contract decisions are well above deterministic shortcuts. Full-task control remains difficult: Type III strict success among controllers peaks below one quarter. Type II strongly reduces inference cost relative to Type III while maintaining similar controller rankings under the main criterion. Fixed control improves Type II success over no control but gives no gain on Type III. Type I contract accuracy is substantially higher than all tested deterministic shortcuts, which peak near one third.

The benchmark compares three settings: Type I isolates individual control decisions, while Type II and Type III share source tasks and an executable controller-worker loop, with Type II using shorter task slices. Type II substantially reduces inference cost, worker turns, and control cycles relative to Type III while preserving a similar controller ordering. Fixed control improves success in the bounded Type II setting but not in full tasks, and full-task Type III success remains limited. Type I contract decisions parse reliably and perform well above deterministic shortcuts.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp