A bisimulation metric is a distance function between states in a Markov Decision Process (MDP) that measures behavioral similarity, where two states are considered close if they yield similar distributions over future rewards and next states under any possible policy. This formalizes the concept of state equivalence from bisimulation relations into a continuous metric space, enabling the construction of low-dimensional state representations that are optimal for value function approximation and planning. It provides a theoretical guarantee that states grouped together by the metric will have similar optimal values.
Glossary
Bisimulation Metric

What is a Bisimulation Metric?
A bisimulation metric is a formal distance function between states in a Markov Decision Process (MDP) that quantifies their behavioral similarity, providing a robust foundation for state abstraction and representation learning.
The metric is computed by finding a fixed point of a contraction mapping that compares the one-step reward and the Wasserstein distance between transition distributions. This makes it a powerful tool for model-based reinforcement learning (MBRL) and representation learning, as it automatically discovers state abstractions that are invariant to irrelevant perceptual details. By learning an encoder that maps raw observations to a latent space where distance is the bisimulation metric, agents can achieve improved sample efficiency and generalization by focusing on task-relevant features.
Key Properties of Bisimulation Metrics
A bisimulation metric is a distance function that quantifies behavioral equivalence between states in a Markov Decision Process. Its formal properties ensure it provides a consistent, meaningful measure of similarity for planning and abstraction.
Pseudometric Structure
A bisimulation metric is a pseudometric on the state space of a Markov Decision Process (MDP). This means it satisfies three core axioms:
- Non-negativity: d(s1, s2) ≥ 0.
- Symmetry: d(s1, s2) = d(s2, s1).
- Triangle Inequality: d(s1, s3) ≤ d(s1, s2) + d(s2, s3).
Crucially, it is not a full metric because the identity of indiscernibles property (d(s1, s2) = 0 ⇒ s1 = s2) is relaxed. A distance of zero indicates states are behaviorally equivalent (bisimilar), but they may not be identical in their raw representation. This relaxation is essential for creating useful state abstractions.
Contraction Under the Bellman Operator
The bisimulation metric is defined as the fixed point of a modified Bellman operator. Formally, it satisfies d = F(d), where F is a contraction mapping. This property guarantees:
- Existence and Uniqueness: A unique bisimulation metric exists for a given MDP.
- Computability: The metric can be approximated iteratively via dynamic programming or gradient-based methods, as repeated application of F converges to the fixed point.
- Stability: The distance between states is defined by the supremum over all possible policies or a specific policy, linking the metric directly to long-term value functions and ensuring states are close if they have similar future reward streams.
Policy-Invariant Abstraction
A core property is that bisimulation metrics induce policy-invariant state aggregations. If two states have a distance of zero (are bisimilar), they are behaviorally interchangeable under any policy. This means:
- Optimal Value Preservation: Aggregating bisimilar states into abstract states does not change the optimal value function. An optimal policy derived from the abstract MDP is also optimal for the original MDP.
- Robust Generalization: This invariance makes the metric powerful for state abstraction and transfer learning, as the learned representation is decoupled from a specific task's reward function and is instead grounded in the environment's dynamics.
Bounded by Value Difference
The bisimulation distance between two states provides a tight upper bound on the difference in their optimal (or on-policy) values. Formally, for a discount factor γ, |V*(s1) - V*(s2)| ≤ d(s1, s2). This property has critical implications:
- Error Control: It guarantees that clustering states based on a small bisimulation distance will result in clusters with similar optimal values, controlling the loss from abstraction.
- Planning Guarantees: In model-based RL, using a dynamics model accurate under the bisimulation metric ensures that planned value estimates are accurate.
- It directly connects behavioral similarity (the metric) to decision-making quality (the value function).
Connection to Causal Features
Bisimulation metrics are theoretically linked to learning causal state representations. A representation is bisimulation-invariant if it maps behaviorally equivalent states to the same latent code. This property encourages the representation to discard noisy or irrelevant sensory information and retain only the features that causally influence future rewards. This leads to:
- Improved Generalization: Representations are robust to spurious correlations and changes in irrelevant parts of the observation space.
- Sample Efficiency: By focusing on causal features, RL agents can learn policies that transfer across different visual appearances or distractors.
- It provides a formal objective for representation learning in RL that goes beyond reconstruction error.
Approximation and Practical Variants
The exact bisimulation metric is often computationally intractable. In practice, several approximate variants are used, each with slightly relaxed properties:
- On-Policy Bisimulation: Measures similarity under a specific policy π, not all policies, making it easier to learn.
- π-Bisimulation: A common relaxation used in algorithms like DeepMind's DBC (Deep Bisimulation for Control).
- Lax Bisimulation: Allows for a small ε tolerance in the behavioral equivalence condition.
- Model-Based Approximation: The metric is approximated using a learned dynamics model and reward function. These approximations trade some theoretical guarantees for practical learnability from high-dimensional observations like images.
Bisimulation Metric vs. Other State Similarity Measures
A technical comparison of distance functions used to measure similarity between states in reinforcement learning and world models, highlighting their theoretical foundations and practical applications.
| Feature / Metric | Bisimulation Metric | Euclidean Distance (L2) | Cosine Similarity | Value Function Difference |
|---|---|---|---|---|
Theoretical Foundation | Behavioral equivalence (bisimulation relation) | Geometric distance in vector space | Angular difference between vectors | Difference in expected cumulative reward |
Considers Future Dynamics | ||||
Policy Invariance | ||||
Formal Metric Guarantees | ||||
Primary Use Case | Learning robust latent representations for RL | Clustering, nearest-neighbor search in raw state space | Semantic similarity of embeddings (e.g., from encoders) | Analyzing value error or convergence |
Sensitive to Reward Structure | ||||
Computational Complexity | High (requires solving fixed-point equation) | Low | Low | Medium (requires value function evaluation) |
Common in Model-Based RL |
Frequently Asked Questions
A bisimulation metric is a formal, quantitative measure of behavioral similarity between states in a Markov Decision Process (MDP). It is a core concept in state representation for model-based reinforcement learning and world models, providing a rigorous foundation for abstraction and planning.
A bisimulation metric is a distance function between states in a Markov Decision Process (MDP) that quantifies their behavioral similarity. Two states are considered close under this metric if, for any policy, they yield similar distributions over future rewards and next states. Formally, it generalizes the concept of bisimulation equivalence—where states are considered identical if they are behaviorally indistinguishable—to a continuous measure, allowing for a smooth notion of state abstraction. This metric is defined as the least fixed point of a functional that contracts the distance between states based on the difference in their immediate rewards and the Wasserstein distance between their next-state distributions.
Key Properties:
- Policy-Independent: The similarity is defined with respect to all possible policies, making it a fundamental property of the MDP itself.
- Contracts over Time: The metric ensures that states with similar immediate outcomes and similar distributions over future similar states are close.
- Enables Abstraction: It provides a principled way to aggregate states into clusters, where states within a cluster are behaviorally equivalent or nearly so, simplifying the state space for planning.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
A bisimulation metric is a tool for measuring behavioral similarity in sequential decision-making. The following concepts are foundational to understanding its purpose, construction, and application within reinforcement learning and world models.
Markov Decision Process (MDP)
A Markov Decision Process (MDP) is the fundamental mathematical framework for modeling sequential decision-making. It is defined by a tuple (S, A, P, R, γ), where:
- S is a set of states.
- A is a set of actions.
- P is the state transition probability function.
- R is the reward function.
- γ is a discount factor.
The core Markov property states that the future state depends only on the current state and action, not the full history. A bisimulation metric is defined over the states S of an MDP, measuring distance based on the long-term behavioral consequences defined by P and R.
Model-Based Reinforcement Learning (MBRL)
Model-Based Reinforcement Learning (MBRL) is a paradigm where an agent learns an explicit model of the environment's dynamics (and often its reward function). This learned world model can then be used for planning via simulation, such as with Monte Carlo Tree Search, or to generate synthetic experience for policy training.
Bisimulation metrics are a key tool in MBRL for learning compact and robust state representations. By embedding states into a metric space where distance corresponds to behavioral difference, the agent can generalize more effectively and its learned dynamics model can be more accurate and sample-efficient.
State Representation
State representation is the process of transforming raw, high-dimensional observations (e.g., pixels from a camera) into a compact, informative encoding that is sufficient for decision-making. The goal is to discard irrelevant information while preserving what is necessary to predict future rewards and states.
A bisimulation metric provides a principled objective for learning such representations: the encoder is trained so that the distance between two latent states equals the bisimulation distance between the original observations. This results in a behaviorally-equivalent representation, which is invariant to nuisance factors and aligns with control objectives.
World Model
A world model is an agent's internal, learned simulation of its environment. It typically consists of a representation model (an encoder) and a dynamics model that predicts future representations and rewards. Famous examples include the Recurrent State-Space Model (RSSM) used in the Dreamer algorithm.
Bisimulation metrics are directly used to train the representation component of a world model. By enforcing that representationally similar states are also behaviorally similar, the world model learns a more coherent and predictable latent dynamics space, which in turn leads to more effective and stable planning.
Successor Representations
Successor representations factor the classic value function into two components: a successor matrix that captures the expected future occupancy of states, and an immediate reward vector. Formally, the value of a state s under policy π is Vπ(s) = Mπ(s, ·) · r, where M is the successor representation.
This factorization is deeply connected to bisimulation. Bisimulation metrics can be computed using the difference in successor features between states. Furthermore, representations based on successor features are known to induce a form of behavioral similarity, making them a practical and theoretically grounded method for learning bisimulation-style embeddings.
Causal State Representation
A causal state representation aims to capture only the variables that have a causal influence on future outcomes, filtering out spurious correlations. This provides robustness to distributional shifts, as the representation focuses on invariant mechanisms.
Bisimulation metrics align closely with this causal perspective. Because the metric is defined by equality of future reward sequences under all policies, it inherently ignores features that do not causally affect long-term behavior. Therefore, learning a representation that is invariant under the bisimulation metric is a practical method for discovering causal state abstractions that generalize beyond the training data distribution.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us