Channel Synthesis
In distributed channel synthesis [Cuf13], an encoder observes an i.i.d. source \(X\) and sends a message at rate \(R\) to a decoder, which must produce \(Y\) so that \((X^n, Y^n)\) is indistinguishable (in total variation) from i.i.d. draws of \(p(x, y)\). The two nodes also share common randomness at rate \(R_0\), independent of \(X\). The achievable rate pairs are exactly those for which some \(U\) with \(X - U - Y\) satisfies
channel_synthesis_rate() computes the minimal communication rate for a given \(R_0\),
Its two extremes are familiar quantities [CPC10]. Without common randomness, \(R(0)\) is the Wyner Common Information \(\C{X : Y}\). Common randomness lowers the rate until it reaches the mutual information \(\I{X : Y}\), which happens once \(R_0\) is at least the Necessary Conditional Entropy \(\H{Y \dagger X}\).
Variants
- Broadcast channels
With several decoders that receive the same message and produce \(Y_1, \ldots, Y_m\), \(Y\) is replaced by \(Y_1, \ldots, Y_m\) and \(U\) must render \(X, Y_1, \ldots, Y_m\) mutually independent. Pass
outputsas a list of lists, one per decoder.- Public channels
If the message is public and must look independent of the synthesized variables, the sum-rate bound becomes \(R_0 \geq \I{X, Y : U}\) (pass
public=True). The common randomness must then be at least \(\C{X : Y}\); below that,channel_synthesis_rate()raises an exception.- Local randomness
The decoder’s private randomness rate is \(R_L \geq \H{Y \mid U}\). At a corner point the common and local randomness together supply exactly \(\H{Y \mid X}\). The optimizer class exposes \(\H{Y \mid U}\) at its optimum via
ChannelSynthesis.local_randomness().
Erasure Channel
For a fair bit through an erasure channel with erasure probability \(p\) (erasure_channel()), the rate falls from \(\C{X : Y}\) (one bit for \(p < 1/2\)) to \(\I{X : Y} = 1 - p\) as \(R_0\) grows to \(\H{Y \dagger X} = h(p)\):
In [1]: from dit.example_dists import erasure_channel
In [2]: from dit.multivariate import channel_synthesis_rate
In [3]: d = erasure_channel(0.3)
In [4]: [round(channel_synthesis_rate(d, [0], [1], common_randomness=t), 3) for t in (0.0, 0.2, 0.5, 0.9)]
Out[4]: [1.0, 0.897, 0.783, 0.7]
The The Gray-Wyner Network extension profile also draws this curve (ExtensionProfile.channel_synthesis), approximated from points on the profile’s boundary for plotting; channel_synthesis_rate() optimizes over \(U\) directly.
Exact Synthesis
If the decoder must reproduce the joint distribution exactly rather than approximately, the message is compressed with variable-length codes and the rate rises. Yu and Tan [YT20a] show that
is achievable, where \(\mathbb{H}\) is the Maximal Cross Entropy; \(\Gamma_U \geq \I{X, Y : U}\), so this rate is at least the approximate one. Without common randomness it is the upper bound on the Exact Common Information Rate, and once \(R_0 \geq \H{Y | X}\) both rates equal \(\I{X : Y}\). For the doubly symmetric binary source this rate is the exact synthesis rate, strictly above the approximate rate for small \(R_0\):
In [5]: d = dit.Distribution(['00', '01', '10', '11'], [0.4, 0.1, 0.1, 0.4])
In [6]: [round(channel_synthesis_rate(d, [0], [1], common_randomness=t), 4) for t in (0.0, 0.2, 0.4)]
Out[6]: [0.7059, 0.5059, 0.3653]
In [7]: [round(channel_synthesis_rate(d, [0], [1], common_randomness=t, exact=True), 4) for t in (0.0, 0.2, 0.4)]
Out[7]: [0.7567, 0.5567, 0.3863]
Pass exact=True for a single output without crvs over a private channel. Every auxiliary variable found reproduces the distribution exactly, so the result is an achievable rate even when the optimizer misses the minimum.
API
- channel_synthesis_rate(dist, inputs, outputs, common_randomness=0.0, public=False, crvs=None, niter=None, maxiter=1000, polish=1e-06, bound=None, backend='numpy', exact=False)[source]
The minimal communication rate for distributed channel synthesis [Cuf13].
An encoder sees i.i.d. inputs \(X\) and must, together with decoders sharing common randomness at rate \(R_0\), make the decoders produce outputs \(Y_1, \ldots, Y_m\) that are indistinguishable from i.i.d. draws of the joint distribution. The minimal rate is
\[R(R_0) = \min_{U} \max\left\{ \I{X : U},\ \I{X, Y_1, \ldots, Y_m : U} - R_0 \right\},\]where \(U\) renders \(X, Y_1, \ldots, Y_m\) mutually conditionally independent. With one output, \(R(0)\) is the Wyner common information and \(R(R_0) = \I{X : Y}\) once \(R_0 \ge \H{Y \dagger X}\), the necessary conditional entropy [CPC10]. Several outputs form a broadcast channel whose decoders all receive the same message.
If the message is sent over a public channel and must look independent of the synthesized variables, the rate pair must instead satisfy \(R \ge \I{X : U}\) and \(R_0 \ge \I{X, Y_1, \ldots, Y_m : U}\), so that \(R_0\) must be at least the Wyner common information.
With
exact=Truethe decoder must reproduce the joint distribution exactly rather than approximately, using variable-length messages. Yu and Tan [YT20a] show the rate\[R(R_0) = \min_{X - U - Y} \max\left\{ \I{X : U},\ \Gamma_U - R_0 \right\}, \qquad \Gamma_U = -\H{X, Y | U} + \sum_u p(u) \mathbb{H}(p_{X|u}, p_{Y|u} \| p_{XY}),\]is achievable, where \(\mathbb{H}\) is the
maximal_cross_entropy(). It is at least the approximate rate, equals it once \(R_0 \ge \H{Y | X}\), is the exact synthesis rate of the doubly symmetric binary source, and without common randomness isexact_common_information_rate(). Every auxiliary variable found reproduces the distribution exactly, so the result is achievable even when the optimizer misses the minimum.- Parameters:
dist (Distribution) – The joint distribution of the channel input and outputs.
inputs (list) – The indexes of the channel input.
outputs (list) – The indexes of the channel output, or a list of such lists, one per decoder of a broadcast channel.
common_randomness (float) – The rate of common randomness, \(R_0\).
public (bool) – Whether the message is public. Defaults to False.
crvs (list, None) – A single list of indexes specifying the random variables to condition on. If None, then no variables are conditioned on.
niter (int > 0) – Number of basin hoppings to perform during the optimization.
maxiter (int > 0) – The number of iterations of the optimization subroutine to perform.
polish (False, float) – Whether to polish the result or not. If a float, this will perform a second optimization seeded with the result of the first, but with smaller tolerances and probabilities below polish set to 0. If False, don’t polish.
bound (int) – Bound the size of the auxiliary variable.
backend (str) – The optimization backend to use. One of
'numpy'(default),'jax', or'torch'.exact (bool) – Whether the distribution must be reproduced exactly. Requires a single output, no crvs, a private channel, and the
'numpy'backend. Defaults to False.
- Returns:
rate – The minimal communication rate, or with
exact=Truethe Yu-Tan achievable rate.- Return type:
- Raises:
ditException – Raised if public is True and no auxiliary variable meets the common-randomness budget, i.e. it is below the Wyner common information, or if exact is True with an unsupported option.