Abstract
Numerical computation of the rate–distortion (RD) function is a key problem in RD theory. Thus far, efficient algorithms have been well studied for discrete sources, but for continuous sources, there is still lack of a rigorously developed solution. In this article, an integrated approach is conducted that bridges RD problems of continuous memoryless sources and discrete numerical algorithms. First, we analyze and establish the theoretical convergence guarantee when progressively approaching the continuous RD problem via a sequence of discrete problems. Next, discrete algorithms including the Blahut–Arimoto (BA) and constrained BA algorithms are reviewed, and estimates of their required amount of arithmetic operations to attain -accuracy in solving the continuous RD problem are derived. Finally, acceleration techniques that exploit structures of special distortion measures (i.e., squared-error and absolute-error) are developed.
1. Introduction
Rate–distortion (RD) theory traces back to Shannon’s seminal work on lossy source coding, where the RD function was introduced to characterize the fundamental trade-off between rate and distortion for representing a source subject to a fidelity criterion [1]. RD theory has been instrumental to the development of signal quantization and compression [2], and has long-lasting impacts on standards for media compression [3,4,5]. See [6] for a systematic treatment of standard and classical aspects of RD theory, [7] for a survey on the development of RD theory, [8] for introduction on RD theory in distributed settings, and [9] for recent progresses on the interplay between RD theory and machine learning.
Evaluating the RD function is a key problem in rate–distortion theory, and due to the lack of closed-form expressions in general settings, numerical algorithms are usually necessary. Thus far, efficient algorithms have been well studied for discrete sources, including the famous Blahut–Arimoto (BA) algorithm [10,11] and several others such as the constrained BA (CBA) algorithm [12] and expectation–maximization (EM)-type algorithms utilizing Bregman projections or mirror descent [13]. But for continuous sources, there is still lack of a rigorously developed solution. A commonly adopted approach is first discretizing the source and reproduction spaces and then solving the resulting discrete RD problem. Do solutions of the discretized problems provably converge to those of the original continuous problem? This basic question has remained unanswered to the best of our knowledge. It should be noted that, due to the nonlinear optimization formulation of the RD problem, naive discretization does not necessarily yield a convergent sequence of solutions towards those of the original continuous problem [14].
This article conducts an integrated approach for the computation of RD functions, bridging continuous RD problems and discrete numerical algorithms. Specifically, we (i) for continuous RD problems, construct suitable discretizations and prove that their solutions converge to those of the original continuous problem; (ii) review, based on [12], estimates of the required amount of arithmetic operations when applying the BA and CBA algorithms for attaining -accuracy within the solution of the continuous RD problem; and (iii) design acceleration techniques that substantially reduce time and memory costs for squared-error and absolute-error distortion measures. A preliminary result pertaining to (i) was first presented in part at the IEEE International Symposium on Information Theory (ISIT) in 2024 [15], while here we present the complete work with proofs.
In our approach, we analyze a suitable dual form of the RD function, constructing a sequence of finite-dimensional spaces that progressively approximate the infinite-dimensional space of reproduction distributions. The convergence of discrete problem solutions to the continuous one is established by using standard tools in mathematical analysis [16]. The proof is algorithm-agnostic and does not depend on specific numerical algorithms used. In an alternative approach, mapping-based methods jointly optimize locations and masses of the discrete reproduction distribution [17], but the explicit dependence on locations makes the optimization problem nonconvex and typically lacks uniform performance guarantees [18]. By avoiding optimization over locations and instead working in the limit of asymptotically vanishing discretization step size, our approach provably guarantees convergence of both objective values and solution sequences. In another work [19], the RD function under a fixed output alphabet size constraint is evaluated, and corresponding encoding schemes are proposed.
With convergence guarantees, computing the continuous RD function can be effectively reduced to solving the discretized RD problems with numerical algorithms, i.e., the BA or CBA algorithm. To assess the efficiency of this approach, we review the arithmetic complexity required to attain an -accurate solution. According to the analysis in [12], for the CBA algorithm, this complexity is multiplied by the number of discretization nodes, where is the reproduction dimension. Since achieving -accuracy in d-dimensional integration necessitates a grid with nodes, the overall complexity becomes . Clearly, this leads to substantial computational complexity.
To mitigate the aforementioned substantial computational complexity, we design fast algorithms by exploiting the structure of uniform discretization. Specifically, for squared-error distortion, we leverage the Fast Fourier Transform (FFT) to accelerate the iterated convolutions in the CBA updates, achieving an acceleration factor of . For absolute-error distortion, we devise a fast algorithm based on dynamic programming ideas, inspired by [20], which achieves an acceleration factor of .
The remaining part of this article is organized as follows. Section 2 develops the continuous RD framework, formulates its discretizations, and establishes the convergence of the associated discrete schemes. Section 3 reviews the BA and CBA algorithms, and provides estimates on their required amount of arithmetic operations for attaining -accuracy within the solution of the continuous RD problem. Section 4 further develops acceleration techniques, including FFT-based acceleration for squared-error distortion and nearly linear time acceleration for absolute-error distortion, with reduced time and memory costs. Section 5 concludes this article.
2. Discretization of Continuous RD Problems and Convergence Analysis
In this section, we address the discretization of continuous RD problems and analyze the convergence of the resulting discrete schemes.
2.1. Continuous RD Problems and Their Discretizations
Consider a continuous memoryless source with reproduction , where are finite-dimensional Euclidean spaces. Denote the dimension of as d. Let p and denote the probability distributions of X and Y, respectively, and let be a distortion measure. For an average distortion threshold , the RD function [6,21] is
where . Define as
A convenient max–min formulation of the RD problem (cf. [22] (Equation (7))) is
where and D denotes the average distortion threshold. Here is understood as a probability measure on equipped with the topology of weak convergence [23], for which it is well-known that for continuous sources under the squared-error distortion measure, the optimal reproduction distribution is usually discrete [17,24].
In (3), by fixing the multiplier and defining as
the inner minimization of (3) can be rewritten as (see [17] (Equation (3)):
Since is defined over the continuum , it is common to discretize it on a uniform grid of points within . We denote the discretization step size as h, i.e., , and the interval containing as , noting that these intervals are disjoint. This thus leads to the following discrete form:
Correspondingly, (3) corresponds to the following discrete form:
The solution of (6) or (7) can be represented as , where is the Dirac delta function at .
Before proceeding with the subsequent discussion, we clarify some basic notations and terms used throughout the text. denotes the d-fold Cartesian product of ; denotes the norm; means convergence in , while denotes uniform convergence [16], i.e., , when n is sufficiently large. For the sequence , the limit points [23] are all the points satisfying that every punctured neighborhood contains at least one point in , and we denote the set that contains all the limit points of the sequence as . We also write weak convergence as . For brevity, the expression will be abbreviated as when no confusion arises. We write and for discretized spaces and , respectively.
2.2. Convergence of Discrete Schemes
Before proceeding with the analysis, we outline the underlying assumption.
Assumption 1.
The distortion measure ρ and source distribution p satisfy
and
We emphasize that this assumption constitutes general conditions applicable to broad scenarios. With this assumption, we summarize the main results of convergence and convergence rate in the following theorem:
Theorem 1.
The convergence and convergence rate results for discrete problem (7) are as follows:
- (1)
- (2)
- When the probability distribution p of X is supported over , the optimal values of the discrete problem (7) satisfy the error estimatewhere is a constant independent of n, and is the discretization step size.
To prove part (1) in Theorem 1, we first consider the case of fixed , establishing the convergence of the discrete problem (6) to the continuous problem (5).
Lemma 1.
Proof.
Detailed derivations are presented in Appendix A.1. □
Next, we provide the convergence proof of the RD problem (3) via its discrete problem (7). Let the optimal solution of the continuous problem (3) and the discrete problem (7) be respectively. Since has no concrete form, it is not straightforward to prove its convergence. The key idea is a transformation from the convergence of to that of a variable of certain concrete form, as summarized in Proposition 1 below, which has drawn some inspiration from [25].
Proposition 1.
Construct , where , and is defined in Section 2.1. To prove the convergence of the objective value in problem (3), i.e., , we only need to show , where .
Proof.
Detailed derivations are presented in Appendix A.2. □
In the following Lemma 2, we provide the convergence result of , as a prelude to the convergence proof for the RD problem.
Lemma 2.
Convergence properties of :
- (1)
- is lower bounded away from zero for any n, i.e., , .
- (2)
- converges to the optimal solution .
Proof
(1). By using subsequence analysis [23] and uniform convergence analysis [16], we can obtain the result. A detailed derivation is presented in Appendix A.3.
(2). By using the sequentially compact property [23], the truncation technique and the tools of upper limits and lower limits [16], the convergence can be proven. Detailed derivations are presented in Appendix A.3. □
At this point, we are ready to establish the convergence of the discrete problem (7) in Theorem 1.
Proof of Theorem 1(1).
We now show that . By Lemma 1, . Therefore, it suffices to prove that
For this, we notice that
We divide the integral into two parts and estimate each of them. For simplicity, denote .
where is a lower bound and
Here, is an upper bound of , since it is convergent, M is larger than the constant A in Lemma 1, and is a constant equal to . Using the same derivation as (A7) in the proof of Lemma 2, we have
Thus, when n is sufficiently large,
We obtain
Meanwhile, let , then
Here, we used the fact
Combining the two parts and taking the limit , we obtain
Then by taking the limit of , we obtain the convergence. Here we used the assumption, i.e., .
To prove the convergence of the solutions, let be a limit point of the solution sequence . Then there exists a subsequence satisfying and . Next, we have
since we have proven that . By the optimality property of and ,
Here, is a discrete version of , i.e., . Similarly to the preceding analysis, we have . Thus,
This means and
However, and hold due to the optimality property of . So, we obtain that is optimal, i.e., . Further combining , we obtain that is optimal. □
To prove part (2) in Theorem 1, we first establish the convergence rate for the discrete problems (6).
Lemma 3.
When the probability distribution p of X is supported over , the optimal values of the discrete problem (6) satisfy the error estimate
where C is a constant and is the discretization step size.
Proof.
By refining the estimation in Lemma 1, we obtain the convergence rate. A derivation is shown in Appendix A.4. □
Correspondingly, the convergence rate of problem (7) can be proved as follows.
Proof of Theorem 1(2).
Since is supported over , we can simply take the equidistant discretization nodes from . Due to the inequality (A5) in the proof of Proposition 1,
Thus, we only need to evaluate . Assume for that and are Lipschitz continuous with the common Lipschitz constant L, for .
First, we estimate the convergence rate of :
Here, we used the fact , and the bound on , i.e., .
Similarly,
Next, as in the proof of Theorem 1(1), we obtain the lower bounds
Moreover, since and is decreasing in ,
where is the upper bound on the function .
Now, since , we have the following estimate:
wherein for the simplicity of notation, we write for the respective integrals.
Next, we provide the estimate of . Let . Then there exists such that, for all ,
and lies in this neighborhood once n is sufficiently large. Therefore, by the Lagrange mean value theorem,
Here, is a real number between and . Thus,
Now we provide the convergence rate of :
By conducting the following evaluation
where , we thus have the following estimate using the derivation in (8):
where we denote . Meanwhile, due to Lemma 3, . Thus, we obtain the convergence rate □
Remark 1.
We first want to clarify that Theorem 1, as presented here, is specifically centered on the CBA algorithm. Additionally, it should be noted that corresponding results for the BA algorithm are also covered: both Lemma 1 and Lemma 3 entail the same conclusions for the BA algorithm.
2.3. Numerical Verfication
We conduct experiments on a uniform source to confirm the convergence shown in this section. We consider the uniform source on interval and solve the corresponding discrete problems with different discretization parameters, with the node number varying according to for the discretization of Y. In order to ensure accuracy for evaluating the integrals with respect to , we fix a sufficiently large node number for X. We use both the BA and CBA algorithms to solve the discrete problems (6) and (7), respectively. The corresponding results of the reproduction distribution are illustrated in Figure 1.
Figure 1.
The discrete optimal reproduction distribution produced by the BA algorithm for slope (upper left) and (upper right), and by the CBA algorithm for target distortion (lower left) and (lower right). For clearer visualization, the scale of the density is used on the vertical axis.
It has been well known (see, i.e., [17]) that the optimal reproduction distribution of the uniform source is discrete. From Figure 1, the convergence of the solutions of discrete problems to discrete reproduction distributions is clearly demonstrated, as the discretization becomes finer progressively.
3. Discrete RD Algorithms and Their -Accuracy Analysis
In the previous section, we have shown that for computing the RD function of a continuous source, as discretization step size asymptotically vanishes, solutions to discrete problems converge to those of the continuous problem. Discrete problems are typically solved via BA [10,11] and CBA [12] algorithms. In this section, we review these algorithms, and provide estimates on their required amount of arithmetic operations for attaining -accuracy within the solution of the continuous problem.
3.1. BA Algorithm
As a classical numerical method for computing the RD function, the BA algorithm [10,11] minimizes the RD Lagrangian with a fixed penalty parameter. Concretely, for a fixed penalty , it minimizes
Geometrically, is the slope of a tangent line to the RD curve ; hence, minimizing at a fixed yields a conditional distribution associated with the point of tangency on the RD curve [26].
Write for the conditional probability , and for the marginal distribution of Y. The BA algorithm alternates between the two variables and in the following way [10]:
After discretization, the alternating iterations can be reformulated as:
where , and h is the discretization step size of uniform discretization.
It has been shown in the literature (see, e.g., [26] (Chapter 8)) that, for discrete sources, the iterative procedure of the BA algorithm converges to the RD function at rate . Furthermore, as shown in [13] (Theorem 2, Equation (96)), the BA algorithm needs iterations to achieve -accuracy. In each iteration, the BA algorithm performs two matrix–vector multiplications, involving arithmetic operations. Moreover, the space cost amounts to since we need to store and .
Based on the convergence rate analysis in Lemma 3, we conduct a complexity analysis to estimate the computational cost of solving the continuous problem (5) to achieve -accuracy via the BA algorithm.
Theorem 2.
To ensure ε-accuracy for computing the continuous RD function, the BA algorithm needs arithmetic operations. Here, m is the number of discretization nodes of X when conducting numerical integration and d is the dimension of the reproduction space .
Proof.
By Theorem 3, to ensure that , the sample size n must satisfy , i.e., . Subsequently, the BA algorithm is applied to solve the associated discrete problem up to an error tolerance at level . As shown in [13] (Theorem 2, Equation (96)), the BA algorithm needs iterations to achieve -accuracy. In each iteration, the BA algorithm alternates between and in the following way:
Let be the nodes of numerical integration with respect to x. When computing , we need to perform matrix–vector multiplication
and it involves arithmetic operations. The total computation cost for is . When computing , we need to perform numerical integration,
where are the numerical integration coefficients. This is a matrix–vector multiplication, and it involves arithmetic operations. Thus, the computational cost for each iteration in the BA algorithm is . Hence, the total computational cost is . □
3.2. CBA Algorithm
Inspired by the connection between OT and RD [27,28], Chen et al. [12] introduced the CBA algorithm [12], which explicitly incorporates the expected distortion constraint of the RD function. This allows the Lagrange multiplier to be updated via a one-dimensional root-finding step to meet a target distortion D in each iteration, thereby solving the original RD problem (1) directly, without sweeping the entire RD curve as in the BA algorithm. Specifically, when alternating between the two variables and , the CBA algorithm updates the multiplier (see [12] for further details):
where can be efficiently evaluated by Newton’s method since is monotone, as shown in [12]. After discretization, the iterative procedure turns into:
where and h is the discretization step sizes. As shown in [12], for discrete sources, the iterative procedure of the CBA algorithm also converges to the RD function at rate . Note that differently from the BA algorithm which minimizes the RD Lagrangian for a given multiplier , the CBA algorithm directly reaches the RD function for a given target distortion D. By the analysis in [12], in each iteration, the CBA algorithm takes arithmetic operations to achieve -accuracy for solving , while the space cost is also .
Analogous to Theorem 2, we provide the complexity analysis to estimate the computational cost of solving the continuous problem (3) to achieve -accuracy via the CBA algorithm.
Theorem 3.
To ensure ε-accuracy for computing the continuous RD function, the CBA algorithm needs arithmetic operations. Here, m is the number of discretization nodes of X when conducting numerical integration and d is the dimension of the reproduction space .
Proof.
By Lemma 3, to ensure that , the sample size n must satisfy , i.e., . Then when using the CBA algorithm to solve the discrete problem within error tolerance, as shown in [12], we need arithmetic operations to achieve -accuracy. Thus, the computational cost is
thereby completing the proof. □
4. Acceleration Techniques for the CBA Algorithm
The previous section detailed the computational cost for discrete algorithms (i.e., BA and CBA) to obtain -accurate RD solutions for continuous sources. To this end, we exploit the structure of specific distortion measures (i.e., squared-error and absolute-error) for developing fast algorithms. For clarity, we present the algorithms for the case of ; the case of follows with minor modifications.
4.1. Squared-Error Distortion
We begin with the one-dimensional case, i.e., . Following the discretization form introduced in Section 3, we have for the squared-error distortion :
For simplicity, we denote by the matrix whose -entry is . Noting that only depends on the difference between its indices, consequently, the two weighted sums in the CBA iterative procedure become linear convolutions and can be implemented in time by FFT with zero padding.
To begin, we clarify the notation and definitions. We refer to ∗ as linear convolution, and “” and “⊙” denote element-wise division and multiplication, respectively. Here we denote the standard FFT operation and the standard inverse FFT operation as and , respectively.
For a given matrix K, denotes the even extension of its first column, constructed by concatenating the first column of K with the reversed first row of K, excluding the first entry. Thus, we can compute each convolution in time via the FFT [29,30]. Specifically, the vector v is zero-padded [31] to length and is constructed; their discrete Fourier transforms are then computed, multiplied component-wise in the Fourier domain, and followed by the inverse transform. The leading m coefficients are retained to recover the linear convolution. This process is referred to as the function .
We adopt the notation , and let and . Then, can be updated by
Differentiating yields
Note that and require three FFT-based convolutions , which can be calculated within arithmetic operations. Thus, each Newton’s iteration involves arithmetic operations. Due to the locally quadratic convergence of Newton’s method, we need iterations to achieve -accuracy. Hence, we only need arithmetic operations to implement (11a). Additionally, the update of (11b) requires two FFT-based convolutions,
which can also be calculated within arithmetic operations. Therefore, in each iteration of (11), it involves arithmetic operations. Moreover, due to [12] (Theorem 3.2), we need iterations. Therefore, the total computational cost of our method is . Since is needed to ensure the accuracy of numerical integration, the computational cost turns out to be to achieve -accuracy. Meanwhile, the space cost is , since only variables are stored. The corresponding pseudo-code is shown in Algorithm 1:
| Algorithm 1 FFT-CBA for squared-error distortion (1D) |
|
After obtaining the optimal variables and via iterations (11), we can calculate the rate R for a given target distortion D directly:
Here, we can apply an additional FFT to compute R, allowing us to obtain R using only arithmetic operations.
Remark 2.
In the implementation, the matrices do not need to be computed explicitly. Instead, we first convert the distance matrix into vector form and then treat this vector as a constant that is combined with the iteration-dependent β via vector-wise operations in each iteration.
Next, we consider the case of multiple dimensions. Let with . Under a uniform grid of side M per dimension, , we have
Note that each convolution can be decomposed into d successive one-dimensional FFT-based convolutions:
where denotes the one-dimensional convolution along the k-th coordinate axis, and Therefore, the arithmetic operations per iteration are . Similarly to the analysis of the one-dimensional case, the complexity of the accelerated CBA algorithm under squared-error distortion with dimension d is
where .
Example 1.
We evaluate our accelerated algorithms on one-dimensional continuous sources and compare them with the baseline of the CBA algorithm without acceleration. We consider two classical examples—Gaussian and Laplacian sources—and evaluate each source under squared-error distortion measures. We set the accuracy to , yielding discretization nodes for X and Y, and we cap the number of iterations at . The discretization nodes are uniformly sampled from the interval .
Under the squared-error distortion setting, the computational time and the discrepancy in the output rate R between the two algorithms for various values of β are reported in Table 1. As shown in the table, We can see that the Fast CBA algorithm has an overwhelming advantage in computational speed. Moreover, the rates R obtained by the two algorithms are almost identical.
Table 1.
Comparison between FFT-based Fast CBA and CBA algorithms under squared-error distortion.
Fixing , by data fitting, we can see that the empirical complexity of the Fast CBA algorithm is , while that of the CBA algorithm is ; see Figure 2 for illustration.
Figure 2.
The comparison of computational time between the Fast CBA algorithm and the CBA algorithm with different numbers of grid points n under square-error distortion.
4.2. Absolute-Error Distortion
4.2.1. One-Dimension Case
First, we consider the case with distortion measure . Under a uniform discretization with step size h, this yields . For convenience, we denote .
Although the equation cannot be solved exactly, the prescribed -accuracy of the final result is guaranteed, as established in [12] (Theorem 3.2). In practice, Newton’s method for solving (14a) is implemented via the following iterative scheme until the stopping criterion is satisfied.
By calculation, can be written as the following form:
Therefore, the main arithmetic complexity in the update of lies in the computation of and .
Since is related to , we denote . Let
Similarly to the treatment in [20], we have the following recursive formulae:
with initial values .
By exploiting the above recursion, the sequences and can be computed sequentially. Each step requires only one multiplication and one addition. Consequently, the total number of arithmetic operations needed to compute and , for , is . Therefore, the evaluation of can be completed in arithmetic operations.
Next, we leverage dynamic programming [32] to compute the sums and efficiently. Note that these sums differ from , so we cannot directly adopt the approach in [20]. However, with appropriate adjustments, we can also compute them in linear complexity. We denote
Then,
Thus, we obtain the following recursive formulae:
with initial values . In each recursion, we perform three additions and two multiplications. Since and can be calculated within arithmetic operations, to calculate , arithmetic operations are needed. Then
can also be calculated within arithmetic operations.
Meanwhile, let
Then, it holds that
Similarly,
Thus, we obtain the following recursive formulae:
with initial values . In each recursion, we perform five additions and four multiplications. Hence, to calculate , arithmetic operations are needed. Then
can also be calculated within arithmetic operations.
Since can be calculated within arithmetic operations, we can use only arithmetic operations to calculate . Similarly, can also be calculated within arithmetic operations. Thus, each Newton’s iteration involves arithmetic operations. Due to the locally quadratic convergence of the Newton’s method, we need iterations to achieve -accuracy. Hence, we only need arithmetic operations to implement (14a). Notably, the iteration (14b) can be divided into two steps:
Based on the above analysis, each iteration of (17) can be carried out with linear computational complexity .
Therefore, in each iteration of (14), it involves arithmetic operations. Due to [12] (Theorem 3.2), we need iterations. Thus, the total computational cost of our method is . Since to ensure the accuracy of numerical integration, the computational cost turns out to be to achieve -accuracy. Meanwhile, the space cost is , since only variables are stored. The corresponding pseudo-code is shown in Algorithm 2.
| Algorithm 2 Accelerated CBA algorithm for absolute-error distortion (1D) |
|
After obtaining the optimal variables and via iterations (14), we can calculate the rate R for given target distortion D directly:
Here, we have used the condition . Since can be calculated within arithmetic operations, we only need arithmetic operations to obtain R.
Example 2.
We evaluate our accelerated algorithms on one-dimensional continuous sources and compare them with the baseline of the CBA algorithm without acceleration. We consider two classical examples—Gaussian and Laplacian sources—and evaluate each source under absolute-error distortion measures. We set the accuracy to , yielding discretization nodes for X and Y, and we cap the number of iterations at . The discretization nodes are uniformly sampled from the interval .
Under the absolute-error distortion setting, the computational time and the discrepancy in the output rate R between the two algorithms for different values of β are reported in Table 2. As shown in the table, We can see that the Fast CBA algorithm has an overwhelming advantage in computational speed. Moreover, the rate R obtained by the two algorithms are almost identical.
Table 2.
Comparison between Fast CBA and CBA algorithms under absolute-error distortion.
Fixing , by data fitting, we can see that the empirical complexity of the Fast CBA algorithm is , while that of the CBA algorithm is ; see Figure 3 for illustration.
Figure 3.
The comparison of computational time between the Fast CBA algorithm and the CBA algorithm with different numbers of grid points n under absolute-error distortion.
4.2.2. Extension to Higher Dimensions
Next, we consider the case with the distortion measure , where . Thus, after discretization, and . The total number of discretization nodes is . Here, we adopt the uniform discretization with step size h. For simplicity, let , , and be , i.e., taking the summation over all indices . Then, .
Similarly to the one-dimensional case, we only need to accelerate the calculation of (14a) and (14b) with dimension d. For (14b),
By fixing , we need arithmetic operations to calculate . Thus, can be calculated within arithmetic operations. Then,
which is exactly the case for dimension when fixing . Set as the complexity to calculate for dimension k. Then, the recursive formula for becomes:
Since is the complexity of calculating , we have . Therefore, .
For (14a), the main arithmetic complexity lies in the calculation of and .
Note that
Fixing , we can then calculate within arithmetic operations. Furthermore, , can be calculated within arithmetic operations. Meanwhile, can be calculated within arithmetic operations due to the aforementioned analysis. Thus, arithmetic operations are needed to calculate .
In the meantime,
By similarly fixing , each component of can be computed with arithmetic operations. Therefore, we obtain the estimate of computational complexity to achieve -accuracy of our method. Moreover, the rate R can also be calculated using arithmetic operations.
5. Conclusions
In this article, we conducted an integrated approach for computing rate–distortion functions, connecting the RD problem formulation of continuous sources and discretization schemes along with their corresponding efficient discrete algorithms. We first showed that discretized reproduction distributions provably converge to the solution of the underlying continuous RD problem, and derived quantitative error bounds that clarify the impact of discretization resolution and problem dimension. In the discrete setting, we revisited the Blahut–Arimoto (BA) and constrained BA (CBA) algorithms, establishing their arithmetic complexity properties for achieving -accuracy guarantees when used, together with discretization, as solvers for the underlying continuous RD problem. For certain distortion measures, we further designed acceleration techniques that exploit the structure in discretized problems, including squared-error and absolute-error distortion measures.
Author Contributions
Conceptualization, W.Z. and H.W. (Hao Wu); methodology, L.C.; software, L.C., H.T. and S.W.; validation, H.T.; investigation, H.W. (Huihui Wu) and S.W.; resources, W.Z.; writing—original draft preparation, H.T. and L.C.; writing—review and editing, W.Z., H.W. (Hao Wu) and H.W. (Huihui Wu); visualization, H.T.; supervision, W.Z.; project administration, W.Z.; funding acquisition, W.Z. and H.W. (Hao Wu). All authors have read and agreed to the published version of the manuscript.
Funding
This work was partially supported by National Natural Science Foundation of China (Grants 12271289 and 62231022) and by Ningbo Yongjiang Talent Program.
Data Availability Statement
All data generated for this study are presented within the paper. Scripts and numerical data can be shared by the corresponding author upon reasonable request.
Conflicts of Interest
The authors declare no conflicts of interest.
Appendix A. Proofs in Section 2
Appendix A.1. Proof of Lemma 1
Proof.
We denote the optimal solution of (5) as and . As shown in Section 2.1, the continuous RD problem has the discrete form (6), which is in fact minimizing as defined in (5), but over instead of .
Denote the optimal solution of the discrete problem as . Then . Notice that if there exists satisfying , then
Here, the first inequality is due to the fact . The relationship (A1) would then lead to the convergence . Now, let , where and is defined in Section 2.1. Let . Since , one has
Since and , it suffices to show that . Before doing so, convergence under a truncation of needs to be established. Choose such that , and fix any . First, for and sufficiently large n, the following estimate holds:
where the second inequality invokes the assumption together with the decomposition . Next, we establish the uniform convergence. For ,
Here and is due to
Since is uniformly continuous over ,
Then, for sufficiently large n,
As ,
Hence, convergence after truncation holds. It remains to prove that . For ,
where . Let . Note that
where the second inequality is similar to (A3). Similarly, we have
Thus, combined with the assumption, we get
Therefore, by (A4) in the proof of Lemma 2,
By taking the upper limit of n for this inequality, we obtain
Taking the limit , it follows that .
To prove the convergence of the solutions, let be a limit point of the solution sequence . Then there exists a subsequence satisfying . Next,
since . Therefore, we have shown that is equal to the optimal value, and consequently is an optimal solution. □
Appendix A.2. Proof of Proposition 1
Proof.
Denote . Similarly to Lemma 1, the discrete problem (7) is equivalent to optimizing over .
Next, let . Since ,
Consequently, the following chain of inequalities holds:
where and we have used the max–min optimality property of . Note that if , then
Therefore, we obtain the convergence . In summary, we only need to prove . □
Appendix A.3. Proof of Lemma 2
Proof.
(1). We first show that the sequence is bounded away from zero, i.e.,
Suppose, to the contrary, that there exists a subsequence with . Therefore, there exists such that for all , . Here we assume and the degenerate case can be disregarded. By optimality, satisfies the first-order optimality condition and thus is a root of a monotone function
Then by the monotone property of , we have
The monotonicity follows from , which is ensured by the Cauchy–Schwarz inequality. Thus, for sufficiently large M,
By the proof of Lemma 1, we have
Similarly,
Similarly to (A2) in the proof of Lemma 1, we have
Meanwhile, the upper bound can be estimated by
Here, B is a bound of the function .
Next, since is uniformly continuous over , we have
Thus, it holds that
Letting leads to
Using the monotonicity of , we have , which is a contradiction.
(2). To prove , we only need to show that every convergent subsequence converges to , i.e., if a convergent subsequence , then . Now, let be a convergent subsequence and . Since is lower bounded away from zero, as shown in Lemma 2, we have . Let satisfy and . We have
Next, we divide the integral into two parts and estimate each of them. On one hand, when k is sufficiently large,
where the second inequality is due to when k is sufficiently large; on the other hand, when k is sufficiently large,
Combining the two parts, we obtain
when k is sufficiently large. Thus,
By the proof of Lemma 2,
Thus,
Similarly,
Next, we prove that . Since , for any there exists such that for all , . Using the monotonicity of , we obtain
In the following, we divide into two parts and estimate each of them. Set for brevity. We first estimate the part
Denote , then
Thus,
Note that when k is sufficiently large, we have
Here, A is the constant in Theorem 1 and . Then,
Similarly to (A6), the other part satisfies
Finally, combining the two parts, we have
Letting first,
Then letting ,
i.e., . Meanwhile,
Letting and then , we have
i.e., . Thus, we obtain . Similarly, . Using (A8),
Then, let , . Therefore, . By the strict monotonicity, we have . Thus holds. □
Appendix A.4. Proof of Lemma 3
Proof.
By [33] (Lemma 4.1), the distribution of the reproduction variable is supported on whenever is a strictly increasing, continuous difference distortion measure. We can just take the equidistant discretization nodes from . When , is a Lipschitz continuous function with respect to y with L being the Lipschitz constant. Then, we have the evaluation
We now establish the convergence rate:
where is the lower bound of as shown in Theorem 1 and . Thus,
Since the total number of discrete nodes is n, there are nodes in each dimension. So, the discretization step size is . Therefore, the convergence rate is . □
References
- Shannon, C.E. Coding Theorems for a Discrete Source with a Fidelity Criterion. Inst. Radio Eng. Int. Conv. Rec. 1959, 4, 1. [Google Scholar]
- Gray, R.M.; Neuhoff, D.L. Quantization. IEEE Trans. Inf. Theory 1998, 44, 2325–2383. [Google Scholar] [CrossRef] [Scilit]
- Skodras, A.; Christopoulos, C.; Ebrahimi, T. The JPEG 2000 Still Image Compression Standard. IEEE Signal Process. Mag. 2001, 18, 36–58. [Google Scholar] [CrossRef] [Scilit]
- Wiegand, T.; Sullivan, G.J.; Bjontegaard, G.; Luthra, A. Overview of the H. 264/AVC Video Coding Standard. IEEE Trans. Circuits Syst. Video Technol. 2003, 13, 560–576. [Google Scholar] [CrossRef] [Scilit]
- Sze, V.; Budagavi, M.; Sullivan, G.J. High Efficiency Video Coding (HEVC). Integr. Circuit Syst. Algorithms Archit. 2014, 39, 40. [Google Scholar]
- Berger, T. Rate Distortion Theory: A Mathematical Basis for Data Compression; Prentice-Hall: Hoboken, NJ, USA, 1971. [Google Scholar]
- Berger, T.; Gibson, J.D. Lossy Source Coding. IEEE Trans. Inf. Theory 1998, 44, 2693–2723. [Google Scholar] [CrossRef] [Scilit]
- El Gamal, A.; Kim, Y.H. Network Information Theory; Cambridge University Press: Cambridge, UK, 2011. [Google Scholar]
- Chen, J.; Fang, Y.; Khisti, A.; Özgür, A.; Shlezinger, N. Information Compression in the AI Era: Recent Advances and Future Challenges. IEEE J. Sel. Areas Commun. 2025, 43, 2333–2348. [Google Scholar] [CrossRef] [Scilit]
- Blahut, R. Computation of Channel Capacity and Rate-Distortion Functions. IEEE Trans. Inf. Theory 1972, 18, 460–473. [Google Scholar] [CrossRef] [Scilit]
- Arimoto, S. An Algorithm for Computing the Capacity of Arbitrary Discrete Memoryless Channels. IEEE Trans. Inf. Theory 1972, 18, 14–20. [Google Scholar] [CrossRef] [Scilit]
- Chen, L.; Wu, S.; Ye, W.; Wu, H.; Zhang, W.; Wu, H.; Bai, B. A Constrained BA algorithm for Rate-Distortion and Distortion-Rate Functions. CSIAM Trans. Appl. Math. 2025, 6, 350–379. [Google Scholar] [CrossRef] [Scilit]
- Hayashi, M. Bregman Divergence Based EM Algorithm and its Application to Classical and Quantum Rate Distortion Theory. IEEE Trans. Inf. Theory 2023, 69, 3460–3492. [Google Scholar] [CrossRef] [Scilit]
- Reyes, V.; Araya, I. ABSTAYLOR: Upper Bounding with Inner Regions in Nonlinear Continuous Global Optimization Problems. J. Glob. Optim. 2021, 79, 413–429. [Google Scholar] [CrossRef] [Scilit]
- Chen, L.; Wu, S.; Zhang, W.; Wu, H.; Wu, H. On Convergence of Discrete Schemes for Computing the Rate-Distortion Function of Continuous Source. In Proceedings of the 2024 IEEE International Symposium on Information Theory (ISIT), Athens, Greece, 7–12 July 2024; IEEE: New York, NY, USA, 2024; pp. 410–415. [Google Scholar]
- Rudin, W. Principles of Mathematical Analysis; McGraw-Hill: New York, NY, USA, 1976; Volume 3. [Google Scholar]
- Rose, K. A Mapping Approach to Rate-Distortion Computation and Analysis. IEEE Trans. Inf. Theory 1994, 40, 1939–1952. [Google Scholar] [CrossRef] [Scilit]
- Mao, M.Z.; Gray, R.M.; Linder, T. Rate-Constrained Simulation and Source Coding IID Sources. IEEE Trans. Inf. Theory 2011, 57, 4516–4529. [Google Scholar] [CrossRef] [Scilit]
- Finamore, W.; Pearlman, W. Optimal Encoding of Discrete-time Continuous-amplitude Memoryless Sources with Finite Output Alphabets. IEEE Trans. Inf. Theory 1980, 26, 144–155. [Google Scholar] [CrossRef] [Scilit]
- Liao, Q.; Chen, J.; Wang, Z.; Bai, B.; Jin, S.; Wu, H. Fast Sinkhorn I: An O(N) Algorithm for the Wasserstein-1 Metric. Commun. Math. Sci. 2022, 20, 2053–2067. [Google Scholar] [CrossRef] [Scilit]
- Cover, T.M.; Thomas, J.A. Elements of Information Theory; Wiley-Interscience: Weinheim, Germany, 2006. [Google Scholar]
- Lei, E.; Hassani, H.; Saeedi Bidokhti, S. Neural Estimation of the Rate-Distortion Function With Applications to Operational Source Coding. IEEE J. Sel. Areas Inf. Theory 2023, 3, 674–686. [Google Scholar] [CrossRef] [Scilit]
- Munkres, J. Topology, 2nd ed.; Prentice Hall: Hoboken, NJ, USA, 1999. [Google Scholar]
- Fix, S.L. Rate Distortion Functions for Continuous Alphabet Memoryless Sources; University of Michigan: Ann Arbor, MI, USA, 1977. [Google Scholar]
- Schochetman, I.E.; Smith, R.L. A Finite Algorithm for Solving Infinite Dimensional Optimization Problems. Ann. Oper. Res. 2001, 101, 119–142. [Google Scholar] [CrossRef] [Scilit]
- Csiszár, I.; Körner, J. Information Theory: Coding Theorems for Discrete Memoryless Systems, 2nd ed.; Cambridge University Press: Cambridge, UK, 2011. [Google Scholar]
- Wu, S.; Ye, W.; Wu, H.; Wu, H.; Zhang, W.; Bai, B. A Communication Optimal Transport Approach to the Computation of Rate Distortion Functions. In Proceedings of the 2023 IEEE Information Theory Workshop (ITW), Saint-Malo, France, 23–28 April 2023. [Google Scholar]
- Yang, Y.; Eckstein, S.; Nutz, M.; Mandt, S. Estimating the Rate-Distortion Function by Wasserstein Gradient Descent. In Proceedings of the 37th Conference on Neural Information Processing Systems (NeurIPS), New Orleans, LA, USA, 10–16 December 2023; Volume 36. [Google Scholar]
- Cooley, J.W.; Tukey, J.W. An Algorithm for the Machine Calculation of Complex Fourier Series. Math. Comput. 1965, 19, 297–301. [Google Scholar] [CrossRef]
- Solomon, J.; De Goes, F.; Peyré, G.; Cuturi, M.; Butscher, A.; Nguyen, A.; Du, T.; Guibas, L. Convolutional Wasserstein Distances: Efficient Optimal Transportation on Geometric Domains. ACM Trans. Graph. (ToG) 2015, 34, 1–11. [Google Scholar] [CrossRef] [Scilit]
- Oppenheim, A.V.; Schafer, R.W.; Buck, J.R. Discrete-Time Signal Processing, 2nd ed.; Prentice Hall: Hoboken, NJ, USA, 1999; p. 870. [Google Scholar]
- Bissiri, P.G.; Holmes, C.C.; Walker, S.G. A General Framework for Updating Belief Distributions. J. R. Stat. Soc. Ser. B Stat. Methodol. 2016, 78, 1103–1130. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Fix, S.L. Rate Distortion Functions for Squared Error Distortion Measures. In Proceedings of the 16th Annual Allerton Conference on Communication, Control and Computing, Monticello, IL, USA, 29 September–1 October 1978; pp. 704–711. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.


