GPU-Accelerated Out-of-Core HMM Inference with Concurrent CUDA Streams
摘要
Hidden Markov Models (HMMs), along with their extension, Hidden Semi-Markov Models (HSMMs), are powerful tools for modeling complex systems with multivariate states, but scaling them to ultra-large state spaces presents significant computational and memory challenges. This paper proposes a hybrid CUDA-based implementation to overcome these limitations, enabling efficient processing of HMMs with massive state spaces and extended observation sequences. Key optimizations include log-space computations for numerical stability, memory-efficient data partitioning with sparse matrix representations, and asynchronous data transfers using CUDA streams to overlap host-device communication with GPU kernel execution. Our approach achieves significant performance improvements, demonstrating up to \(8.5\times \) speedup over multi-threaded CPU implementations for HMM processing.