Study finds iterative feedback helps coding agents most on easy and medium problems
A controlled study of six feedback types on coding problems reports that gains shrink as difficulty rises, and that parallel sampling can beat refinement on hard tasks.
In plain words
Coding agents sometimes improve their answers by retrying with feedback after a first attempt. Researchers tested six kinds of feedback, such as execution reports and code review, on problems of varying difficulty. They found feedback helps a lot on easy problems but barely helps on hard ones, where simply generating many answers in parallel worked better.
What was announced
The arXiv paper compares six feedback types commonly used with coding agents: detailed execution reports, aggregate performance scores, self-reflection, external LLM code review, failures on LLM-generated tests, and ground-truth hints written by human experts. The evaluation used a controlled testbed of coding problems spanning different difficulty levels, with agents refining responses at test time based on environment feedback.
Effectiveness depended strongly on difficulty. On easy problems, nearly all feedback types let the agent reach full accuracy on problems it initially failed. On medium problems, feedback derived from ground-truth solutions gave the largest improvement at 40.4 percent, followed by LLM-generated test cases at 24.1 percent. On hard problems, ground-truth hints added only 5.3 percent, while LLM-generated test cases remained most effective at 20.4 percent. Under the same inference budget, best-of-N parallel sampling outperformed every iterative-feedback method on hard problems. The authors attribute refinement gains to the gap between the initial response and the best solution parallel sampling could reach, describing an illusion of sequential refinement in which agents recover from poor first attempts without surpassing what they could independently generate.
What it does not show
- The evidence is the paper's abstract only; full methodology, model details, and complete results are not available in the supplied passages.
- The reported percentages come from the authors' own testbed and have not been independently confirmed.
Sources
Source-support review completed 2 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 2 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.