Introduction
In the field of information theory, universal lossless compression is a well-solved problem. Algorithms such as Lempel-Ziv (the basis for formats like .zip) can optimally compress data without prior knowledge of its statistical distribution. However, universal lossy compression—where some data is discarded to achieve higher compression ratios—remains a significant challenge. While theoretical frameworks exist, they are often computationally intractable, requiring exhaustive searches through astronomical numbers of possible reconstruction sequences.
This paper introduces a novel, implementable algorithm that bridges the gap between theory and practice. By linearizing a complex entropy-based cost function, the authors transform the lossy compression problem into a shortest-path problem solvable via the Viterbi algorithm, achieving near-optimal rate-distortion performance.
The Problem: Computational Intractability
Universal lossy compression requires finding a reconstruction sequence $y^n$ that minimizes a weighted sum of distortion (the difference between the original and the reconstruction) and empirical entropy (the inherent compressibility of the reconstruction). Mathematically, this is expressed as minimizing:
$$H_k(y^n) + \alpha d_n(x^n, y^n)$$
Where $H_k$ is the $k$-th order conditional empirical entropy and $d_n$ is the distortion. Because $H_k$ is a highly non-linear function of the sequence, finding the global minimum typically requires an exhaustive search or slow stochastic methods like Markov Chain Monte Carlo (MCMC). These methods lack the speed and convergence guarantees necessary for practical applications.
Methodology: Linearization and the Viterbi Algorithm
The authors propose a three-step approach to make this optimization feasible:
1. Linearization of the Cost Function
The core mathematical breakthrough of the paper is Theorem 1, which proves that the non-linear entropy term $H_k$ can be replaced by a linear function of the sequence’s empirical distribution (its "type"). By using a specific set of coefficients, the authors demonstrate that the minimizers of the linearized function are identical to the minimizers of the original, intractable entropy-based function.
2. Mapping to a Trellis
Because the new cost function is linear, the total cost of a sequence can be decomposed into a sum of local weights. This allows the problem to be mapped onto a Trellis diagram. In this diagram, states represent short contexts of length $k$. The problem of finding the optimal compressed sequence then becomes a search for the shortest path through this Trellis.
3. The Viterbi Algorithm and Iterative Refinement
To find this shortest path efficiently, the authors employ the Viterbi algorithm, a dynamic programming technique widely used in telecommunications. However, a "chicken-and-egg" problem remains: calculating the optimal linear coefficients requires knowing the optimal reconstruction sequence in advance.
To solve this, the authors implement an iterative heuristic:
- Initialize coefficients based on the input sequence $x^n$.
- Use the Viterbi algorithm to find a reconstruction sequence $y^n$.
- Update the coefficients based on the new sequence $y^n$.
- Repeat until the sequence converges.
Key Insights and Theoretical Guarantees
- Equivalence of Minimizers: The linearization does not sacrifice optimality. If the correct coefficients are known, the Viterbi algorithm finds the same optimal sequence as the exhaustive search.
- Complexity Reduction: By framing compression as a path-finding problem, the computational complexity is reduced from exponential in the sequence length ($2^n$) to linear in the sequence length ($n$).
- Monotonic Convergence: The authors prove that their iterative heuristic is guaranteed to decrease the total "energy" (cost) of the sequence at every step, ensuring it will settle into a local minimum in a finite number of iterations.
Empirical Results
The algorithm was evaluated on two standard discrete sources: an i.i.d. Bernoulli(0.5) source (random binary flips) and a Binary Symmetric Markov Source (BSMS) with transition probability $q=0.2$.
For sequences of length $n=10,000$ and context length $k=8$, the results were highly promising:
- Performance: The algorithm's rate-distortion performance closely tracked the theoretical limits for the Bernoulli source and stayed within the known bounds for the Markov source.
- Speed: Despite the massive search space, the algorithm converged rapidly—requiring fewer than 60 iterations for the memoryless source and fewer than 15 for the Markov source.
Limitations and Future Directions
While the algorithm is linear in sequence length $n$, it is exponential in the context length $k$ (specifically, $|X|^{k+1}$ states). This limits the value of $k$ that can be used in practice, potentially hindering the algorithm's ability to capture very long-range dependencies in data.
Furthermore, while the iterative method is fast and guaranteed to converge, it may settle into a local minimum rather than the global optimum. The authors suggest that "slope annealing"—gradually adjusting the distortion parameter $\alpha$—could be a fruitful area for future research to ensure the algorithm reaches the global theoretical limit consistently.
Summary updated