Understanding and Addressing the Pitfalls of Bisimulation-based Representations in Offline Reinforcement Learning

Hongyu Zang, Xin Li, Leiji Zhang, Yang Liu, Baigui Sun, Riashat Islam, Remi Tachet des Combes, Romain Laroche

Abstract

Bisimulation metrics provide a robust framework for state representation learning in reinforcement learning (RL) by grouping states based on reward and transition similarity. However, their performance significantly degrades in offline settings. This paper identifies two primary failure modes: overfitting to missing transitions and representation collapse due to improper reward scaling. We introduce an expectile-based bisimulation operator (EBS) to regularize against out-of-distribution errors and a tailored reward scaling (RS) strategy. Our methods demonstrate substantial improvements across D4RL and Visual D4RL benchmarks, transforming previously underperforming bisimulation methods into state-of-the-art contenders.

Introduction

In Reinforcement Learning, state representation learning aims to map complex raw data, such as pixels or high-dimensional sensor readings, into compact vectors that capture the essential dynamics of the environment. Bisimulation metrics are considered a gold standard for this task because they define state similarity through a recursive relationship: two states are similar if they yield the same immediate rewards and lead to similar future states.

While these metrics excel in online RL, where an agent can actively explore to refine its representations, they often fail in the offline regime. In offline RL, agents must learn from a fixed, pre-collected dataset without further environment interaction. Previous research indicated that bisimulation-based methods were frequently outperformed by simpler self-supervised tasks in these settings. This paper investigates the theoretical and practical reasons for this failure and proposes a comprehensive overhaul to make bisimulation effective for offline RL.

The Pitfalls of Offline Bisimulation

The Missing Transition Trap

The authors identify that in finite, incomplete datasets, standard bisimulation estimators become ineffective. A model can achieve a near-zero Bellman residual on the offline dataset while still maintaining a massive error in its representation. This occurs because the model cannot account for transitions not present in the data, leading to ineffective state similarity measurements and poor generalization to out-of-distribution (OOD) states.

Geometric Instability and Reward Scaling

The scale of rewards directly impacts the upper bound of the bisimulation metric. When using bounded distance metrics, such as cosine similarity (which is restricted between 0 and 1), improper reward scaling can cause the bisimulation "target" to exceed the metric's bounds. This forces the neural network to constantly push embeddings apart, leading to training instability and a loss of "effective dimension" in the learned features, eventually causing the representation to collapse.

Proposed Methodology

Expectile-based Bisimulation Operator (EBS)

To address the issue of missing data, the authors replace the standard expectation in the bisimulation operator with an expectile operator using asymmetric squared loss. By setting the expectile parameter $\tau > 0.5$, the model prioritizes "in-sample" transitions. This effectively regularizes the representation against OOD errors without the need to explicitly model unknown environment dynamics.

Tailored Reward Scaling (RS)

To stabilize the geometry of the embedding space, the authors propose a min-max normalization strategy combined with a specific scaling factor of $(1-\gamma)$. This ensures that the bisimulation targets remain within the valid range of the chosen distance metric, preventing the representation collapse observed in earlier implementations.

Experimental Evaluation

The proposed modifications (EBS + RS) were integrated into two state-of-the-art bisimulation algorithms, MICo and SimSR, and evaluated on two major benchmarks:

  1. D4RL: Standard MuJoCo tasks (HalfCheetah, Hopper, Walker2d) with varying data quality.
  2. Visual D4RL: Challenging tasks requiring the agent to learn directly from pixel observations.

Key Results

  • Performance Transformation: On the D4RL suite, SimSR—which previously failed on almost every dataset—became highly competitive with, and often outperformed, the TD3+BC baseline after applying the new scaling and expectile operator.
  • Visual RL Gains: The improvements were most pronounced in visual tasks. For example, on the cheetah-run-medium task, the MICo baseline score improved from 177 to 449 with the addition of the EBS operator.
  • Robustness: A single expectile value ($\tau=0.6$) proved effective across nearly all datasets, suggesting that the method is robust and does not require extensive per-task hyperparameter tuning.

Conclusion

This work demonstrates that the struggles of bisimulation-based representations in offline RL are not inherent to the metric itself, but rather a result of how the metric is estimated and scaled in the presence of limited data. By employing expectile-based regularization and careful reward normalization, bisimulation becomes a powerful and stable tool for offline state representation learning, particularly in high-dimensional visual environments.

Summary updated

BibTeX
@inproceedings{zang2023understanding,
  author = {Hongyu Zang and Xin Li and Leiji Zhang and Yang Liu and Baigui Sun and Riashat Islam and Remi Tachet des Combes and Romain Laroche},
  title = {{Understanding and Addressing the Pitfalls of Bisimulation-based Representations in Offline Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=sQyRQjun46},
}
Figure