Entropy Rate Estimation for Markov Chains with Large State Space

Yanjun Han, Jiantao Jiao, Chuan-Zheng Lee, Tsachy Weissman, Yihong Wu, Tiancheng Yu

Introduction

Entropy estimation is a fundamental problem in information theory and machine learning, serving as a measure of uncertainty or predictability in data distributions. While the optimal sample complexity for independent and identically distributed (i.i.d.) data is well understood—scaling sublinearly as $\Theta(S / \log S)$ for a state space of size $S$—real-world data such as natural language, DNA sequences, and consumer behavior are inherently dependent.

This paper tackles the challenge of estimating the entropy rate for dependent data, specifically focusing on stationary reversible Markov chains with a massive state space. The authors establish the fundamental limits of this estimation, proving that specialized estimators can achieve consistency with significantly fewer samples than naive approaches, provided the chain mixes reasonably well.

Theoretical Framework and Methodology

To bridge the gap between i.i.d. estimation and Markov chains, the researchers compare the standard empirical entropy rate (the plug-in maximum likelihood estimator) against a minimax rate-optimal estimator. The optimal estimator leverages state-of-the-art i.i.d. entropy estimators—such as the JVHW or Valiant-Valiant estimators—by applying them to the individual rows of the transition matrix.

The theoretical analysis relies on a technique from Billingsley, which allows a Markov chain to be viewed as a collection of independent samples drawn from transition rows. This perspective enables the use of concentration inequalities and existing i.i.d. theory to prove the estimator's efficacy even when not every possible transition has been observed. To establish lower bounds, the authors employ the "method of fuzzy hypotheses," constructing statistically indistinguishable Markov chains with different entropy rates to prove that no estimator can succeed with fewer than $\Theta(S^2 / \log S)$ samples.

Key Findings: Sample Complexity and Mixing Time

The central theoretical insight of the paper is the optimal sample complexity for estimating the entropy rate. Just as in the i.i.d. case, it is not necessary to observe every possible event to estimate total entropy. By properly accounting for "missing mass," the optimal sample complexity is shown to be $\Theta(S^2 / \log S)$. In stark contrast, the standard empirical estimator requires at least $\Omega(S^2)$ samples to achieve consistency, rendering it practically ineffective for large-scale tasks.

However, this logarithmic savings comes with a caveat: the Markov chain must mix reasonably fast. If the relaxation time is too large—meaning the chain gets stuck in certain states for too long—consistent estimation becomes mathematically impossible. The analysis also highlights a shift in estimation challenges: while the empirical estimator struggles with bias (consistently underestimating entropy when samples are scarce), the optimal estimator's primary hurdle is controlling variance in the presence of slow mixing.

Real-World Application: The Entropy of English

The theoretical bounds were validated using synthetic reversible Markov chains, confirming the $S^2 / \log S$ scaling. More compellingly, the authors applied their optimal estimator to natural language datasets, specifically the Penn Treebank (PTB) and the massive Google One Billion Words (1BW) corpus.

By extending the state space to evaluate 4-gram contexts, they estimated the fundamental entropy rate of the English language to be approximately 3.46 bits per word. At the time of publication, the best neural language models achieved a cross-entropy of roughly 4.55 bits per word. This application not only provides a natural benchmark for language modeling (directly relating to perplexity) but also reveals that top-tier models were still at least 0.89 bits per word away from the fundamental limit of the English language.

Limitations and Future Directions

While the paper establishes tight theoretical bounds, these primarily apply to reversible Markov chains. Many real-world directed processes, including certain aspects of natural language, are non-reversible, making the extension of these bounds a crucial next step.

Additionally, while the framework can handle high-order dependencies by expanding the state space (e.g., $k$-grams), the sample complexity grows exponentially with $k$. Finding more efficient ways to exploit the structure of higher-order dependencies remains an open challenge. Finally, the authors identify a theoretical "grey area" for chains with very slow mixing times, where matching upper and lower bounds have yet to be discovered.

Summary updated

BibTeX
@inproceedings{han2018entropy,
  author = {Yanjun Han and Jiantao Jiao and Chuan-Zheng Lee and Tsachy Weissman and Yihong Wu and Tiancheng Yu},
  title = {{Entropy Rate Estimation for Markov Chains with Large State Space}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=B1-GP_buZr},
}
Figure