Introduction
In model-based reinforcement learning, an agent faces a constant trade-off: should it spend time acting in the world or planning its next move? Prioritized Sweeping (PS) is a classic solution that focuses planning on "important" states—those where the estimated value is likely to change significantly.
This paper introduces Generalized Prioritized Sweeping (GenPS), a framework that extends the classic PS algorithm to work with compact, parametric models like Bayesian Networks. By using the gradient of the Bellman error to estimate which states need updating, GenPS allows agents to focus their limited planning time on the most critical parts of a large state space, leading to significantly faster convergence than traditional methods.
The Limitations of Classic Prioritized Sweeping
Classic PS was designed for "flat" state spaces, essentially simple lookup tables. In complex, real-world domains, we use compact representations (like Factored Markov Decision Processes or Dynamic Bayesian Networks) to generalize what we learn in one state to many others.
Classic PS is ill-suited for these models because it doesn't know how to propagate the "priority" of an update through the model's generalizations. If an agent learns something new about a specific transition, classic PS only updates the immediate state, ignoring other "similar" states that are affected by the same underlying model parameters. While generalizing models help us learn the world faster with less data, they make the planning problem harder because a single experience can theoretically change the "correct" value for every state in the system.
The GenPS Approach
The authors propose a principled approach based on a single general principle: update states where the approximation of the value function will change the most.
- Bellman Error as Priority: The algorithm maintains a priority queue of states based on their Bellman error—the difference between the current value estimate and the value suggested by the Bellman equation.
- Gradient-Based Estimation: To avoid recomputing the error for every state (which is computationally prohibitive in large spaces), GenPS uses the gradient of the Bellman equation with respect to the model parameters ($\theta$). When the model is updated by an experience, the change in parameters ($\Delta \theta$) is multiplied by the gradient to estimate how much the Bellman error might have changed for other states.
- Factored Representations: The paper specifically derives how this works for Dynamic Bayesian Networks (DBNs). In a DBN, a state is a vector of variables. If the agent learns something about one variable, GenPS identifies all states that share similar "parent" variables and increases their priority for a value update. In factored models, "similarity" isn't about being physically close; it's about sharing the same causal parents in the DBN.
- Upper Bounding: Since exact gradients can be expensive to compute, the authors use a heuristic upper bound to ensure that no state with a significant error is "starved" of computation.
Experimental Setup: The Maze Domain
The researchers evaluated their approach using a grid-based Maze Domain simulation.
- The Environment: A grid-based maze with 59 cells and 3 binary flags that the agent must collect before reaching a goal.
- State Space: This results in $59 \times 2^3 = 472$ possible states.
- Dynamics: Actions (Up, Down, Left, Right) are stochastic, succeeding 80% of the time and veering off-course 20% of the time.
- Independencies: Crucially, the movement dynamics are independent of the flag settings, a structure that the DBN model can exploit.
Key Results
The authors compared three versions: standard PS (state-based), PS with a factored model (but standard prioritization), and GenPS (factored model + gradient-based prioritization).
- Faster Convergence: GenPS reached a high-quality policy significantly faster than both other methods.
- Two-Fold Improvement: The results showed that using a factored model provides an initial boost by learning the model faster. However, the GenPS prioritization strategy provides an additional, distinct boost by ensuring the agent spends its "thinking time" on the states most affected by those new model insights.
(Note: The authors also demonstrate mathematically that classic Prioritized Sweeping is actually just a specific instantiation of GenPS when using a simple lookup-table representation.)
Limitations and Future Work
- Computational Overhead: While GenPS reduces the number of value updates, calculating the gradients and updating the priority queue still carries a cost. In very large state spaces, even enumerating the states to update their priority can be burdensome.
- Heuristic Dependencies: The paper relies on a heuristic upper bound for the gradient. While effective in the maze domain, more complex domains might require more sophisticated approximations.
- Value Function Approximation: This paper focuses on generalizing the model. The authors note that future work should apply GenPS to cases where the value function itself is a compact approximator (like a neural network or linear regression model), rather than a table.
Summary updated