TL;DR
This paper introduces a novel approach to improve sample efficiency and exploration in vision-based reinforcement learning (RL) by making "curiosity" explicit. By using the error from a state representation learning (SRL) module as an intrinsic reward, their method encourages an agent to explore more diverse and informative states, leading to better performance, especially in challenging environments.
What Problem Does This Paper Address?
Reinforcement learning agents that learn directly from raw images (vision-based RL) are powerful but notoriously sample-inefficient. They often require millions of interactions to learn even simple tasks. A common strategy to combat this is integrating State Representation Learning (SRL) techniques, which help the agent learn a more compact and meaningful representation of the observed world. However, even with SRL, the diversity of the data collected by the agent can be limited, especially due to the trial-and-error nature of RL and the agent's tendency to exploit known good strategies. This lack of diversity can hinder generalization and further limit sample efficiency. This paper aims to address this by explicitly encouraging exploration of diverse and potentially "error-prone" states, leveraging the SRL process itself.
Methods
The core of the proposed method, called Representation-Curious Actor-Critic (RCAC), is to use the error generated by the SRL module as an intrinsic reward signal for exploration. Specifically, they employ a Variational Autoencoder (VAE) for SRL. The VAE's reconstruction error (or more precisely, its loss function, which includes a reconstruction term and regularization terms) serves as the "curiosity" signal.
Instead of directly adding this intrinsic reward to the task reward for a single policy, RCAC uses two separate policies:
- Task Policy ($\pi_{task}$): Trained to maximize the actual task reward.
- Curious Policy ($\pi_{cure}$): Trained to maximize the intrinsic reward derived from the SRL error.
These two policies are trained using an off-policy RL algorithm (Soft Actor-Critic, SAC). At each step, the agent either samples an action from the task policy or the curious policy, with a probability $p_c$ determining how often the curious policy is used. This setup creates an interplay: the curious policy is incentivized to visit states that are difficult for the SRL module to reconstruct, thus generating more diverse and informative data. This diverse data, in turn, helps the SRL module learn a better representation, which then provides a more accurate error signal for the curious policy, creating a positive feedback loop.
Datasets
The experiments were conducted on six continuous control tasks from the Deepmind Control Suite: reacher-easy, cartpole-swingup, ball-in-cup-catch, finger-spin, finger-turn, and reacher-hard. These tasks were chosen to represent a range of RL challenges, including contact dynamics and sparse rewards. No new datasets were introduced.
Key Insights and Ideas
- SRL Error as a Curiosity Signal: The paper demonstrates that the error signal from an SRL module (like a VAE) can be a powerful and readily available source of intrinsic motivation for exploration, without requiring explicit dynamics models.
- Dual-Policy Exploration: Using a separate "curious" policy trained on the intrinsic reward, alongside the main task policy, proves more effective than simply adding intrinsic rewards to the task reward. This separation allows for more targeted exploration of novel states.
- Interplay Between SRL and Exploration: The method establishes a symbiotic relationship where the curious exploration improves the SRL representation, and the improved SRL representation provides a better signal for curiosity, leading to a virtuous cycle.
- Diversity is Key: The core hypothesis is that by encouraging exploration of states that are "surprising" to the SRL module (i.e., have high error), the agent collects more diverse data. This diversity is crucial for improving generalization and sample efficiency.
Key Results
The RCAC method consistently outperformed the baseline (SAC-AE, which is SAC with an autoencoder but without explicit curiosity-driven exploration) across all six tested environments.
- Improved Performance: RCAC achieved higher average rewards, particularly in more difficult tasks (
reacher-hard,finger-turn) where the baseline struggled to reach high-reward areas. - Stabilized Training: The method significantly reduced reward variance, leading to more stable training curves.
- Boosted Sample Efficiency: While not quantified with specific numbers, the paper suggests that the improved exploration and representation learning accelerate convergence, thus improving sample efficiency. For simpler tasks, RCAC approached maximum rewards where the baseline plateaued at around 80%.
Limitations and Future Work
The authors acknowledge that the effectiveness of RCAC might be task-dependent and that the hyperparameters, particularly the curiosity probability ($p_c$), need careful tuning. They also note that for tasks where the baseline already performs very well, the improvement from curiosity might be less pronounced.
Future work directions include:
- Investigating the transfer learning capabilities of the architecture.
- Scaling the approach to even more complex tasks.
- Further exploring the impact of exploration hyperparameters.
- Testing the approach with different SRL methods beyond VAEs.
Summary updated