A Unifying Framework for Reinforcement Learning and Planning

Thomas M. Moerland, Joost Broekens, Aske Plaat, Catholijn M. JonkerarXiv 2020 · arXiv

Reinforcement Learning (RL) and Planning are often treated as distinct research communities, yet they both aim to solve the same fundamental problem: sequential decision-making formalized as a Markov Decision Process (MDP). In this paper, Moerland et al. introduce FRAP (Framework for Reinforcement learning and Planning), a unifying algorithmic architecture that identifies the shared dimensions of these two fields.

TL;DR

The paper presents FRAP, a conceptual framework that decomposes both Reinforcement Learning and Planning into a shared set of algorithmic dimensions. By identifying that the primary difference lies in solution coverage (local vs. global) and model access, the authors provide a "common language" to inspire cross-pollination between these traditionally siloed fields.

What Problem Does This Paper Address?

Despite solving the same underlying MDP optimization problem, RL and Planning have developed largely independent methodologies and terminologies. Planning (or search) typically assumes access to a model and focuses on finding a local solution for the current state. RL often assumes the model is unknown and focuses on learning a global solution that generalizes across all states.

The lack of a unified view makes it difficult for researchers to see how a "trick" in one field (like frontiers in planning) might relate to a concept in the other (like intrinsic motivation in RL). The authors tackle this fragmentation by disentangling the common factors in their solution approaches.

Methods

The core contribution is the Framework for Reinforcement learning and Planning (FRAP). The authors argue that any MDP optimization algorithm can be described by its choices along seven key dimensions:

  1. Solution Representation: Does the algorithm store a local solution (temporary, valid for a subset of states) or a global solution (permanent, valid for all states)?
  2. Set Root State: How does the algorithm choose the state to start its next "trial"? Options include ordered sweeps, forward sampling from a start state, or backward sampling (prioritized sweeping).
  3. Budget per Root: How many "trials" (sequences of actions) are performed from the root, and how deep do they go?
  4. Selection within a Trial: How are actions and next states chosen during a trial? This covers exploration strategies like UCB, $\epsilon$-greedy, and heuristics.
  5. Bootstrap: How does the algorithm estimate the value of a leaf node? (e.g., using a learned value function or a heuristic).
  6. Back-up: How is information from the trial propagated back to the root? This includes distinctions between on-policy/off-policy and sample/expected backups.
  7. Update: How is the solution actually modified? The authors show that even planning updates (like replacing a value in a tree) can be viewed as gradient descent updates with specific learning rates.

The authors categorize the relationship between the fields based on two primary factors: the presence of a model and the coverage of the solution, as illustrated in Table 1:

Table 1: Categorization of planning and reinforcement learning, based on 1) the presence of a model (settable/reversible access to the MDP dynamics), and 2) the presence of a global/learned solution.

Datasets

Not discussed in the paper. As a theoretical framework and synthesis of existing literature, the paper does not introduce new datasets or benchmarks. Instead, it analyzes a wide range of existing, well-known algorithms (e.g., Q-learning, MCTS, AlphaZero, A*) through the lens of FRAP.

Key Insights and Ideas

  • The Local vs. Global Divide: The most fundamental distinction between Planning and RL is not just the "model," but the coverage of the solution. Planning builds local, temporary solutions; RL builds global, permanent ones. Model-based RL bridges this by using a model to update a global solution.
  • Model Access Dictates Strategy: The type of access to the MDP dynamics (Reversible vs. Irreversible and Descriptive vs. Generative) determines which algorithmic choices are even possible. For example, you cannot perform an "expected" backup if you only have generative (sample-based) access to the environment.
Figure 1: Illustration of different types of access to the MDP transition dynamics. Rows: We may either have reversible/settable access to the MDP dynamics, in which case we can query the MDP on any desired state, or irreversible/resettable access to the MDP, in which case we have to make the next query at the resulting state, or we can reset to a state from the initial state distribution. Any type of reversible/settable access to the MDP is usually called a (known) model. Columns: On each query to the MDP dynamics, we may either get access to the full distribution of possible next states (descriptive/declarative access), or only get a single sample from this distribution (generative access). Note that we could theoretically think of irreversible descriptive access, in which we do see the probabilities but need to continue from the next state, but we are unaware of such a model in practice.
  • Conceptual Overlap: Many seemingly different concepts are actually two sides of the same coin. For instance, Frontiers in planning (tracking the edge of the explored search tree) serve the same purpose as Intrinsic Motivation in RL (driving the agent toward novel states).
  • Planning as Learning: The authors demonstrate that planning updates on a tree can be mathematically written as tabular learning updates. For example, a standard "replace" update in a search tree is just a learning update with a learning rate $\eta = 1.0$.

Key Results

The primary "result" is a comprehensive comparison table (Table 7 in the paper) that maps famous algorithms onto the FRAP dimensions. This table reveals that:

  • MCTS and REINFORCE share identical depth and back-up schemes but differ in solution coverage and exploration.
  • AlphaZero is a sophisticated hybrid, using a local solution (MCTS) to update a global solution (Neural Network) via a cross-entropy loss.
  • The framework successfully accommodates everything from classical Value Iteration to modern deep RL like DQN and Go-Explore.

Limitations and Future Work

  • Scope: The framework currently focuses on single-agent MDPs. It excludes multi-agent settings, non-MDP planning (like "planning as satisfiability"), and black-box optimization methods (like evolutionary algorithms) that don't exploit MDP-specific structures.
  • Reverse Models: The authors note that backward search (prioritized sweeping) is under-explored in complex environments due to the difficulty of learning a reverse model ($s, a \to s'$). They suggest this as a major area for future research.
  • Approximate Frontiers: While planning uses tabular frontiers effectively, scaling this to high-dimensional spaces remains a challenge. Combining global approximate representations with frontier-based exploration is a promising direction.

Summary updated

Abstract

Sequential decision making, commonly formalized as optimization of a Markov Decision Process, is a key challenge in artificial intelligence. Two successful approaches to MDP optimization are reinforcement learning and planning, which both largely have their own research communities. However, if both research fields solve the same problem, then we might be able to disentangle the common factors in their solution approaches. Therefore, this paper presents a unifying algorithmic framework for reinforcement learning and planning (FRAP), which identifies underlying dimensions on which MDP planning and learning algorithms have to decide. At the end of the paper, we compare a variety of well-known planning, model-free and model-based RL algorithms along these dimensions. Altogether, the framework may help provide deeper insight in the algorithmic design space of planning and reinforcement learning.
BibTeX
@misc{moerland2020unifying,
  author = {Thomas M. Moerland and Joost Broekens and Aske Plaat and Catholijn M. Jonker},
  title = {{A Unifying Framework for Reinforcement Learning and Planning}},
  year = {2020},
  eprint = {2006.15009},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.15009},
}
Figure