Rate–distortion theory: Difference between revisions
imported>Limit-theorem |
imported>Citation bot Add: bibcode, authors 1-1. Removed URL that duplicated identifier. Removed parameters. Some additions/deletions were parameter name changes. | Use this bot. Report bugs. | Suggested by Headbomb | Linked from Wikipedia:WikiProject_Academic_Journals/Journals_cited_by_Wikipedia/Sandbox | #UCB_webform_linked 232/967 |
||
| Line 1: | Line 1: | ||
{{Short description| | {{Short description|Theory about lossy data compression}} | ||
{{Information theory}} | {{Information theory}} | ||
| Line 13: | Line 13: | ||
Rate–distortion theory was created by [[Claude Shannon]] in his foundational work on information theory. | 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 [[bit]]s per data sample to be stored or transmitted. The notion of ''distortion'' is a subject of on-going discussion.<ref>{{cite conference | | In rate–distortion theory, the ''rate'' is usually understood as the number of [[bit]]s per data sample to be stored or transmitted. The notion of ''distortion'' is a subject of on-going discussion.<ref>{{cite conference |last1=Blau |first1=Y. |last2=Michaeli |first2=T. |url=http://proceedings.mlr.press/v97/blau19a/blau19a.pdf |title=Rethinking Lossy Compression: The Rate-Distortion-Perception Tradeoff |book-title=Proceedings of the International Conference on Machine Learning |date=2019 |publisher=PMLR |pages=675–685 |arxiv=1901.07821}}</ref> In the most simple case (which is actually used in most cases), the distortion is defined as the expected value of the square of the difference between input and output signal (i.e., the [[mean squared error]]). 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 function]]s as used in Bayesian [[estimation theory|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 (signal processing)|quantization]], [[Normalization (image processing)|normalization]]) matrix. | ||
== Distortion functions == | == Distortion functions == | ||
| Line 72: | Line 72: | ||
The [[Blahut–Arimoto algorithm]], co-invented by [[Richard Blahut]], 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. | The [[Blahut–Arimoto algorithm]], co-invented by [[Richard Blahut]], 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. | ||
The computation of the rate-distortion function requires knowledge of the underlying distribution, which is often unavailable in contemporary applications in data-science and machine learning. However, this challenge can be addressed using deep learning-based estimators of the rate-distortion function.<ref>{{Cite journal | | The computation of the rate-distortion function requires knowledge of the underlying distribution, which is often unavailable in contemporary applications in data-science and machine learning. However, this challenge can be addressed using deep learning-based estimators of the rate-distortion function.<ref>{{Cite journal |last1=Tsur |first1=Dor |last2=Huleihel |first2=Bashar |last3=Permuter |first3=Haim H. |date=2024 |title=On Rate Distortion via Constrained Optimization of Estimated Mutual Information |journal=IEEE Access |volume=12 |pages=137970–137987 |doi=10.1109/ACCESS.2024.3462853 |bibcode=2024IEEEA..12m7970T |issn=2169-3536|doi-access=free }}</ref> These estimators are typically referred to as 'neural estimators', involving the optimization of a parametrized variational form of the rate distortion objective. | ||
When working with stationary sources with memory, it is necessary to modify the definition of the rate distortion function and it must be understood in the sense of a limit taken over sequences of increasing lengths. | When working with stationary sources with memory, it is necessary to modify the definition of the rate distortion function and it must be understood in the sense of a limit taken over sequences of increasing lengths. | ||
| Line 101: | Line 101: | ||
[[File:Rate distortion function.png|400px]] | [[File:Rate distortion function.png|400px]] | ||
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) [[Quantization (signal processing)|quantizers]] that operate at distances from the rate–distortion function that are practically relevant.<ref>{{cite book| | 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) [[Quantization (signal processing)|quantizers]] that operate at distances from the rate–distortion function that are practically relevant.<ref>{{cite book| first1 = Thomas M. |last1=Cover |first2=Joy A. |last2=Thomas |chapter=10. Rate Distortion Theory | title = Elements of Information Theory | publisher = Wiley |orig-year=2006 |year=2012 |chapter-url={{GBurl|VWq5GG6ycxMC|p=301}} |isbn=978-1-118-58577-1 |edition=2nd}}</ref> | ||
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—say—images, may well be below the <math>R \left(D \right)</math> lower bound shown. | 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—say—images, may well be below the <math>R \left(D \right)</math> lower bound shown. | ||
| Line 133: | Line 133: | ||
==External links== | ==External links== | ||
*{{cite web | | *{{cite web |first1=Sarah |last1=Marzen |first2=Simon |last2=DeDeo |title=PyRated: a python package for rate distortion theory |url=https://sites.santafe.edu/~simon/styled-13/ |quote=PyRated is a very simple Python package to do the most basic calculation in rate-distortion theory: the determination of the “codebook” and the transmission rate ''R'', given a utility function (distortion matrix) and a Lagrange multiplier ''beta''.}} | ||
*[https://web.archive.org/web/20011006065854/http://www-ict.its.tudelft.nl/vcdemo VcDemo Image and Video Compression Learning Tool] | *[https://web.archive.org/web/20011006065854/http://www-ict.its.tudelft.nl/vcdemo VcDemo Image and Video Compression Learning Tool] | ||
Latest revision as of 07:28, 27 August 2025
Template:Short description Template:Information theory
Script error: No such module "Unsubst".
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 number of bits per symbol, as measured by the rate 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 an expected distortion D.
Introduction
Rate–distortion theory gives an analytical expression 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.[1] In the most simple case (which is actually used in most cases), the distortion is defined as the expected value of the square of the difference between input and output signal (i.e., the mean squared error). 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.
Distortion functions
Distortion functions measure the cost of representing a symbol by an approximated symbol . Typical distortion functions are the Hamming distortion and the Squared-error distortion.
Hamming distortion
Squared-error distortion
Rate–distortion functions
The functions that relate the rate and distortion are found as the solution of the following minimization problem:
Here , sometimes called a test channel, is the conditional probability density function (PDF) of the communication channel output (compressed signal) for a given input (original signal) , and is the mutual information between and defined as
where and are the entropy of the output signal Y and the conditional entropy of the output signal given the input signal, respectively:
The problem can also be formulated as a distortion–rate function, where we find the infimum over achievable distortions for given rate constraint. The relevant expression is:
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 (). Of course the decrease in uncertainty is due to the communicated amount of information, which is .
As an example, in case there is no communication at all, then and . Alternatively, if the communication channel is perfect and the received signal is identical to the signal at the sender, then and .
In the definition of the rate–distortion function, and are the distortion between and for a given and the prescribed maximum distortion, respectively. When we use the mean squared error as distortion measure, we have (for amplitude-continuous signals):
As the above equations show, calculating a rate–distortion function requires the stochastic description of the input in terms of the PDF , and then aims at finding the conditional PDF that minimize rate for a given distortion . 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,
where h(D) is the differential 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 low 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, co-invented by Richard Blahut, 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.
The computation of the rate-distortion function requires knowledge of the underlying distribution, which is often unavailable in contemporary applications in data-science and machine learning. However, this challenge can be addressed using deep learning-based estimators of the rate-distortion function.[2] These estimators are typically referred to as 'neural estimators', involving the optimization of a parametrized variational form of the rate distortion objective.
When working with stationary sources with memory, it is necessary to modify the definition of the rate distortion function and it must be understood in the sense of a limit taken over sequences of increasing lengths.
where
and
where superscripts denote a complete sequence up to that time and the subscript 0 indicates initial state.
Memoryless (independent) Gaussian source with squared-error distortion
If we assume that is a Gaussian random variable with variance , and if we assume that successive samples of the signal are stochastically independent (or equivalently, 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:
File:Rate distortion function.png
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.[4]
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—say—images, may well be below the lower bound shown.
Memoryless (independent) Bernoulli source with Hamming distortion
The rate-distortion function of a Bernoulli random variable with Hamming distortion is given by:
where denotes the binary entropy function.
Plot of the rate-distortion function for :
File:Rate distortion function Bernoulli.png
Connecting rate-distortion theory to channel capacity
Suppose we want to transmit information about a source to the user with a distortion not exceeding D. Rate–distortion theory tells us that at least bits/symbol of information from the source must reach the user. We also know from Shannon's channel coding theorem that if the source entropy is H bits/symbol, and the channel capacity is C (where ), then bits/symbol will be lost when transmitting this information over the given channel. For the user to have any hope of reconstructing with a maximum distortion D, we must impose the requirement that the information lost in transmission does not exceed the maximum tolerable loss of bits/symbol. This means that the channel capacity must be at least as large as .[5]
See also
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
References
<templatestyles src="Reflist/styles.css" />
Script error: No such module "Check for unknown parameters".
External links
- Script error: No such module "citation/CS1".
- VcDemo Image and Video Compression Learning Tool
Script error: No such module "Navbox". Script error: No such module "Authority control".