# Termination Lag: Coding Agents Solve Early but Stop Late

종료 지연: 코딩 에이전트는 일찍 풀지만 늦게 멈춘다

Musa Cim, Burak Topcu, Mahmut Taylan Kandemir · arXiv · 2026년 11월 11일

- **연구 문제** 최종 패치 점수는 정답 패치가 처음 나타난 시점과 그 뒤의 추가 실행 비용을 드러내지 않습니다.
- **연구 방법** 실행 중 단계마다 패치를 기록하고 공식 평가로 첫 정답 패치 단계 F와 종료 단계 S를 비교합니다.
- **주요 결과** Qwen3-Coder는 SWE-bench Verified에서 NTL 35%를 기록했고 Laguna-XS.2는 같은 벤치마크에서 60%를 기록했습니다.

## 정답 패치 이후에도 계속 도는 에이전트

코딩 에이전트의 성능은 보통 최종 패치가 벤치마크 테스트를 통과하는지로 평가합니다. 그런데 이 점수는 정답 패치가 언제 처음 만들어졌는지를 보여 주지 않습니다. 같은 정답 편집을 10단계에서 만든 두 에이전트 중 하나는 바로 제출하고 다른 하나는 40단계를 더 쓴다면, 최종 점수는 같아도 실행 시간과 비용은 크게 다릅니다.

이 논문은 이 간격을 termination lag, 즉 첫 정답 패치 이후에 에이전트가 실행을 끝낼 때까지 수행하는 추가 단계로 측정합니다. 추가 단계가 실제로 무엇을 하는지, 그리고 그 과정에서 정답 패치가 유지되는지도 함께 확인합니다.

## 단계별 패치 기록과 첫 정답 시점 측정

실행 중 에이전트가 한 단계를 마칠 때마다 저장소의 현재 상태와 기본 커밋의 차이를 패치로 저장합니다. 이 기록은 로깅 프록시가 다음 모델 요청을 전달하기 전에 수행하며, 에이전트는 평가 결과를 받지 않습니다. 실행이 끝난 뒤 기록된 패치를 격리된 컨테이너에서 공식 평가 절차로 평가하고, 같은 패치는 한 번만 평가합니다.

가장 먼저 공식 테스트를 통과한 단계를 F, 에이전트가 스스로 멈춘 단계를 S로 둡니다. 첫 정답 패치까지의 단계 수 TTFCP는 F이고, termination lag는 TL=S−F입니다. 전체 길이에 대한 비율은 NTL=(S−F)/S로 정의합니다. 여기서 S는 전체 실행의 마지막 단계이므로 NTL은 전체 실행 중 첫 정답 패치 이후가 차지하는 비율입니다.

![Table 2: From the first patch to the first correct patch, in runs that reach a correct patch. First patch: the first step that edits the repository’s source. A…](https://refivu.com/papers/520a3a4d-fc06-4832-b3c1-a97eb683de41/figures/figure-5df78b0426acdc1d9238368b6c3f9375.png?thumb=512)

**Table 2** : From the first patch to the first correct patch, in runs that reach a correct patch. First patch: the first step that edits the repository’s source. Attempts: distinct patches up to and including the first correct one.

[원문](https://arxiv.org/abs/2611.14960v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Musa Cim, Burak Topcu, Mahmut Taylan Kandemir · Termination Lag: Coding Agents Solve Early but Stop Late · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

## 핵심 설정에서의 termination lag

Qwen3-Coder의 SWE-bench Verified 첫 소스 코드 편집은 정답 패치 도달 실행의 82%에서 이미 벤치마크 테스트를 통과했습니다.

![Figure 1: First correct patch and agent stop by step, Qwen3-Coder-30B, SWE-bench Verified](https://refivu.com/papers/520a3a4d-fc06-4832-b3c1-a97eb683de41/figures/figure-35772c259d7e9238bc4070a8701bd38d.png?thumb=512)

**Figure 1** : First correct patch and agent stop by step, Qwen3-Coder-30B, SWE-bench Verified.

[원문](https://arxiv.org/abs/2611.14960v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Musa Cim, Burak Topcu, Mahmut Taylan Kandemir · Termination Lag: Coding Agents Solve Early but Stop Late · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

성공한 실행의 중앙값 기준으로 Qwen3-Coder는 Verified에서 NTL 35%, Multilingual에서 37%를 기록했습니다. Laguna-XS.2는 Verified에서 60%, Multilingual에서 54%였습니다. 이 수치는 해당 두 모델과 두 벤치마크의 핵심 설정에 한정된 측정입니다.

![Table 1: Termination lag in the core settings. All rows below Solved are medians over solved runs; TTFCP, TL and NTL follow Eqs. 1–3. Context growth: relative…](https://refivu.com/papers/520a3a4d-fc06-4832-b3c1-a97eb683de41/figures/figure-326cb74cbe6a72f8b7df85e7c20982ea.png?thumb=512)

**Table 1** : Termination lag in the core settings. All rows below Solved are medians over solved runs; TTFCP, TL and NTL follow Eqs. 1–3. Context growth: relative increase in the model’s input context, in tokens, from the first correct patch to the final step,(ctxS −ctx F )/ctxF .

[원문](https://arxiv.org/abs/2611.14960v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Musa Cim, Burak Topcu, Mahmut Taylan Kandemir · Termination Lag: Coding Agents Solve Early but Stop Late · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

## 추가 단계는 검증과 탐색에 쓰였다

첫 정답 패치 이후의 단계를 검증, 탐색, 소스 편집, 정리, 기타로 나누었습니다. 검증은 기존 저장소 테스트 실행, 추가 테스트 작성과 실행, 프로젝트 빌드를 포함합니다. 탐색은 파일 확인, 저장소 검색, Git 명령을 통한 변경 검토를 포함합니다.

![Figure 9: Share of actions after the first correct patch, by kind (solved runs)](https://refivu.com/papers/520a3a4d-fc06-4832-b3c1-a97eb683de41/figures/figure-7597e8bd0436f3b13a92277daa83ad41.png?thumb=512)

**Figure 9** : Share of actions after the first correct patch, by kind (solved runs).

[원문](https://arxiv.org/abs/2611.14960v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Musa Cim, Burak Topcu, Mahmut Taylan Kandemir · Termination Lag: Coding Agents Solve Early but Stop Late · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

검증은 모든 설정에서 가장 큰 비중이었고 전체 추가 단계의 48–63%를 차지했습니다. 탐색은 15–29%였습니다. 소스 코드 편집은 Qwen3-Coder, Laguna-XS.2, GPT-6 Luna에서 2–6%였고 Seed-OSS-36B의 SWE-bench Pro에서는 19%였습니다. 이 분류는 기록된 도구와 인자에 적용한 규칙에 따른 것입니다.

![Table 3: What agents do after their first correct patch. Top: share of the steps after the fix, by kind. Bottom: what happens to the patch in runs that reach a…](https://refivu.com/papers/520a3a4d-fc06-4832-b3c1-a97eb683de41/figures/figure-fc1dc3237e49d7cffe02276aedc07209.png?thumb=512)

**Table 3** : What agents do after their first correct patch. Top: share of the steps after the fix, by kind. Bottom: what happens to the patch in runs that reach a correct patch.

[원문](https://arxiv.org/abs/2611.14960v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Musa Cim, Burak Topcu, Mahmut Taylan Kandemir · Termination Lag: Coding Agents Solve Early but Stop Late · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

## 추가 편집이 정답 패치를 깨뜨리는 경우

정답 패치 도달 실행 가운데 61–96%는 끝까지 정답 패치를 유지했습니다. 나머지 중 일부는 이후 편집으로 패치가 깨졌다가 다시 정답이 되었고, 1–8%는 깨진 채로 오답 패치를 최종 제출했습니다. Laguna-XS.2의 SWE-bench Multilingual에서는 깨졌다가 다시 맞춘 비율이 31%였습니다.

이 결과는 추가 단계가 정답을 개선하지 않는다는 뜻이 아니라, 정답 패치 이후의 편집이 정답을 훼손할 수 있다는 관찰입니다. 첫 정답 패치에서 멈췄다면 이 손실을 피할 수 있었던 실행은 1–8%였습니다.

## 단계 수 측정과 소수 설정의 한계

이 논문은 비용을 계산 자원이 아니라 단계 수로 측정합니다. 따라서 단계 수 감소가 계산 비용의 직접 측정은 아닙니다. 각 과제는 한 번씩 실행했고, 실행이 단계나 컨텍스트 한도에 닿은 경우는 마지막 단계로 계산했습니다.

Seed-OSS-36B는 SWE-bench Pro에서 해결한 과제가 적어 통계가 작은 표본에 기반합니다. 또한 OpenHands 중심의 핵심 설정이므로 다른 프레임워크의 결과는 mini-SWE-agent의 Qwen3-Coder Verified 실행으로만 확인했습니다.

![Table 4: OpenHands vs. mini-SWE-agent, Qwen3-Coder, Verified (500 tasks)](https://refivu.com/papers/520a3a4d-fc06-4832-b3c1-a97eb683de41/figures/figure-a2a05d5a93138bcdbd193aace84fe1b2.png?thumb=512)

**Table 4** : OpenHands vs. mini-SWE-agent, Qwen3-Coder, Verified (500 tasks).

[원문](https://arxiv.org/abs/2611.14960v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Musa Cim, Burak Topcu, Mahmut Taylan Kandemir · Termination Lag: Coding Agents Solve Early but Stop Late · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Musa Cim, Burak Topcu, Mahmut Taylan Kandemir
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 11일
- **등록일**: 2026년 11월 13일
- **수정일**: 2026년 11월 11일
- **버전**: v1
- **arXiv**: 2611.14960
- **분류**: cs.AI · cs.CL
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.14960v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.14960v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Coding agents can solve a task well before they stop working on it. We characterize \\emph{termination lag}--the number of steps between an agent's first correct patch and the end of its run--across five models, two agent frameworks, and three SWE-bench datasets by recording and testing every distinct repository patch generated during execution. Our analysis reveals that 38--82% of successful runs achieve a correct solution on their initial source-code edit. However, agents continue to expend substantial effort after correct patches, with post-solution steps accounting for a median of 35--37% for Qwen3-Coder and 54--60% for Laguna-XS.2 in successful runs on SWE-bench Verified and Multilingual. Agents spend most of these additional steps verifying their work and exploring the repository. In a small fraction of cases (1--8%), this continued activity leads agents to undo their earlier correct patch, leaving the final solution incorrect.

## 원문 인용

Musa Cim, Burak Topcu, Mahmut Taylan Kandemir (2026). Termination Lag: Coding Agents Solve Early but Stop Late. arXiv:2611.14960v1. https://arxiv.org/abs/2611.14960v1

**BibTeX**

```
@misc{cim2026termination,
  title = {{Termination Lag: Coding Agents Solve Early but Stop Late}},
  author = {Musa Cim and Burak Topcu and Mahmut Taylan Kandemir},
  year = {2026},
  eprint = {2611.14960},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.14960v1}
}
```

## 이 논문의 용어

- [SWE-bench Verified](https://refivu.com/terms/54503683119b-swe-bench-verified)
- [GPT-6 Luna](https://refivu.com/terms/99c0d8f08298-gpt-6-luna)
- [mini-swe-agent](https://refivu.com/terms/d0e50abf6838-mini-swe-agent)
- [SWE-bench Pro](https://refivu.com/terms/0dcbb0cff5a3-swe-bench-pro)
- [OpenHands](https://refivu.com/terms/0368eb006bfb-openhands)
- [verification](https://refivu.com/terms/cbb212548fab-verification)

## 다른 논문 해설

- [Cleaning an Agent's History Hurts When the World Still Holds the Error](https://refivu.com/papers/9f9d54ba-fe02-462d-babe-c0f8a725ef58-cleaning-an-agent-s-history-hurts-when-the.md)
- [MetaGPT: Meta Programming for A Multi-Agent Collaborative Framework](https://refivu.com/papers/91dd7973-493a-4820-91e2-46a50eb0a70e-metagpt-meta-programming-for-a-multi-agent-collaborative.md)
- [The Surprising Effectiveness of PPO in Cooperative, Multi-Agent Games](https://refivu.com/papers/7c9c355e-16b7-49a8-b767-07760b1c48a4-the-surprising-effectiveness-of-ppo-in-cooperative-multi.md)
- [AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation](https://refivu.com/papers/d3d2ade6-3bed-4a94-9439-088b61554b00-autogen-enabling-next-gen-llm-applications-via-multi.md)
- [Don't Just Trust Your Memory: Evidence-Linked Memory Reduces Memory-Induced Degradation in LLM Agents](https://refivu.com/papers/891cb954-271d-4055-bf45-e2d6d155e372-don-t-just-trust-your-memory-evidence-linked.md)
- [Verifiable Agentic Traffic Class: A Policed Quality-of-Service Mechanism for Agentic AI Traffic, Evaluated from Simulation to Real-Kernel Adversarial Testing](https://refivu.com/papers/db3c17ca-0250-4baf-a9be-e368d049f727-verifiable-agentic-traffic-class-a-policed-quality-of.md)
- [Do Large Language Models Show Racial and Sex Bias in Pain Management? A Counterfactual Audit of GPT, Claude, Gemini, Llama, DeepSeek and Qwen](https://refivu.com/papers/35f582d1-90ca-40c6-a272-2cfa4575fafe-do-large-language-models-show-racial-and-sex.md)
- [Stress-Testing Sandbagging Detection Under Adaptive Attack](https://refivu.com/papers/d5f9221a-801e-4cf1-834b-f0b16f71c771-stress-testing-sandbagging-detection-under-adaptive-attack.md)
- [Provably Optimal HBT Legalization in Seconds: Certified Optima Reveal Where the Headroom Really Lies](https://refivu.com/papers/092405a3-bd41-4741-964e-d18e764ab9dd-provably-optimal-hbt-legalization-in-seconds-certified.md)
- [What Do Tokenizer Comparisons Measure? Disentangling Granularity, Root Assignment, and Word-Level Readout across Amharic and Hausa](https://refivu.com/papers/85edc7f0-4645-4f8c-95e9-bc84c1f4c53f-what-do-tokenizer-comparisons-measure-disentangling.md)
- [Verifier Choice is a Benchmark Design Variable: Auditing Structural Counting Evaluation in Text-to-Image Models](https://refivu.com/papers/68bb5c78-70c3-47d1-a5cc-da7cce40953a-verifier-choice-is-a-benchmark-design-variable-auditing.md)
- [Leaderboard Hacking: Preference-Based Model Evaluations are Vulnerable to Manipulation](https://refivu.com/papers/80654f3a-34dc-4e4a-a333-a94a0badbbec-leaderboard-hacking-preference-based-model-evaluations-are.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/520a3a4d-fc06-4832-b3c1-a97eb683de41-termination-lag-coding-agents-solve-early-but-stop)
