Analytic Formulas for Renyi Entropy of Hidden Markov Models

Joachim Breitner, Maciej SkorskiarXiv 2017

TL;DR

This paper provides the first analytic formulas for Renyi entropies of Hidden Markov Models (HMMs), a significant advancement over previous work that was limited to simpler models or lacked explicit solutions. The authors achieve this by cleverly transforming the problem of random matrix products into a single matrix product using tensor operations, and by developing a novel technique to handle matrix powers without requiring strict positivity assumptions.

What Problem Does This Paper Address?

Determining the "entropy rate" of a stochastic process is crucial for understanding information flow and predictability. For simple Markov chains, this problem is relatively well-understood, often boiling down to analyzing the growth of matrix powers. However, Hidden Markov Models (HMMs), which are widely used to model sequential data where observations are noisy and depend on underlying hidden states, present a much harder challenge. The core difficulty lies in dealing with products of random matrices that arise from the hidden state dynamics. Until now, there were no explicit, closed-form formulas for Renyi entropies (a generalization of Shannon entropy) of HMMs, especially in the asymptotic (long-term) regime. This lack of analytical tools limited our ability to precisely quantify information leakage and analyze HMM-based systems.

Methods

The authors tackle the HMM entropy rate problem by first reformulating it in terms of "collision probabilities" – the likelihood that multiple independent realizations of the HMM process produce the same output sequence. For integer orders of Renyi entropy, they show this can be reduced to computing powers of a single, albeit larger, matrix. This is achieved by using the tensor product (specifically, the Kronecker product) of the HMM's transition and emission probabilities. This tensor product effectively creates a new matrix that captures the joint dynamics of multiple independent HMM instances.

A key innovation is their method for analyzing the growth of matrix powers. Traditional approaches often rely on the Frobenius-Perron theory, which requires matrices to have strictly positive entries (or powers). This is a strong assumption that doesn't always hold for HMMs. The authors bypass this limitation by developing a technique based on spectral analysis that works for any non-negative matrix. This allows them to derive entropy rate formulas that are applicable even to irreducible and aperiodic HMMs, significantly broadening their applicability.

Datasets

Not discussed in the paper. The paper focuses on theoretical derivations and provides examples using synthetic transition matrices rather than real-world datasets.

Key Insights and Ideas

  • Random Matrices to Single Matrix: The core insight is transforming the intractable problem of random matrix products (inherent in HMMs) into a single, albeit larger, matrix product through tensor operations. This is a significant conceptual leap.
  • Breaking Positivity Assumptions: The development of a spectral analysis technique for non-negative matrix powers is crucial. It removes a major bottleneck that previously limited the applicability of entropy rate calculations to HMMs. This means results are more general and don't require assumptions about the structure of the HMM (like irreducibility or aperiodicity).
  • Analytic Formulas for HMMs: The paper delivers on its promise by providing explicit, analytic formulas for Renyi entropies of HMMs, both for finite-length sequences and for asymptotic entropy rates. This is a long-sought result in the field.
  • Connection to Side-Channel Attacks: The work has immediate practical implications, as demonstrated by its application to analyzing side-channel attacks (specifically against RSA), where quantifying information leakage is critical.

Key Results

The paper presents two main theorems:

  • Theorem 1: Provides an analytic formula for the Renyi entropy of finite-length realizations of an HMM. This formula involves powers of a "restricted tensored matrix" derived from the HMM's parameters.
  • Theorem 2: Derives an analytic formula for the Renyi entropy rate of HMMs in the asymptotic regime. This formula relies on the spectral radius of irreducible components of the tensored matrix and importantly, does not require positivity assumptions on the HMM's transition matrix.

The authors also provide a key lemma (Lemma 1) on the growth of non-negative matrix powers, which is a technical contribution in its own right and enables the generality of Theorem 2.

Limitations and Future Work

  • Integer Order Restriction: The derived formulas are currently limited to integer orders of Renyi entropy ($\alpha > 1$). The paper poses the question of whether analytic formulas can be derived for non-integer $\alpha$.
  • Smooth Renyi Entropy: The paper focuses on Renyi entropy and does not explicitly discuss "smooth Renyi entropy," which is another related information-theoretic measure.
  • Convergence Speed: While the paper provides asymptotic results, the speed of convergence to the entropy rate is not explicitly analyzed.
  • Perturbation Theory: The authors suggest future work in applying perturbation theory to handle small leakages, indicating potential extensions to noisy or imperfect HMM models.

Summary updated

Abstract

Determining entropy rates of stochastic processes is a fundamental and difficult problem, with closed-form solutions known only for specific cases. This paper pushes the state-of-the-art by solving the problem for Hidden Markov Models (HMMs) and Renyi entropies. While the problem for Markov chains reduces to studying the growth of a matrix product, computations for HMMs involve \emph{products of random matrices}. As a result, this case is much harder and no explicit formulas have been known so far. We show how to circumvent this issue for Renyi entropy of integer orders, reducing the problem again to a \emph{single matrix products} where the matrix is formed from transition and emission probabilities by means of tensor product. To obtain results in the asymptotic setting, we use a novel technique for determining the growth of non-negative matrix powers. The classical approach is the Frobenius-Perron theory, but it requires positivity assumptions; we instead work directly with the spectral formula. As a consequence, our results do not suffer from limitations such as irreducibility and aperiodicity. This improves our understanding of the entropy rate even for standard (unhidden) Markov chains. A recently published side-channel attack against RSA was proven effective using our result, specialized to order 2.
BibTeX
@misc{breitner2017analytic,
  author = {Joachim Breitner and Maciej Skorski},
  title = {{Analytic Formulas for Renyi Entropy of Hidden Markov Models}},
  year = {2017},
  eprint = {1709.09699},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.09699},
}

Loading related content...

Figure