Transferring Expectations in Model-based Reinforcement Learning

Trung Thanh Nguyen, Tomi Silander, Tze-Yun LeongNeurIPS 2012

Reinforcement Learning (RL) agents are notoriously brittle. Train a robot to navigate a warehouse, and a slight change in floor material or layout often forces the agent to relearn from scratch. This occurs because most RL knowledge is rigidly tied to a specific state space. While transfer learning attempts to solve this, existing methods typically assume the old and new tasks share the exact same state and action spaces.

In the real world, environments are heterogeneous. A robot might move from a carpeted room to a sandy backyard, encountering entirely new features and dynamics. This paper introduces TES (Transferring Expectations), a framework that allows RL agents to build a "library of views"—specialized models of how the world works—and reuse them in new, different environments without requiring human-defined mappings.

The TES Framework

The core innovation of TES lies in how it represents, stores, and adapts knowledge dynamically:

  1. Decomposition into "Effects": Instead of modeling the entire world state at once, TES uses Situation Calculus to break the transition model down into action effects. Rather than learning "If I am at (1,1) and move right, I go to (1,2)," the agent learns a generalized effect: "Moving right usually shifts my horizontal coordinate by +1."
  2. A Library of "Views": A "view" is a specific combination of a feature subset (what to pay attention to) and a predictive model (what will happen). The agent maintains a library of these specialized views.
  3. Online Selection and Adaptation: Upon entering a new task, the agent evaluates several views in a "working library." It scores them based on how well they predict the current environment's dynamics using a cumulative log-score, adapting their parameters on the fly.
  4. Sparse Learning: To handle environments cluttered with irrelevant features, TES employs an online sparse multinomial logistic regression algorithm. This allows the agent to mathematically ignore noise and focus solely on features that impact its actions.

Experimental Setup

The researchers evaluated TES on two simulated benchmark domains designed to test transferability, both augmented with 200 random, irrelevant binary features to test noise filtration:

  • Color Maze: A task focused on transferring reward models. The agent must find a goal in a maze where rewards depend on the colors of surrounding cells.
  • Robot Navigation: A complex task for transferring transition models. A robot navigates a grid with different surfaces (sand, water, brick, fire) that alter the stochastic dynamics of movement.

Key Results and Insights

TES demonstrated significant improvements in adaptability and learning speed compared to traditional methods.

Performance and time comparison across 15 tasks. TES demonstrates strong performance and competitive execution time.
  • The "Jumpstart" Effect: In reward transfer experiments, TES significantly outperformed Hierarchical Bayesian (HB) and Locally Weighted Transfer (LWT) methods. It achieved higher initial rewards because its library allowed it to immediately identify relevant features.
  • High Winning Rate: In the navigation task, TES outperformed competitors in the vast majority of scenarios, winning in 11 out of 15 tasks compared to HB, and 12 out of 15 compared to LWT.
  • Computational Speed: TES proved much faster than the HB approach, which relies on costly sampling methods. Despite the overhead of managing a library, it remained only slightly slower than non-transfer methods.
Performance comparison across episodes. Subfigure (c) highlights TES's rapid convergence compared to standard Rmax agents.
  • Rapid Convergence: As shown in the accumulated reward graphs, TES reaches a near-optimal policy very quickly and maintains it. In contrast, standard "Rmax" agents take hundreds of additional episodes to reach similar performance levels.
  • Attention as Transfer: The paper highlights that effective transfer isn't just about moving network weights; it's about learning what to pay attention to. By selecting the right view, the agent effectively filters out distractor features.
  • The "Newbie" Strategy: The agent always includes fresh, uninformed views alongside its library. If old views fail to predict a completely unique situation, the "newbie" view wins the score battle, preventing the agent from force-fitting outdated knowledge.

Limitations and Future Work

While powerful, TES has a few limitations. The system currently assumes the agent already understands the meaning of effects (e.g., how coordinates change) and only learns the probability of those effects occurring. Additionally, managing a massive library of views over a long lifetime could eventually become a memory bottleneck, despite recency-weighted pruning. Finally, model learning is currently independent of policy learning; coupling these more tightly could further improve performance in larger state spaces.

Summary updated

BibTeX
@inproceedings{nguyen2012transferring,
  author = {Trung Thanh Nguyen and Tomi Silander and Tze-Yun Leong},
  title = {{Transferring Expectations in Model-based Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2012},
}
Figure