基于聚合反馈的编码智能体乐观在线学习
Optimistic Online Learning for Coding Agents with Aggregate Feedback
AI总结:
该研究针对LLM编码智能体的行为漂移问题,提出在线乐观激活调控元框架,将调控策略选择建模为带延迟反馈的多臂老虎机问题,经实证验证其优于静态策略与自适应基线。
摘要:
在Web开发平台上运行的大语言模型(LLM)编码智能体可与代码仓库、问题跟踪器及持续集成服务交互,以完成长周期软件工程任务。然而,行为漂移仍是这类多轮推理与行动轨迹的主要瓶颈。为缓解该问题,激活调控(activation steering)作为一种通过干预LLM的Transformer残差流来规范智能体行为的有前景方法已被提出。但现有方法通常对所有任务应用静态调控策略,忽略了单一策略难以适配异构任务与不同执行轮次的事实。这一局限促使在候选调控策略中进行动态在线选择。然而,在长周期智能体场景中实现该操作颇具挑战:可验证的任务级反馈仅在任务完成时才会显现,导致各调控轮次的贡献无法观测。为应对这一挑战,我们将在线调控策略选择建模为带有延迟任务级反馈与从残差流激活中提取的轮级预测提示的多臂老虎机问题。在此建模框架下,我们提出在线乐观激活调控(Online Optimistic Activation Steering)元框架,该框架利用提示指导任务内调控策略选择,并借助终端任务级反馈修正累积奖励估计。理论上,针对事后最优固定策略,我们证明了随提示精度提升而收紧的遗憾界,并建立了关于预测误差与候选策略数量的匹配下界。在真实编码基准上的实证评估表明,我们的框架优于静态调控策略与朴素在线自适应基线。
英文摘要:
Large language model (LLM) coding agents operating on Web development platforms can interact with repositories, issue trackers, and continuous integration services to carry out long-horizon software engineering tasks. However, behavioral drift remains a major bottleneck in such multi-turn reasoning and action trajectories. To mitigate this, activation steering has emerged as a promising approach for regularizing agent behaviors by intervening on the LLM's transformer residual streams. Nonetheless, existing methods typically apply a static steering policy across all tasks, overlooking the fact that a single policy is rarely effective across heterogeneous tasks and varying execution turns. This limitation motivates dynamic online selection among candidate steering policies. Yet, doing so in long-horizon agentic settings is challenging: verifiable task-level feedback is only revealed upon task completion, leaving the contributions of individual steering turns unobserved. To address this challenge, we formulate online steering-policy selection as a multi-armed bandit problem with delayed task-level feedback and turn-level predictive hints derived from residual-stream activations. Within this formulation, we introduce Online Optimistic Activation Steering, a meta-framework that uses hints to guide within-task steering policy selection and leverages terminal task-level feedback to correct cumulative reward estimates. Theoretically, against the best fixed policy in hindsight, we prove regret bounds that tighten with increasing hint accuracy and establish a matching lower bound with respect to prediction error and candidate policy count. Empirical evaluations on realistic coding benchmarks demonstrate that our framework outperforms both static steering policies and naive online adaptive baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。