Skip to content

Try Again, Don't Look Back: Blind Resampling Outperforms Self-Repair in Small Code Models

Jul 2026 · arXiv.org · Vol abs/2607.26117 · 1 citation · ⚡ 1 influential · 18 references
Computer Science

TL;DR

It is argued that this comparison of matched-budget retry conditions confounds the value of the feedback with the value of the extra attempt, and that anchoring is the cost of committing to a bad first attempt.

Abstract

Self-repair - returning a failed program to the model together with its test output and asking for a correction - is a standard component of code agents, and is almost always evaluated against a baseline that does not retry at all. We argue that this comparison confounds the value of the feedback with the value of the extra attempt. Using a placebo-controlled design on MBPP+ at three model scales (1.5B, 3B, 7B), we compare four matched-budget retry conditions: blind resampling, a content-free failure notice, genuine execution feedback, and feedback augmented with verbal self-reflection. Blind resampling is the strongest condition below 7B, and remains statistically tied with the best condition at 7B, while consuming 2.5-5.5x fewer tokens; conditioning on the model's own failed attempt costs 6.1 points at 1.5B (p=0.006), and the informational content of execution feedback adds nothing measurable over the placebo. We attribute this to anchoring: when shown its previous attempt, a model reproduces a near-identical program in 33-68% of retries, against 2-14% under blind resampling. Two further experiments delimit the effect. Retrieved solutions to other tasks change nothing (bounded to +/-3.5 points), which localizes the harm to self-conditioning rather than context length; and reflection, the only condition that measurably weakens the anchor, remains dominated on cost. Replication rules out two competing explanations: the penalty is unchanged at full precision, and it reproduces on an independent model family. Across six configurations spanning two families and two precisions, its magnitude is predicted by baseline quality alone (r=0.96) - the cost of anchoring is the cost of committing to a bad first attempt.

View source

Similar papers

#artificial intelligence Preprint Sep 2026

Self-Designed Evaluators and Warm Memory for Long-Horizon Agents

SelfSuite is presented, in which the agent's own base model, given only the world's public materials, designs a small evaluation suite of weighted judges and grounded per-task briefs, freezes it, and uses it to gate a keep-best retry and to label a typed, outcome-tracked memory.

Saeid Asgari, Emre Kıcıman, Leonardo de Oliveira Nunes et al. · 0 citations
#artificial intelligence Review Sep 2026

LLM-as-a-Judge Is Not an Oracle: Why Self-Improving Agents Need Deterministic Guardrails

ProCTOR is described, a Teacher-Student loop in which a stateful orchestrator holds all tool access, stateless subagents diagnose failures and draft mutations they cannot apply, and a Teacher grades those mutations under five deterministic guardrails: hermetic sandboxes, capability-disjoint roles, acceptance checks tha...

Vansh Wahi · 3 citations
Preprint Aug 2026

Counterfactual Sensitivity Is Not Repairability: Auditing Replay Probes for Video Evidence

CARVE is introduced, a black-box counterfactual probe that compares answer changes under matched SHAM and DESTROY replays, and shows only a weak association with annotated temporal coverage, so CARVE is best understood as a routing signal rather than a direct grounding classifier.

Rama Y. AlHamidi, Rasul Khanbayov, E. Serpedin et al. · 0 citations
Preprint Sep 2026

Merged, Not Measured: An Empirical Study of Performance Issues Fixed by Coding Agents

Coding agents open pull requests (PRs) that claim to speed up software, but studies of human performance fixes say little about how maintainers respond to such a fix or whether its claim holds. From the 71,677 agent PRs of AIDev v4, a text filter and codebook coding by language models and by the authors select 1,262 pe...

Zhen-Yu Qi, Haotang Li, Jin-Fu Chen et al. · 0 citations
#natural language process... Preprint Aug 2026

S3Gym: Can LLMs Turn Self-Testing and Self-Judging into Self-Improvement?

These findings show that recognizing successful actions is insufficient; agents must also transform feedback into executable and transferable policies, and provide a unified framework for diagnosing this process and identifying the bottlenecks that prevent agents from translating interaction experience into reliable se...

Jia-Jun Shi, Siyang Tao, Yu-Hao Wu et al. · 2 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.