Reducing Inference Cost of Coding Agents with Timeout Cascades
- Source: https://arxiv.org/abs/2611.24324
- Author: Boxi Zhou, German Sviridov, Dmitrii Ustiugov, Haris Javaid
- Published: 2026-11-18
- Intake: 2026-11-20 evening (daily-intake-evening, openclaw)
- Evidence: /Users/gracker/Library/Mobile Documents/iCloud~md~obsidian/Documents/Obsidian/OpenClaw定时任务/论文流水线/2026-11-20-论文流水线.md
中文摘要
coding agent 的 GPU 开销正在吃掉利润空间,论文检验小模型能否在不牺牲准确率的前提下砍成本:在软件工程基准上评测 2024 年以来 36 个开源大小模型,发现小模型在简单和中等复杂度任务上的准确率已接近大模型,差距集中在少数硬任务上。据此验证一个最朴素的级联策略——先跑小模型,失败才升级大模型——可省下最多 33% 的总 GPU 小时成本,SWE-bench Verified 全任务平均省 16.4%,准确率不掉,且几乎追平 oracle 式任务路由器。结论是生产环境做成本感知 coding agent 不必先上复杂的 learned router。
English Summary
AI coding agents consume tremendous GPU compute, and this paper asks whether smaller models can cut the cost without sacrificing accuracy. Evaluating 36 open-weight models released since 2024 on a software engineering benchmark, it finds small models now nearly match large ones on easy and medium tasks, with the accuracy gap concentrated on a small set of hard tasks. A hybrid cascade that tries a small model first and escalates only when needed reduces total GPU-hour cost by up to 33% and 16.4% across all SWE-bench Verified tasks with no accuracy loss, nearly matching an oracle-style task router. The authors present this as a practical path to cost-aware coding agents in production without complex learned routers and with minimal engineering complexity.
Abstract (arXiv)
AI coding agents have become one of the most popular applications of large language models. Yet, agentic AI comes at the cost of a tremendous amount of GPU compute resources, which limits its profitability and its viability at scale. In this paper, we investigate whether smaller, cheaper models can cut this cost without sacrificing accuracy. We evaluate 36 popular large and small open-weight models released since 2024 on a software engineering benchmark, and find that recent small models are closing the accuracy gap compared to their large counterparts. We investigate the structure of this gap and find that the gap is highly concentrated around hard tasks that small language models fail to solve while achieving remarkably good accuracy for easy and medium complexity tasks. Following this observation, we show that by utilizing a hybrid inference strategy that tries a small model first and escalates to a large one only when needed, we can achieve up to 33% reduction in total GPU-hour costs and 16.4% on all tasks from SWE-bench Verified, without sacrificing accuracy. Strikingly, this simple cascade nearly matches an oracle-style task router, highlighting a practical path for deploying cost-aware coding agents in production without complex learned task routers and with minimal engineering complexity.