Abstract
The Predictive Information is the mutual information between the past and the future, $I(X_{past}; X_{future})$. We hypothesize that capturing the predictive information is useful in RL, since the ability to model what will happen next is necessary for success on many tasks. To test our hypothesis, we train Soft Actor-Critic (SAC) agents from pixels with an auxiliary task that learns a compressed representation of the predictive information of the RL environment dynamics using a contrastive version of the Conditional Entropy Bottleneck (CEB) objective. We refer to these as Predictive Information SAC (PI-SAC) agents. We show that PI-SAC agents can substantially improve sample efficiency over challenging baselines on tasks from the DM Control suite of continuous control environments. We evaluate PI-SAC agents by comparing against uncompressed PI-SAC agents, other compressed and uncompressed agents, and SAC agents directly trained from pixels.
Introduction
Learning complex robotic tasks directly from raw pixels is a significant challenge in reinforcement learning (RL). Images contain vast amounts of data, much of which—such as background details or lighting changes—is irrelevant "noise" for decision-making. Furthermore, pixel-based environments are often partially observable; a single frame cannot convey the velocity of an object, necessitating a representation of the past.
Standard RL methods often rely on the Markov assumption, which posits that the current state contains all necessary information to predict the future. However, in pixel-based settings, agents must effectively represent history. The core challenge lies in capturing essential dynamics without being overwhelmed by irrelevant details. To address this, we introduce PI-SAC (Predictive Information Soft Actor-Critic), an agent that prioritizes "Predictive Information"—the mutual information between the past and the future—to learn more efficiently.
Methods: Learning Compressed Predictive Representations
The PI-SAC framework utilizes an auxiliary learning task based on Predictive Information (PI). PI is defined as the mutual information between the past ($X$) and the future ($Y$). To extract this information effectively, we employ the Conditional Entropy Bottleneck (CEB).
CEB acts as a sophisticated filter, forcing the agent to learn a representation ($Z$) that simultaneously maximizes information about the future (predictive power) and minimizes information from the past that is not useful for future prediction (compression). This compressed representation is learned alongside a standard Soft Actor-Critic (SAC) agent.
As shown in Figure 1, the architecture uses a contrastive version of the objective, allowing the agent to learn dynamics by comparing different trajectories. This approach is more computationally efficient than attempting to reconstruct every future pixel. Crucially, the representation is action-conditioned, meaning the agent predicts the future given its own intended actions, which is vital for understanding environment dynamics.
Experimental Results
We evaluated PI-SAC on the DeepMind Control (DMC) suite, a standard benchmark for continuous control. The evaluation spanned nine tasks, including the PlaNet benchmark (e.g., Cheetah Run, Walker Walk) and additional sparse-reward tasks (e.g., Cartpole Balance Sparse). PI-SAC was compared against state-of-the-art baselines including Dreamer, SLAC, and DrQ.
As illustrated in Figure 3, PI-SAC consistently outperformed or matched leading methods while demonstrating significantly higher sample efficiency. For instance, on the "Cheetah Run" task at 100k steps, PI-SAC achieved a score of 460, substantially higher than the next best baseline, DrQ, which scored 344. In many scenarios, PI-SAC reached convergence in roughly half the time required by other algorithms.
Key Insights
- The Importance of Compression: Unlike methods that only maximize mutual information, PI-SAC explicitly compresses the representation. "Forgetting" irrelevant past details is as critical as "remembering" the future for stable and efficient learning.
- Action-Conditioning: Agents that do not account for their own actions when predicting the future perform significantly worse, highlighting that temporal coherence alone is insufficient for RL.
- Stability and Generalization: The CEB objective leads to more stable training curves and representations that generalize better to new tasks, such as adapting from pole balancing to pole swing-up.
Limitations and Future Work
While PI-SAC is highly effective, it currently utilizes a fixed observation window. Future work could involve integrating Recurrent Neural Networks (RNNs) to handle tasks requiring longer-term memory. Additionally, while the auxiliary loss effectively shapes the encoder, using the latent representation directly for the policy remains a challenge for the most complex locomotion tasks, suggesting a subtle interplay between RL and predictive losses that warrants further investigation.
Summary updated