Abstract
Measuring the similarity between stochastic processes is a fundamental challenge in reinforcement learning and dynamical systems modeling. Traditionally, computing bisimulation metrics—the gold standard for process similarity—requires full knowledge of transition probabilities. We introduce SOMCOT (Stochastic Optimization for Markov Chain Optimal Transport), a model-free algorithm that estimates these distances using only sample trajectories. SOMCOT is the first method to provide rigorous theoretical guarantees for sample complexity in this setting, scaling linearly with state space size.
Introduction
In many real-world applications, we need to quantify how "similar" two dynamical systems are without having access to their underlying mathematical models. This is particularly relevant in representation learning, where we seek to group states that exhibit similar long-term behavior. This concept is formalized through bisimulation metrics, which have recently been linked to Optimal Transport (OT) theory.
Existing algorithms for computing these metrics typically assume "white box" access to transition kernels. In contrast, practical scenarios often only provide "black box" access: a stream of state-transition samples. While empirical deep learning methods have attempted to bridge this gap, they lack the theoretical convergence guarantees necessary for reliable estimation.
The SOMCOT Algorithm
The core contribution of this work is a novel Linear Programming (LP) formulation of bisimulation metrics designed for sample-based optimization. By reframing the distance as an expectation over state-next-state pairs, the authors enable the use of stochastic optimization techniques.
SOMCOT employs a primal-dual approach:
- Primal Update: The algorithm maintains an occupancy coupling between the two processes, updated via Stochastic Mirror Descent with entropic regularization.
- Dual Update: Lagrange multipliers, which penalize violations of the transition constraints, are updated using Stochastic Gradient Ascent.
- Auxiliary Variables: The formulation introduces variables $\lambda_X$ and $\lambda_Y$ that act as encoder-decoder maps, learning to translate between the processes while the distance is computed.
Crucially, SOMCOT only requires a single transition sample from each Markov chain per iteration. The authors prove that the algorithm achieves $\epsilon$-accuracy in $\tilde{O}(|X||Y|(|X|+|Y|)/\epsilon^2)$ iterations, establishing a benchmark for sample efficiency.
Experimental Results
The authors evaluated SOMCOT across three distinct environments: parametric random walks, block Markov chains, and a discretized pendulum.
Model Selection
A primary application of the estimated distance is model selection. In experiments with 1D random walks, the algorithm was tasked with identifying the "true" bias parameter $\theta$ from a set of candidates. As shown in the results, the estimated distance reaches a clear minimum when the candidate parameter matches the ground truth.
Similarly, the algorithm was applied to a discretized version of the Pendulum-v1 environment. Despite the non-Markovian nature of the discretized state space, SOMCOT successfully identified the true physical gravity constant ($g \approx 9.8$) by finding the parameter that minimized the bisimulation distance between the observed data and candidate models.
Representation Learning
In Block Markov Chain benchmarks, SOMCOT demonstrated the ability to recover latent structures from high-dimensional, noisy observations. By learning the $\lambda$ maps, the algorithm effectively identified the underlying block structure of the state space without prior knowledge of the environment's topology.
Discussion and Limitations
While SOMCOT provides a robust theoretical framework for model-free distance estimation, several challenges remain. The current tabular approach is limited to finite state spaces; extending these guarantees to continuous spaces using neural function approximators is a key area for future research. Additionally, the algorithm's performance is sensitive to the ratio of primal-to-dual learning rates. Finally, while the theory assumes independent samples, the algorithm's empirical success on correlated trajectories suggests that the theoretical bounds may be conservative, inviting further investigation into its performance on streaming data.
Summary updated