Structured Feedback Improves Repair in an LLM Agent Loop

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Expert, quick

Summary

VeriHarness, a novel code-controlled agent loop, enhances the repair capabilities of LLM agents by providing structured feedback during retry attempts. This system allows models to generate candidates while external validators manage acceptance, budgets, and traces. Researchers compared raw diagnostic feedback against structured feedback that precisely identifies the failure location, observed value, and admissible alternatives. Across 50 paired TextWorld games, under a four-call cap, feedback incorporating all three fields dramatically improved terminal success. For Qwen2.5-Coder-14B, success rose from 14/50 to 36/50 (+44 percentage points), and for Llama-3.1-8B, it increased from 8/50 to 29/50 (+42 points). Ablation studies revealed that the "admissible alternatives" component contributed most to these gains, with location and observed value alone showing minimal improvement. Interestingly, presenting complete repair information in prose yielded similar success rates to JSON, indicating the syntax itself is not the primary factor.

Key takeaway

For AI Engineers building LLM agents that require self-correction, you should integrate structured feedback mechanisms into your agent loops. Focus on providing explicit "admissible alternatives" alongside failure location and observed values, as this component drives significant repair success. This approach can boost terminal success rates by over 40 percentage points, regardless of whether you use JSON or prose for feedback. Prioritize content clarity over specific syntax to enhance agent reliability.

Key insights

Structured feedback, particularly with admissible alternatives, substantially improves LLM agent repair success rates.

Principles

Method

VeriHarness operates as a code-controlled agent loop where external validators manage acceptance, budgets, and traces, providing feedback on failure location, observed value, and admissible alternatives.

In practice

Topics

Best for: Research Scientist, AI Architect, AI Scientist, Machine Learning Engineer, AI Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.