WALL-E: World Alignment by NeuroSymbolic Learning improves World Model-based LLM Agents

December 3, 2025 · View on GitHub

WALL-E

WALL-E: World Alignment by NeuroSymbolic Learning improves World Model-based LLM Agents

arXivhuggingfacecode

teaser

WALL-E mining a diamond in Mars. Step 1-2: the agent makes decision via MPC with the initial unaligned world model, resulting in a failed action for mining iron. Step 3: leveraging previous trajectories and world model predictions, WALL-E learns symbolic knowledge, including rules, knowledge graphs, and scene graphs. Step 4-5: the learned symbolic knowledge helps the world model make accurate predictions and correct the previous mistake. Step 6-7: the agent adjusts its decision accordingly and replaces stone pickaxe with iron pickaxe toward completing the task.

Table of Contents

Abstract:

Can we build accurate world models out of large language models (LLMs)? How can world models benefit LLM agents? The gap between the prior knowledge of LLMs and the specified environment's dynamics usually bottlenecks LLMs' performance as world models. To bridge the gap, we propose a training-free "world alignment" that learns an environment's symbolic knowledge complementary to LLMs. The symbolic knowledge covers action rules, knowledge graphs, and scene graphs, which are extracted by LLMs from exploration trajectories and encoded into executable codes to regulate LLM agents' policies. We further propose an RL-free, model-based agent "WALL-E" through the model-predictive control (MPC) framework. Unlike classical MPC requiring costly optimization on the fly, we adopt an LLM agent as an efficient look-ahead optimizer of future steps' actions by interacting with the neurosymbolic world model. While the LLM agent's strong heuristics make it an efficient planner in MPC, the quality of its planned actions is also secured by the accurate predictions of the aligned world model. They together considerably improve learning efficiency in a new environment. On open-world challenges in Mars (Minecraft) and ALFWorld (embodied indoor environments), WALL-E significantly outperforms existing methods, e.g., surpassing baselines in Mars by 16.1%–51.6% of success rate and by at least 61.7% in score. In ALFWorld, it achieves a new record 98% success rate after only 4 iterations.

overall_framework

Overview of WALL-E (Left) and NeuroSymbolic Learning details (Right). The agent determines actions to take via MPC, where an LLM optimizes future steps’ actions by interacting with a neurosymbolic world model. WALL-E iteratively refines the symbolic knowledge with the agent’s actual trajectories in the environment and the world model predicted trajectories. The NeuroSymbolic learning takes 4 stages: (1) comparing predicted and actual trajectories; (2) learning new symbolic knowledge from real trajectories; (3) translating symbolic knowledge to code; and (4) Code rule set pruning via solving a maximum coverage problem.

Main Results

Mars

MOD. TYPEReactReflexionSkill LibraryIfRWALL-E
DEFAULT7.7 ± 1.66.0 ± 1.78.0 ± 2.19.0 ± 2.39.5 ± 2.1
TERRAIN7.4 ± 2.76.4 ± 3.09.5 ± 2.98.0 ± 3.710.7 ± 2.6
SURVIVAL6.4 ± 3.74.6 ± 3.97.9 ± 2.97.7 ± 3.713.8 ± 4.4
TASK. DEP.5.0 ± 2.13.2 ± 1.61.5 ± 1.95.6 ± 2.96.4 ± 2.9
TERR. SURV.6.7 ± 2.54.9 ± 2.53.0 ± 2.56.8 ± 1.95.5 ± 2.7
TERR. TASK.4.8 ± 2.05.3 ± 2.55.5 ± 1.56.9 ± 1.85.8 ± 2.2
SURV. TASK.1.5 ± 1.31.0 ± 1.62.3 ± 1.53.3 ± 1.43.2 ± 1.4
ALL THREE0.7 ± 1.6−0.4 ± 0.7−0.5 ± 0.50.1 ± 0.51.3 ± 1.6
AVG.4.63.64.25.56.7
  • The table shows rewards and corresponding std.
  • MOD. TYPE refers to World types, including Default (original Crafter setting with no modifications), individual modifications (Terrain, Survival, Task Dependency), and combinations of two or all three modifications (Terr. Surv., Terr. Task., Surv. Task., All Three).

ALFWorld

MethodAvg.PickCleanHeatCoolExaminePicktwo
BUTLER26314160271229
GPT-BUTLER69628185785047
DEPS769350801001000
AutoGen77927478868341
ReAct74795496858351
AdaPlanner91100100891009747
Reflexion86929470819088
RAFA9510097919510082
WALL-E (ours)981001009610010094
Human Performance91------
  • The value in each cell represents the Success Rate (%).
  • The - symbol indicates no information available for those entries.

Rule Learning Demo

The rule learning demo allows users to perform neurosymbolic learning, learning rules in natural language. You can choose to either:

  1. Use an example subset of trajectories we provide for rule learning.
  2. Collect and use your own trajectories from your environment for rule learning.

Setup

Install the module dependencies into your environment:

pip install -r requirements.txt

Running Rule Learning

Option 1: Use Provided Trajectories

We provide an example subset of trajectories for rule learning. Simply specify the path to the provided JSON file:

python run_rulelearning.py \
    --model_name gpt-4 \
    --temperature 0.5 \
    --buffer buffer_fact/traj_demo.json \
    --rule_save_dir /path/to/save/rules.json

Option 2: Collect Your Own Trajectories

If you prefer to collect your own data, gather trajectories from your environment and store them in the appropriate JSON format:

{
    "action_type_1": [
        {
            "state": { /* state details */ },
            "action": { /* action details */ },
            "action_result": { /* result details */ }
        },
        {
            "state": { /* state details */ },
            "action": { /* action details */ },
            "action_result": { /* result details */ }
        }
        // More actions...
    ],
    "action_type_2": [
        // Similar structure for different action types
    ]
    // More action types...
}

Replace "/path/to/your_collected_trajectories.json" with the path to your own trajectory data:

python run_rulelearning.py \
    --model_name gpt-4 \
    --temperature 0.5 \
    --buffer /path/to/your_collected_trajectories.json \
    --rule_save_dir /path/to/save/rules.json

ALFWorld

Stage 1: NeuroSymbolic Learning (exploration and knowledge extraction)

bash run_s1.sh

Stage 2: MPC (model-predictive control using learned knowledge)

bash run_s2.sh

Mars

Stage 1: NeuroSymbolic Learning (exploration and knowledge extraction)

python baselines/walle/s1_run.py  --load_world final_world/default --episode 5

Stage 2: MPC (model-predictive control using learned knowledge)

python baselines/walle/s2_run.py  --load_world final_world/default --episode 5

Note: Stage 2 should be run after Stage 1 completes, as it relies on the symbolic knowledge learned in Stage 1.

The backbone API model (GPT-4-32k) employed in the Mars experiments is no longer available. In response, we are optimizing WALL-E’s knowledge-graph extraction pipeline using a program-learning approach for scene-graph induction. Updated code will be released in an upcoming version.

Citation

If you find our work useful, please cite:

@article{zhou2025wall,
  title={WALL-E 2.0: World Alignment by NeuroSymbolic Learning improves World Model-based LLM Agents},
  author={Zhou, Siyu and Zhou, Tianyi and Yang, Yijun and Long, Guodong and Ye, Deheng and Jiang, Jing and Zhang, Chengqi},
  journal={arXiv preprint arXiv:2504.15785},
  year={2025}
}