Language Models Meet World Models: Embodied Experiences Enhance Language Models

Jiannan Xiang, Tianhua Tao, Yi Gu, Tianmin Shu, Zirui Wang, Zichao Yang, Zhiting Hu

TL;DR

Large Language Models (LLMs) are often "brains in a vat," excelling at text but failing at basic physical reasoning like object permanence or household planning. This paper introduces E2WM, a framework that finetunes LMs using experiences gathered from a physical simulator (VirtualHome). This approach enables smaller models like LLaMA-13B to match or even outperform ChatGPT on embodied reasoning tasks while retaining their general language mastery.

The Problem: Missing Embodied Knowledge

Despite their eloquence, LLMs frequently stumble when asked to reason about the physical world. If you tell an LLM that "Mary moved the apple from the kitchen to the bedroom," and then ask where the apple is, it might succeed. But add a dozen irrelevant actions or ask it to generate a multi-step plan to "make coffee," and the logic often falls apart.

Overview of the E2WM training paradigm

The authors argue this limitation arises because LLMs are trained exclusively on text corpora, missing the embodied knowledge—the intuitive understanding of cause, effect, and spatial consistency—that humans gain by interacting with the world. Previous attempts to fix this usually resulted in "task-specialized" models that lost their general conversational abilities. This paper seeks to inject physical "common sense" into LMs without breaking their general-purpose reasoning capabilities.

Methods: The E2WM Paradigm

The authors propose a new training paradigm called Finetuning with Embodied Experiences from World Models (E2WM). The process follows three main steps:

  1. Experience Collection: The researchers deploy agents in VirtualHome, a 3D physical simulator. They gather data using two distinct strategies:
  2. Goal-Oriented Planning: Using Monte Carlo Tree Search (MCTS), agents find the most efficient sequence of actions (e.g., [Grab] -> [Walk] -> [PutIn]) to achieve a specific goal.
  3. Random Exploration: Agents wander aimlessly and interact with objects. This creates vital data for "tracking" tasks, as the model must observe where objects go even when the actions aren't goal-driven.
Experience collection via Goal-Oriented Planning and Random Exploration
  1. Task Conversion: These raw simulated experiences are translated into text-based finetuning tasks, such as Plan Generation, Activity Recognition, Counting, and Object Path Tracking.
  2. EWC-LoRA: To prevent the model from "forgetting" its original language skills (catastrophic forgetting), the authors combine two powerful techniques:
  3. LoRA (Low-Rank Adaptation): Only a tiny fraction of the model's weights are updated, making training highly efficient.
  4. EWC (Elastic Weight Consolidation): A regularization technique that penalizes changes to weights that were crucial for the original language modeling task.

Datasets and Evaluation

  • Training: Experiences generated within the VirtualHome simulator, based on the RobotHow knowledge base.
  • Evaluation:
    • Constructed Tasks: 11 tasks including "Confusing Plan Generation" (adding irrelevant context) and "Negation Housework QA."
    • bAbI: A classic reasoning benchmark (specifically 8 tasks related to embodied knowledge).
  • Generalization/Safety: Evaluated on The Pile (to check for perplexity degradation) and SuperGLUE (to ensure general linguistic performance remains high).

Key Insights

  • Simulators as "World Textbooks": We don't need real-world robot data to teach an LLM physics. High-fidelity simulators provide a structured "world model" that can generate infinite, perfectly labeled training data for reasoning.
  • The "Irrelevant Action" Hurdle: LLMs are easily distracted. By training on "Confusing" scenarios—where an agent does five random things while trying to finish a task—the authors significantly hardened the models against context distraction.
  • Selective Plasticity: The combination of EWC and LoRA is the "secret sauce." It allows the model to be "plastic" enough to learn how a kitchen works, while keeping the "rigid" parts of its brain that understand grammar and general facts intact.

Key Results

  • Massive Gains: The E2WM approach improved base LMs across 18 downstream tasks by an average of 64.28%.
  • David vs. Goliath: Finetuned small models (1.3B to 13B parameters) frequently outperformed ChatGPT (GPT-3.5-turbo). For example, on the "Object Path Tracking" task, GPT-J-6B achieved a score of 98.67, while ChatGPT trailed at 59.53.
  • Zero Forgetting: The models maintained their performance on SuperGLUE and showed negligible changes in perplexity on The Pile, proving that you can teach an old LLM new physical tricks without it forgetting how to be an LLM.

Limitations and Future Work

The primary limitation of this study is environment diversity. Currently, the model is trained only on VirtualHome, which focuses heavily on household activities. While the underlying reasoning generalizes, the specific "vocabulary" of actions is tied to that simulator.

The authors suggest that future work should involve integrating experiences from more diverse world models—such as outdoor environments, industrial settings, or even Minecraft—to create a more panoramic understanding of the physical world. They also note that as models generate more complex plans, safety filtering becomes increasingly important to prevent the generation of harmful or unethical physical instructions.

Summary updated

BibTeX
@inproceedings{xiang2023language,
  author = {Jiannan Xiang and Tianhua Tao and Yi Gu and Tianmin Shu and Zirui Wang and Zichao Yang and Zhiting Hu},
  title = {{Language Models Meet World Models: Embodied Experiences Enhance Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=SVBR6xBaMl},
}
Figure