In deep reinforcement learning (RL), agents often struggle to distinguish between what is essential for a task and what is merely visual noise. A robot learning to pick up a cup might get distracted by the color of the wallpaper or the movement of clouds outside a window. Standard representation learning techniques, such as Variational Autoencoders (VAEs), often exacerbate this by forcing the agent to reconstruct every pixel, including the irrelevant ones.
To solve this, researchers have turned to bisimulation metrics: a way to learn representations that group states based on how they behave rather than how they look.
The Intuition of Behavioral Similarity
The core idea, pioneered in works like Learning Invariant Representations for Reinforcement Learning without Reconstruction by Amy Zhang and Sergey Levine, is that two states should be considered "the same" if they are functionally equivalent for the agent's goals.
In a bisimulation-based latent space, the distance between two state embeddings reflects two things:
- Immediate Reward: Do these states provide the same reward right now?
- Future Dynamics: Do these states lead to the same distribution of future states?
If two observations (pixels) lead to the same rewards and the same next-state distributions, they are "bisimilar." By training an encoder to map bisimilar states to the same point in latent space, the agent naturally ignores "exogenous" noise—features that change visually but don't affect the underlying Markov Decision Process (MDP).
Why It Works: The Recursive Constraint
The power of this approach lies in its recursive definition. As explored in DeepMDP: Learning Continuous Latent Space Models for Representation Learning by Carles Gelada and Marc G Bellemare, the bisimulation metric is essentially a Bellman-like operator for representations.
To measure the distance between two states $s_1$ and $s_2$, we don't just look at their current features. We look at the difference in their rewards and the Wasserstein distance between their transition distributions. This ensures that the latent space is structured such that "nearby" states are those that will continue to behave similarly far into the future.
Ruixiang Sun and colleagues demonstrated in Learning Latent Dynamic Robust Representations for World Models that this creates a synergistic effect with world models. While masking techniques encourage compact features, the bisimulation objective ensures those features are the ones that actually drive rewards and transitions.
Generalization and Analogy
Because bisimulation focuses on functional equivalence, it allows agents to generalize across environments that look different but share the same logic.
In Bisimulation Makes Analogies in Goal-Conditioned Reinforcement Learning, Philippe Hansen-Estruch and Amy Zhang extended this to goal-conditioned tasks. They showed that an agent can solve a task by "analogy"—for example, understanding that "opening a blue drawer" and "opening a red drawer" are the same functional task, even if the pixels are entirely different. By grouping state-goal pairs that are behaviorally equivalent, the agent can transfer skills to new environments without needing to see every possible visual permutation.
Solving the "Deadly Triad" in Offline RL
The benefits of behavioral representations extend to the "offline" setting, where agents must learn from static datasets without interaction. Offline RL is notoriously unstable due to the "deadly triad" of function approximation, bootstrapping, and off-policy data.
Brahma S Pavse and Josiah P. Hanna introduced KROPE in Stable Offline Value Function Learning with Bisimulation-based Representations, proving that bisimulation-based kernels can stabilize value function learning. By ensuring that state-action representations are aligned based on their long-term behavioral outcomes, the representation makes the Bellman operator contractive, preventing the value estimates from diverging.
Similarly, Joey Hong showed in Offline RL with Observation Histories that bisimulation allows for "trajectory stitching." In partially observed environments, two different histories might look unique but lead to the same future. Bisimulation maps these distinct histories to a shared latent state, allowing the agent to combine experiences from different parts of the dataset to find optimal paths.
Beyond Pixels: Clustering and Causal States
Recent iterations of this idea have moved toward more efficient implementations. Qiyuan Liu proposed Clustering with Bisimulation Metrics (CBM), which uses learned prototypes to group observations into behavioral clusters, effectively filtering out camera jitter and background changes in the Distracting Control Suite.
Furthermore, the connection between bisimulation and causality has become a major focus. Amy Zhang and Clare Lyle demonstrated in Invariant Causal Prediction for Block MDPs that bisimulation-style objectives can recover the "causal" state of an environment—the minimal set of variables that actually influence the future. This allows agents to be truly invariant to any environmental change that does not break the causal chain of the task.