LanGWM: Language Grounded World Model

Rudra P. K. Poudel, Harit Pandya, Chao Zhang, Roberto CipollaarXiv 2023

TL;DR

LanGWM (Language Grounded World Model) improves the ability of reinforcement learning agents to navigate unfamiliar environments by explicitly linking visual features to language descriptions. By training a world model to reconstruct masked objects using text prompts, the authors achieve state-of-the-art out-of-distribution generalization on the iGibson navigation benchmark within just 100,000 interaction steps.

What Problem Does This Paper Address?

Deep Reinforcement Learning (RL) has achieved remarkable success in complex tasks, but it has a "brittleness" problem: agents often fail when faced with out-of-distribution (OoD) scenarios—situations slightly different from their training data, such as a new room layout or different furniture textures.

While raw pixels are hard to generalize, language is inherently abstract and discrete. A "chair" is still a "chair" whether it’s made of wood or plastic. The authors argue that current image-based RL models lack a mechanism to capture these higher-level semantic concepts. They aim to bridge this gap by grounding an agent's visual understanding in language, helping it learn more robust representations that translate better from simulation to the real world.

Methods

The authors propose LanGWM, which consists of three tightly integrated components:

  1. Language-Grounded Representation Learning: This is the core innovation. Based on the Masked Autoencoder (MAE) architecture, the model doesn't just mask random pixels. Instead, it identifies specific objects in an image, masks their bounding boxes, and provides a text prompt describing them (e.g., "If you look far in the front, you will see a table"). A Vision Transformer (ViT) encoder processes both the remaining image patches and the BERT-embedded language tokens. The decoder then attempts to reconstruct the missing pixels (specifically the depth map) and predict the reward.
  2. World Model: A recurrent neural network that learns to predict future states of the environment in a latent (hidden) space. This allows the agent to "imagine" future outcomes without needing to interact with the actual environment constantly.
  3. Policy Controller: An actor-critic module that learns the best actions to take based on the language-grounded states provided by the world model.
Figure 1. Schematic diagram of proposed LanGWM: Language Grounded World Model. LanGWM consists of three components: i) language-grounded representation learning, ii) world model, and iii) controller. Language-grounded representation learning module uses masked visual observation and complementary language prompt for task-specific features abstraction. World model holds the ability to predict the future states of the environment. This means the agent has the knowledge of the world its acting on. The controller maximizes the expected rewards of the action using an actor critic approach. Since the controller is learnt separately using language grounded states of the environment, it is more robust to out-of-distribution generalization.

A key design choice is explicit grounding: by forcing the decoder to reconstruct masked objects using language hints, the visual features are pressured to incorporate semantic information.

Datasets

The model was evaluated using the iGibson 1.0 environment, a high-fidelity simulator for indoor navigation.

  • Training: 5 floor scenes containing various rooms.
  • Testing (OoD): 3 held-out scenes that the agent never saw during training, featuring entirely different layouts and visual textures.
  • Task: PointGoal navigation (moving to a specific coordinate).

Key Insights and Ideas

  • Language as a Global Context: While pixels provide local detail, language helps the model understand global context, such as "far vs. close" or identifying a large pixel region as a specific semantic entity like a "table."
  • Depth Reconstruction Matters: Even though the agent only uses RGB images at inference time, training it to reconstruct depth maps during the representation learning phase helps it internalize the 3D spatial structure of the world.
  • Efficiency for the Edge: Unlike massive vision-language foundation models that are too resource-heavy for robots, LanGWM is designed to be efficient. The BERT model is only used during training; at test time, empty descriptions are used, meaning the "language knowledge" is already baked into the visual encoder.

Key Results

LanGWM was compared against several state-of-the-art RL methods, including RAD, CURL, and DreamerV2.

  • Superior Generalization: In the held-out "Rs_int" environment, LanGWM achieved a 9.9% Success Rate (SR), significantly outperforming the standard DreamerV2 (1.7%) and even DreamerV2 with data augmentation (7.7%).
  • Ablation Success: The authors proved that their specific masking strategy is vital. When they removed the object masking or the language descriptions, performance dropped to levels similar to baseline models (around 1.5% - 1.7% SR).
  • Sample Efficiency: The model achieved these results at the 100k interaction step mark, demonstrating it can learn robust features relatively quickly.
Performance comparison table showing LanGWM outperforming other RL models on iGibson benchmarks.

Limitations and Future Work

  • Performance Gap: While LanGWM beats other RL-specific models, its performance is still significantly lower than heavy-duty foundation models like Grounding-DINO (which hits 37.1% SR). However, LanGWM is far more computationally efficient.
  • Hand-crafted Templates: Currently, language descriptions are generated using fixed templates. The authors suggest that jointly learning language embeddings from scratch or using more natural language could be a fruitful next step.
  • Dependency on Bounding Boxes: The training process requires object bounding boxes to perform the specific masking, which may not be available in all training datasets.

Summary updated

BibTeX
@misc{poudel2023langwm,
  author = {Rudra P. K. Poudel and Harit Pandya and Chao Zhang and Roberto Cipolla},
  title = {{LanGWM: Language Grounded World Model}},
  year = {2023},
  eprint = {2311.17593},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.17593},
}
Figure