跳到正文
arXiv:cs.AI· Nishant Balepur, Kiran Tomlinson, Tobias Schnabel·· 3 小时前

代码理解是编程智能体的瓶颈:CABRA 基准发布

Code Understanding is a Bottleneck for Coding Agents

AI 导读

研究者提出 CABRA 基准,用调用图变换从零构建任务,并通过任务规模参数在函数遍历、搜索、运行时解析和指令遵循四个维度上调节难度。在 6,840 个任务上测试 8 个 LLM 和 6 个编程智能体发现,LLM 准确率随任务规模增长而下降,但智能体借助 grep 等工具仍近乎满分;SWE-bench Verified 上的工具调用次数比编辑代码行数更能预测智能体准确率。

正文

View PDF HTML (experimental)

Abstract:Repository benchmarks (e.g., SWE-bench) for coding agents often assume that lines of code edited can predict task difficulty, but such datasets' poor control over code and task types makes it hard to know which abilities truly drive agent errors. We present CABRA: a Coding Ability Blueprint for Rigorous Agent evaluation. CABRA builds tasks from scratch as call graph transformations and scales difficulty via a task size parameter on four axes: function traversal, search, runtime resolution, and instruction following. We run eight LLMs and six coding agents on 6,840 CABRA tasks to show: 1) LLM accuracy falls as task size~grows, but agents stay near-perfect by offloading work to tools (e.g., grep); 2) Larger CABRA tasks elicit more tool calls for reading and analysis, while a separate study on SWE-bench Verified shows these tool call counts predict agents' accuracy better than lines of code edited, suggesting task difficulty for agents can lie in understanding code to edit, not just in making edits; 3) Extending CABRA to an intense understanding task where models analyze divergent logic across two classes backs this finding, as agent accuracy finally falls. More broadly, we argue for synthetic evaluations like CABRA to unmask LLM weaknesses trivialized by tools (e.g., needle-in-a-haystack) and abilities beyond just editing (e.g., understanding) that coding agents still find difficult, pairing SWE-bench-style tasks with controlled diagnosis.
Comments: In-Progress Preprint
Subjects: Software Engineering (cs.SE); Artificial Intelligence (cs.AI); Programming Languages (cs.PL)
Cite as: arXiv:2610.10610 [cs.SE]
  (or arXiv:2610.10610v1 [cs.SE] for this version)
  https://doi.org/10.48550/arXiv.2610.10610

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Nishant Balepur [view email]
[v1] Wed, 7 Oct 2026 06:29:42 UTC (1,445 KB)

来源:arXiv:cs.AI · arxiv.org