Hypothesis, Verification, and Induction: Grounding Large Language Models with Self-Driven Skill Learning

Shaohui Peng, Xing Hu, Qi Yi, Rui Zhang, Jiaming Guo, Di Huang, Zikang Tian, Ruizhi Chen, Zidong Du, Qi Guo, Yunji Chen, Ling Li

Introduction

Large Language Models (LLMs) like GPT-4 demonstrate remarkable high-level reasoning and planning capabilities. However, they frequently encounter the "grounding problem": while they understand abstract concepts like "opening a door," they lack knowledge of the specific low-level motor commands (e.g., "turn right," "move forward," "toggle") required to execute these actions in a given digital or physical environment.

Traditional approaches to bridging this gap—such as environment-specific fine-tuning or manually programmed skill libraries—are labor-intensive and brittle. This paper introduces HYVIN (Hypothesis, Verification, and Induction), a framework that enables LLMs to autonomously ground themselves by learning low-level skills without human-labeled data or expert demonstrations.

The HYVIN Framework

HYVIN facilitates autonomous grounding through a four-phase process that transforms high-level instructions into executable, generalized skills.

The HYVIN framework consists of four phases: (a) Hypothesis, where the LLM decomposes tasks and generates check functions; (b) Verification, using RL to train policies; (c) Induction, clustering successful experiences into generalized skills; and (d) Deduction, where the LLM uses these skills to solve complex tasks.
  1. Hypothesis: Given an instruction, the LLM acts as a zero-shot planner. It decomposes the task into subgoals and generates check functions (Python code) to verify subgoal completion using basic perception.
  2. Verification: These check functions serve as intrinsic reward signals for Reinforcement Learning (RL). If an agent successfully reaches a subgoal, the trajectory is saved as a verified hypothesis.
  3. Induction: The system clusters verified subgoals based on semantic similarity (e.g., grouping "pick up red ball" and "pick up green box" under a "PickUp" skill). A generalized multi-task RL policy is then trained for each cluster.
  4. Deduction: The LLM utilizes this newly formed skill library to write high-level programs, solving complex, multi-step tasks that were previously inaccessible.

Evaluation and Results

The framework was evaluated on the BabyAI grid-world and the Minecraft-inspired Crafter environment. These benchmarks test a range of abilities from simple navigation to long-horizon survival tasks.

Learning curves for various BabyAI tasks. HYVIN demonstrates steady improvement in success rates across levels of increasing complexity, from GoToLocal to the challenging BossLevel.

Key results include:

  • Zero-Shot Grounding: In BabyAI's BossLevel, HYVIN achieved a 75.9% success rate (85.9% with GPT-4), comparable to imitation learning methods requiring one million expert demonstrations.
  • Bridging the Gap: While standard LLMs fail completely (0% success) on complex BabyAI tasks due to a lack of grounding, HYVIN provides the necessary low-level execution layer.
  • Long-Horizon Success: In Crafter, HYVIN significantly outperformed state-of-the-art RL models like DreamerV2 in crafting complex items (e.g., stone and iron tools), demonstrating superior handling of long-term dependencies.

Key Insights

  • LLMs as Reward Designers: By generating reward-checking code, LLMs solve the "sparse reward" problem in RL, providing dense, intermediate goals for the agent.
  • State Restoration: To improve training efficiency, HYVIN uses "restore actions" to place the agent in relevant starting states for new subgoals, focusing exploration on the task at hand.
  • Semantic Generalization: Clustering subgoals by language allows the agent to learn skills that generalize across different objects and contexts rather than memorizing specific instances.

Limitations and Future Work

Currently, HYVIN operates in a single cycle. Future iterations could explore multi-cycle, hierarchical learning to build increasingly abstract skills. Additionally, while the framework currently relies on text-based perception, integrating multi-modal LLMs could allow agents to perceive environments directly through visual input. Finally, while HYVIN eliminates the need for human demonstrations, the computational cost of training multiple RL policies remains a consideration for large-scale deployment.

Summary updated

BibTeX
@inproceedings{peng2024hypothesis,
  author = {Shaohui Peng and Xing Hu and Qi Yi and Rui Zhang and Jiaming Guo and Di Huang and Zikang Tian and Ruizhi Chen and Zidong Du and Qi Guo and Yunji Chen and Ling Li},
  title = {{Hypothesis, Verification, and Induction: Grounding Large Language Models with Self-Driven Skill Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i13.29376},
}
Figure