On the Importance of Feature Decorrelation for Unsupervised Representation Learning in Reinforcement Learning

Hojoon Lee, Koanho Lee, Dongyoon Hwang, Hyunho Lee, Byungkun Lee, Jaegul Choo · DOI

Abstract

Sample efficiency remains a primary challenge in Reinforcement Learning (RL). While Unsupervised Representation Learning (URL) offers a path to improve efficiency by pretraining encoders on unlabeled data, traditional methods often suffer from representational collapse or the negative side effects of contrastive repulsion. This paper introduces SimTPR (Simple Temporally Predictive Representation), a framework that leverages feature decorrelation to learn robust representations without the need for negative samples. By focusing on maintaining feature rank and temporal consistency, SimTPR achieves state-of-the-art performance on the Atari 100k benchmark.

Introduction

In Reinforcement Learning, an agent's ability to learn from limited experience—its sample efficiency—is often the bottleneck for real-world application. One promising strategy to address this is Unsupervised Representation Learning (URL). By pretraining an encoder on a large dataset of unlabeled states, an agent can develop a foundational understanding of the environment's visual and structural features before ever attempting a specific task.

However, training these encoders is difficult. Standard predictive models often fall into "representational collapse," a state where the encoder outputs identical or near-identical vectors for every input, effectively losing the ability to distinguish between different states. To combat this, most current methods rely on contrastive learning, which forces the model to "repulse" different states in a mini-batch. While effective in computer vision, this approach can be counter-productive in RL, where consecutive frames are highly correlated and should remain close in the latent space.

The SimTPR Framework

SimTPR (Simple Temporally Predictive Representation) moves away from the "repulsion" mechanics of contrastive learning, focusing instead on feature decorrelation.

Architecture

The framework utilizes a Siamese-like network architecture consisting of an encoder, a projector, a transition model, and a predictor. The transition model is implemented as a Causal Transformer, which processes sequences of states. The system takes two augmented "views" of a state sequence; one branch of the network attempts to predict the future latent states of the other branch.

Feature Decorrelation Loss

Rather than using a contrastive loss to push different states apart, SimTPR employs a feature decorrelation loss. This loss standardizes the cross-correlation matrix of the latent features by:

  1. Forcing diagonal entries to 1, ensuring that each feature maintains sufficient variance.
  2. Forcing off-diagonal entries to 0, ensuring that features are independent and non-redundant.

This approach increases the "feature rank"—the dimensionality of the manifold upon which the data resides—without explicitly forcing individual data points away from each other. This preserves the temporal continuity essential for RL while preventing the collapse of the latent space.

Experimental Methodology

The authors evaluated SimTPR using the Atari 100k benchmark, a rigorous test of sample efficiency involving 26 games where the agent is limited to only 100,000 interaction steps.

  • Pretraining: The encoder was pretrained using the DQN replay dataset, specifically 1.5 million frames from early-to-mid training logs. This simulates learning from "sub-optimal" data, a common scenario in real-world RL.
  • Finetuning: During the RL phase, the pretrained encoder remained frozen. A simple policy layer was then trained using the Rainbow algorithm for the duration of the 100,000-step interaction limit.

Key Insights and Results

The Importance of Feature Rank

The research identified a significant positive correlation (Spearman’s r=0.54) between the "feature rank" of the pretrained encoder and the agent's final performance. This suggests that the primary benefit of URL is providing a high-dimensional, diverse feature set that allows the policy layer to distinguish between complex environmental states.

Causal Prediction vs. Masking

The choice of transition model proved critical. Using a Causal Transformer to predict the future from the past significantly outperformed non-causal "masked" models (similar to those used in BERT). In the context of RL, predicting the temporal evolution of a state is a more effective pretext task than simply filling in missing gaps in a sequence.

Overcoming the Plasticity Problem

The authors noted a "loss of plasticity" in RL, where agents can overfit to early, noisy interactions. They found that periodically resetting the policy layer during the finetuning phase—while keeping the pretrained encoder frozen—dramatically improved the final results, allowing the agent to better utilize the stable representations provided by SimTPR.

Performance Benchmarks

SimTPR achieved a human-normalized Interquartile Mean (IQM) score of 0.451, representing a 10% improvement over the previous state-of-the-art unsupervised method, ATC (0.353). In scenarios where action labels were available during pretraining (Pretraining from Demonstration), SimTPR reached an IQM of 0.500, outperforming other prominent methods like SGI and BarlowBalance.

Conclusion

SimTPR demonstrates that feature decorrelation is a powerful alternative to contrastive learning for RL representation. By avoiding the "repulsion trap" that breaks temporal consistency, SimTPR maintains high feature rank and provides a more stable foundation for policy learning. Future work will involve testing the framework in more complex, procedurally generated environments and exploring theoretical proofs for the link between decorrelation and downstream RL success.

Summary updated

BibTeX
@inproceedings{lee2023importance,
  author = {Hojoon Lee and Koanho Lee and Dongyoon Hwang and Hyunho Lee and Byungkun Lee and Jaegul Choo},
  title = {{On the Importance of Feature Decorrelation for Unsupervised Representation Learning in Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=PqUQBWE1VC},
}
Figure