Accelerating Goal-Directed Reinforcement Learning by Model Characterization

Shoubhik Debnath, Gaurav S. Sukhatme, Lantao Liu

TL;DR

This paper introduces a hybrid reinforcement learning (RL) approach that combines model-free and model-based methods to drastically improve sample efficiency in goal-directed tasks. By building a rough model of the environment to calculate the "Mean First Passage Time" (MFPT)—a metric of how hard it is to reach the goal from any given state—the algorithm prioritizes updates for states that matter most. This significantly reduces the number of real-world interactions an agent needs to learn an optimal policy.

What Problem Does This Paper Address?

In reinforcement learning, there is a classic tug-of-war between Model-Free (MF) and Model-Based (MB) approaches. Model-free methods (like Q-Learning) are great because they don't require you to engineer a complex model of the physics or environment; however, they are notoriously "sample inefficient," often requiring millions of trial-and-error runs to converge. On the flip side, model-based methods learn much faster but require a highly accurate model of the environment—if the model has glitches, the agent's performance tanks (known as model bias).

The authors tackle this dilemma specifically for Goal-Directed Reinforcement Learning (e.g., a robot navigating an unknown room to reach a specific doorway). They want to achieve the high sample efficiency of model-based RL without paying the steep price of needing a perfectly accurate environmental model.

Methods

The authors propose a two-step hybrid mechanism that extracts high-level structural features from a "rough" model to guide model-free exploration.

  1. Approximate Model Building: As the agent explores the environment using standard model-free RL, it keeps track of simple count statistics (how often action $A$ in state $S$ leads to state $S'$). This builds a cheap, approximate transition and reward model.
  2. Reachability Characterization via MFPT: Using this rough model, the algorithm calculates the Mean First Passage Time (MFPT) for every state. MFPT is the expected number of hops it takes to reach the goal state from a given state. This creates a "reachability landscape"—a heatmap of how difficult it is to reach the goal from anywhere in the environment.
  3. Prioritized Value Iteration: States with a lower MFPT (closer/easier to reach the goal) are more likely to cause larger, more important updates to the agent's policy. The algorithm uses the MFPT values to sort and prioritize which states to update during the model-based planning phase.

The authors integrate this MFPT prioritization module into two classic RL algorithms, creating MFPT-Q (based on Q-Learning) and MFPT-DYNA (based on the DYNA architecture).

Datasets

The authors evaluated their algorithms using two custom-built simulation environments rather than standard static datasets:

  • 2D Grid Map: A C++/OpenGL simulator where the workspace is tessellated into a 2D grid with obstacles. The agent has 9 possible actions (8 directional movements + idle).
  • 3D Voxel Map: A more complex C++/ROS/Rviz simulator representing a 3D environment (useful for simulating quadrotor drone flight) with 7 possible actions (6 directions + idle).

Key Insights and Ideas

  • Rough models are surprisingly useful: You don't need a mathematically perfect model of an environment to benefit from model-based techniques. A rough model is entirely sufficient to capture the "macro" structure of the problem (like where the walls are and the general direction of the goal).
  • Reachability is a powerful heuristic: By calculating the MFPT, the agent essentially figures out which states are the most critical bottlenecks or stepping stones. Prioritizing updates for these states propagates valuable information through the state space much faster than random or sequential updates.
  • Compute time vs. Interaction time: Calculating MFPT requires matrix inversion, which is computationally heavy. However, in robotics, CPU time is cheap, but physical robot interactions are expensive and slow. Trading extra compute time for fewer real-world trials is a highly favorable trade-off.

Key Results

  • Massive reduction in iterations: Both MFPT-Q and MFPT-DYNA required significantly fewer training episodes to converge on an optimal policy compared to standard Q-Learning and DYNA.
  • Faster practical training: In the 3D simulation, the total actual time for the agent to learn the optimal policy and complete the task was drastically reduced when using the MFPT variants.
  • The Compute Catch: For smaller state spaces (< 5,000 states), MFPT-Q was faster in pure computational time. However, once the state space exceeded 5,000 states, standard Q-Learning finished its math faster than MFPT-Q. Despite this, the MFPT variants still required far fewer actual interactions with the environment.

Limitations and Future Work

Limitations: The primary limitation is the computational bottleneck of calculating the MFPT. It requires solving a system of linear equations with a worst-case time complexity of $O(|S|^{2.3})$, where $|S|$ is the number of states. For environments with massive state spaces, this matrix math becomes computationally prohibitive.

Future Work: To mitigate the scaling issue, the authors note that MFPT does not need to be calculated at every single iteration. Because it captures global, high-level features, it can be computed "sparsely" (e.g., every few dozen iterations) to save compute time while still guiding the agent effectively. Furthermore, this MFPT prioritization module is agnostic and could theoretically be plugged into other modern RL frameworks beyond Q-Learning and DYNA.

Summary updated

BibTeX
@inproceedings{debnath2018accelerating,
  author = {Shoubhik Debnath and Gaurav S. Sukhatme and Lantao Liu},
  title = {{Accelerating Goal-Directed Reinforcement Learning by Model Characterization}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2018},
  doi = {10.1109/iros.2018.8593728},
}
Figure