PaperarXiv:2611.30405 · cs.LG · Nov 23, 2026
Optimistic Online Learning for Coding Agents with Aggregate Feedback
Hao Luan, Hao Qiu, Zhi Zheng, See-Kiong Ng, Zhiyong Huang
The bandit formulation with shared-noise sampling and residual estimation is a clean, modest theoretical contribution with a matching lower bound in K and prediction error. The coding-agent evidence is thin: - single runs with few-task margins; - one-point, reproduced baselines; - the best fixed policy in hindsight is never reported; - no reward mapping and no hint ablation on real tasks; - simulations suggest the adaptive variant's gains do not come from the hints. The method also requires white-box model access.
Novelty
3 out of 5Rigor
2 out of 5Reproducibility
2 out of 5Relevance to harnesses
2 out of 5
TL;DR
The paper chooses among discretized activation-steering settings (TACT variants) at every turn of a coding agent. It uses a bandit learner that sees activation-based hints each turn and only an aggregate reward at task end, and it proves an O(sqrt(KV)) leading regret term with a matching lower bound. On SWE-bench Verified and Terminal Bench 2.0 with Qwen3.5-27B, single runs show 65.0 vs 62.0 and 34.8 vs 32.6 over static TACT-Cap. The paper reports no seeds or variance.
Adversarial review by Harness Hub · Nov 26, 2026 · read full text (truncated) · Suggest a correction
Original abstract (authors’ text, select to expand)
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.
Authors’ note
19 pages, 4 figures
Filed underevaluationcoding-agentsagentsllm
Summary
The setting is a coding agent (mini-swe-agent harness, Qwen3.5-27B) steered by TACT, a residual-stream intervention against overthinking and overacting. The question is which of K discretized TACT hyperparameters to apply at each turn. The authors model this as a bandit with fixed (oblivious) reward and hint sequences. Before each turn the learner sees a hint vector in [0,1]^K. After the task it sees only the sum of per-turn rewards for the actions it selected. Algorithm 1 is optimistic FTRL with a Tsallis plus log-barrier regularizer (beta = 6L). It draws Exp(1) noise once per task and reuses it across turns, so that tasks played with a single policy throughout are likely enough to learn from. On those tasks it importance-weights the task residual (reward minus summed hints) to get an unbiased estimate of each policy's cumulative prediction error. Algorithm 2 replaces the oracle choice of alpha with doubling restarts triggered by an observable potential gap. The theory gives: - O(sqrt(KV) + KL log(1+T/KL)) regret for Algorithm 1 (Theorem 4.1); - an extra log factor in the additive term for Algorithm 2 (Theorem 4.2); - an Omega(sqrt(K Vbar)) lower bound (Theorem 4.3). The experiments are: - a 4-task case study (Table 1); - one table of resolve rates on SWE-V (500 tasks) and TB2 (89 tasks), with only Algorithm 2 run (Table 2); - synthetic simulations with 50 seeds (Table 3, Figures 1-4). The real-agent results come without seeds, confidence intervals, hint ablations, the per-grid-point fixed-policy results, or the mapping from binary task resolution to the bandit reward. The hints are built from the same TACT calibration box that the steering policies enforce.
Key findings
- Table 2, SWE-V: Ours-TACT-Cap 65.0 vs Static TACT-Cap 62.0, B-EXP3-TACT-Cap 62.0 and Vanilla Decoding 55.0. Ours-TACT-Gate 63.0 vs Static TACT-Gate 57.0 and B-EXP3-TACT-Gate 58.0.
- Table 2, TB2: Ours-TACT-Cap 34.8 vs Static TACT-Cap 32.6, B-EXP3-TACT-Cap 31.5 and Vanilla 28.1. Ours-TACT-Gate 32.6 vs Static TACT-Gate 30.3 and B-EXP3-TACT-Gate 27.0.
- Table 1: on 4 Astropy tasks from SWE-V, no single lambda resolves more than 2/4, while a per-task hindsight oracle resolves 3/4.
- Table 3 (simulation, T=10^8, units x10^3): Ours adaptive is 55.50 at w=0, 0.1 and 0.2. Ours alpha* rises from 55.50 to 148.30 to 240.79. In the w=0 row, B-EXP3 with eta* is 287.5 and adaptive B-EXP3 is 843.
- Section 5.3: Algorithm 2 is reported as approximately invariant to hint noise, even with pure-noise hints. Algorithm 1 outperforms tuned B-EXP3 only near w=0, and outperforms the doubling variant up to w=0.6.
- Section 5.3, K ablation: the advantage narrows as K grows. The method trails tuned B-EXP3 by less than 3% at K=512.
- Theorems 4.1-4.3: the leading term O(sqrt(KV)) matches the lower bound in K and prediction error up to constants. Minimax optimality holds only when this term dominates the additive KL-log terms.
The paper at a glance
- Draw Exp(1) noise per policy at task start
- Each turn: compute activation-box hints for K steering settings
- Optimistic FTRL (Tsallis + log-barrier) gives p_t
- Select argmin noise/p_t, apply steering for that turn
- Task ends: observe aggregate reward R_b
- Importance-weight residual if same policy used all task; update scores
- Algorithm 2: restart with stronger regularization when potential gap exceeds threshold
Data table
| Method | % |
|---|---|
| Vanilla Decoding | 55% |
| Static TACT-Cap | 62% |
| B-EXP3-TACT-Cap (adaptive) | 62% |
| Ours-TACT-Cap (adaptive) (this paper) | 65% |
Why it matters
For most harness builders this paper is not directly usable. The method needs read and write access to a model's residual stream, so it applies only if you self-host an open-weights model and already run activation steering such as TACT. Harnesses built on closed API models cannot use it, and that covers most coding-agent products. The more transferable idea is the credit-assignment device for learning per-turn choices from a single end-of-task signal. Shared randomness within a task makes whole-task commitment to one option common enough to estimate from, and the task residual corrects per-turn predictions. That device could in principle drive other per-turn harness knobs such as model routing, reasoning budget or tool gating, but the paper does not test any of them. The empirical evidence for coding agents is a single run per method, with differences of 15 tasks on SWE-V and 2 tasks on TB2. Builders should treat the gains as unconfirmed.
Issues (8)
- High severityWhere in paper: Section 5.2, Table 2; Section 6
The real-agent results are single runs with no seeds, variance or confidence intervals, and the margins are small. On SWE-V, 65.0 vs 62.0 (Ours-TACT-Cap vs Static TACT-Cap) is 15 of 500 tasks. On TB2, 34.8 vs 32.6 is 2 of 89 tasks. LLM agent runs are nondeterministic, so these gaps are within plausible run-to-run noise. The conclusion's claim that the method 'consistently outperforms static and heuristic steering baselines' is not supported at this sample size.
- High severityWhere in paper: Section 5.2, 'TACT-related setups' and 'Online adaptation setup'
The comparator the theory targets is never measured. Regret is defined against the best fixed grid policy in hindsight, yet Table 2 reports only one static point per TACT variant, taken from hyperparameters TACT reported as optimal for a different setup. These were not re-tuned for Qwen3.5-27B under this reproduction. The adaptive method gets an 8-point grid while each static baseline gets one point. The TB2 Cap grid {1.6,...,2.3} also differs from the SWE-V grid {1.0,...,3.0}, and the paper does not say how it was chosen or whether TB2 results informed the choice.
- High severityWhere in paper: Section 5.2 'Hint setup'; Section 5.3 'Ablating hint accuracy'; Table 3
The real-task evaluation does not isolate what the hints contribute. - The hints score how well activations stay inside the TACT calibration box that the steering policies are designed to enforce, so they partly measure the intervention itself rather than task success. - In simulation, Algorithm 2's terminal regret is 55.50 at w=0, 0.1 and 0.2 (Table 3), and the paper calls it approximately invariant even to pure-noise hints. That points to regularization and restart structure as the source of the gain over B-EXP3, not hint accuracy. This undercuts the abstract's framing that performance improves with hint accuracy. - No real-task run uses random or constant hints.
- High severityWhere in paper: Section 3.2; Theorem 4.1; Section 5.2; Section 5.3 'Asymptotic performance'
The theory and the evaluation regime do not line up. - The model assumes additive per-turn rewards in [0,1] summing to R_b, but the real metric is binary task resolution. The paper never states how R_b or the per-turn rewards are defined in the experiments. - In simulation, the advantage over tuned B-EXP3 appears only after about 10^4 turns, and over doubling B-EXP3 after about 5x10^4 turns. - The real runs cover only 500 or 89 tasks, and total T is not reported. With 89 tasks and doubling restarts, little cross-task learning can occur, so any gain likely comes from within-task hint-driven switching rather than the regret-guaranteed learner.
- Medium severityWhere in paper: Section 5.3 'Setup'; Table 3
The simulation is favorable to the method in ways the paper does not discuss. - Hints are built directly as (1-w)r + w u from the true rewards, so for w<1 they carry exact reward signal. This is unlike activation-box hints. - The instance is stationary, with a fixed best arm leading by 0.15 per turn. - Some CIs are reported as ±0.00 across 50 seeds. - Algorithm 1 is given an oracle V. The simulations therefore say little about the adversarial or real regime the bounds are framed for.
- Medium severityWhere in paper: Section 5.2, footnote 2
TACT was reimplemented from the paper text because no official code was available (footnote 2). The fidelity of every TACT-based row in Table 2 is unverified. The paper links no code or data.
- Low severityWhere in paper: Section 5.1, Table 1
The case study that motivates adaptivity uses 4 tasks with one run per policy-task pair. The 'adaptive oracle' gains a single task, which may reflect sampling variance rather than a real policy-task interaction.
- Low severityWhere in paper: Abstract; Section 1; Section 5.2
The abstract and introduction frame the work around Web development platforms, issue trackers and CI services. The experiments use none of these and run offline benchmarks in mini-swe-agent. Possible contamination of SWE-bench Verified for Qwen3.5-27B is not discussed, though it affects all rows equally.
Questions for the authors
- What are the mean and spread of resolve rates on SWE-V and TB2 across multiple seeds for each method in Table 2?
- What resolve rate does each of the 8 fixed grid policies achieve, i.e. what is the best fixed policy in hindsight?
- How is the binary task outcome mapped to R_b and per-turn rewards, and how does that fit the additive [0,1] per-turn model?
- What happens on real tasks when the hints are replaced with uniform noise or constants?
- How many total turns T did the SWE-V and TB2 runs involve, how many restarts did Algorithm 2 trigger, and where does that T fall on the simulated regret curves?
- Why does Algorithm 2's terminal regret stay at 55.50 regardless of hint noise, and how much of its gain over B-EXP3 comes from within-task switching rather than hint accuracy?
- How was the TB2 TACT-Cap grid chosen, and was any of it selected using TB2 results?
Related in the directory
Open-source projects
Open source · SWE-agent (Princeton & Stanford)
Open source · SWE-bench
Open source · Harbor
Open source · Princeton NLP / SWE-agent
More tools on the same problem
Products and open-source projects in the directory closest in meaning to this paper.
Open source · LangChain
Open source · Microsoft
Open source · microsoft
Open source · Gen-Verse
Open source · Parcha-ai
Open source · boshu2
Related papers
arXiv:2610.29870 · cs.SE · Oct 21, 2026
Coding agents can invest substantial effort in repository exploration and testing yet still produce unsuccessful patches. Existing online steering methods review trajectories periodically or invoke an advisor when a monitor detects behavioral problems; frequent reviews are costly, and the absence of anomalous behavior does not mean that an agent is on the right track. We propose PAUSE, a framework for steering coding agents with a single planning intervention. Agents reach their first source-code edit at a median of 60% of trajectory progress, after exploration, bug reproduction, and testing. PAUSE intercepts this edit request before it executes, which requires no learned monitor, no search over checkpoints, and no extra model call (search-free). A separate Planner reads the task and the pre-edit transcript and writes one repair plan; the same agent, the Executor, resumes with this plan, keeping its context and workspace. PAUSE applies online, during a live run, and offline, from a recorded trajectory prefix. We evaluate PAUSE on SWE-bench Verified and SWE-bench Multilingual with two Executors and three agent harnesses. With Qwen3-coder as Executor and GPT-5.6 Sol as Planner, online steering improves resolution by 16.8% on Verified in OpenHands and by 14.7% on Multilingual in SWE-agent. In SWE-agent, PAUSE outperforms LivePlan, a rule-triggered advisor, by 3.2% on Verified and 3.7% on Multilingual at similar Planner cost, and is comparable to SICA's periodic overseer at about 11-15% of its Planner cost. Offline, PAUSE recovers 35.4% of eligible failed Verified tasks, and resuming from the recorded prefix uses 33-41% fewer Executor tokens than restarting.
Viral Patel, Boyin Tan +2
arXiv:2610.37651 · cs.CL · Oct 27, 2026
Large Language Models (LLMs) are increasingly used in multi-turn agentic workloads that require sustained interaction with complex environments. Existing reflective prompt optimizers such as GEPA learn from failed rollouts, but agentic failures can also come from prompt weaknesses, harness limitations, stochastic execution, or noisy judges. We argue that such failures may not provide useful learning signal, and may even be harmful; and thus it is essential to curate which tasks are provided to the prompt optimizer for better performance. We introduce GEPA-Curator, a framework that augments the prompt optimizer to select which agent experiences should shape prompt optimization. In particular, GEPA-Curator consists of two components: task curation, which filters out tasks that are likely to provide noisy or unreliable learning signals, and prior success retrieval, which selectively retrieves past successful trajectories for a task and provides them as additional context to the prompt optimizer. We evaluate GEPA-Curator on GoBrowse, ALFWorld, AppWorld, and $τ$-bench, using both Gemini 3.1 Pro and Claude Opus 5 as optimizer models. GEPA-Curator matches or exceeds the mean performance of both baselines, with gains of up to 20.7% over GEPA and 21.2% over ACE.
Zack Yu, Nicholas Lee +9
arXiv:2610.29822 · cs.AI · Oct 21, 2026
As coding agents become more capable, developers increasingly use them to fix bugs through multi-turn interactions. Existing benchmarks do not adequately cover this scenario. Most present a complete issue report in a single turn without interaction. Their evaluation can produce both false positives and false negatives, accepting incorrect patches or rejecting correct ones. We introduce UserSWE for evaluating coding agents' ability to fix repository-level bugs through multi-turn interactions with dynamic users and execution-grounded verdicts at every turn. Its construction pipeline turns repository history and existing single-turn benchmarks into multi-turn tasks. At each turn, information pools constrain what the simulated user can reveal, while a persona chain sampled from a transition model calibrated on 20,859 development sessions governs how it speaks. Tests run after every turn, and a pair of agents from different model families writes and gates each verdict, using test results as primary evidence and model judgment only for aspects the tests cannot resolve. We evaluate eleven agents on 72 tasks from 42 repositories and find that agent rankings change with the interaction budget. Claude Fable 5.1 resolves the most tasks in one turn, GPT-6-Astra resolves the most by the eighth turn, and Claude Opus 5 leads at most intermediate budgets. These results indicate that single-turn performance is insufficient to characterize interactive coding ability.
Zhan-Yu Wu, Ji Luo +6
arXiv:2610.34938 · cs.SE · Oct 26, 2026
Coding agents can adapt their harnesses, the software, configuration, and instructions used to run them, based on experience from earlier tasks, but whether these adaptations improve their behavior on later tasks remains unclear. We study \retro, a skill that asks an agent to review a completed session and propose harness changes, and ask what changes it proposes and whether implemented changes reduce repeated work on later tasks. We ran Claude Code on 30 SWE-bench Verified issues, qualitatively coded the 125 proposals from \retro, implemented 24, and evaluated 12 harness changes on later issues from the same repositories in fresh sessions with and without each change. Most proposals referred to an event in the session, but 18 of 43 lint-related proposals recommended a practice regardless of what had happened. Among the seven evaluations in which sessions without the change encountered the targeted problem, two changes eliminated the targeted action, one reduced its occurrence, four showed no reduction, and some changes added work on unrelated issues. Harness self-evolution requires more than generating and implementing changes: it needs ways to establish whether a change helps on later tasks and to revise or remove changes that do not.
Christoph Treude, Sebastian Baltes
arXiv:2610.32338 · cs.SE · Oct 23, 2026
Large language model (LLM)-based coding agents increasingly resolve real-world software engineering tasks, yet still fail on many of them. Prior trajectory studies characterize these failures through task-agnostic patterns of agent behavior, such as repeated actions. However, an agent may follow a sound workflow yet act on a faulty understanding of the existing code, the task requirements, or a candidate fix. Reasoning models, which power most state-of-the-art coding agents, reveal this understanding in their native chain-of-thought (CoT), whose claims about the task can be checked against the facts. Yet it remains unclear how many such checkable claims the CoT contains, how many are faulty, and whether faulty claims actually cause incorrect patches. We present the first empirical study of such claims, which we term task-grounded reasoning, analyzing 400 trajectories of four open-weight reasoning models on SWE-bench Pro. We extract atomic claims from the CoT with an LLM, assess them against evidence gathered by an LLM agent, and manually trace the defects of incorrect patches back to faulty claims, confirming each link with a claim-corrected replay. Task-grounded reasoning covers only 18.5% of the CoT tokens, yet yields 191 atomic claims per trajectory, at least 9.6% of which are faulty. Faulty claims also occur in 96.7% of the resolved trajectories, so their mere presence is a weak signal of failure. Yet two thirds of the 188 incorrect patches trace back to faulty claims. Correcting such a claim makes the agent fix the linked defect in 89.0% of the cases, and correcting all such claims resolves 11.7% of the failed tasks. Our findings show that the CoT carries task-specific signals for diagnosing and repairing agent failures, but exploiting them requires pinpointing the few faulty claims that actually cause patch defects.
You Wang, Jinjun Huang +4
arXiv:2610.32196 · cs.AI · Oct 23, 2026
Repository-level coding benchmarks largely assume that tasks and environments remain unchanged throughout execution. In software development, code, dependencies, runtime state, and requirements can change while an agent is still working. We introduce SWE-Shift, a benchmark for evaluating coding agents under such mid-execution changes. From the same saved history and workspace, a Clean continuation proceeds without intervention, while a matched Shifted continuation receives a task-relevant update. Success requires completing the current task, preserving still-valid work, and satisfying the applicable state and evidence checks. The benchmark contains 120 scenarios across 12 change families, each evaluated at nine scheduled intervention positions. We evaluate 17 coding-agent systems, all of which have lower Shifted than Clean success. GPT-6 Astra drops from 67.35% to 24.79%, with 20.34% paired success. Tool/session changes and stale evidence yield zero paired success across all systems. Late-position paired success is lower for some systems and higher for others. These results show that success on the unchanged task can coexist with failures to preserve work, recover state, or refresh evidence after an update.
Victor Shea-Jay Huang, Rongqing Li +8