English

The LZ78 Source

Information Theory 2026-04-20 v4 math.IT

Abstract

We study a family of processes generated according to sequential probability assignments induced by the LZ78 universal compressor. We characterize entropic and distributional properties such as their entropy and relative entropy rates, finite-state compressibility and log loss of their realizations, and the empirical distributions that they induce. Though not quite stationary, these sources are "almost stationary and ergodic;" similar to stationary and ergodic processes, they satisfy a Shannon-McMillan-Breiman-type property: the normalized log probability of their realizations converges almost surely to their entropy rate. Further, they are locally "almost i.i.d." in the sense that the finite-dimensional empirical distributions of their realizations converge almost surely to a deterministic i.i.d. law. However, unlike stationary ergodic sources, the finite-state compressibility of their realizations is almost surely strictly larger than their entropy rate by a "Jensen gap". We present simulations demonstrating the theoretical results. These sources allow to gauge the performance of sequential probability models, both classical and deep learning-based, on non-Markovian non-stationary data. As such, we apply realizations of the LZ78 source to the study of in-context learning in transformer models.

Keywords

Cite

@article{arxiv.2503.10574,
  title  = {The LZ78 Source},
  author = {Naomi Sagan and Amir Dembo and Matthew Ho and Tsachy Weissman},
  journal= {arXiv preprint arXiv:2503.10574},
  year   = {2026}
}

Comments

32 pages, 16 figures, IEEE Transactions on Information Theory

R2 v1 2026-06-28T22:19:22.403Z