arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.05980cs.AI
收藏

TACT: 通过激活引导缓解编码代理中的过度思考与过度行动

TACT: Mitigating Overthinking and Overacting in Coding Agents via Activation Steering

National University of Singapore(新加坡国立大学);Peking University(北京大学);Meta

Yuan Sui, Yulin Chen, Yibo Li, Xue Jiang, Yufei He, Yihong Dong, Xiaoxin He, Tianyu Gao, Bryan Hooi

AI总结:

本文提出TACT方法,通过激活引导检测并缓解编码代理中的过度思考和过度行动问题,提升任务解决效率和准确性。

摘要:

当语言模型代理处理复杂软件工程任务时,它们往往会随着时间推移而退化,我们将其定义为*代理漂移*。本文聚焦于两种常见的失败模式*过度思考*和*过度行动*,即代理反复对已有信息进行推理,或在未整合最新观察或获取新证据的情况下发出工具调用。在本文中,我们引入TACT(通过激活引导的思考-行动校准),以在行为失败出现之前检测并缓解代理漂移。具体而言,我们将轨迹步骤标记为过度思考、过度行动或校准,并发现其隐藏状态可以沿着两个*漂移轴*线性分离,指向校准行为方向的每个失败模式(AUC≈0.9)。为了缓解代理漂移,我们在测试时将每一步的激活投影到这些轴上,并将漂移的步骤拉回校准区域。实验表明,TACT在SWE-bench Verified、Terminal-Bench 2.0和CLAW-Eval上均优于未引导的基线,使Qwen3.5-27B的平均解决率提升+5.8个百分点,Gemma-4-26B-A4B-it提升+4.8个百分点,同时将解决步骤减少多达26%。这些收益将代理漂移框架为残差流中的可引导方向,并将TACT定位为可靠长周期代理的可行处理手段。

英文摘要:

When language model agents tackle complex software engineering tasks, they often degrade over long trajectories, which we define as *agent drift*. We focus on two recurring failure modes *overthinking* and *overacting*, i.e., where the agent repeatedly reasons over information it already has, and where it issues tool calls without integrating recent observations or acquiring new evidence. In this paper, we introduce TACT (Think-Act Calibration via activation Steering), to detect and mitigate agent drift in the residual stream before it surfaces as a behavioral failure. In specific, we label trajectory steps as overthinking, overacting, or calibrated, and find that their hidden states can separate linearly along two *drift axes*, pointing from calibrated behavior toward each failure mode (AUC $\approx$ 0.9). To mitigate agent drift, we project each step's activation onto these axes at test time and pull drifted ones back toward the calibrated region. Experiments show that TACT outperforms unsteered baselines across SWE-bench Verified, Terminal-Bench 2.0, and CLAW-Eval, lifting average resolve rate by $+5.8$ pp on Qwen3.5-27B and $+4.8$ pp on Gemma-4-26B-A4B-it while cutting steps-to-resolve by up to $26\%$. These gains frame agent drift as a steerable direction in the residual stream, and position TACT as a viable handle for reliable long-horizon agents.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑