﻿

# Rate–distortion theory

Rate–distortion theory is a major branch of information theory which provides the theoretical foundations for lossy data compression; it addresses the problem of determining the minimal amount of entropy (or information) "R" that should be communicated over a channel, so that the source (input signal) can be approximately reconstructed at the receiver (output signal) without exceeding a given distortion "D".

Introduction

Rate–distortion theory gives theoretical bounds for how much compression can be achieved using lossy compression methods. Many of the existing audio, speech, image, and video compression techniques have transforms, quantization, and bit-rate allocation procedures that capitalize on the general shape of rate–distortion functions.

Rate–distortion theory was created by Claude Shannon in his foundational work on information theory.

In rate–distortion theory, the "rate" is usually understood as the number of bits per data sample to be stored or transmitted. The notion of "distortion" is a subject of on-going discussion. In the most simple case (which is actually used in most cases), the distortion is defined as the variance of the difference between input and output signal (i.e., the mean squared error of the difference). However, since we know that most lossy compression techniques operate on data that will be perceived by human consumers (listening to music, watching pictures and video) the distortion measure should preferably be modeled on human perception and perhaps aesthetics: much like the use of probability in lossless compression, distortion measures can ultimately be identified with loss functions as used in Bayesian estimation and decision theory. In audio compression perceptual models, and therefore perceptual distortion measures, are relatively well developed and routinely used in compression techniques such as MP3 or Vorbis, but are often not easy to include in rate–distortion theory. In image and video compression, the human perception models are less well developed and inclusion is mostly limited to the JPEG and MPEG weighting (quantization, normalization) matrix.

Rate–distortion functions

The functions that relate the rate and distortion are found as the solution of the following minimization problem:

:$inf_\left\{Q_\left\{Y|X\right\}\left(y|x\right)\right\} I_Q\left(Y;X\right) mbox\left\{subject to\right\} D_Q le D^*.$

Here "Q""Y" | "X"("y" | "x"), sometimes called a test channel, is the conditional probability density function (PDF) of the communication channel output (compressed signal) "Y" for a given input (original signal) "X", and "I""Q"("Y" ; "X") is the mutual information between "Y" and "X" defined as

:$I\left(Y;X\right) = H\left(Y\right) - H\left(Y|X\right)$

where "H"("Y") and "H"("Y" | "X") are the entropy of the output signal "Y" and the conditional entropy of the output signal given the input signal, respectively:

:$H\left(Y\right) = int_\left\{-infty\right\}^\left\{infty\right\} P_Y \left(y\right) log_\left\{2\right\} \left(P_Y \left(y\right)\right),dy$

:$H\left(Y|X\right) = int_\left\{-infty\right\}^\left\{infty\right\} int_\left\{-infty\right\}^\left\{infty\right\} Q_\left\{Y|X\right\}\left(y|x\right) P_X \left(x\right) log_\left\{2\right\} \left(Q_\left\{Y|X\right\} \left(y|x\right)\right), dx, dy.$

The problem can also be formulated as Distortion-Rate function, where we find the supremum over achievable distortions for given rate constraint. The relevant expression is:

:$inf_\left\{Q_\left\{Y|X\right\}\left(y|x\right)\right\} E \left[D_Q \left[X,Y\right] mbox\left\{subject to\right\} I_Q\left(Y;X\right)leq R$

The two formulations lead to functions which are inverses of each other.

The mutual information can be understood as a measure for "prior" uncertainty the receiver has about the sender's signal ("H(Y)"), diminished by the uncertainty that is left after receiving information about the sender's signal ("H"("Y" | "X")). Of course the decrease in uncertainty is due to the communicated amount of information, which is "I"("Y"; "X").

As an example, in case there is "no" communication at all, then "H"("Y" |"X") = "H"("Y") and "I"("Y"; "X") = 0. Alternatively, if the communication channel is perfect and the received signal "Y" is identical to the signal "X" at the sender, then "H"("Y" | "X") = 0 and "I"("Y"; "X") = "H"("Y") = "H"("X").

In the definition of the rate–distortion function, "D"Q and "D"* are the distortion between "X" and "Y" for a given "Q""Y" | "X"("y" | "x") and the prescribed maximum distortion, respectively. When we use the mean squared error as distortion measure, we have (for amplitude-continuous signals):

:$D_Q = int_\left\{-infty\right\}^\left\{infty\right\} int_\left\{-infty\right\}^\left\{infty\right\} P_\left\{X,Y\right\}\left(x,y\right) \left(x-y\right)^2, dx, dy = int_\left\{-infty\right\}^\left\{infty\right\} int_\left\{-infty\right\}^\left\{infty\right\} Q_\left\{Y|X\right\}\left(y|x\right)P_\left\{X\right\}\left(x\right) \left(x-y\right)^2, dx, dy$

As the above equations show, calculating a rate–distortion function requires the stochastic description of the input "X" in terms of the PDF "P""X"("x"), and then aims at finding the conditional PDF "Q""Y" | "X"("y" | "x") that minimize rate for a given distortion "D"*. These definitions can be formulated measure-theoretically to account for discrete and mixed random variables as well.

An analytical solution to this minimization problem is often difficult to obtain except in some instances for which we next offer two of the best known examples. The rate–distortion function of any source is known to obey several fundamental properties, the most important ones being that it is a continuous, monotonically decreasing convex (U) function and thus the shape for the function in the examples is typical (even measured rate–distortion functions in real life tend to have very similar forms).

Although analytical solutions to this problem are scarce, there are upper and lower bounds to these functions including the famous Shannon lower bound (SLB), which in the case of squared error and memoryless sources, states that for arbitrary sources with finite differential entropy,

:$R\left(D\right) ge h\left(X\right) - h\left(D\right)$

where "h(D)" is the entropy of a Gaussian random variable with variance D. This lower bound is extensible to sources with memory and other distortion measures. One important feature of the SLB is that it is asymptotically tight in the high distortion regime for a wide class of sources and in some occasions, it actually coincides with the rate–distortion function. Shannon Lower Bounds can generally be found if the distortion between any two numbers can be expressed as a function of the difference between the value of these two numbers.

The Blahut–Arimoto algorithm is an elegant iterative technique for numerically obtaining rate–distortion functions of arbitrary finite input/output alphabet sources and much work has been done to extend it to more general problem instances.

Memoryless (independent) Gaussian source

If we assume that "P""X"("x") is Gaussian with variance &sigma;2, and if we assume that successive samples of the signal "X" are stochastically independent (or, if your like, the source is "memoryless", or the signal is "uncorrelated"), we find the following analytical expression for the rate–distortion function:

:

The following figure shows what this function looks like:

Rate–distortion theory tell us that "no compression system exists that performs outside the gray area". The closer a practical compression system is to the red (lower) bound, the better it performs. As a general rule, this bound can only be attained by increasing the coding block length parameter. Nevertheless, even at unit blocklengths one can often find good (scalar) quantizers that operate at distances from the rate–distortion function that are practically relevant.

This rate–distortion function holds only for Gaussian memoryless sources. It is known that the Gaussian source is the most "difficult" source to encode: for a given mean square error, it requires the greatest number of bits. The performance of a practical compression system working on&mdash;say&mdash;images, may well be below the "R(D)" lower bound shown.

* Source coding
* Decorrelation
* Whitening

* [http://www-ict.its.tudelft.nl/vcdemo VcDemo Image and Video Compression Learning Tool]

Wikimedia Foundation. 2010.

### Look at other dictionaries:

• Rate-Distortion-Theorie — Die Rate Distortion Theorie (deutsch: Rate Verzerrungs Theorie) ist eine theoretische Grundlage für Berechnungen in der Informationstheorie. Mit ihrer Hilfe kann rechnerisch eine untere Grenze der Datenübertragungsrate für eine Nachrichtenquelle… …   Deutsch Wikipedia

• Distortion (economics) — A distortion is a condition that creates economic inefficiency, thus interfering with economic agents maximizing social welfare when they maximize their own welfare.[1] In the idealized conditions of perfect competition with no externalities,… …   Wikipedia

• Information theory — Not to be confused with Information science. Information theory is a branch of applied mathematics and electrical engineering involving the quantification of information. Information theory was developed by Claude E. Shannon to find fundamental… …   Wikipedia

• Bit rate — Bit rates Decimal prefixes (SI) Name Symbol Multiple kilobit per second kbit/s 103 megabit per second Mbit/s 106 gigabit per second Gbit/s 109 …   Wikipedia

• The theory of a second-best solution — concerns the events that happen when a condition for an optimal outcome isn t met. In that case a second best solution should be sought. But the second best solution isn t always the one where every other condition is met except the one missing… …   Wikipedia

• Sample rate conversion — is the process of converting a (usually digital) signal from one sampling rate to another, while changing the information carried by the signal as little as possible. When applied to an image, this process is sometimes called image scaling.Sample …   Wikipedia

• Attachment theory — …   Wikipedia

• Geometric group theory — is an area in mathematics devoted to the study of finitely generated groups via exploring the connections between algebraic properties of such groups and topological and geometric properties of spaces on which these groups act (that is, when the… …   Wikipedia

• Data compression — Source coding redirects here. For the term in computer programming, see Source code. In computer science and information theory, data compression, source coding or bit rate reduction is the process of encoding information using fewer bits than… …   Wikipedia

• Codec — This article is about encoding and decoding a digital data stream. For other uses, see Codec (disambiguation). Further information: List of codecs A codec is a device or computer program capable of encoding and/or decoding a digital data stream… …   Wikipedia