Information Theory is the mathematical study of the quantification, storage, and communication of information. Founded by Claude Shannon in his 1948 paper "A Mathematical Theory of Communication", it identifies the fundamental limits on signal processing and communication operations such as data compression and reliable data transmission.
In the modern context, Information Theory is not merely about "sending bits"; it is the rigorous backbone of statistical mechanics, quantum computing, and the internal representations of Large Language Models (LLMs).
At its core, information is defined as the reduction of uncertainty. The less likely an event, the more information we gain by observing it.
For an event xwith probabilityP(x), the self-informationI(x)is:
Units are bits (binary digits). IfP(x) = 0.5,I(x) = 1bit. IfP(x) = 0.001,I(x) \approx 9.96bits.
Entropy is the expected value (average) of the surprisal across all possible outcomes of a discrete random variableX:
While formulas provide the "how," geometry provides the "what." Visualizing Information Theory requires shifting from single points to high-dimensional volumes.
Think of entropy as the logarithm of the effective number of states.
In high-dimensional spaces (e.g., a sequence ofntokens), the Asymptotic Equipartition Property (AEP) states that asn \to \infty, the probability mass concentrates almost entirely in a tiny subset called the Typical Set.
Imagine a high-dimensional sphere representing all possible sequences.
Information Geometry treats probability distributions as points on a manifold.
Information is not abstract; it is a physical quantity subject to the laws of thermodynamics.
Erasing information has a physical cost. Erasing one bit of information at temperatureTrequires a minimum energy expenditure of:
wherek_Bis the Boltzmann constant. This establishes that computation is heat.
The 19th-century paradox of a demon that violates the Second Law of Thermodynamics by sorting molecules was resolved using Information Theory. The demon must "store" the information about molecule speeds. To keep the cycle going, the demon must eventually "erase" its memory, and the heat generated by that erasure (per Landauer) compensates for the entropy reduction in the sorted gas.
LLMs process "tokens" (sub-word units). The efficiency of an LLM depends on the Entropy per Token.
Shannon's Channel Capacity Theorem defines the limitC:
whereBis bandwidth andSNRis Signal-to-Noise Ratio.Modern codes (Turbo codes, LDPC) allow us to communicate at 99.9% of this theoretical limit, enabling 4K video streaming over noisy wireless channels.
| Metric | Formula | Practical Meaning |
|---|---|---|
| EntropyH(X) | -\sum P(x) \log P(x) | Limit of lossless compression. |
| Joint EntropyH(X,Y) | -\sum P(x,y) \log P(x,y) | Total uncertainty in a pair. |
| Mutual InformationI(X;Y) | H(X) - H(X\|Y) | "Signal" shared between variables. |
| KL DivergenceD_{KL} | \sum P \log \frac{P}{Q} | Error cost of using the wrong model. |
| Channel CapacityC | \max I(X;Y) | Maximum error-free transmission rate. |
Suppose a disease has a base rate of 1% (P(D)=0.01). A test has a 99% true positive rate and a 2% false positive rate.