AIDB Daily Papers
コード編集の再考:効率的なSWEエージェントのためのSWE-Edit
※ 日本語タイトル・ポイントはAIによる自動生成です。正確な内容は原論文をご確認ください。
ポイント
- コード編集におけるコンテキスト結合問題を解決するため、タスク関連コード抽出と編集実行を分離するSWE-Editを提案した。
- 従来のfind-and-replace形式の誤りを克服するため、編集モードを適応的に選択するモデルを訓練し、効率を向上させた。
- SWE-bench Verifiedで解決率を2.1%向上させ、推論コストを17.9%削減し、実用的な編集モデル選択の指針を示した。
Abstract
Large language model agents have achieved remarkable progress on software engineering tasks, yet current approaches suffer from a fundamental context coupling problem: the standard code editing interface conflates code inspection, modification planning, and edit execution within a single context window, forcing agents to interleave exploratory viewing with strictly formatted edit generation. This causes irrelevant information to accumulate and degrades agent performance. To address this, we propose SWE-Edit, which decomposes code editing into two specialized subagents: a Viewer that extracts task-relevant code on demand, and an Editor that executes modifications from high-level plans--allowing the main agent to focus on reasoning while delegating context-intensive operations to clean context windows. We further investigate what makes an effective editing model: observing that the prevalent find-and-replace format is error-prone, we train Qwen3-8B with GRPO to adaptively select editing modes, yielding improved editing efficiency over single-format baselines. On SWE-bench Verified, SWE-Edit improves resolved rate by 2.1% while reducing inference cost by 17.9%. We additionally propose a code editing benchmark that reliably predicts downstream agentic performance, providing practical guidance for editing model selection. Our code is publicly available at https://github.com/microsoft/SWE-Edit.
Paper AI Chat
この論文のPDF全文を対象にAIに質問できます。
質問の例: