Evaluating Uncertainty-based Failure Detection for Closed-Loop LLM Planners

Zhi Zheng, Qian Feng, Hang Li, Alois Knoll, Jianxiang FengarXiv 2024 · DOI

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities in decomposing high-level instructions into executable robot plans. However, traditional "open-loop" planners often fail because they do not verify the success of individual steps. While Multimodal LLMs (MLLMs) can provide visual feedback, they are prone to hallucinations—incorrectly reporting success when a task has failed. This paper introduces KnowLoop, a framework designed to address these reliability issues by incorporating uncertainty estimation into the robotic planning process.

The KnowLoop Framework

KnowLoop transforms the planning process into a closed-loop system by evaluating the model's confidence in its own feedback. Instead of blindly trusting an MLLM's assessment, KnowLoop analyzes the underlying probability distributions of the model's outputs to detect potential hallucinations.

The KnowLoop closed-loop planning system integrates an uncertainty-based failure detector to decide when to proceed, retry, or ask for help.

The system employs three primary uncertainty metrics:

  1. Token Probability: The raw probability assigned to specific response tokens (e.g., "Yes" vs. "No").
  2. Entropy: A measure of the disorder in the output layer, indicating when a model is conflicted between multiple answers.
  3. Self-explained Confidence: A direct query asking the model to rate its own certainty.

When uncertainty exceeds a predefined threshold, the system triggers a "human-in-the-loop" intervention, asking for clarification rather than proceeding with a potentially flawed plan. This allows the robot to proactively say "I'm not sure" instead of failing blindly.

Experimental Setup and Datasets

The researchers validated KnowLoop using a Diana 7 robot arm across five distinct manipulation tasks, including picking and placing objects (mouse, sponge, smartphone) and operating drawers.

The experimental setup featuring a Diana 7 robot arm performing manipulation tasks like opening drawers and picking objects.

A dataset of 142 samples was collected, capturing both successful executions and various failure modes such as missed grasps and collisions. The team also explored different prompting strategies, finding that direct comparisons of subgoal states (SSC) and spatial relationship analysis (SRA) were significantly more effective than indirect next-action predictions (NAC).

Key Results and Insights

The evaluation revealed that MLLMs are generally poor at self-assessment; "self-explained confidence" proved to be the least reliable metric due to model overconfidence. In contrast, mathematical metrics like entropy and token probability were strong indicators of actual accuracy, providing a reliable "tell" for hallucinations.

By implementing entropy-based filtering, KnowLoop significantly improved performance. For instance, in a mouse-picking task, the success rate rose from 10% (using standard ChatGPT-4V) to 70%. The failure detector achieved over 80% accuracy in several tasks. Crucially, because the method relies on internal model statistics, it generalizes across different architectures like LLaVA and GPT-4V without requiring task-specific tuning.

Limitations and Future Work

While KnowLoop represents a significant step toward reliable autonomous robotics, several challenges remain. The current implementation requires manual setting of uncertainty thresholds, which the authors hope to automate using techniques like conformal prediction. Additionally, the computational overhead of running full MLLMs for every sub-step suggests a need for smaller, specialized detection models. Future research will also focus on improving autonomous recovery strategies to minimize the need for human intervention.

Summary updated

BibTeX
@misc{zheng2024evaluating,
  author = {Zhi Zheng and Qian Feng and Hang Li and Alois Knoll and Jianxiang Feng},
  title = {{Evaluating Uncertainty-based Failure Detection for Closed-Loop LLM Planners}},
  year = {2024},
  eprint = {2406.00430},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.00430},
}
Figure