ALFWorld: Aligning Text and Embodied Environments for Interactive Learning

Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, Matthew J. Hausknecht

Abstract

Training embodied agents to perform complex household tasks requires integrating perception, low-level control, and high-level reasoning. Traditional end-to-end approaches often struggle with sample inefficiency and poor generalization. We present ALFWorld, a simulator that aligns 3D embodied environments with abstract text-based worlds. By training a modular agent, BUTLER, primarily in text, we achieve significantly faster training and improved zero-shot transfer to visual environments.

Introduction

Developing robots capable of following natural language instructions like "put a washed apple in the fridge" is a cornerstone of AI research. However, current "all-at-once" training paradigms force agents to simultaneously learn visual perception, physical navigation, and logical planning. This complexity often leads to overfitting and high computational costs. Humans, conversely, utilize abstract reasoning to plan tasks before execution. ALFWorld addresses this by bridging the gap between linguistic reasoning and physical action.

The ALFWorld Framework

ALFWorld provides a parallel existence for tasks within the ALFRED benchmark. For every 3D scene in AI2-THOR, ALFWorld generates a corresponding text-based version in TextWorld. This alignment allows agents to learn the logic of a task—such as the sequence of cleaning an object before placing it—in a simplified, high-speed text environment.

Alignment between TextWorld and Embodied environments in ALFWorld.

The BUTLER Agent

To navigate these dual environments, we propose the BUTLER (Building Understanding in Textworld via Language for Embodied Reasoning) agent. BUTLER employs a modular "Brain-Vision-Body" architecture:

  1. BUTLER::BRAIN: A Transformer-based Seq2Seq model that acts as the high-level planner. It is trained via Imitation Learning (DAgger) in TextWorld to generate textual actions based on scene descriptions.
  2. BUTLER::VISION: A pre-trained Mask R-CNN that translates visual frames into text descriptions for the Brain.
  3. BUTLER::BODY: A controller that executes high-level commands (e.g., goto) using an A* planner and low-level primitives.
The BUTLER agent architecture for sequential decision making.

The core advantage is training the "Brain" in the fast text-only world and then deploying it zero-shot into the 3D world by plugging in the Vision and Body modules.

Key Results and Insights

Experimental results demonstrate the efficacy of language as a semantic prior. Training in text is approximately 7x faster than in 3D renderers. More importantly, BUTLER agents trained solely in text (TW-ONLY) generalized better to unseen 3D environments than agents trained purely on visual data (EMBODIED-ONLY). In unseen rooms, BUTLER achieved a 10.1% success rate, doubling the performance of unimodal visual baselines.

Furthermore, interactive training in TextWorld proved superior to static behavior cloning. By allowing the agent to fail and recover in the text environment, it developed robust strategies that transferred to the physical world.

Conclusion

ALFWorld demonstrates that abstract linguistic reasoning can significantly accelerate and improve the training of embodied agents. While challenges remain—such as the "reality gap" where text-logical actions are physically impossible and reliance on accurate object detection—the modular approach of separating reasoning from perception offers a promising path toward more capable and generalizable household robots.

Summary updated

BibTeX
@inproceedings{shridhar2021alfworld,
  author = {Mohit Shridhar and Xingdi Yuan and Marc-Alexandre Côté and Yonatan Bisk and Adam Trischler and Matthew J. Hausknecht},
  title = {{ALFWorld: Aligning Text and Embodied Environments for Interactive Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=VpNENmFBEEg},
}
Figure