ARFA:面向终端编码智能体的残差引导模型路由方法
Residual-Guided Model Selection for Terminal-Based Coding Agents
AI 导读
一篇 arXiv 论文提出 ARFA,在命令执行前记录预期,并用加权执行残差为下一轮推理选择模型。在 100 个 InterCode NL2Bash 路由评测任务上,相比始终使用慢模型,ARFA 使 Gemma 配置的平均耗时降低 21.5%(解题 37 对 28),Qwen 配置降低 14.4%(42 对 41)。该论文已被 AAAI 2027 的 AgenticSE workshop 接收。
正文 · 原文
Abstract:A terminal observation does not by itself indicate whether a command produced the outcome an agent expected. We in- troduce ARFA, which records expectations before command execution and uses a weighted execution residual to select the model for the next reasoning turn. We compare six rout- ing policies for each of two model pairs on 100 InterCode NL2Bash tasks reserved for routing evaluation. Relative to al- ways using the slow model, ARFA reduced mean wall-clock time per attempt by 21.5% with Gemma and 14.4% with Qwen, solving 37 versus 28 tasks and 42 versus 41, respec- tively. The Gemma configuration also solved 37 tasks ver- sus 26 for an expectation-completeness gate. Compared with learned observation-only routing, Gemma solved more tasks but took longer, while Qwen solved one additional task at nearly the same mean time. Further model-pair experiments show that fewer slow-model calls need not reduce mean task time. In a separate development ablation with one cross-family pair, structured handoff used less time and fewer tokens than bounded visible history, with 28 versus 29 tasks solved.
| Comments: | Accepted to the Workshop on Agentic Software Engineering (AgenticSE) at AAAI 2027 |
| Subjects: | Software Engineering (cs.SE); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2612.04727 [cs.SE] |
| (or arXiv:2612.04727v1 [cs.SE] for this version) | |
| https://doi.org/10.48550/arXiv.2612.04727 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Chang Zhou [view email]
[v1]
Wed, 2 Dec 2026 23:03:26 UTC (112 KB)
来源:arXiv cs.AI · arxiv.org