Abstract
Hidden Markov Models (HMM) and Linear Dynamical Systems (LDS) are fundamental tools for time-series analysis, yet their training via the Expectation-Maximization (EM) algorithm is traditionally serial due to temporal dependencies. This paper introduces the Cut-And-Stitch (CAS) framework, a novel approach that parallelizes the E-step by partitioning data into independent blocks. Experimental results on high-dimensional motion capture data and synthetic HMM datasets demonstrate that CAS achieves significant speedups on multi-core systems with negligible loss in model accuracy.
Introduction
The ubiquity of time-series data in fields like speech recognition and motion capture has made Hidden Markov chain models indispensable. However, the standard training approach—the EM algorithm—suffers from a serial bottleneck. The "forward-backward" inference pass requires the state at time $t$ to be computed after $t-1$, preventing modern multi-core processors from being fully utilized. As datasets grow in complexity, such as tracking nearly 100 dimensions in 3D animation, training times become prohibitive for real-time or large-scale applications.
Methods: The Cut-And-Stitch (CAS) Framework
The authors propose the Cut-And-Stitch (CAS) framework to break the serial dependency chain. The framework consists of four primary stages:
- The Cut: The input time-series is divided into $k$ blocks, where $k$ corresponds to the number of available processors.
- Local Computation: Each processor independently performs an "intra-block" E-step. To maintain boundary consistency, block-specific parameters are introduced to act as messages between adjacent blocks.
- The Stitch: Results from local computations are aggregated to update global model parameters in the M-step.
- The Warm-Up: An initial sequential pass provides a starting point for boundary parameters, accelerating convergence.
The implementation leverages OpenMP for shared-memory parallelization, targeting symmetric multiprocessors (SMPs).
Experimental Evaluation
The framework was evaluated using two datasets: the CMU Motion Capture Database (93-dimensional bone positions) and a synthetic HMM dataset (100 hidden states).
Performance and Scalability
The CAS-LDS implementation demonstrated high parallel efficiency. Analysis showed that approximately 99.8% of the LDS computation is parallelizable. On an SGI Altix supercomputer, the algorithm scaled effectively, reducing a 4,000-second task to approximately 115 seconds when using 128 cores.
Accuracy
Crucially, the approximation introduced by the "Cut" does not compromise model quality. The reconstruction error for motion capture data remained virtually identical to the serial version, with a difference of less than 0.01%.
Discussion and Conclusion
While CAS provides impressive scaling, performance eventually plateaus due to hardware constraints like memory bus bandwidth. Additionally, HMMs exhibit lower scaling potential than LDS because their lower computational density makes synchronization overhead more prominent. Future work will explore applying CAS to massive-scale biological sequences where parallelization is critical for feasibility.
Summary updated