Slepian-Wolf Coding: Distributed Lossless Compression
Anchor (Master): Cover & Thomas 2006 Elements of Information Theory 2e (Wiley) §15.1-15.8; Slepian & Wolf 1973 Noiseless Coding of Correlated Information Sources; Csiszar & Korner 2011 Information Theory: Coding Theorems for Discrete Memoryless Systems 2e (Cambridge) §3.2-3.3
Intuition Beginner
Two weather stations in nearby cities record the daily temperature. The readings are correlated — if it is hot in one city, it is almost certainly hot in the other. Each station wants to send its temperature log to a central server, but they cannot talk to each other. How efficiently can they compress their data?
If the stations could cooperate, they would compress jointly, using a rate equal to the joint entropy — the total uncertainty of both temperature records together. This is the fundamental limit for joint compression.
The surprise is: even without cooperating, they can still achieve the joint entropy rate. Each station encodes independently, and the central server decodes both records jointly. The total number of bits sent equals — the same as if they had worked together. This is the Slepian-Wolf theorem.
How is this possible? Each station sends slightly more than its conditional entropy (given the other station's data). Station 1 sends bits, station 2 sends bits, and the sum is . The decoder, seeing both compressed streams, can reconstruct both records because the correlation structure is strong enough to resolve ambiguities.
The key constraint is that each station must send at least its conditional entropy, and the total must be at least the joint entropy. These three inequalities define a pentagonal region in the rate plane, and any rate pair inside it is achievable.
This result has enormous practical importance for sensor networks, distributed databases, and any system where correlated data is collected at multiple locations and must be compressed locally before transmission.
Visual Beginner
Figure: the Slepian-Wolf rate region for two correlated sources. The axes are (rate of encoder 1) and (rate of encoder 2). The achievable region is a pentagon with vertices at , , and the corner point . The sum-rate bound cuts diagonally across the rate plane.
| Rate constraint | Meaning |
|---|---|
| $R_1 \geq H(X_1 | X_2)$ |
| $R_2 \geq H(X_2 | X_1)$ |
| Together they must send at least the joint entropy | |
| Optimal sum rate (same as joint coding) |
Worked example Beginner
Two correlated binary sources: is a fair coin flip, and with probability 0.9 and with probability 0.1 (a "noisy copy").
The joint entropy is bits. The individual entropies are and (both are fair coins marginally). The conditional entropies are and .
Without cooperation, the Slepian-Wolf theorem says encoder 1 can use rate bits and encoder 2 can use rate bits (at the symmetric corner), for a total of bits per symbol pair. Wait — that violates the sum-rate constraint. Let us recalculate: the sum-rate requires . At the symmetric point, both send , but . This violates the sum constraint.
The correct symmetric point is on the sum-rate line: bits each. Or one encoder can send more: encoder 1 sends (its full entropy) and encoder 2 sends (its conditional entropy), totaling 1.469. Either way, the sum equals the joint entropy.
Check your understanding Beginner
Formal definition Intermediate+
Let be a pair of discrete random variables with joint distribution on . The sources are i.i.d. across time: for .
Definition (Distributed source code). A distributed source code consists of:
- Two encoders: and , each mapping its source sequence to an index.
- A joint decoder: mapping the index pair to estimates.
The probability of error is .
Definition (Achievable rate pair). A rate pair is achievable if there exists a sequence of codes with as .
Theorem (Slepian-Wolf 1973). The achievable rate region for the distributed lossless compression of correlated i.i.d. sources is:
Key theorem with proof Intermediate+
Theorem (Slepian-Wolf achievability). Any rate pair in the region is achievable.
Proof (random binning). We prove achievability for the corner point . The full region follows by time-sharing and symmetry.
Random binning. Independently assign each uniformly at random to one of bins. Similarly assign each to one of bins. Denote the bin indices by and .
Encoder. Encoder 1 sends . Encoder 2 sends .
Decoder. Given bin indices , the decoder looks for the unique pair (jointly typical set) such that and . If there is exactly one such pair, output it. Otherwise, declare error.
Error analysis. An error occurs if:
- : probability by the AEP.
- There exists another jointly typical pair in the same bins: for a fixed in , the probability that is . Given , the expected number of "impostor" pairs in the same bins is approximately .
By the union bound, as .
Bridge. The Slepian-Wolf theorem builds toward the entire network information theory framework by introducing random binning as the central tool for distributed coding. This is exactly the technique that reappears in Wyner-Ziv coding 46.05.02 for lossy compression with side information, where the binning rate is determined by the rate-distortion function rather than the conditional entropy. The result appears again in the Gelfand-Pinsker theorem 46.05.03, where binning is used in the channel coding context to pre-cancel known interference. The foundational reason binning works is that joint typicality provides a high-probability unique identification: with enough bins, the decoder can resolve the correct source pair from the bin indices alone. Putting these together, the Slepian-Wolf theorem is the central insight that correlation is a resource that can be exploited even without encoder cooperation, and the binning technique is the universal mechanism for exploiting it. The result generalises to multiple sources and provides the lossless foundation for the entire side-information strand of information theory.
Exercises Intermediate+
Lean formalization Intermediate+
Mathlib does not define distributed source codes, random binning, or the Slepian-Wolf achievable region. The joint typicality predicate (needed for the decoder) is absent. The entropy inequalities defining the region — , , — require a formalized entropy calculus that does not exist. The random binning argument requires defining a random partition of into bins and analyzing the probability that the decoder finds a unique jointly typical pair, which involves concentration arguments not available in the current Mathlib framework. This unit ships without formalization.
Advanced results Master
The strong converse
The strong converse for the Slepian-Wolf theorem, proved by Csiszar and Korner, shows that for rate tuples outside the achievable region, the error probability as (not merely bounded away from zero). This strengthens the weak converse ( bounded below by a positive constant) and establishes that the Slepian-Wolf region is the exact boundary between vanishing and non-vanishing error.
The proof uses the method of types: the type class of a sequence constrains the possible codewords, and outside the achievable region, the number of sequences in each type class exceeds the number of distinguishable bin pairs by an exponential factor.
Slepian-Wolf for continuous sources
For continuous correlated sources (e.g., jointly Gaussian), the Slepian-Wolf theorem does not directly apply because the differential entropy can be negative and the notion of "lossless" reconstruction is not well-defined for continuous variables. However, the quantized version — where the sources are first quantized and then Slepian-Wolf coded — achieves the quantized conditional entropy rates in the limit of fine quantization.
For lossy reconstruction, the problem becomes the Berger-Tung inner bound (see 46.05.02), which provides an achievable region for distributed lossy compression that generalizes both Slepian-Wolf (at zero distortion) and Wyner-Ziv (when one source is available at the decoder).
Duality with the multiple-access channel
The Slepian-Wolf theorem has a remarkable duality with the multiple-access channel (MAC) capacity region. In the MAC, multiple transmitters send independent messages over a shared channel. The capacity region is:
Comparing with Slepian-Wolf:
The inequalities reverse direction, and mutual information replaces conditional entropy. This duality reflects the complementary nature of source coding (compression, rates above entropy) and channel coding (communication, rates below capacity).
Practical Slepian-Wolf codes
The random binning argument is non-constructive. Practical Slepian-Wolf codes use channel codes (LDPC, turbo codes, polar codes) as binning functions. The idea: treat the correlation between and as a "virtual channel" , and use a syndrome-based channel code for . The syndrome of (with respect to a linear code parity-check matrix) serves as the bin index, and the decoder uses as "side information" to decode from the syndrome.
This approach achieves the Slepian-Wolf bound with practical, implementable codes and is the basis for distributed video coding, distributed compression in sensor networks, and the DISCUS (Distributed Source Coding Using Syndromes) system.
Synthesis. The Slepian-Wolf theorem is the foundational result of distributed source coding: two correlated sources encoded separately and decoded jointly achieve the same total rate as joint encoding. The achievable region is a pentagonal polytope defined by three entropy inequalities — , , — and the central insight is that random binning exploits correlation without encoder cooperation. The binning technique generalises to Wyner-Ziv coding 46.05.02 for lossy compression with side information and to Gelfand-Pinsker 46.05.03 for channels with state known at the transmitter. The result builds toward the multiple-access channel 46.06.01 through a source-channel duality: the Slepian-Wolf region and the MAC capacity region are mirror images with reversed inequalities and complementary information quantities. Putting these together, the Slepian-Wolf theorem is the central insight that correlation is a free resource that can be harvested even without communication between encoders, and the binning technique is the universal mechanism for doing so.
Full proof set Master
Proposition (Achievability at the corner point). The rate pair is achievable.
Proof. Define bins for and bins for uniformly at random. Encoder 1 sends the bin index of ; encoder 2 sends the bin index of .
The decoder searches for the unique jointly typical pair in the received bins. By the AEP, with high probability. The number of jointly typical pairs is approximately . The number of bin pairs is . Since the number of bin pairs exceeds the number of typical pairs by a factor , each typical pair is unique in its bin pair with high probability.
The probability that an impostor pair (different from the true one) is jointly typical and shares the same bins is bounded by:
Substituting and , the bound becomes for .
Connections Master
46.02.02— The source coding theorem is the single-source limit of Slepian-Wolf: when the sources are independent, the region collapses to two independent entropy bounds.46.01.02— Mutual information quantifies the correlation that Slepian-Wolf exploits; the gap between independent and joint coding equals the mutual information.46.05.02— Wyner-Ziv coding extends Slepian-Wolf to lossy compression with decoder side information, using the same binning technique.46.05.03— Gelfand-Pinsker coding uses binning in the channel coding context, where the transmitter knows channel state non-causally.46.06.01— The MAC capacity region is dual to the Slepian-Wolf region, with mutual information replacing conditional entropy and inequalities reversed.46.05.04— Common information (Wyner and Gacs-Korner) quantifies how much of the correlation between and must be shared for distributed coding to match joint coding.
Historical & philosophical context Master
David Slepian and Jack Wolf published "Noiseless Coding of Correlated Information Sources" in the IEEE Transactions on Information Theory (IT-19, 1973, 471-480). The result was initially considered surprising because the naive expectation was that independent encoding would require each source to be compressed at its full entropy rate , yielding a total rate . Slepian and Wolf showed that the total rate could be reduced to the joint entropy without any communication between encoders.
The proof technique — random binning — was novel and has since become one of the most important tools in network information theory. The idea of randomly partitioning the space of source sequences into bins and using joint typicality for decoding appears repeatedly in the field: in Wyner-Ziv coding (1976), Gelfand-Pinsker coding (1980), the multiple-access channel, and the broadcast channel.
The practical relevance of Slepian-Wolf coding was not fully appreciated until the rise of sensor networks in the late 1990s and early 2000s. Pradhan and Ramchandran's DISCUS system (2003) demonstrated that practical Slepian-Wolf codes could be built using channel coding techniques (syndrome-based compression), connecting the theoretical binning argument to implementable systems.
Aarons El Gamal and Young-Han Kim's 2011 textbook Network Information Theory (Cambridge) provides the definitive modern treatment, showing that Slepian-Wolf coding sits at the foundation of the entire distributed source coding framework.
Bibliography Master
@article{slepian-wolf1973,
author = {Slepian, D. and Wolf, J. K.},
title = {Noiseless Coding of Correlated Information Sources},
journal = {IEEE Transactions on Information Theory},
volume = {IT-19},
pages = {471--480},
year = {1973},
}
@book{cover-thomas2006,
author = {Cover, T. M. and Thomas, J. A.},
title = {Elements of Information Theory},
edition = {2nd},
publisher = {Wiley},
year = {2006},
}
@book{csiszar-korner2011,
author = {Csisz{\'a}r, I. and K{\"o}rner, J.},
title = {Information Theory: Coding Theorems for Discrete Memoryless Systems},
edition = {2nd},
publisher = {Cambridge University Press},
year = {2011},
}
@article{pradhan-ramchandran2003,
author = {Pradhan, S. S. and Ramchandran, K.},
title = {Distributed Source Coding Using Syndromes ({DISCUS}): Design and Construction},
journal = {IEEE Transactions on Communications},
volume = {51},
pages = {1473--1481},
year = {2003},
}
@book{elgamal-kim2011,
author = {El Gamal, A. and Kim, Y.-H.},
title = {Network Information Theory},
publisher = {Cambridge University Press},
year = {2011},
}