背景资料:Baum-Welch训练是一种期望最大化算法,用于以完全自动化的方式训练隐马尔可夫模型的发射和转移概率。方法和结果:我们介绍了Baum-Welch训练的线性空间算法。对于具有M个状态、T个自由转移和E个自由发射参数的隐马尔可夫模型,输入序列长度为L,我们的新算法在一次Baum-Welch迭代中需要O(M)内存和O(LMTmax(T + E))时间,其中T_max是任何状态所连接的最大状态数.迄今为止,最有效的存储器算法是O(log(L)M)存储器和O(log(L)LMTmax)时间要求的检查点算法。因此,我们的新算法使得内存需求完全独立于训练序列的长度。更一般地,对于n个隐马尔可夫模型和n个长度为L的输入序列,O(log(L)L^(n-1)M)的内存需求减少到O(L^(n-1)M)内存,而运行时间从O(log(L)L^n M T_max + L^n(T + E))变为O(L^n M T_max(T + E))。结论:对于大类的隐马尔可夫模型,例如在基因预测,其状态的数量不与输入序列的长度缩放,因此,我们的新算法可以更快,更内存效率比任何现有的算法。
英文摘要:
Background: Baum-Welch training is an expectation-maximisation algorithm for training the emission and transition probabilities of hidden Markov models in a fully automated way.
Methods and results: We introduce a linear space algorithm for Baum-Welch training. For a hidden Markov model with M states, T free transition and E free emission parameters, and an input sequence of length L, our new algorithm requires O(M) memory and O(L M T_max (T + E)) time for one Baum-Welch iteration, where T_max is the maximum number of states that any state is connected to. The most memory efficient algorithm until now was the checkpointing algorithm with O(log(L) M) memory and O(log(L) L M T_max) time requirement. Our novel algorithm thus renders the memory requirement completely independent of the length of the training sequences. More generally, for an n-hidden Markov model and n input sequences of length L, the memory requirement of O(log(L) L^(n-1) M) is reduced to O(L^(n-1) M) memory while the running time is changed from O(log(L) L^n M T_max + L^n (T + E)) to O(L^n M T_max (T + E)).
Conclusions: For the large class of hidden Markov models used for example in gene prediction, whose number of states does not scale with the length of the input sequence, our novel algorithm can thus be both faster and more memory-efficient than any of the existing algorithms.
Differentiable Filtering for Learning Hidden Markov Models
University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Coordinated Science Laboratory(协调科学实验室);Department of Mechanical Science and Engineering(机械科学与工程系)
Posterior Regimes and Latent Deception: Variational Bayesian Inference in Hidden Markov Models for Sequential Fraud Detection in Financial Transactions
University of Stirling(斯特灵大学);University of Nottingham(诺丁汉大学)