Lune

ICSE2026顶会

More with Less: An Empirical Study of Turn-Control Strategies for Efficient Coding Agents

Pengfei Gao, Chao Peng

摘要

LLM-powered coding agents, which operate in iterative loops (turns) to solve software engineering tasks, are becoming increasingly powerful. However, their practical deployment is hindered by significant and unpredictable costs. This challenge arises from a combination of factors: quadratically growing token counts with each turn, the high price of state-of-the-art models, the large number of turns required for real-world tasks, and the tendency of agents to take inefficient or unnecessary actions. While existing research focuses on optimizing individual turns, the strategic control of the total number of turns remains an underexplored area for managing agent performance and cost. To address this gap, we conduct a comprehensive empirical study on the SWE-bench benchmark using three state-of-the-art models (Claude 4 Sonnet, Gemini 2.5 Pro, and GPT 4.1). We systematically evaluate the impact of three distinct turn-control strategies: an unrestricted baseline, a fixed-turn limit with reminders, and a novel dynamic-turn strategy that grants extensions on-demand. Our findings first reveal a fundamental trade-off in the unrestricted setting, where no single model excels across performance, cost, and turn efficiency. We then show that a fixed-turn limit, specifically at the 75th percentile of the baseline, serves as a "sweet spot", substantially reducing costs (by 24%-68%) with minimal impact on solve rates. Most significantly, our proposed dynamic-turn strategy consistently outperforms fixed-limit approaches, achieving comparable or better solve rates while further reducing costs by an additional 12%-24% by intelligently allocating resources only to tasks that need them. This work provides the first systematic analysis of turncontrol strategies, offering simple yet effective guidelines for developers to balance cost and efficacy. We demonstrate that dynamic resource allocation is a superior, easy-to-implement approach for deploying powerful yet economically viable coding agents.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • To Run or Not to Run: Analyzing the Cost-Effectiveness of Code Execution in LLM-Based Program Repair 引用了 SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • Token-Budget-Aware LLM Reasoning 引用了 Reflexion: language agents with verbal reinforcement learning
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper2

  1. MTRouter: Cost-Aware Multi-Turn LLM Routing with History-Model Joint EmbeddingsYiqun Zhang, Hao Li, Zihan Wang, Shi Feng 等ACL 2026
  2. To Run or Not to Run: Analyzing the Cost-Effectiveness of Code Execution in LLM-Based Program RepairZhihao Lin, Junhua Zhu, Mingyi Zhou, Xin Wang 等ISSTA 2026

它引用的 Paper9

  1. Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni 等NeurIPS 2020 · 19,162 次引用
  2. Reflexion: language agents with verbal reinforcement learningNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan 等NeurIPS 2023 · 5,828 次引用
  3. SWE-bench: Can Language Models Resolve Real-world Github Issues?Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao 等ICLR 2024 · 2,082 次引用
  4. LLMLingua: Compressing Prompts for Accelerated Inference of Large Language ModelsHuiqiang Jiang, Qianhui Wu, Chin-Yew Lin, Yuqing Yang 等EMNLP 2023 · 94 次引用
  5. Token-Budget-Aware LLM ReasoningTingxu Han, Zhenting Wang, Chunrong Fang, Shiyu Zhao 等ACL Findings 2025 · 31 次引用

相关 Paper

  1. EET: Experience-Driven Early Termination for Cost-Efficient Software Engineering AgentsYaoqi Guo, Ying Xiao, Jie M. Zhang, Mark Harman 等ACL Findings 2026
  2. DARS: Dynamic Action Re-Sampling to Enhance Coding Agent Performance by Adaptive Tree TraversalVaibhav Aggarwal, Ojasv Kamal, Abhinav Japesh, Zhijing Jin 等ACL 2025
  3. Demystifying LLM-Based Software Engineering AgentsChunqiu Steven Xia, Yinlin Deng, Soren Dunn, Lingming ZhangFSE 2025 · 36 次引用
  4. Can Agent Fix Agent Issues?Alfin Wijaya Rahardja, Junwei Liu, Weitong Chen, Zhenpeng Chen 等NeurIPS 2025 · 4 次引用
  5. SWE-Dev: Building Software Engineering Agents with Training and Inference ScalingHaoran Wang, Zhenyu Hou, Yao Wei, Jie Tang 等ACL Findings 2025 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖