Skip to main content
QUICK REVIEW

[Paper Review] Entropy Semiring Forward-backward Algorithm for HMM Entropy Computation

Velimir M. Ilić|arXiv (Cornell University)|Aug 1, 2011
Blind Source Separation TechniquesComputer Science11 references3 citations
TL;DR

This paper introduces the Entropy Semiring Forward-backward (ESRFB) algorithm, a memory-efficient method for computing HMM entropy and subsequence-constrained entropy using forward-backward recursion over the entropy semiring. It achieves the same time complexity as prior methods while reducing memory usage, and can compute state sequence entropy with O(N) memory, matching Hernando et al.'s algorithm, and subsequence-constrained entropy with lower memory than Mann and MacCallum’s approach.

ABSTRACT

The paper presents Entropy Semiring Forwardbackward algorithm (ESRFB) and its application for memory efficient computation of the subsequence constrained entropy and state sequence entropy of a Hidden Markov Model (HMM) when an observation sequence is given. ESRFB is based on forward-backward recursion over the entropy semiring, having the lower memory requirement than the algorithm developed by Mann and MacCallum, with the same time complexity. Furthermore, when it is used with forward pass only, it is applicable for the computation of HMM entropy for a given observation sequence, with the same time and memory complexity as the previously developed algorithm by Hernando et al

Motivation & Objective

  • To develop a memory-efficient algorithm for computing HMM entropy and subsequence-constrained entropy given an observation sequence.
  • To address the high memory demand of existing algorithms, particularly Mann and MacCallum’s method for subsequence-constrained entropy, which requires O(NT) memory.
  • To unify the computation of both state sequence entropy and subsequence-constrained entropy within a single framework.
  • To demonstrate that Hernando et al.’s algorithm can be derived from the proposed ESRFB framework.

Proposed method

  • The ESRFB algorithm performs forward-backward recursion over the entropy semiring, using two state variables per time step: α(z)(i) for normalized probabilities and α(h)(i) for entropy-weighted probabilities.
  • Normalization constants ct are computed at each step to maintain numerical stability and enable memory efficiency.
  • The forward pass computes α(z)(i) and α(h)(i) recursively using transition and emission probabilities scaled by normalization constants.
  • The backward pass computes β(z)(i) and β(h)(i) in reverse, using the same semiring structure to propagate entropy-weighted probabilities backward.
  • The algorithm separates the computation into full forward recursion (for entropy) and forward z-part recursion (for subsequence-constrained entropy), enabling memory reuse.
  • Termination phase computes subsequence-constrained entropy using products of forward and backward probabilities and entropy contributions from intermediate states.

Experimental results

Research questions

  • RQ1Can a single algorithm efficiently compute both HMM state sequence entropy and subsequence-constrained entropy with reduced memory usage?
  • RQ2Can the entropy semiring framework be used to derive existing memory-efficient algorithms like Hernando et al.’s?
  • RQ3Does the ESRFB algorithm achieve the same time complexity as Mann and MacCallum’s method while using less memory for subsequence-constrained entropy?
  • RQ4Can the recursive equations of Hernando et al.’s algorithm be formally derived from the ESRFB framework?

Key findings

  • The ESRFB algorithm achieves the same time complexity O(N²T + N(r−l)) as Mann and MacCallum’s algorithm for subsequence-constrained entropy computation.
  • The memory complexity of ESRFB is O(T−l + N(r−l)), which is lower than the O(NT) memory required by Mann and MacCallum’s method.
  • When used with only the forward pass, ESRFB computes state sequence entropy in O(N) memory and O(N²T) time, matching Hernando et al.’s algorithm in both time and space complexity.
  • The recursive equations of Hernando et al.’s algorithm are formally derived as a special case of the ESRFB framework, validating its consistency.
  • The algorithm maintains numerical stability through normalization constants ct, ensuring robust computation across long sequences.
  • The ESRFB framework unifies the computation of entropy and subsequence-constrained entropy under a single semiring-based formalism, enabling both efficient and extensible computation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.