Skip to main content
QUICK REVIEW

[Paper Review] Language Models Meet World Models: Embodied Experiences Enhance Language Models

Jiannan Xiang, Tianhua Tao|arXiv (Cornell University)|May 18, 2023
Multimodal Machine Learning ApplicationsComputer Science23 citations
TL;DR

Finetunes language models with embodied experiences from a world model (VirtualHome) using an EWC-LoRA framework, improving performance on embodied reasoning tasks while preserving language capabilities.

ABSTRACT

While large language models (LMs) have shown remarkable capabilities across numerous tasks, they often struggle with simple reasoning and planning in physical environments, such as understanding object permanence or planning household activities. The limitation arises from the fact that LMs are trained only on written text and miss essential embodied knowledge and skills. In this paper, we propose a new paradigm of enhancing LMs by finetuning them with world models, to gain diverse embodied knowledge while retaining their general language capabilities. Our approach deploys an embodied agent in a world model, particularly a simulator of the physical world (VirtualHome), and acquires a diverse set of embodied experiences through both goal-oriented planning and random exploration. These experiences are then used to finetune LMs to teach diverse abilities of reasoning and acting in the physical world, e.g., planning and completing goals, object permanence and tracking, etc. Moreover, it is desirable to preserve the generality of LMs during finetuning, which facilitates generalizing the embodied knowledge across tasks rather than being tied to specific simulations. We thus further introduce the classical (EWC) for selective weight updates, combined with low-rank adapters (LoRA) for training efficiency. Extensive experiments show our approach substantially improves base LMs on 18 downstream tasks by 64.28% on average. In particular, the small LMs (1.3B, 6B, and 13B) enhanced by our approach match or even outperform much larger LMs (e.g., ChatGPT).

Motivation & Objective

  • Motivate embedding diverse embodied knowledge into pretrained LMs to improve reasoning and planning in physical environments.
  • Propose a training paradigm (E2WM) that collects embodied experiences from world models through goal-oriented planning and random exploration.
  • Maintain LM generality during finetuning by using Elastic Weight Consolidation (EWC) plus Low-Rank Adaptation (LoRA) for efficient updates.

Proposed method

  • Collect embodied experiences from a household world model (VirtualHome) via two pathways: goal-oriented planning using Monte Carlo Tree Search and random exploration with object tracking.
  • Format experiences into finetuning tasks such as plan generation, activity recognition, counting, and object path tracking.
  • Fine-tune LMs with supervised objectives on these tasks, using EWC regularization to preserve pretraining knowledge and LoRA for efficient parameter updates (EWC-LoRA).
  • Ground regularization with Fisher information to protect important parameters, reformulated to operate with LoRA parameters to reduce memory usage.
  • Evaluate on seen and unseen embodied tasks as well as a language modeling benchmark (Pile) to ensure generalization remains intact.

Experimental results

Research questions

  • RQ1Can finetuning pretrained LMs with embodied experiences from a world model improve embodied reasoning and planning abilities?
  • RQ2Does combining EWC with LoRA (EWC-LoRA) preserve language modeling capability while enabling effective knowledge transfer from embodied tasks?
  • RQ3Do models trained with embodied experiences generalize to unseen tasks and show improvements over baselines and ChatGPT on embodied benchmarks?
  • RQ4Is performance degradation on pretraining data minimized when applying EWC-LoRA?

Key findings

  • Finetuned small LMs (1.3B, 6B, 13B) with embodied experiences outperform baselines on 11 downstream tasks and can surpass ChatGPT on several tasks.
  • Across models (GPT-Neo, GPT-J, OPT-13B, LLaMA-13B), the approach yields substantial gains on planning, recognition, counting, and tracking tasks, including higher Rouge-L and accuracy scores.
  • Perplexity on a Pile test subset is negligibly affected, showing preservation of general language modeling abilities (e.g., GPT-Neo: 4.120 base vs 4.193 ours; GPT-J: 3.443 base vs 3.537 ours; OPT-13B: 4.077 base vs 4.358 ours; LLaMA-13B: 3.036 base vs 3.069 ours).
  • EWC-LoRA provides better trade-offs than pure EWC or LoRA, achieving lower perplexity while maintaining strong downstream performance.
  • Ablation studies show removing training tasks degrades downstream performance, confirming the value of each embodied task.
  • On bAbI tasks, finetuned models outperform base LMs and in some cases surpass ChatGPT on challenging items.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.