arXiv:2608.22837cs.ITAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.22837

Entropy of Bernoulli Measures Conditioned on Affine Subspaces and a Problem of Ancheta--Massey

Yihong Wu

Abstract

A textbook result in information theory is that linear encoders achieve the entropy for lossless compression of Bernoulli source with parameter pp. For lossy compression, however, linearity is known to incur strict suboptimality compared to the rate-distortion function. Massey asked whether the optimal rate for linear encoding is achieved simply by compressing a fraction of the bits linearly and losslessly and estimating the rest by zero [Mas78]. For p=12p = \frac{1}{2}, Ancheta answered this question affirmatively [Anc78]. This note extends Ancheta's result to all p<12p < \frac{1}{2}.

The key argument is to bound the entropy of the posterior distribution conditioned on an affine subspace in terms of its marginals. The proof was discovered by GPT-5.6 Sol in an interactive process guided by the author. The purpose of the present note is to communicate a simplified version of this proof and to make connections with the existing literature on coding theory and spin glass theory.

1 Introduction

A textbook result in information theory is that entropy, the fundamental limit of data compression [Sha48], can be achieved using a linear encoder (see, e.g., [CK11, Problem 1.7]). Specifically, let X∈F2nX \in \mathbb{F}_2^n have iid coordinates drawn from Bern(p)\text{Bern}(p). There exists a matrix H∈F2k×nH \in \mathbb{F}_2^{k \times n} and a decoder g:F2k→F2ng : \mathbb{F}_2^k \to \mathbb{F}_2^n, such that P[g(HX)≠X]→0\mathbb{P}[g(HX) \neq X] \to 0 as n→∞n \to \infty and k=nh(p)+o(n)k = nh(p) + o(n). Here

h(p)≜plog⁡21p+(1−p)log⁡211−ph(p)\triangleq p\log_{2}\frac{1}{p}+(1-p)\log_{2}\frac{1}{1-p}

is the Shannon entropy of Bern(p)\text{Bern}(p) in bits. Without loss of generality, we assume p≤12p \leq \frac{1}{2} throughout the paper.

For lossy data compression, Shannon’s rate-distortion theory determines the optimal tradeoff between the compression rate and the reconstruction error. For the Bernoulli source X, suppose that on average a fraction D of the bits are allowed to be erroneously decoded. (The distortion parameter D≤pD \leq p is known as the bit error rate.) There exist f:F2n→F2kf : \mathbb{F}_2^n \to \mathbb{F}_2^k and g:F2k→F2ng : \mathbb{F}_2^k \to \mathbb{F}_2^n, such that the expected Hamming distance between the source and the reconstruction satisfies E[dH(X,g(f(X))]≤nD+o(n)\mathbb{E}[d_H(X, g(f(X))] \leq nD + o(n), and k=nR(D)+o(n)k = nR(D) + o(n), where

R(D)≜h(p)−h(D)(1)R(D)\triangleq h(p)-h(D) \tag{1}

*Department of Statistics and Data Science, Yale University, New Haven, Connecticut, USA, yihong.wu@yale.edu.

is the rate-distortion function, which is the minimal compression rate for any compression scheme achieving bit error rate D.

Unlike lossless data compression, it is known that linearity 1^{1} incurs a strict suboptimality for lossy compression. A result due to Ancheta [Anc78, Mas78] is that if the compressor is restricted to a linear map, the bit error rate must be at least

D≥{(1−R)h−1(h(p)−R1−R),p<121−R2p=12.(2)D\geq\begin{cases}(1-R)h^{-1}\left(\frac{h(p)-R}{1-R}\right),&p<\frac{1}{2}\\\frac{1-R}{2}&p=\frac{1}{2}.\end{cases} \tag{2}

where R=k/n≤h(p)R = k/n \leq h(p) is the compression rate and h−1h^{-1} takes values in [0,1/2][0, 1/2]. This shows that linear encoding fails achieve the rate-distortion function. (See Fig. 1.)

For the special case p=12p = \frac{1}{2}, Ancheta's lower bound D=1−R2D = \frac{1 - R}{2} may be achieved by the (trivial) linear encoder that keeps the first RnRn bits and randomly guesses the remaining (1−R)n(1 - R)n bits. For general pp, this may be extended to a time-sharing scheme that linearly compresses a Rh(p)\frac{R}{h(p)} fraction of the bits losslessly and decodes the remaining bits by 0, achieving an overall distortion

D=p(1−Rh(p)).(3)D=p\left(1-\frac{R}{h(p)}\right). \tag{3}

In [Mas78, Mas09], Massey posed the question whether this time-sharing bound is the best one can do with linear encoders. This question has since remained open and led to related conjectures in the literature [MP17, MP21] (see also [Hua15, Chap. 9] for a discussion of linear encoding in lossy compression.) In this paper we resolve this question in the positive by showing that (3) is tight for linear encoding for all p<12p < \frac{1}{2}.

Figure

(a) p=1/2p = 1/2

Figure

(b) p=0.11p = 0.11

Figure 1: Rate-distortion tradeoffs for a Bern(p) source with Hamming loss: R(D)R(D) is Shannon's rate-distortion function (1), RA(D)R_{\mathrm{A}}(D) is Ancheta's converse (2), and RL(D)R_{\mathrm{L}}(D) corresponds to the time-sharing bound (3).

1^{1}Here linear encoding is not to be confused with the scheme of using a linear subspace CC as codebook and (nonlinearly) encoding XX by its closest point X^\widehat{X} in CC. While this scheme is known to achieve the rate-distortion function 1−h(D)1 - h(D) for p=12p = \frac{1}{2} [Gob63] (see also [Ber71, Theorem 6.2.2] and [DP86]), it is strictly suboptimal for p<12p < \frac{1}{2}. To see this, suppose C=ker⁡(A)C = \ker(A) for some A∈F2(n−k)×nA \in \mathbb{F}_2^{(n-k) \times n} with full rank, which has a submatrix AIA_I formed by n−kn - k columns indexed by II. Since AX=A(X−X^)AX = A(X - \widehat{X}), nh(D)≥H(X−X^)≥H(AX)≥H(AIXI)=H(XI)=(n−k)h(p)nh(D) \geq H(X - \widehat{X}) \geq H(AX) \geq H(A_I X_I) = H(X_I) = (n - k)h(p), the last inequality applying the concavity of entropy. Thus the compression rate satisfies k/n≥1−h(D)h(p)=R(D)h(p)k/n \geq 1 - \frac{h(D)}{h(p)} = \frac{R(D)}{h(p)}. For modifications of this scheme that achieve the rate-distortion function, see [CHJ07, GV09].