[Paper Review] DQN with model-based exploration: efficient learning on environments with sparse rewards
This paper proposes DQN with model-based exploration, which enhances sample efficiency in sparse-reward environments by using a learned dynamics model to guide exploration. By performing one-step planning to select actions that lead to least-visited states—estimated via a multivariate Gaussian fit to recent states—the method improves exploration and accelerates learning in Mountain Car, though it underperforms in Lunar Lander due to distributional and modeling assumptions.
We propose Deep Q-Networks (DQN) with model-based exploration, an algorithm combining both model-free and model-based approaches that explores better and learns environments with sparse rewards more efficiently. DQN is a general-purpose, model-free algorithm and has been proven to perform well in a variety of tasks including Atari 2600 games since it's first proposed by Minh et el. However, like many other reinforcement learning (RL) algorithms, DQN suffers from poor sample efficiency when rewards are sparse in an environment. As a result, most of the transitions stored in the replay memory have no informative reward signal, and provide limited value to the convergence and training of the Q-Network. However, one insight is that these transitions can be used to learn the dynamics of the environment as a supervised learning problem. The transitions also provide information of the distribution of visited states. Our algorithm utilizes these two observations to perform a one-step planning during exploration to pick an action that leads to states least likely to be seen, thus improving the performance of exploration. We demonstrate our agent's performance in two classic environments with sparse rewards in OpenAI gym: Mountain Car and Lunar Lander.
Motivation & Objective
- To address the poor sample efficiency of DQN in environments with sparse rewards, where most experience transitions provide no useful learning signal.
- To improve exploration by leveraging unused transitions in the replay buffer to learn environment dynamics and state visitation patterns.
- To design a model-based exploration strategy that actively seeks out low-probability states using one-step planning.
- To evaluate whether combining model-free DQN with model-based exploration leads to faster learning and better sample efficiency.
- To identify limitations of the approach under assumptions such as accurate dynamics modeling and Gaussian-distributed state visits.
Proposed method
- The algorithm uses a dynamics predictor network trained on replay buffer transitions to predict next states given current states and actions.
- It fits a multivariate Gaussian distribution to the set of recently visited states to estimate the probability of new states.
- During exploration, the agent selects actions that lead to states with the lowest estimated probability under the Gaussian model, promoting exploration of rare states.
- The method performs one-step planning: for each action, it predicts the next state and computes its likelihood under the fitted Gaussian, choosing the action with the lowest likelihood.
- The exploration strategy is integrated into DQN’s epsilon-greedy framework, replacing random exploration with model-based action selection.
- The approach relies on the assumption that the dynamics model is accurate and that state visitation follows a multivariate Gaussian distribution.
Experimental results
Research questions
- RQ1Can model-based exploration improve sample efficiency in DQN for environments with sparse rewards?
- RQ2Does using a learned dynamics model to guide exploration lead to faster convergence compared to standard DQN?
- RQ3How effective is one-step planning based on state visitation likelihood in discovering rare states?
- RQ4Under what conditions does model-based exploration fail, and what are the key assumptions that limit its performance?
- RQ5Can the method generalize across different environments, such as Mountain Car and Lunar Lander, despite differences in state distribution and dynamics accuracy?
Key findings
- The proposed method significantly outperformed standard DQN in Mountain Car, achieving higher average rewards much earlier—within 50 episodes—compared to DQN’s 100+ episodes.
- Original DQN failed to learn in some runs of Mountain Car, while the model-based exploration method succeeded in all three independent runs.
- Monte Carlo Policy Gradient failed to learn in all runs of Mountain Car, highlighting the challenge of sparse rewards.
- In Lunar Lander, the method showed no noticeable improvement over DQN, as the dynamics model had low accuracy and state visits were not normally distributed.
- The failure in Lunar Lander was attributed to violations of the two core assumptions: inaccurate dynamics prediction and non-Gaussian state visitation distribution.
- Visualizations confirmed that the method did not expand the state coverage more than random or kernel-based similarity methods in Lunar Lander, indicating ineffective exploration.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.