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.
Rule Learning and Pruning
The Rule Learning loop follows a five-step iterative process:
- Compare: Identify discrepancies between predicted and actual trajectories.
- Induce & Refine: Use an LLM to generate and improve natural language rules based on failures.
- Translate: Convert natural language rules into executable Python code.
- 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.
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