When Does Feedback Help? Evaluating Feedback for Iterative Refinement in Coding Agents
This arXiv paper studies which forms of feedback most effectively help coding agents refine responses at test time. Using a controlled testbed of coding problems across difficulty levels, it compares execution reports, aggregate scores, self-reflection, external LLM code review, failures on LLM-generated tests, and human-written ground-truth hints. Feedback effectiveness depends strongly on difficulty: ground-truth feedback gives the largest medium-problem improvement at 40.4%, while on hard problems even ground-truth hints yield only 5.3% and LLM-generated test feedback is most effective at 20.4%. Under the same inference budget, best-of-N parallel sampling outperforms every iterative-feedback method on hard problems, suggesting an illusion of sequential refinement.