Abstract
While many recent advances in deep reinforcement learning (RL) rely on model-free methods, model-based approaches remain an alluring prospect for their potential to exploit unsupervised data to learn environment models. In this work, we provide an extensive study on the design of deep generative models for RL environments and propose a sample-efficient and robust method to learn the model of Atari environments. We deploy this model and propose generative adversarial tree search (GATS), a deep RL algorithm that learns the environment model and implements Monte Carlo tree search (MCTS) on the learned model for planning. While MCTS on the learned model is computationally expensive, GATS follows depth-limited MCTS. GATS employs a deep Q-network (DQN) and learns a Q-function to assign values to the leaves of the tree in MCTS. We theoretically analyze GATS vis-à-vis the bias-variance trade-off and show GATS is able to mitigate the worst-case error in the Q-estimate. While we expected GATS to enjoy better sample complexity and faster convergence to better policies, surprisingly, GATS fails to outperform DQN. We provide a study in which we show why depth-limited MCTS fails to perform desirably.
Introduction
Deep Reinforcement Learning (RL) typically falls into two categories: model-free methods (like DQN), which learn purely from trial and error, and model-based methods, which learn a "world model" to plan ahead. The primary motivation for model-based RL is to improve sample efficiency—learning more from less data. However, learning a world model directly from high-dimensional pixels, such as Atari frames, is notoriously difficult. While Generative Adversarial Networks (GANs) excel at synthesizing realistic images, they are often too unstable for the dynamic nature of RL. This paper investigates whether a state-of-the-art GAN can serve as a reliable simulator for Monte Carlo Tree Search (MCTS) planning.
Methodology
The proposed Generative Adversarial Tree Search (GATS) framework consists of three core modules:
- Generative Dynamics Model (GDM): Based on the PIX2PIX architecture, this model predicts the next frame given the current state and action. To ensure stability, the authors utilized Wasserstein distance and spectral normalization.
- Reward Predictor (RP): A classifier that predicts the immediate reward for a transition.
- Value Function: A standard DQN or DDQN used to estimate the long-term value of the leaf nodes in the search tree.
In the GATS algorithm, the agent uses the GDM to "look ahead" several steps, building a search tree. It then uses the DQN to value the states at the bottom of that tree and back-propagates those values to decide the best immediate move. The researchers evaluated GATS on several classic Atari 2600 games (Pong, Asterix, Breakout, etc.) and explored a wide range of configurations for the replay buffer, optimization, and sampling strategies.
Key Insights and Results
Despite the GDM's ability to learn Atari physics with 50x fewer samples than model-free methods (e.g., 100,000 vs. 5 million samples), GATS failed to consistently outperform standard DQN. This "performance paradox" led to several key insights:
- The "Goldfish and the Shark" Trap: Shallow look-ahead can hinder learning. If an agent identifies a negative reward (a "shark") a few steps ahead, MCTS will guide it to avoid that path. While this preserves the agent locally, it prevents the agent from actually experiencing the negative reward. Consequently, the global Q-function never learns that the state leading to the shark is undesirable, slowing down overall policy convergence.
- Robustness to Domain Change: The GAN-based model proved highly robust. When game parameters changed (e.g., shrinking the paddle in Pong), the GDM adapted in just 3,000 samples, whereas model-free Q-networks required millions of frames to re-adjust.
- Computational Overhead: Running a generative model inside a search loop is computationally intensive. Some experiments required five weeks of GPU time to simulate just a few million frames.
Discussion and Conclusion
The primary limitation of GATS is search depth. While MCTS theoretically reduces worst-case error in value estimation exponentially with depth, this benefit is only realized if the tree is deep enough to reach an "effective horizon." Due to the complexity of pixel-level generative models, GATS was limited to a depth of approximately 5, which proved insufficient to overcome the biases of the underlying Q-network.
Future research should focus on latent-space models to increase search depth and speed, and develop better methods to propagate "hallucinated" failures back into the global value function to avoid the pitfalls of local planning.
Summary updated