Efficient Model-Based Reinforcement Learning through Optimistic Policy Search and Planning
TL;DR
Model-based reinforcement learning (MBRL) often fails to explore effectively because it ignores what it doesn't know. This paper introduces H-UCRL (Hallucinated-UCRL), a practical algorithm that turns "optimistic exploration" into a standard planning problem by allowing the agent to "hallucinate" control over its own model uncertainty.
What Problem Does This Paper Address?
Reinforcement learning (RL) agents face a fundamental trade-off: exploration (trying new things to learn) versus exploitation (using what they already know to get rewards).
Model-based RL is generally very data-efficient because it builds a simulator of the world. However, most modern deep MBRL algorithms are "greedy": they optimize a policy based on the average prediction of their model. This is problematic in environments with action penalties (costs for moving). If an agent doesn't know that a high-reward area exists, and moving costs money, a greedy agent will simply stay still to avoid the cost, never discovering the reward.
While theoretical algorithms like UCRL (Upper Confidence Reinforcement Learning) provide a solution through "optimism in the face of uncertainty," they have historically been mathematically intractable for complex, high-dimensional continuous systems.
Methods
The authors propose H-UCRL, which makes optimistic exploration practical through a clever "reparameterization trick."
- Model Uncertainty: They use models (like Gaussian Processes or Ensembles of Neural Networks) that provide both a mean prediction ($\mu$) and a measure of epistemic uncertainty ($\sigma$)—the "uncertainty about what we don't know."
- Hallucinated Control: Instead of just choosing a physical action $a$, the agent also chooses a "hallucinated" action $\eta$. The dynamics are augmented such that the next state is $\mu(s, a) + \beta \sigma(s, a) \eta$.
- Optimism as Planning: By choosing $\eta$, the agent can "pick" the most favorable outcome within the model's confidence interval. This transforms the complex problem of optimistic exploration into a standard greedy planning problem on an augmented action space.
- Hybrid Approach: They combine Offline Policy Search (to learn a global policy) with Online Planning (to refine actions in real-time), allowing the agent to benefit from both long-term strategy and short-term accuracy.
Key Insights and Ideas
- The "Hallucination" Bridge: The most significant insight is that optimism doesn't require a special solver. By adding the model's uncertainty directly into the action space, any standard RL planner (like PETS or MPC) can be made "optimistic" for free.
- Robustness to Penalties: H-UCRL shines specifically when exploration is "expensive." While greedy agents get stuck in local minima (doing nothing to save cost), H-UCRL recognizes that the potential reward in unknown regions justifies the temporary cost of moving.
- Theoretical Grounding: Unlike many deep RL papers that are purely empirical, this work provides a regret bound. They prove that for Gaussian Process models, the error the agent makes over time (regret) grows sublinearly, meaning it eventually finds the optimal policy.
Key Results
The researchers evaluated H-UCRL on several standard continuous control benchmarks from the MuJoCo physics engine, including the Inverted Pendulum, 7-DOF PR2 Robot (Reacher and Pusher), and Half-Cheetah.
- Solving the "Stay-Still" Problem: In tasks with high action penalties, greedy algorithms and Thompson Sampling often failed to explore. H-UCRL was consistently able to solve these tasks by optimistically seeking out sparse rewards despite the movement costs.
- Superior Speed in Locomotion: On the Half-Cheetah benchmark, H-UCRL learned significantly faster than baselines. Even with no action penalty, it reached high performance levels in fewer episodes because its exploration was more purposeful.
- Model Agnostic: The authors showed H-UCRL works effectively with different types of models, including Gaussian Processes (GP), Deterministic Ensembles (DE), and Probabilistic Ensembles (PE).
Limitations and Future Work
- Action Space Dimensionality: H-UCRL increases the dimensionality of the action space (adding $p$ hallucinated dimensions for $p$ state dimensions). While the authors found this manageable, it could become a bottleneck for extremely high-dimensional state spaces.
- Calibration Dependence: The algorithm relies on the model being "well-calibrated" (the uncertainty $\sigma$ must accurately reflect the model's error). If the model is overconfident or wildly underconfident, the "hallucination" won't lead to effective exploration.
- Future Directions: The authors suggest exploring more efficient ways to handle the augmented action space and investigating how to automatically tune the optimism parameter ($\beta$) during training.
Summary updated