Abstract
In recent years, $Q$-learning has become indispensable for model-free reinforcement learning (MFRL). However, it suffers from well-known problems such as under- and overestimation bias of the value, which may adversely affect the policy learning. To resolve this issue, we propose a MFRL framework that is augmented with the components of model-based RL. Specifically, we propose to estimate not only the $Q$-values but also both the transition and the reward with a shared network. We further utilize the estimated reward from the model estimators for $Q$-learning, which promotes interaction between the estimators. We show that the proposed scheme, called Model-augmented $Q$-learning (MQL), obtains a policy-invariant solution which is identical to the solution obtained by learning with true reward. Finally, we also provide a trick to prioritize past experiences in the replay buffer by utilizing model-estimation errors. We experimentally validate MQL built upon state-of-the-art off-policy MFRL methods, and show that MQL largely improves their performance and convergence. The proposed scheme is simple to implement and does not require additional training cost.
Introduction
Reinforcement Learning (RL) is generally split into two paradigms: Model-Free (MFRL) and Model-Based (MBRL). MFRL algorithms like Q-learning are popular due to their simplicity and lack of a complex "world model." However, they are notoriously sample-inefficient and often suffer from estimation bias, where the agent inaccurately estimates the value of its actions. Conversely, MBRL is more sample-efficient as it learns the environment's dynamics, but these models are often difficult to train and computationally expensive. Model-Augmented Q-Learning (MQL) seeks to bridge this gap by integrating model-based components into a simple, model-free framework.
Methods
MQL introduces three primary innovations to enhance standard Q-learning:
- Model-augmented Q-network (MQN): Instead of a network that only outputs Q-values, the MQN uses a shared backbone to simultaneously predict the Q-value, the immediate reward ($\mathcal{R}$), and the next state (transition $\mathcal{T}$). This parameter sharing forces the network to learn a more robust representation of the state-action space.
- Model-augmented Reward (MReward): MQL utilizes a "shaped" reward $\tilde{r}_t$ that incorporates the model's own estimation errors. The authors prove Policy Invariance: despite this modification during training, the agent converges to the same optimal policy as if it were using the true reward.
- Model-augmented Prioritized Experience Replay (MPER): Standard Prioritized Experience Replay (PER) samples experiences based on Temporal Difference (TD) error. MPER extends this by also prioritizing experiences where the model's predictions of the reward or transition were inaccurate, ensuring the agent focuses on physically complex transitions.
Experimental Evaluation
The researchers evaluated MQL across several benchmarks:
- PyBullet Gymperium: Continuous control tasks like Humanoid, HalfCheetah, and Hopper.
- OpenAI Gym: BipedalWalkerHardcore-v3 and a custom sparse-reward version of Pendulum.
- Atari Games: 12 games to test discrete control and pixel-based learning.
Key Results and Insights
MQL-enhanced versions of popular algorithms like Soft Actor-Critic (SAC) and Twin Delayed DDPG (TD3) consistently outperformed their base versions across diverse environments.
Key insights include:
- Feature Sharing: Predicting immediate rewards (a simpler task) helps the network learn features necessary for the more difficult task of long-term Q-value estimation.
- Bias Reduction: MQL's Q-estimates converge to true returns faster and more accurately, effectively mitigating overestimation bias.
- Sparse Reward Handling: In environments like Pendulum where rewards are rare, MQL-augmented versions successfully solved tasks where standard SAC and TD3 failed.
- Efficiency: The computational overhead is negligible as model estimation is performed via small auxiliary heads on the existing network.
Conclusion
MQL demonstrates that integrating model-based components into MFRL can significantly boost performance and sample efficiency without increasing training costs. Future work may address hyperparameter sensitivity regarding loss balancing and explore more sophisticated model architectures for highly non-linear environments.
Summary updated