TL;DR
This paper establishes the fundamental theoretical limits of clustering sequential trajectories generated by a mixture of unknown Markov chains. The authors introduce a novel "L-embedding" that stabilizes variance for sharp spectral clustering, followed by a likelihood-refinement step to achieve near-optimal misclassification rates. The resulting algorithm is parameter-free and significantly outperforms existing state-of-the-art methods on both synthetic and real-world datasets.
What Problem Does This Paper Address?
Trajectory clustering is essential for uncovering patterns in sequential data, such as user web browsing trails, app usage history, or music playlists. The Mixture of Markov Chains (MMC) framework models this by assuming that a set of observed trajectories is generated by a mixture of $K$ unknown Markov chains.
The core challenge is to accurately cluster these trajectories based on their underlying generative models. Prior works either lacked rigorous statistical guarantees, required strict and unrealistic assumptions about trajectory lengths, or relied on explicit knowledge of hidden problem-specific parameters. This paper addresses two critical questions:
- What is the fundamental information-theoretic limit on the misclassification rate for MMC clustering?
- Can we design a computationally tractable, parameter-free algorithm that achieves this lower bound?
Methods
The authors establish an instance-specific lower bound on the clustering error rate and propose a matching two-stage algorithm:
- The Fundamental Lower Bound: Using a change-of-measure argument and the data-processing inequality, the authors prove that the fundamental difficulty of clustering MMC trajectories is governed by an information-theoretic divergence metric ($D_\pi$), defined as the stationary-weighted KL divergence between the transition kernels.
- Stage I: Initial Spectral Clustering via L-Embedding: The authors introduce a novel Euclidean embedding for ergodic Markov chains called the L-embedding ($\text{vec}(\text{diag}(\pi)^{1/2}P)$). Its empirical counterpart normalizes transition counts by the square root of state visitations ($\sqrt{\hat{N}(s)}$). This acts as a variance-stabilization mechanism, homogenizing concentration rates across states and completely avoiding a detrimental dependence on the minimum stationary probability ($\pi_{\min}^{-1}$). Spectral clustering is then performed on this embedding space.
- Stage II: One-Shot Trajectory Likelihood Improvement: Using the initial clusters from Stage I, the algorithm estimates the transition kernels for each cluster. It then refines the cluster assignments using a trajectory-wise maximum likelihood estimator (essentially a hard Expectation-Maximization step), pushing the error rate to decay exponentially with trajectory length.
Datasets
The algorithm was evaluated on both synthetic and real-world datasets:
- Cyclic-Bump MMC (Synthetic): A hard instance explicitly constructed by the authors where the problem's structural gaps exhibit a strict hierarchy, demonstrating that their information-theoretic metric correctly captures problem difficulty where older metrics fail.
- Signal in a Maze (Synthetic): An instance designed to keep the information-theoretic gap constant while varying the pseudo-spectral gap ($\gamma_{ps}$) to isolate and analyze the impact of mixing times on clustering performance.
- Last.fm 1K (Real-World): A dataset consisting of real user music listening logs. The logs were preprocessed into sequential trajectories of genre changes to evaluate the algorithm's practical efficacy.
Key Insights and Ideas
- Variance Stabilization via L-Embedding: Standard empirical transition matrices perform poorly when some states are rarely visited. By weighting the embedding with the square root of the stationary distribution, the L-embedding balances out the statistical fluctuations, enabling sharp concentration bounds for spectral clustering.
- The Correct Aggregation Metric: Prior literature often evaluated separation based on a single "good" state. This paper proves that the true bottleneck is an optimally aggregated metric ($D_\pi$) that weights local KL divergences by the long-run frequency of visiting each state.
- Global to Local Optimization: Combining spectral clustering (which captures global cluster structures) with a local likelihood refinement step allows the algorithm to achieve near-optimal performance without needing a priori knowledge of the underlying transition kernels.
Key Results
- Outperforming the State-of-the-Art: In synthetic experiments (Cyclic-Bump MMC), Stage I of the proposed algorithm alone outperformed the previous state-of-the-art method (Kausik et al., 2023).
- Approaching the Oracle: Adding Stage II refinement (EM steps) dramatically boosted accuracy, approaching the performance of an "Oracle" likelihood test (which knows the true models beforehand), especially in challenging low-horizon, high-trajectory regimes.
- Real-World Superiority: On the Last.fm 1K dataset, the proposed method significantly reduced clustering errors compared to prior methods across all tested trajectory lengths ($H$).
Limitations and Future Work
- Computational Scalability: The exact Singular Value Decomposition (SVD) in Stage I requires $O(TS^2)$ space and $O(TS^2 \min(T, S^2))$ time, where $T$ is the number of trajectories and $S$ is the state space size. This becomes a bottleneck for massive state spaces. The authors suggest exploring randomized linear algebra (matrix sketching) or streaming variants to mitigate this.
- Regularity Assumptions: The theoretical analysis of Stage II requires an $\eta$-regularity assumption across chains (meaning chains share similar non-uniformity profiles). While practical workarounds like Laplace smoothing bypass this limitation empirically, a formal theoretical relaxation remains open.
- Extension to MDPs: The authors highlight extending this framework to Markov Decision Processes (MDPs) as a promising future direction, which introduces unique challenges due to controllable actions and policy-induced distributions.
Summary updated