TL;DR
This paper introduces "Bag of Policies" (BoP), a novel approach to enhance exploration in distributional Reinforcement Learning (RL). By combining ensemble methods with existing optimistic distributional RL techniques, BoP achieves faster learning and greater robustness, demonstrating that optimism can be effectively accumulated in distributional RL.
What Problem Does This Paper Address?
Reinforcement Learning (RL) agents often struggle with efficient exploration in complex environments. While distributional RL (DiRL) has improved learning stability by modeling the entire distribution of future rewards, it hasn't inherently changed how actions are selected for exploration. Existing methods for deep exploration, like Thompson sampling, have shown success in scalar RL by using ensembles of models to exploit uncertainty. However, applying these ensemble techniques to DiRL, which deals with distributions of distributions, presents a challenge: how to effectively leverage ensemble diversity to improve exploration without simply adding computational overhead. This paper aims to bridge this gap by investigating whether combining ensemble-based Thompson sampling with already optimistic DiRL methods can lead to synergistic improvements in exploration.
Methods
The core contribution is the Bag of Policies (BoP) framework. BoP builds upon existing distributional RL estimators (specifically, Bayesian Distributional Policy Gradients - BDPG) by creating an ensemble of multiple "heads." Each head is an independent distributional actor-critic model.
Here's how it works:
- Ensemble of Heads: BoP maintains a population of K distributional actor-critic heads.
- Thompson Sampling for Exploration: During training, a single "active" head is chosen uniformly at random for each episode. This active head dictates the agent's behavior (the "behavior policy").
- Off-Policy Learning: While the active head learns on-policy, all other heads learn off-policy using the data collected by the active head. This allows for efficient data utilization.
- Diversity through Independent Updates: Each head is updated independently. This, combined with the random selection of the active head, ensures diversity in policies and learning signals, mimicking the effect of Thompson sampling.
- Leveraging BDPG's Optimism: BoP inherits BDPG's mechanism for incorporating local epistemic uncertainty (information gain) as a curiosity bonus, further guiding exploration.
- Posterior Distribution over Distributions: BoP effectively approximates a posterior distribution over return distributions and, consequently, over policies.
The key novelty lies in the combination of ensemble-based Thompson sampling with distributional RL, specifically by creating an ensemble of distributional RL agents and training them in a way that promotes policy diversity.
Datasets
The paper evaluates BoP on the Arcade Learning Environment (ALE), a standard benchmark for evaluating RL agents, specifically using Atari games. No new datasets were introduced.
Key Insights and Ideas
- Optimism Accumulates in DiRL: The most significant finding is that optimism, whether from Thompson sampling (ensemble-based) or local curiosity bonuses (inherent in BDPG), can be effectively combined and accumulated in distributional RL to improve performance.
- Ensemble Diversity is Crucial for DiRL: Naively combining ensemble methods with DiRL can lead to a collapse in policy diversity. BoP's specific training regime (independent updates, off-policy learning for non-active heads) is designed to maintain this crucial diversity.
- Thompson Sampling Enhances Exploration in DiRL: The ensemble approach, driven by Thompson sampling, significantly improves sample efficiency and exploration compared to a single optimistic DiRL agent.
- Fewer Heads are Better for BoP: Unlike some multi-worker approaches that benefit from a large number of workers, BoP achieves substantial improvements with a small ensemble (3-5 heads). This suggests that the benefit comes from the nature of the exploration (Thompson sampling) rather than just the sheer number of agents.
- "Average-then-Argmax" for Action Selection: During testing, averaging the action distributions of all policy heads and then selecting the greedy action proved to be the most effective strategy, relying on model agreement rather than pure exploration.
Key Results
- Improved Sample Efficiency: BoP consistently shows better sample efficiency compared to BDPG on selected Atari environments, meaning it learns faster.
- Competitive Performance: BoP outperforms baselines like A3C and Bootstrapped DQN on many Atari games, especially those requiring deep exploration (e.g., MsPacman, Frostbite), often by a significant margin (50%-200%).
- Effective with Few Heads: BoP demonstrates substantial improvement even with a small number of heads (e.g., 3 or 5), outperforming a single-head baseline significantly. This highlights the power of the ensemble effect over simply increasing agent count.
- Not Always Superior for Non-Exploration Tasks: BoP was observed to be less competitive in games with moving targets but less exploration-demanding (e.g., BeamRider, Seaquest), suggesting its strength lies in deep exploration scenarios.
Limitations and Future Work
- Computational Cost: While BoP is efficient with a few heads, each additional head increases computational cost. The paper notes that the performance gains saturate as policies become more correlated with a larger number of heads.
- Game Dependency: BoP's effectiveness is more pronounced in games requiring deep exploration. Its performance in other types of games might be less dominant.
- Future Work: The authors suggest that BoP can be applied to a wide range of distributional RL settings. Future work could explore different ensemble strategies, investigate the interplay between local curiosity and global ensemble optimism more deeply, and apply BoP to more complex environments.
Summary updated