Abstract
Deep reinforcement learning (DRL) gives the promise that an agent learns good policy from high-dimensional information, whereas representation learning removes irrelevant and redundant information and retains pertinent information. In this work, we demonstrate that the learned representation of the $Q$-network and its target $Q$-network should, in theory, satisfy a favorable distinguishable representation property. Specifically, there exists an upper bound on the representation similarity of the value functions of two adjacent time steps in a typical DRL setting. However, through illustrative experiments, we show that the learned DRL agent may violate this property and lead to a sub-optimal policy. Therefore, we propose a simple yet effective regularizer called Policy Evaluation with Easy Regularization on Representation (PEER), which aims to maintain the distinguishable representation property via explicit regularization on internal representations. And we provide the convergence rate guarantee of PEER. Implementing PEER requires only one line of code. Our experiments demonstrate that incorporating PEER into DRL can significantly improve performance and sample efficiency. Comprehensive experiments show that PEER achieves state-of-the-art performance on all 4 environments on PyBullet, 9 out of 12 tasks on DMControl, and 19 out of 26 games on Atari.
Introduction
In Deep Reinforcement Learning (DRL), agents utilize neural networks, such as Q-networks, to estimate the value of actions in specific states. While the goal is to extract meaningful features from high-dimensional inputs, a critical but often overlooked aspect is the relationship between representations of consecutive states. This paper identifies the distinguishable representation property: for stable and effective learning, the internal features (representations) of a state at time $t$ must remain sufficiently distinct from those at time $t+1$.
When these representations become too similar—a phenomenon known as "representation collapse"—the agent loses the ability to distinguish the relative quality of different actions. This leads to sub-optimal policies and training instability. Surprisingly, many state-of-the-art algorithms, including those specifically designed for representation learning like CURL, frequently violate this property.
The Similarity Trap and Target Networks
While many researchers focus on making representations "smooth" or "consistent," this work argues that they can actually become too consistent. If the features for $S_t$ and $S_{t+1}$ are nearly identical, the Bellman equation (the mathematical foundation of RL) becomes harder to solve numerically. Most prior research on representation learning in RL has ignored the target network's representations. This paper demonstrates that the relationship between the learning network and the target network is the key to stability.
Methods: Policy Evaluation with Easy Regularization (PEER)
To address the representation gap, we propose PEER (Policy Evaluation with Easy Regularization on Representation). The method is designed to be "frustratingly easy" to implement, requiring only a single additional line of code in most DRL frameworks.
The Q-network is decomposed into two parts: a non-linear encoder $\Theta_+$ (which turns raw pixels or sensors into a latent vector $\Phi$) and a linear layer $\Theta_-$ (which turns that vector into a value). PEER adds a simple penalty term to the standard RL loss function that explicitly minimizes the similarity between the current network's representation and the target network's representation for the subsequent state.
The regularized loss is defined as: $$\mathcal{L} = \mathcal{L}_{\text{PE}} + \langle \Phi(s, a; \Theta_+), \mathbb{E}_{s', a'} \Phi(s', a'; \Theta'_+) \rangle$$ By minimizing this inner product, PEER explicitly "pushes" the representations apart, ensuring they remain distinguishable. Crucially, the authors provide a theoretical convergence rate guarantee for this method.
Experimental Results
We evaluated PEER across a massive range of standard RL benchmarks to prove its versatility, including PyBullet (state-based robotics), DMControl (pixel-based versions), and Atari 2600 (high data efficiency settings).
Maintaining the Representation Gap
The Distinguishable Representation Degree (DRD) serves as a metric for the representation gap. As shown in the figures below, baseline algorithms like TD3 and CURL often exhibit DRD values that approach zero or become positive, indicating a collapse in distinguishability. PEER consistently maintains a healthy representation gap.
Performance and Sample Efficiency
PEER achieved state-of-the-art (SOTA) results across the board:
- PyBullet: SOTA on all 4 environments, outperforming TD3 and SAC.
- DMControl: Outperformed the backbone algorithms on 9 out of 12 tasks. When added to CURL, it significantly boosted performance in pixel-based environments.
- Atari: SOTA on 19 out of 26 games, achieving superhuman performance on games like Boxing, Freeway, and RoadRunner.
Notably, PEER-enhanced agents often reached high performance levels much faster than their baseline counterparts, making it highly valuable for real-world applications where data is expensive.
Conclusion
PEER demonstrates that maintaining distinguishable representations is a fundamental requirement for successful DRL. Its simplicity and "orthogonal" nature—it fixes a different problem than data augmentation or contrastive learning—allow it to be easily layered onto existing algorithms. While future work will explore hyperparameter sensitivity and the deeper mechanics of representation collapse, PEER stands as a powerful, easy-to-implement tool for boosting RL performance.
Summary updated