This book concerns some idealized mathematical models of human language. Nowadays, there are recognized two approaches to mathematical modeling of language. One stems historically from theoretical computer science and formal linguistics, another applies probability, statistics, and information theory. The first approach gave rise to formal language theory, formal syntax, and formal semantics, whereas the second approach is mostly followed by engineers working in computational linguistics and machine learning. In this book, I would like to lay foundations to a novel subtype of a probabilistic approach to language, based on empirical quantitative laws of texts and their deductive analysis by means of information theory and stochastic processes.
Having originally done my master studies in theoretical physics, gaining some experience in computational linguistics, and later switching to information theory and stochastic processes, I believe that a good science is a dialogue between theory and experiment. Concerning probability models for language, I think that there are many computational applications and ambitious experiments. In contrast, the theoretical understanding of some relatively basic stochastic‐semantic phenomena, such as strong nonergodicity, remains surprisingly underdeveloped, untouched by linguists, engineers, or mathematicians. Hence, in my opinion, comes the necessity of the present work, which aims to sketch at least some boundaries of this no‐man's land.
The core idea of this book is to explain a few quantitative power laws satisfied by texts in natural language in terms of non‐Markovian and nonhidden Markovian discrete stochastic processes with some sort of long‐range dependence. The most important novel results discussed in this book, the theorems about facts and words, characterize arbitrary nonergodic or perigraphic stationary processes but have a clear linguistic inspiration. To achieve my goals, I use information theory, probability measures, and some related technical tools such as the ergodic decomposition and the Kolmogorov complexity. These tools, although they arise in a natural way, are black magic for linguists, and they are not the everyday bread for engineers. For this reason, this book will be likely treated as a monograph in mathematics rather than linguistics.
In fact, I wrote this book as dedicated primarily for mathematics graduate students and professionals who are interested in information theory or discrete stochastic processes and are intrigued by statistical modeling of natural language – to show them that there are a few novel formal ideas and open problems in this domain. However, since the use of mathematics in this book is motivated linguistically in quite an unusual way, as a secondary audience of the book, I foresee doctoral students and researchers in artificial intelligence, computational and quantitative linguistics, as well physics of complex systems. Those may find this book a helpful reference explaining mathematical foundations of information theory, discrete stochastic processes, and statistical modeling of natural language, of course. In the future, there may be also a need for a more popular book touching the topics of this monograph, but I am convinced that a rigorous exposition should be published in its own right first.
My father, who is a professor of engineering, once joked that there are no scientific monographs but textbooks for fewer and fewer students. I hope that this book will attract quite a few students, however. To increase the number of potential readers, I tried to avoid too abstract or redundant constructions while striving to be rigorous (in particular, no topology or linear algebra). I also resumed the main ideas of this book in the first chapter in a lighter form, so that an interested reader without a sufficient mathematical training could sense what the rest is about, whereas a mathematician could learn about the linguistic motivations. The remaining contents of the book are driven by a series of papers, mostly mine, which were preceded with an introductory material of a similar volume. This introductory material is due to many good people but likely has not been put together into a single convenient reference.
To be concrete, the book is divided into 11 chapters with the following contents:
- Chapter 1 . Guiding ideas : As stated in the previous paragraph, this chapter resumes the principal ideas of the book in a half‐formal way. I state the question what kind of a probability distribution should be assigned to particular human utterances. Sketching possible answers, I discuss quantitative linguistic laws and hypotheses such as Zipf's law and Hilberg's hypothesis and I introduce helpful mathematical concepts and results. In particular, I argue that a reasonable statistical language model should be either nonergodic or uncomputable.
- Chapter 2 . Probabilistic preliminaries : This chapter opens the formal lecture, beginning with an established introductory material. I define probability measures and some discrete stochastic processes, I introduce Markov and hidden Markov processes, and I recall the ergodic theorem for irreducible Markov processes.
- Chapter 3 . Probabilistic toolbox : Here real random variables are introduced and many important technical results of measure‐theoretic probability calculus are stated. These include properties of nonatomic measures, Lebesgue integrals, important inequalities, conditional probability, convergence of random variables, and completeness of probability spaces.
- Chapter 4 . Ergodic properties : In this chapter, I discuss the frequency interpretation of probability and demonstrate several celebrated theorems concerning ergodic properties of stationary processes such as the Birkhoff ergodic theorem and the ergodic decomposition. These results matter for language modeling since, as argued in Chapter 1 , a reasonable statistical language model should be either nonergodic or uncomputable.
- Chapter 5 . Entropy and information : Here I introduce the concepts of entropy, mutual information, entropy rate, and excess entropy. These are some functionals of random variables or stationary stochastic processes, which can help to capture the nondeterminism or infinite memory of the respective processes. I also generalize conditional entropy and mutual information to functionals of arbitrary fields, which allows to prove ergodic decomposition of entropy rate and excess entropy. This decomposition yields a simple insight into strongly nonergodic processes, which seem to arise naturally in statistical language modeling.
- Chapter 6 . Equipartition and universality : In this chapter, the Shannon–MacMillan–Breiman theorem is stated and an example of a universal distribution called prediction by partial matching (PPM) is exhibited. I show that the PPM distribution can be used to estimate not only the entropy rate but also to upper bound the amount of memory stored by a stationary stochastic process.
- Chapter 7 . Coding and computation : Here I introduce prefix‐free codes, the idea of Shannon–Fano coding, the notion of Kolmogorov complexity, and the concept of algorithmic randomness. The fundamental Kraft inequality satisfied by prefix‐free codes resurfaces in this chapter several times, in particular, to show the chain rule for Kolmogorov complexity. This chapter closes the cycle of introductory results.
- Chapter 8 . Power laws for information : This chapter opens a discussion of more original research, done mostly by the author of this book. The point of departure is the power‐law growth of mutual information hypothetically obeyed by texts in natural language. Within the chapter discussed are the concept of Hilberg exponents, strong nonergodicity, Santa Fe processes, and theorems about facts and words. The latter propositions seem to formalize some important intuitions about natural language but can be applied to general stationary processes.
- Chapter 9 . Power laws for repetitions : The point of departure of this chapter is the power‐law logarithmic growth of maximal repetition also hypothetically obeyed by texts in natural language. Trying to characterize this phenomenon mathematically, in this chapter I discuss Rényi entropies and entropy rates, recurrence times, the subword complexity, the longest match length, and the maximal repetition. The respective results are of a preliminary character.
- Chapter 10 . AMS processes : This chapter concerns asymptotically mean stationary (AMS) processes, a subject usually deemed quite technical. However, in the context of language modeling, AMS processes arise naturally when we switch between two views of a stochastic process: one in which the process consists of letters and another in which the process consists of words. Therefore, AMS processes are a convenient tool for the subsequent chapter where I construct some examples of processes.
- Chapter 11 . Toy examples : Here I discuss some particular examples of stochastic processes which can or cannot model some specific quantitative laws of natural language. Several important classes of processes are discussed, such as: finite and ultrafinite energy processes, aforementioned Santa Fe processes and their stationary encodings into a finite alphabet, as well as random hierarchical association (RHA) processes. Progressively, these processes can model more and more quantitative linguistic laws but none of them is fully satisfactory, which opens an avenue for future research.
The book is concluded by a list of open problems. I hope that these problems are salient enough to draw interest also of greater mathematical minds to problems of statistical language modeling. I suppose that many important developments are to be made if sufficient attention is devoted. The motivating intuitions lying at the heart of this book are not very complicated but I hope that they may be fertile when translated into the language of mathematics.
Warsaw, 2 January 2020
Łukasz Dębowski