TL;DR
This paper extends the classic Dyna reinforcement learning architecture—which combines real-world learning with planning via "imaginary" experience—to work with linear function approximation. The authors prove that this approach converges to the same solution as Least-Squares Temporal Difference (LSTD) methods and introduce a novel "feature-based" prioritized sweeping algorithm that significantly accelerates learning in large state spaces.
What Problem Does This Paper Address?
In reinforcement learning (RL), agents often face a trade-off between acting quickly and planning thoroughly. The Dyna architecture bridges this gap by using a model of the world to generate "imaginary" experiences, allowing the agent to plan and update its value estimates even when it isn't interacting with the real world.
However, the original Dyna was designed for tabular representations, where every state is a discrete entry in a table. This doesn't scale to the massive or continuous state spaces found in real-world robotics or complex games. To handle these, researchers use function approximation (like linear models or neural networks).
The challenge addressed here is twofold:
- Theoretical: Does Dyna-style planning actually converge when using linear function approximation, and if so, to what?
- Algorithmic: Can we still use "prioritized sweeping"—a technique that focuses planning on the most "surprising" or important states—when we no longer have discrete states to track?
Methods
The authors develop Linear Dyna, where the world model is represented by a forward transition matrix $F$ and a reward vector $b$. Instead of jumping between discrete states, the model predicts how features change: $\phi' = F\phi$.
Key methodological contributions include:
- Linear Dyna Planning: The agent generates imaginary feature vectors, uses its linear model to predict the next features and rewards, and applies standard TD(0) updates to its value function parameters ($\theta$).
- Linear Prioritized Sweeping: In tabular RL, prioritized sweeping works backwards from a state whose value just changed to its predecessors. Since individual states aren't identifiable in function approximation, the authors propose working backwards feature-by-feature. If a specific feature's weight ($\theta_i$) changes significantly, the algorithm looks through the model $F$ to find which other features $j$ typically lead to it and prioritizes updating them.
- Two Algorithmic Variants: They introduce PWMA (which adds predecessors to a queue) and MG (which puts the current state on the queue), adapting both from previous tabular literature to the linear case.
Datasets
The algorithms were evaluated on two classic RL benchmarks:
-
Boyan Chain: A task specifically designed to test policy evaluation. The authors used an extended version with 98 states and 25 features to provide a more rigorous test.
Figure 1: The general Boyan Chain problem. -
Mountain Car: A standard control problem where an underpowered car must rock back and forth to gain enough momentum to reach a hilltop. This used a high-dimensional feature space (10,000 features) generated via tile-coding.
Key Insights and Ideas
- Convergence is Distribution-Independent: A major theoretical "aha" moment is the proof that Linear Dyna converges to a unique solution regardless of how you sample the imaginary states (the distribution $\mu$). This gives researchers total freedom to use clever sampling strategies—like prioritized sweeping—without worrying about breaking the math.
- The LSTD Connection: The authors prove that the fixed point of Linear Dyna is exactly the LSTD solution. This provides a beautiful link between incremental, online planning and batch-style least-squares methods.
- Real Experience is King: The authors found that updating from real experience is always more informative than model-generated experience because the model is an approximation that inevitably introduces distortion. Their algorithms prioritize real updates before diving into the "imaginary" ones.
Key Results
-
Faster Learning: In the Boyan Chain experiments, all Dyna variants learned significantly faster than model-free TD(0). The Dyna-MG variant, in particular, showed superior performance once the model had a few episodes to stabilize.
Figure 2: Performance of policy evaluation methods on the Boyan Chain and Mountain Car environments -
Control Advantage: In the Mountain Car control task, Dyna-MG showed a distinct advantage in learning rate over model-free Sarsa, reaching higher returns in fewer episodes.
Figure 3: Control performance on Mountain Car -
Prioritization Works: The results confirm that feature-based prioritized sweeping is more efficient than simply updating features at random, mirroring the benefits seen in the older tabular versions of Dyna.
Limitations and Future Work
- Model Stability: The convergence proof requires the numerical radius of the transition matrix $F$ to be $\le 1$. If the learned model is "explosive" (predicting that features grow infinitely), the planning process will diverge.
- Early Model Variance: In the very early stages of learning, the model is highly inaccurate. The authors noted that Dyna-MG could initially be slower than other methods because it was "planning" based on a high-variance, poorly-learned model.
- Control Theory: While the policy evaluation theory is robust, the authors admit the theory for the control case (where the policy itself is changing) is less clear and remains an open area for deeper exploration.
Summary updated