Optimistic Online Learning for Coding Agents with Aggregate Feedback
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.
Create a lesson
Metadata
- Comments
- 19 pages, 4 figures
Related papers
MTL-MHOL: Predicting Online Conversions under Delayed Feedback and Data Sparsity
Shared title terminologycs.LGMario Tejera Vicente, Eva Hagen, Emma van Breukelen et al.
TrialAgentBench: Evaluating AI Agents for Clinical-Trial Analysis and Long-Horizon Drug-Development Decisions
Shared title terminologycs.LGBradley Segal, William Bolton, Philip Torr et al.
Composing Independently Distilled Memory and Retrieval Policies for Long-Term Agents
Shared title terminologycs.LGGrigorii Davydenko, Artem Sakhno, Igor Pavlov et al.
Aggregation Dispersion: An Information-Geometric Diagnostic of Oversmoothing in Graph Neural Networks
Shared title terminologycs.LGAbdessalam Ed-dib, Amine Mohamed Aboussalah
Learning Acceptable Lotteries via Queries: Minimizing Aggregated Violation Distances
Shared title terminologycs.LGNicholas Teh, Paul W. Goldberg
Beyond Accuracy: A Diagnostic Benchmark for Hypothesis-Driven Experiment Planning in LLM Agents
Shared title terminologycs.LGRyo Kuroki, Amin Mansouri, Philippe Schwaller