Skip to main content
QUICK REVIEW

[Paper Review] RTFM: Generalising to Novel Environment Dynamics via Reading

Victor W. Zhong, Tim Rocktäschel|arXiv (Cornell University)|Oct 18, 2019
Topic ModelingComputer Science27 references15 citations
TL;DR

This paper introduces RTFM, a reinforcement learning environment that requires agents to read and reason over natural language descriptions of environment dynamics to generalize to unseen scenarios. The proposed txt 2 π model captures joint interactions between goals, documents, and observations, achieving superior generalization and performance over baselines like FiLM and language-conditioned CNNs, especially through curriculum learning on complex, multi-hop reasoning tasks.

ABSTRACT

Obtaining policies that can generalise to new environments in reinforcement learning is challenging. In this work, we demonstrate that language understanding via a reading policy learner is a promising vehicle for generalisation to new environments. We propose a grounded policy learning problem, Read to Fight Monsters (RTFM), in which the agent must jointly reason over a language goal, relevant dynamics described in a document, and environment observations. We procedurally generate environment dynamics and corresponding language descriptions of the dynamics, such that agents must read to understand new environment dynamics instead of memorising any particular information. In addition, we propose txt2$π$, a model that captures three-way interactions between the goal, document, and observations. On RTFM, txt2$π$ generalises to new environments with dynamics not seen during training via reading. Furthermore, our model outperforms baselines such as FiLM and language-conditioned CNNs on RTFM. Through curriculum learning, txt2$π$ produces policies that excel on complex RTFM tasks requiring several reasoning and coreference steps.

Motivation & Objective

  • To address the challenge of generalizing reinforcement learning policies to new environment dynamics not seen during training.
  • To develop a grounded policy learning framework where agents must read and reason over natural language descriptions of dynamics to achieve goals.
  • To enable generalization not only to new goals but also to novel environment dynamics through reading comprehension.
  • To design a scalable, procedurally generated environment that prevents memorization and enforces reading-based reasoning.
  • To evaluate the effectiveness of joint reasoning over goals, documents, and observations using a curriculum learning approach.

Proposed method

  • Propose RTFM, a procedural environment with combinatorially large combinations of environment dynamics and natural language descriptions to prevent memorization.
  • Design a three-way interaction model, txt 2 π, that jointly encodes the language goal, document describing dynamics, and environment observations.
  • Use FiLM-style adaptation layers to condition policy networks on the joint representation of goal, document, and observations.
  • Implement curriculum learning by training on increasingly complex RTFM variants, starting from simple worlds and progressing to 10×10 worlds with moving monsters and natural language descriptions.
  • Apply attention mechanisms in txt 2 π to identify relevant clauses in the document based on the goal and observations, enabling selective reading.
  • Train the policy using reinforcement learning with sparse dense rewards, and evaluate generalization on unseen dynamics and larger worlds.

Experimental results

Research questions

  • RQ1Can an agent learn to generalize to new environment dynamics by reading natural language descriptions rather than memorizing fixed dynamics?
  • RQ2How effective is joint reasoning over goals, documents, and observations in enabling generalization to unseen combinations of dynamics and goals?
  • RQ3Does curriculum learning improve sample efficiency and performance on complex, multi-hop reasoning tasks in language-grounded RL?
  • RQ4Can attention mechanisms in the policy network identify relevant information in documents that are crucial for task success?
  • RQ5How does the performance of the proposed model compare to strong baselines like FiLM and language-conditioned CNNs in terms of sample efficiency and final win rate?

Key findings

  • txt 2 π generalizes to new environment dynamics not seen during training, demonstrating that reading-based reasoning enables robust generalization in RL.
  • txt 2 π outperforms FiLM and language-conditioned CNNs in both sample efficiency and final win rate on the RTFM benchmark.
  • Through curriculum learning, txt 2 π achieves high performance on complex RTFM tasks requiring up to five reasoning and coreference steps between goal, document, and observations.
  • Qualitative analysis shows that txt 2 π attends to relevant document clauses—particularly those specifying team targets and monster properties—based on the goal and observations.
  • Well-performing policies consistently retrieve correct items, avoid distractor monsters, and engage targets only after acquiring the correct item, while poorly-performing policies often pick up incorrect items or get stuck evading enemies.
  • Despite curriculum learning, the best model still trails human players in performance, indicating significant room for improvement in language-grounded policy learning.

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.