Reward-predictive representations generalize across tasks in reinforcement learning

Lucas Lehnert, Michael L. Littman, Michael J. Frank

TL;DR

Reinforcement learning agents struggle to generalize knowledge to new tasks. This paper introduces "reward-predictive state abstractions" that allow agents to learn representations of tasks that focus on predicting future rewards, enabling them to transfer knowledge to entirely new tasks with different dynamics and goals, unlike current reward-maximizing approaches.

What Problem Does This Paper Address?

Artificial agents trained with reinforcement learning (RL) excel at maximizing performance within a specific task (a Markov Decision Process, or MDP). However, they notoriously fail when asked to apply what they've learned to a new, even slightly different, task. This lack of "deep transfer" is a major hurdle for creating more adaptable and human-like AI. Existing methods for transfer learning often require shared task structures (like the same environment layout) or similar reward functions. The challenge is to develop representations that capture the essence of a task in a way that can be reused even when the underlying rules (transitions and rewards) change, mirroring human-like analogical reasoning.

Methods

The core idea is to learn "state abstractions" that compress the complex state space of an MDP into a simpler, lower-dimensional representation. The paper contrasts two types of abstractions:

  • Reward-maximizing state abstractions: These focus on compressing the state space in a way that helps the agent find the optimal policy for the current task.
  • Reward-predictive state abstractions: These focus on creating a compressed representation that allows the agent to accurately predict future reward sequences, regardless of the specific transitions or rewards.

The authors use Linear Successor Feature Models (LSFMs) to learn these reward-predictive abstractions. LSFMs are a generalization of successor representations that predict expected future state features, allowing them to capture temporal relationships. The key insight is that by focusing on predicting rewards, these abstractions become independent of the specific task dynamics and can generalize across tasks with different transition and reward functions. They evaluate these abstractions by enumerating possible abstractions and testing their performance on new tasks, measuring both total reward and reward prediction error.

Datasets

The paper uses several simulated environments for evaluation:

  • Column-world tasks: Simple grid-world navigation tasks where rewards are given for entering a specific column.
  • Randomly generated MDPs: 100 MDPs with random transition and reward functions, constructed to have a common underlying hidden state abstraction.
  • Grid-world navigation tasks: More complex grid worlds with barriers and varying reward locations.
  • Maze curriculum: A sequence of five maze tasks, each with different layouts and augmented with irrelevant state variables (like "light/dark" or color) to create variations.

No new benchmark datasets were introduced; instead, existing RL task paradigms were adapted and combined to test generalization.

Key Insights and Ideas

  • Reward prediction is key to generalization: Abstractions that accurately predict future reward sequences are far more effective at transferring knowledge to new tasks than those optimized solely for maximizing reward in the current task.
  • "Deep transfer" is possible: Reward-predictive abstractions enable "deep transfer" across tasks with fundamentally different transition and reward functions, going beyond simple structural similarities.
  • Abstraction independence: Reward-predictive state abstractions are not tied to specific task dynamics (transitions or policies), making them reusable.
  • Trade-off between compression and optimality: While reward-maximizing abstractions might compress a task more aggressively, this can lead to loss of information crucial for generalization. Reward-predictive abstractions strike a better balance.
  • Biological plausibility: The findings suggest that biological systems might learn by minimizing reward-predictive loss, rather than solely focusing on immediate reward prediction errors, aligning with some neuroscientific observations.

Key Results

  • In experiments where all possible state abstractions were enumerated, reward-predictive abstractions consistently yielded significantly higher total reward when transferred to new tasks compared to reward-maximizing abstractions. This held true across column-world, random MDP, and grid-world navigation tasks.
  • Even when the hypothesis space was constrained to abstractions with a fixed number of latent states (e.g., three), reward-predictive abstractions still outperformed reward-maximizing ones.
  • In a curriculum of maze tasks, an agent using reward-predictive abstractions learned significantly faster (achieved lower average episode lengths) than a standard Q-learning agent or an agent using reward-maximizing abstractions.
  • A comparison with transferring successor features (SFs) showed that reward-predictive abstractions provided superior transfer performance in a guitar-playing task, highlighting that SFs are more sensitive to changes in task dynamics.

Limitations and Future Work

  • Over-compression: The paper acknowledges that over-compressing a task (removing too much information) can lead to approximation errors, making it difficult for agents to learn optimal policies. Future work could explore how to combine state abstractions with Partially Observable Markov Decision Processes (POMDPs) or develop algorithms that can handle such lossy compressions.
  • Scalability to complex environments: Current simulations are limited to finite MDPs. Extending these models to handle high-dimensional state spaces, like images, would require integrating deep learning techniques.
  • Online learning and exploration: While the paper explores learning to transfer, further research could investigate more sophisticated online learning strategies and exploration mechanisms for discovering and utilizing reward-predictive abstractions in real-time.
  • Biological validation: The authors suggest more targeted experiments to investigate if biological systems, particularly in the hippocampus and orbitofrontal cortex, employ learning rules guided by reward-predictive loss.

Summary updated

BibTeX
@article{lehnert2020reward,
  author = {Lucas Lehnert and Michael L. Littman and Michael J. Frank},
  title = {{Reward-predictive representations generalize across tasks in reinforcement learning}},
  journal = {PLOS Computational Biology},
  year = {2020},
  doi = {10.1371/journal.pcbi.1008317},
}
Figure