# Termination Lag: Coding Agents Solve Early but Stop Late

Termination Lag：コーディングエージェントは早く解き、遅く止まる

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ステップ目で作った2つのエージェントがあり、一方はすぐに提出し、もう一方はさらに40ステップ使ったとします。最終スコアは同じでも、実行時間とコストは大きく異なります。

この論文は、この差を termination lag と呼びます。これは、最初の正解パッチの後にエージェントが実行を終えるまでに行う追加ステップのことです。追加ステップで実際に何をしているのか、そしてその過程で正解パッチが維持されるのかも確認しています。

## ステップごとのパッチ記録と初回正解の測定

実行中、エージェントが1ステップを終えるたびに、リポジトリの現在の状態とベースコミットとの差分をパッチとして保存します。この記録は、ロギングプロキシが次のモデルへのリクエストを転送する前に行われ、エージェントは評価結果を受け取りません。実行の終了後、記録されたパッチを隔離されたコンテナで公式の評価手順により評価します。同じパッチは1回だけ評価します。

公式テストに最初に通ったステップを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

正解パッチに到達した実行の82%では、Qwen3-CoderのSWE-bench Verifiedにおける最初のソースコード編集の時点で、すでにベンチマークのテストに通っていました。

![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のNTLはVerifiedで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%でした。

## ステップ数による測定と小規模サンプルの限界

この論文は、コストを計算資源ではなくステップ数で測定しています。そのため、ステップ数の減少は計算コストを直接測定したものではありません。各タスクは1回ずつ実行しました。実行がステップ数やコンテキストの上限に達した場合は、最後のステップとして計算しました。

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)

この解説は、Refivuの韓国語解説を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/ja/terms/54503683119b-swe-bench-verified)
- [GPT-6 Luna](https://refivu.com/ja/terms/99c0d8f08298-gpt-6-luna)
- [mini-swe-agent](https://refivu.com/ja/terms/d0e50abf6838-mini-swe-agent)
- [SWE-bench Pro](https://refivu.com/ja/terms/0dcbb0cff5a3-swe-bench-pro)
- [OpenHands](https://refivu.com/ja/terms/0368eb006bfb-openhands)

## ほかの論文解説

- [Cleaning an Agent's History Hurts When the World Still Holds the Error](https://refivu.com/ja/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/ja/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/ja/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/ja/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/ja/papers/891cb954-271d-4055-bf45-e2d6d155e372-don-t-just-trust-your-memory-evidence-linked.md)
- [Code-Grounded Agentic Explanations for Static Analysis Vulnerability Findings](https://refivu.com/ja/papers/e9fa7593-41df-421f-8615-e0870316904f-code-grounded-agentic-explanations-for-static-analysis.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/ja/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/ja/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/ja/papers/092405a3-bd41-4741-964e-d18e764ab9dd-provably-optimal-hbt-legalization-in-seconds-certified.md)
- [Verifier Choice is a Benchmark Design Variable: Auditing Structural Counting Evaluation in Text-to-Image Models](https://refivu.com/ja/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/ja/papers/80654f3a-34dc-4e4a-a333-a94a0badbbec-leaderboard-hacking-preference-based-model-evaluations-are.md)
- [Abstention Is Not Threshold Compliance: Stated Scoring Rules in Open Language Models](https://refivu.com/ja/papers/3fb56329-b972-47e1-93dd-325c7dec2433-abstention-is-not-threshold-compliance-stated-scoring-rules.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/520a3a4d-fc06-4832-b3c1-a97eb683de41-termination-lag-coding-agents-solve-early-but-stop)
