WALL-E: World Alignment by Rule Learning Improves World Model-based LLM Agents

Siyu Zhou, Tianyi Zhou, Yijun Yang, Guodong Long, Deheng Ye, Jing Jiang, Chengqi Zhang · DOI

Introduction

Large Language Models (LLMs) possess impressive general knowledge but often falter when deployed as agents in specific, hard-coded environments. This "world alignment" challenge arises because an LLM's internal "common sense" may not match the precise "physics" of a given environment—for instance, knowing that mining requires a tool but failing to realize that a specific Minecraft version requires a stone pickaxe for iron ore. WALL-E (World Alignment by ruLe LEarning) addresses this by automatically learning and pruning symbolic rules from experience, aligning the agent's internal world model with ground-truth dynamics.

The WALL-E Framework

WALL-E is a neurosymbolic framework that combines an LLM-based world model with executable symbolic rules. The system operates through a dual-loop architecture: a Model-Predictive Control (MPC) loop for planning and a Rule Learning loop for alignment.

The WALL-E architecture integrates an LLM-based Agent and World Model with a Rule Learning loop to synchronize internal predictions with environmental ground truth.

Rule Learning and Pruning

The Rule Learning loop follows a five-step iterative process:

  1. Compare: Identify discrepancies between predicted and actual trajectories.
  2. Induce & Refine: Use an LLM to generate and improve natural language rules based on failures.
  3. Translate: Convert natural language rules into executable Python code.
  4. Prune: Apply a Maximum Set Cover algorithm to select the smallest set of rules that explains the most failures, preventing "rule bloat" and ensuring generalizability.

Model-Predictive Control (MPC)

The agent uses the aligned world model to simulate potential action sequences. If a proposed plan violates a learned rule, the world model provides immediate feedback, allowing the agent to "think before it acts" and replan efficiently.

Experimental Evaluation

WALL-E was evaluated on the Minecraft (MineDojo TechTree) and ALFWorld benchmarks. Minecraft tasks spanned six difficulty tiers, from basic wood gathering to complex redstone mining.

Key Results

WALL-E achieved state-of-the-art performance, significantly outperforming existing baselines like GITM and DEPS. In Minecraft, it surpassed human performance baselines in several categories.

Performance comparison across Minecraft tasks shows WALL-E achieving higher success rates with fewer replanning rounds compared to other LLM and VLM agents.

Beyond success rates, WALL-E demonstrated remarkable efficiency. It required 8–20 fewer replanning rounds than competitors and consumed only 60–80% of the tokens used by other methods. In ALFWorld, the agent reached a 95% success rate after just six iterations of rule learning.

Discussion and Insights

The success of WALL-E highlights several key principles for LLM agents:

  • Symbolic Rules vs. Context: Precise rules are more effective and token-efficient than long histories of failures in the prompt.
  • World Model Alignment: Applying rules within the world model to improve predictions is more effective than simply providing rules to the agent for acting.
  • Actionable Feedback: Symbolic rules provide clear reasons for failure, enabling faster recovery than model-free approaches.

While highly effective in deterministic settings, future work will address stochastic dynamics (e.g., random monster attacks) and the learning of more abstract, high-level planning rules.

Summary updated

BibTeX
@misc{zhou2024wall,
  author = {Siyu Zhou and Tianyi Zhou and Yijun Yang and Guodong Long and Deheng Ye and Jing Jiang and Chengqi Zhang},
  title = {{WALL-E: World Alignment by Rule Learning Improves World Model-based LLM Agents}},
  year = {2024},
  eprint = {2410.07484},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.07484},
}
Figure