A coding theorem for the rate-distortion-perception function

Lucas Theis, Aaron B. Wagner

TL;DR

While the Rate–Distortion–Perception Function (RDPF) provides a powerful mathematical framework for balancing bit-rate, reconstruction fidelity, and perceptual realism in lossy compression, it was previously unknown whether this theoretical bound was operationally achievable. This paper proves a complete coding theorem establishing that the RDPF is indeed both achievable and optimal when using stochastic, variable-length codes with shared randomness.

What Problem Does This Paper Address?

Modern lossy compression (such as learned image compression using GANs or diffusion models) faces a fundamental three-way trade-off between:

  1. Rate: How many bits are transmitted.
  2. Distortion: Pairwise error between the input and output (e.g., MSE).
  3. Perception: Realism, formalized as a statistical divergence (e.g., Wasserstein or KL divergence) between the distribution of original data and reconstructed data.

Blau and Michaeli (2019) introduced the theoretical information Rate–Distortion–Perception Function (RDPF), defined as an infimum of mutual information $I(X; \hat{X})$ subject to distortion and perceptual divergence constraints. However, in classic information theory, defining an informational rate does not automatically mean a practical or operational code exists that can transmit at that rate while satisfying the constraints. The authors set out to close this foundational gap by proving an operational coding theorem for the RDPF.

Methods

The authors frame the problem in terms of a generalized Information Rate Function (IRF), which accommodates arbitrary constraints on the joint distribution $P_{X, \hat{X}}$:

$$R(\theta) = \inf_{P_{\hat{X}|X}} I[X, \hat{X}] \quad \text{s.t.} \quad \forall i: D_i[P_{X, \hat{X}}] \le \theta_i$$

To establish achievability, they leverage stochastic encoders and decoders that share common randomness ($U$):

  • Poisson Functional Representation: Drawing on tools from Li and El Gamal (2018), both encoder and decoder use shared random bits to generate candidate reconstructions and arrival epochs of a Poisson process.
  • One-Shot Channel Simulation: For a given input $x$, the encoder selects an index $K$ minimizing a density-ratio-scaled Poisson epoch, transmitting $K$ via variable-length entropy coding conditioned on $U$.
  • Asymptotic Block Coding: By applying this one-shot construction across blocks of $N$ independent data points and sending them jointly, the penalty terms vanish as $N \to \infty$.

Datasets

Not applicable. This is a purely mathematical, theoretical paper; no experimental datasets or benchmarks were used.

Key Insights and Ideas

  • Unification of Distortion and Perception: The authors show that distortion and perception constraints do not need fundamentally distinct theoretical machinery; both can simply be treated as constraints on the joint distribution $P_{X, \hat{X}}$.
  • No Convexity Assumption Needed: Earlier theoretical work relied on the perceptual divergence measure being convex. The Poisson functional representation guarantees that each individual sample's marginal matches the target conditional distribution, eliminating the requirement for divergence convexity.
  • Per-Instance Guarantees: In the asymptotic formulation, the constraints are satisfied for every individual reconstruction in the sequence, rather than only when averaged over a block of $N$ items.
  • Necessity of Shared Randomness: Reconstructing samples that are statistically indistinguishable from the source distribution at low bit-rates inherently requires random choices; shared randomness between sender and receiver makes this rate-efficient.

Key Results

  • One-Shot Achievability (Theorem 1): For any source and constraint profile $\theta$, any rate satisfying: $$R > R(\theta) + \log(R(\theta) + 1) + 4$$ is one-shot achievable with a variable-length stochastic code.

  • Converse Bound (Theorem 2): Any one-shot achievable rate $R$ is lower-bounded by the informational rate: $$R \ge R(\theta)$$

  • Asymptotic Coding Theorem (Theorem 3): In the asymptotic limit of block length $N \to \infty$, an average rate per symbol $R < \infty$ is achievable if and only if $R \ge R(\theta)$. This completely establishes the operational validity of the RDPF.

Limitations and Future Work

  • Variable-Length Codes: The theorem relies on variable-length prefix-free codes; it does not directly apply to fixed-rate compression schemes.
  • Shared Randomness: The construction requires a common source of randomness perfectly synchronized between the encoder and decoder.
  • Deterministic Codes: The paper analyzes stochastic encoders and decoders; the operational limits for purely deterministic codes under perceptual constraints remain an open question.

Summary updated

BibTeX
@inproceedings{theis2021coding,
  author = {Lucas Theis and Aaron B. Wagner},
  title = {{A coding theorem for the rate-distortion-perception function}},
  booktitle = {Neural Compression @ ICLR},
  year = {2021},
  url = {https://openreview.net/forum?id=BzUaLGtKecs},
}
Figure