SimSR: Simple Distance-Based State Representations for Deep Reinforcement Learning

Hongyu Zang, Xin Li, Mingzhong Wang

Abstract

Learning effective state representations from high-dimensional visual inputs remains a core challenge in Reinforcement Learning (RL). We introduce SimSR (Simple State Representation), a novel framework that learns compact, task-relevant representations by replacing computationally expensive Wasserstein distances with a simple cosine-distance-based operator. SimSR achieves state-of-the-art sample efficiency and superior robustness against complex visual distractors while avoiding the representation collapse common in simplified metric-based methods.

Introduction

Deep RL agents often struggle when learning directly from pixels because raw images contain a massive amount of task-irrelevant information, such as background textures or lighting changes. To address this, researchers have turned to bisimulation metrics, which group different observations together if they exhibit similar behavior—meaning they yield identical rewards and lead to similar future states.

However, existing bisimulation-based methods face significant hurdles. Calculating behavioral distance typically requires computing the Wasserstein distance between probability distributions, which is computationally intensive. Furthermore, many methods rely on restrictive assumptions or are prone to representation collapse, where the neural network maps distinct states to the same point, rendering the representation useless for control.

Methodology

SimSR introduces a simplified operator that measures the behavioral difference between two states using cosine distance (normalized dot product) in the latent space.

The SimSR Operator

The authors mathematically demonstrate that their cosine-based update rule converges to the same fixed point as more complex metrics like MICo, but with significantly lower computational overhead. By using cosine distance, learned features are automatically scaled to a unit sphere, preventing specific features from dominating the distance calculation and stabilizing value function learning.

Architecture and Dynamics

SimSR incorporates several key technical components:

  • Latent State Dynamics: The model learns a compact transition model within the latent space, allowing the agent to "imagine" future states efficiently without decoding back to raw pixels.
  • Momentum Encoder: To stabilize training, a momentum-based target network (similar to MoCo) provides consistent targets for the representation loss.
  • Geometric Stability: The "zero self-distance" property of cosine distance naturally resists representation collapse. Two observations are only mapped to the same point if they are truly behaviorally identical.

Experimental Evaluation

The model was evaluated on the DeepMind Control (DMC) suite, covering standard tasks like Cartpole Swingup, Cheetah Run, and Finger Spin. To test robustness, the authors utilized a modified DMC benchmark where backgrounds are replaced with natural videos from the Kinetics dataset.

Example of the natural video background distractor used to test robustness.

Key Results and Discussion

SimSR demonstrates superior efficiency, outperforming SOTA methods like CURL, DBC, and MICo in the majority of standard DMC tasks.

Performance comparison of SimSR against SOTA baselines on DMC tasks.

Robustness and Generalization

In experiments involving natural video backgrounds, SimSR maintained high performance while competitors saw significant drops. For instance, on the "Hopper Stand" task with video distractors, SimSR achieved near-perfect scores while CURL and DBC failed to learn effectively. This suggests that SimSR's focus on reward-affecting transitions allows it to filter out "visual noise" more effectively than contrastive methods that attempt to encode all image details.

Furthermore, SimSR shows strong generalization capabilities. An encoder trained on "Walker Walk" can jump-start learning on "Walker Stand" or "Walker Run," significantly outperforming agents learning from scratch.

Conclusion

SimSR proves that simplicity in metric design can lead to significant gains in RL performance. By leveraging the geometric properties of cosine distance on a unit sphere, the framework provides theoretical guarantees comparable to complex Wasserstein-based metrics with a fraction of the complexity. Future work may explore combining SimSR’s distance-based approach with data augmentation to further accelerate learning by providing diverse views of behavioral states.

Summary updated

BibTeX
@inproceedings{zang2022simsr,
  author = {Hongyu Zang and Xin Li and Mingzhong Wang},
  title = {{SimSR: Simple Distance-Based State Representations for Deep Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i8.20883},
}
Figure