A Theoretical Analysis of State Similarity Between Markov Decision Processes

Zhenyu Tao, Wei Xu, Xiaohu YouarXiv 2025 · DOI

Abstract

Measuring state similarity is a cornerstone of reinforcement learning, essential for tasks such as state aggregation and policy transfer. While the traditional Bisimulation Metric (BSM) effectively compares states within a single Markov Decision Process (MDP), it lacks the formal properties required for robust comparison across heterogeneous environments. This paper introduces the Generalized Bisimulation Metric (GBSM), a rigorous mathematical framework that extends BSM to inter-MDP scenarios. By incorporating Hausdorff and Wasserstein distances, GBSM establishes a true pseudometric that satisfies the triangle inequality across different MDPs. Empirical results on synthetic and real-world datasets demonstrate that GBSM provides significantly tighter theoretical bounds for policy transfer regret than existing methods, offering a reliable tool for sim-to-real applications.

Introduction

In Reinforcement Learning (RL), Markov Decision Processes (MDPs) serve as the fundamental mathematical framework for modeling agent-environment interactions. A persistent challenge in the field is determining the similarity between states, particularly when those states belong to different environments. For instance, in "sim-to-real" transfer, an agent trained in a high-fidelity simulator must adapt to the nuances of the physical world. Quantifying the "distance" between a simulated state and a real-world state is essential for predicting performance and guiding policy adaptation.

The Problem: Limitations of Existing Metrics

The traditional Bisimulation Metric (BSM) has been widely used to identify similar states within a single MDP. Two states are considered bisimilar if they yield identical rewards for any given action and transition to states that are themselves bisimilar. This property allows for state space compression without loss of optimal policy information.

However, BSM falters when comparing states across distinct MDPs. Previous attempts to bridge this gap often relied on the "disjoint union" of environments—conceptually merging two MDPs into one. This approach is not only computationally expensive, scaling at $O(|S_1 + S_2|^2)$, but also lacks critical metric properties. Specifically, it often fails to satisfy the triangle inequality across different environments, making it difficult to provide rigorous theoretical guarantees for multi-stage policy transfer.

Methodology: The Generalized Bisimulation Metric (GBSM)

To address these shortcomings, the authors propose the Generalized Bisimulation Metric (GBSM). This new framework treats state similarity as a fundamental property that can be measured across the boundaries of heterogeneous MDPs.

Comparison of state similarity metrics: (a) standard BSM within one MDP, (b) BSM on a disjoint union, and (c) the proposed GBSM between two distinct MDPs.

GBSM introduces several key innovations:

  1. Hausdorff Integration: To compare MDPs with different action sets, the metric incorporates the Hausdorff distance. This allows the framework to account for the "best-case" and "worst-case" similarities between available actions in different environments.
  2. Wasserstein Distance: Similar to BSM, GBSM utilizes the Wasserstein distance (Earth Mover's Distance) to compare transition probability distributions. Crucially, it extends this comparison across different state spaces.
  3. Formal Pseudometric Properties: The authors rigorously prove that GBSM is a true pseudometric. It satisfies symmetry and, most importantly, the inter-MDP triangle inequality. This ensures that if MDP A is similar to B, and B is similar to C, then A is predictably similar to C, even if they are entirely different environments.

Experimental Validation

The theoretical framework was validated through two primary experimental setups:

  • Synthetic "Garnet" MDPs: These random MDPs provided a controlled environment to test the tightness of theoretical error bounds. The results confirmed that GBSM-based bounds are strictly tighter than those derived from standard BSM approaches.
  • Wireless Network Testbed: The researchers applied GBSM to a real-world 5G/B5G uplink transmission scenario involving diverse traffic profiles (camera, laptop, smartphone). GBSM was used to rank various simulation environments based on their similarity to the actual hardware deployment, effectively predicting policy transfer success.

Key Insights and Results

One of the most significant findings is the computational efficiency of GBSM. By avoiding the disjoint union approach, the complexity of calculating similarity between two MDPs is reduced from $O(|S_1 + S_2|^2)$ to $O(|S_1| \cdot |S_2|)$.

Furthermore, GBSM provides much more robust bounds for policy transfer regret. In RL, theoretical bounds often involve a discount factor ($\gamma$). As $\gamma$ approaches 1, standard bounds tend to diverge, becoming "vacuous" or useless for long-horizon tasks. GBSM maintains significantly tighter bounds even as the discount factor increases.

Policy transfer regret bounds for different discount factors ($\gamma$). GBSM-based bounds consistently provide a tighter and more reliable upper bound on actual regret compared to existing measures.

Empirical results showed a strong linear correlation between GBSM values and actual deployment regret in the wireless testbed. This suggests that GBSM can serve as a reliable proxy for "sim-to-real" performance, allowing engineers to select optimal training environments before deployment.

Conclusion and Future Work

The Generalized Bisimulation Metric represents a significant step forward in the theoretical understanding of MDP similarity. By providing a rigorous, efficient, and well-behaved metric across environments, it offers a solid foundation for state aggregation and transfer learning.

Future research directions include extending GBSM to average-reward settings to better handle infinite-horizon tasks and developing neural approximations to reduce the computational overhead of iterative Wasserstein distance calculations in deep RL contexts. Additionally, GBSM holds promise for multi-task RL, where it could be used to cluster similar tasks and mitigate negative transfer.

Summary updated

BibTeX
@misc{tao2025theoretical,
  author = {Zhenyu Tao and Wei Xu and Xiaohu You},
  title = {{A Theoretical Analysis of State Similarity Between Markov Decision Processes}},
  year = {2025},
  eprint = {2512.17265},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.17265},
}
Figure