Forecaster: Towards Temporally Abstract Tree-Search Planning from Pixels

Thomas Jiralerspong, Flemming Kondrup, Doina Precup, Khimya Khetarpal

TL;DR

This paper introduces "Forecaster," a novel hierarchical reinforcement learning agent that plans using a learned, temporally abstract world model. By predicting outcomes of high-level goals over extended horizons, Forecaster achieves more sample-efficient learning and better generalization in complex, pixel-based environments compared to existing methods.

What Problem Does This Paper Address?

Modern reinforcement learning (RL) agents often struggle with planning and learning across multiple timescales, especially in environments with high-dimensional inputs like pixels. This limitation becomes particularly problematic when goals are distant and rewards are sparse, as agents tend to prioritize immediate gains over long-term success. While hierarchical RL (HRL) offers a way to decompose problems into subtasks, efficiently implementing this in pixel-based settings and strategically selecting high-level objectives remain significant challenges. This paper aims to bridge this gap by enabling agents to plan effectively over longer horizons using abstract representations of their environment.

Methods

Forecaster builds upon the manager-worker framework of Director [4], but introduces key innovations:

  • Temporally Abstract World Model: Instead of modeling primitive actions, Forecaster learns a world model that predicts the consequences of taking high-level, temporally abstract actions (options) over extended periods (K steps). This model is trained using a Recurrent State Space Model (RSSM) and allows the agent to "see" further into the future.
  • Tree-Search Planning over Options: When the manager needs to select a new high-level goal, it doesn't just pick the one with the highest immediate expected return. Instead, it constructs a search tree, leveraging the temporally abstract world model to simulate multiple potential paths and their long-term outcomes. The manager then selects the path predicted to yield the highest cumulative reward.
  • Joint Optimization: The primitive world model, the temporally abstract world model, the goal autoencoder, the manager, and the worker are all optimized jointly through gradient steps, ensuring coherence across different components.

Datasets

The paper evaluates Forecaster on the Egocentric Ant Maze environment, a challenging benchmark for hierarchical RL in pixel-based settings. They specifically use variations:

  • Small Ant Maze: A simpler version for initial training and comparison.
  • Medium Ant Maze: A more complex version to test sample efficiency.

The agents are trained on Ant Maze S and evaluated on Ant Maze M to assess generalization capabilities.

Key Insights and Ideas

  • Abstract models unlock long-term planning: The core idea is that by learning to predict the outcomes of abstract actions over extended time, agents can overcome the limitations of short-sighted planning in complex environments.
  • Tree-search on abstract goals is powerful: Moving beyond simple greedy selection of high-level goals, Forecaster's tree-search mechanism allows for more robust and informed decision-making by considering multiple future possibilities.
  • Generalization through learned world models: The ability to learn and generalize a temporally abstract world model is crucial for adapting to new, unseen tasks, demonstrating that learned world representations can be more transferable than just learned policies.

Key Results

  • Competitive Performance: Forecaster achieves competitive performance with Director on the Small Ant Maze.
  • Improved Sample Efficiency: On the Medium Ant Maze, Forecaster demonstrates significantly higher sample efficiency compared to Director, indicating it learns faster.
  • Effective Generalization: When trained on the Small Ant Maze and evaluated on the Medium Ant Maze, Forecaster shows improved sample efficiency by leveraging its pre-trained extended world model, outperforming agents that only load pre-trained policies or are trained from scratch. This highlights the transferability of the learned abstract world model.

Limitations and Future Work

  • Fixed Goal Intervals: The current approach assumes goals are selected at fixed intervals (every K steps). The authors suggest relaxing this assumption to allow for more dynamic adaptation to the environment.
  • Hyperparameter Sensitivity: While the gains are promising with limited hyperparameter search, further exploration could yield even better results.
  • Tree Size: Investigating variable tree sizes for planning could lead to performance enhancements, though this might increase computational costs. The authors suggest exploring affordances [6] as a potential solution for large branching factors.
  • Integration with Large Models: Combining Forecaster's ideas with large-scale models like Transformer-XL [1] is proposed as a promising direction for future work, potentially impacting even larger-scale applications.

Summary updated

BibTeX
@inproceedings{jiralerspong2023forecaster,
  author = {Thomas Jiralerspong and Flemming Kondrup and Doina Precup and Khimya Khetarpal},
  title = {{Forecaster: Towards Temporally Abstract Tree-Search Planning from Pixels}},
  booktitle = {GenPlan @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=0uD5kEH8ES},
}
Figure