VerifyLLM: LLM-Based Pre-Execution Task Plan Verification for Robots

Danil S. Grigorev, Alexey K. Kovalev, Aleksandr I. PanovIROS 2025

Abstract

Large Language Models (LLMs) have shown significant promise in generating high-level robot task plans from natural language instructions. However, these plans often suffer from logical inconsistencies, missing prerequisites, and ordering errors that can lead to execution failure in real-world environments. We present VerifyLLM, a novel framework that audits and refines LLM-generated plans before they are executed. By integrating the formal rigor of Linear Temporal Logic (LTL) with the common-sense reasoning of LLMs, VerifyLLM identifies and corrects errors, significantly improving the safety and reliability of autonomous robot operations.

Introduction

Generating high-level action plans for robots (e.g., "make a cup of tea") requires balancing natural language understanding with strict physical and temporal constraints. While LLMs can produce plausible sequences, they frequently overlook essential prerequisites—such as grabbing a teabag before pouring water. Traditional planning systems like PDDL are logically sound but lack the common-sense flexibility of LLMs and require exhaustive manual programming.

VerifyLLM bridges this gap by acting as a pre-execution auditor. It does not generate the initial plan but instead scrutinizes it for errors. As illustrated in Figure 1, the system takes a flawed initial plan and systematically refines it into a logically sound sequence by identifying missing steps and redundant actions.

The VerifyLLM workflow: identifying errors in an initial plan and refining it into a correct sequence.

Methodology

The VerifyLLM architecture consists of two primary modules designed to ensure both formal correctness and physical feasibility.

Translation Module

The system first translates natural language task descriptions into formal Linear Temporal Logic (LTL) specifications using few-shot LLM prompting. LTL provides a mathematical framework for temporal rules (e.g., "Condition A must hold until Event B occurs"). To ensure the validity of these formulas, VerifyLLM uses an external library (Spot) to check syntax, automatically reprompting the LLM if errors are detected.

Verification Module

The core of the system is a sliding window verification process. Rather than analyzing the entire plan at once—which can overwhelm the model's context—VerifyLLM examines a window of five actions. The LLM evaluates the current action within this context against the LTL rules and common-sense constraints.

The complete VerifyLLM architecture, showing the transition from natural language tasks to formal LTL verification and plan refinement.

The module outputs structured decisions to keep, remove, move, or augment actions. This iterative process continues until the plan converges on a safe, optimized sequence.

Experimental Setup and Datasets

The framework was evaluated using the VirtualHome dataset, a benchmark for simulating household activities. Additionally, the authors introduced two new annotated datasets to the community: ALFRED-LTL and VirtualHome-LTL, both of which enrich existing benchmarks with formal LTL specifications to facilitate future research in verifiable planning.

Key Insights

  • Predictable Error Patterns: LLMs consistently fail by omitting preparatory steps (averaging over 10 missing actions per plan) and jumbling the order of operations, regardless of model size.
  • The "Goldilocks" Context Window: A sliding window of 5 actions was found to be optimal. Smaller windows lack sufficient context to catch dependencies, while larger windows introduce noise that degrades performance.
  • Synergy of Logic and Reasoning: Formal LTL provides the rigid skeleton of rules, while the LLM provides the "meat" of physical common sense. Ablation studies showed that removing the LLM verification caused a 74% spike in ordering errors, proving that formal logic alone is insufficient for real-world robotics.
  • Model Size and Verification: While small models (1B) can generate plans, the verification task requires higher-order reasoning. Larger models like Claude or Llama-3.2-3B were significantly more effective at the verification and refinement process.

Results

VerifyLLM (powered by Claude) demonstrated substantial improvements over standard optimization baselines like Chain-of-Thought (CoT):

  • Similarity: Achieved a Longest Common Subsequence (LCS) score of 0.183, more than double the CoT baseline (0.0705).
  • Error Reduction: Redundant actions were reduced from 11.40 to 8.32 per plan.
  • Timeline Correction: Ordering errors were reduced by nearly 40%, dropping from 16.80 in the baseline to 9.47.

Conclusion

VerifyLLM provides a robust safety net for autonomous robot planning by combining formal logic with LLM-based reasoning. While currently focused on sequential household tasks, future work will expand the framework to handle parallel task execution and improve grounding in specific robot hardware capabilities for high-stakes environments like healthcare and industrial manufacturing.

Summary updated

BibTeX
@inproceedings{grigorev2025verifyllm,
  author = {Danil S. Grigorev and Alexey K. Kovalev and Aleksandr I. Panov},
  title = {{VerifyLLM: LLM-Based Pre-Execution Task Plan Verification for Robots}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2025},
  doi = {10.1109/iros60139.2025.11246320},
}
Figure