Deep Transfer in Reinforcement Learning by Language Grounding
Abstract
Deep Reinforcement Learning (RL) has achieved significant milestones in specific tasks but often suffers from extreme sample inefficiency and an inability to generalize across domains. This paper introduces a novel RL architecture that leverages natural language descriptions of environment entities to bootstrap learning in new, unseen domains. By grounding text to environment dynamics such as rewards and transitions, the agent can transfer knowledge across different games. Experimental results using the General Video Game AI (GVGAI) framework demonstrate that this approach can achieve up to a 14% improvement in average reward compared to state-of-the-art baselines, highlighting the potential of language as a universal bridge for cross-domain transfer.
Introduction
A major hurdle in Deep RL is that agents typically start learning from scratch when moved to a new environment, even if the underlying rules are familiar. Humans, by contrast, utilize prior knowledge often acquired through language—such as reading a game manual—to understand a new world before taking their first step. This research addresses the challenge of cross-domain transfer by asking: how can an agent use textual descriptions of objects (e.g., "this scorpion chases you") to understand the dynamics of a brand-new game world? By integrating language grounding into the learning process, the authors aim to create agents that can "read" their way to faster adaptation.
Methods and Architecture
The proposed architecture is a hybrid model that fuses planning, model-free learning, and language grounding into a single differentiable framework.
- Representation Generator ($\phi$): This module combines visual state observations with textual data. It uses a factorized representation for each entity in the grid: one part is a learned "object embedding" based on the entity's ID, and the other is a vector derived from the text description using either a Bag-of-Words or an LSTM encoder.
- Value Iteration Network (VIN): Unlike standard black-box neural networks, a VIN is a differentiable module that mimics the Value Iteration algorithm. It learns to map the fused state-text representation to predicted reward and transition maps, enabling the agent to perform internal planning.
- Model-Free Component (DQN): To handle complex dynamics that might be difficult to plan for, the VIN output is combined with a standard Deep Q-Network (DQN) for reactive decision-making.
- Language Grounding: The model is trained to associate specific words (like "chases" or "collectible") with specific environmental outcomes, such as negative or positive rewards and movement patterns.
Experimental Setup and Datasets
The researchers evaluated their model using the GVGAI (General Video Game AI) framework, focusing on four games: Freeway, Bomberman, Boulderchase, and a new, more complex environment called Friends & Enemies (F&E). F&E features 20 different non-player entities with varied behaviors, including random movement, chasing, and shooting. To provide the agent with prior knowledge, the authors collected a dataset of crowdsourced text descriptions via Amazon Mechanical Turk. These descriptions were strictly descriptive (explaining what an object does) rather than instructive (telling the agent what to do).
Key Insights
- Text as a Transfer Bridge: While the visual sprite for an enemy might change from a scorpion in one game to a spider in another, the word "chases" remains constant. Language acts as a universal intermediate channel that facilitates transfer across visually distinct domains.
- Bootstrapping via Dynamics: By learning that certain words imply specific rewards or transitions, the agent can generate a "value map" for a new room immediately upon reading the descriptions, significantly reducing the initial trial-and-error phase.
- Factorization is Critical: The model keeps object IDs and text descriptions separate. This allows it to rely on specific experience when an object is familiar, but fall back on the general meaning of the text when encountering a brand-new entity.
- Planning vs. Reacting: Combining the VIN (planning) with a DQN (reacting) allows the agent to handle both long-term navigation and short-term survival effectively.
Results
The proposed TEXT-VIN model demonstrated superior transfer performance across multiple tasks. In the "Bomberman to Boulderchase" transfer task, the model achieved an average reward of 11.17, compared to 7.30 for a standard DQN and 5.58 for the "Actor-Mimic" transfer method. Furthermore, the model showed an 11.5% absolute improvement in "initial performance" (reward in the first 50k steps), proving that text helps the agent perform better right out of the gate. Qualitative analysis also showed zero-shot potential: the model could predict that an unseen entity was "dangerous" solely based on its description, creating a low-value zone around that entity in its internal planning map before any interaction occurred.
Limitations and Future Work
Despite its success, the model has limitations. The VIN component relies on a recurrence parameter $k$ (the planning horizon) that currently requires manual pre-specification and varies between domains. Additionally, the model assumes descriptions are generally accurate; future work should investigate robustness to misleading or adversarial text. Finally, while the model handles short descriptive sentences well, it does not yet tackle the complex global relations or multi-entity interactions found in more sophisticated natural language.
Summary updated