Tell me why! - Explanations support learning of relational and causal structure

Andrew K. Lampinen, Nicholas A. Roy, Ishita Dasgupta, Stephanie C. Y. Chan, Allison C. Tam, James L. McClelland, Chen Yan, Adam Santoro, Neil C. Rabinowitz, Jane X. Wang, Felix Hill

  • Explanations support learning of relational and causal structure

Introduction

Deep reinforcement learning (RL) agents are often criticized for "shortcut learning"—latching onto simple correlations like color or position rather than mastering the underlying abstract rules of a task. This leads to brittle models that fail to generalize to new environments. This research explores a novel solution: forcing agents to predict language-based explanations for their environment and actions as an auxiliary training signal.

Architecture and Methodology

The researchers modified a standard IMPALA architecture to include an auxiliary "Explanation Head." The core of the agent consists of a visual encoder (CNN or ResNet) feeding into a Gated Transformer-XL (GTrXL) memory module, which handles sequences of observations.

The agent architecture featuring the GTrXL memory and the auxiliary LSTM explanation head alongside standard policy and value heads. *[Tell me why!

  • Explanations support learning of relational and causal structure, page 3](/pdf/art_17f27b39172b4725857c656a23b1af62#page=3)*

Unlike traditional approaches that might provide language as an input instruction, this model treats language as a prediction target. An LSTM-based head is trained to generate synthetic strings describing the scene and the logic behind rewards. This auxiliary task forces the agent's internal representations to capture abstract features necessary for verbal description, which in turn aids the primary RL policy. This "prediction as power" approach ensures the agent understands the task structure to minimize its loss.

The Role of Explanations

The study defines two primary types of explanations used during training:

  1. Property Explanations: Descriptions of objects the agent is observing (e.g., "This is a large, striped, purple pentagon").
  2. Reward Explanations: Justifications for success or failure after a choice (e.g., "Correct, it is uniquely green").

Examples of property and reward explanations in the Odd-One-Out task, illustrating how the agent must identify unique features. *[Tell me why!

  • Explanations support learning of relational and causal structure, page 3](/pdf/art_17f27b39172b4725857c656a23b1af62#page=3)*

By predicting these explanations, the agent learns to attend to all relevant dimensions of an object—shape, color, size, and texture—rather than just the easiest one to perceive. The researchers found that language is often learned faster than the RL policy, providing a stable, high-bandwidth signal that "paves the way" for learning complex behaviors from sparse rewards.

Experimental Results

The approach was tested in 2D and 3D "Odd-One-Out" environments, where the agent must identify the unique object among a set based on a single dimension.

  • Performance Gains: In complex 3D environments, agents using explanations achieved approximately 93% accuracy, compared to just 30% for standard agents (barely above the 25% chance level).
  • Out-of-Distribution (OOD) Generalization: In deconfounding tasks, where multiple features are correlated during training but separated at test time, explanation-trained agents correctly identified the target dimension over 85% of the time.
  • Causal Reasoning: In a "magic wand" task requiring intervention to identify causal properties, only agents with reward-based explanations successfully meta-learned the experimental strategy required to solve the task.

Conclusion and Future Work

This research demonstrates that language is more than just a communication tool; it is a powerful scaffold for learning abstract concepts. By requiring agents to "explain" their world, we can move beyond shortcut learning toward AI that understands the relational and causal structures of its environment. While currently limited to synthetic templates and ground-truth requirements, future work aims to incorporate "in-the-wild" human explanations to scale these benefits to more complex, real-world domains.

Summary updated

BibTeX
@inproceedings{lampinen2022tell,
  author = {Andrew K. Lampinen and Nicholas A. Roy and Ishita Dasgupta and Stephanie C. Y. Chan and Allison C. Tam and James L. McClelland and Chen Yan and Adam Santoro and Neil C. Rabinowitz and Jane X. Wang and Felix Hill},
  title = {{Tell me why! - Explanations support learning of relational and causal structure}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=XeqjsCVLk1m},
}
Figure