TLDR: A new framework uses two large language models (LLMs) – a Judge and a Planner – to iteratively identify and correct errors in AI agent action plans for embodied tasks. This language-based approach improves plan quality, efficiency, and spatial coherence, achieving high recall (up to 90%) and precision (up to 100%), and converges quickly (96.5% in three iterations), making training data cleaner for embodied AI.
Large Language Models (LLMs) are becoming increasingly capable of generating complex plans for AI agents that operate in the real world, known as embodied AI. These agents might be tasked with performing household chores or navigating environments. However, the plans generated by LLMs, or even human demonstrations used to train these agents, often contain errors. These can range from unnecessary actions and redundant movements to logical mistakes, all of which can reduce the effectiveness and quality of the AI’s performance.
Researchers from the University of Illinois Urbana-Champaign have introduced an innovative solution to this problem: an iterative verification framework. This framework employs two specialized LLMs working in tandem: a “Judge LLM” and a “Planner LLM”. The Judge LLM’s role is to meticulously review sequences of actions and identify any flaws, while the Planner LLM takes this feedback and revises the plan. This back-and-forth process leads to progressively cleaner and more logically sound action sequences.
How the Verification Framework Works
Unlike traditional rule-based systems that require specific, handcrafted rules for every possible error, this new method leverages the power of natural language prompting. This means the Judge LLM is guided by common-sense criteria expressed in plain language, allowing it to generalize across a wide variety of error types, including irrelevant actions, contradictions, and missing steps in a plan. The Judge LLM operates independently, without needing direct access to an environment simulator or visual input, making it highly adaptable and easy to integrate into existing embodied AI systems.
The process begins with a Planning Agent generating an initial plan for a given goal. This plan is then passed to the Judge LLM, which analyzes each step. If an action is deemed redundant, irrelevant, contradictory, or otherwise unjustified, the Judge flags it and provides a natural language explanation. The Planning Agent then uses this feedback to revise its plan. This iterative loop continues until the Judge LLM finds no further objections or a set maximum number of iterations is reached. This ensures that the final plan is not only accurate but also efficient in its use of time and actions.
Impressive Results and Efficiency
The framework was rigorously tested on a subset of the TEACh embodied AI dataset, which contains human-annotated actions for household tasks. The evaluation involved four state-of-the-art LLMs: GPT-4-mini, DeepSeek-R1, Gemini 2.5, and LLaMA 4 Scout, acting as both Judge and Planning agents. The results were highly promising, with the framework achieving up to 90% recall (identifying most errors) and 100% precision (correctly flagging only actual errors) across these models.
One of the most significant findings was the rapid convergence of the refinement loop. A remarkable 96.5% of action sequences required at most three iterations to be corrected, with 62% being corrected after just the first iteration. This demonstrates the efficiency of the iterative feedback mechanism in quickly resolving plan defects. The process not only improves the temporal efficiency of the plans but also enhances the spatial organization of actions.
Also Read:
- Unlocking LLM Potential: How JudgeAgent Dynamically Evaluates AI
- AI Agents Master Complex Tasks by Integrating Linguistic Guidance and Direct Experience
Beyond Error Correction: Learning from Human Behavior
Crucially, this method doesn’t just remove errors; it preserves human error-recovery patterns. This means that instead of simply deleting suboptimal behaviors, the framework helps identify them, opening doors for future research into how AI agents can learn from these human-like recovery strategies. This could lead to more robust and adaptable agents that can recognize and correct their own mistakes in real-time, much like humans do.
The research highlights that while some Judge LLMs are more conservative (like DeepSeek-R1 with high precision but lower recall), others are more aggressive (like GPT-4-mini with high recall but slightly lower precision). Gemini 2.5 demonstrated a well-rounded performance, balancing both metrics effectively. The study also revealed that models often perform best when paired with themselves, suggesting internal consistency in their evaluation criteria.
By establishing plan verification as a reliable capability for LLMs in spatial planning and action refinement, this work provides a scalable pathway to generating higher-quality training data for imitation learning in embodied AI. This advancement is detailed further in their research paper: Plan Verification for LLM-Based Embodied Task Completion Agents.
This framework represents a significant step forward in making LLM-based embodied AI agents more reliable, efficient, and capable of handling complex real-world tasks by systematically refining their action plans through intelligent, language-driven critique and revision.


