cs.LGNov 23, 2026

Optimistic Online Learning for Coding Agents with Aggregate Feedback

Authors: Hao Luan, Hao Qiu, Zhi Zheng, See-Kiong Ng, Zhiyong Huang

Organizations: School of Computing, National University of Singapore, Singapore 117417 · Institute of Data Science, National University of Singapore, Singapore 117602

Abstract

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.

Figures & tables

Explore similar work

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

    May 7, 2026Yuan Sui, Yulin Chen, Yibo Li +6AI Coding AgentsLong-Horizon LLM Agents

  2. SPROUT: Scaling Agentic Reinforcement Learning for Long-Horizon Software Engineering

    Oct 9, 2026Mengyang Liu, Weiming Wang, Haixin Nan +6Agentic RLRL for Code Generation

  3. LEGO-RL: Harness-Native Reinforcement Learning for Coding Agents

    Aug 18, 2026Yiming Du, Yuxin Jiang, Tao Yuan +9LLM Agent TrainingRL for Code Generation