Abstract
We present a new lossy compressor for discrete-valued sources. For coding a sequence $x^n$, the encoder starts by assigning a certain cost to each possible reconstruction sequence. It then finds the one that minimizes this cost and describes it losslessly to the decoder via a universal lossless compressor. The cost of each sequence is a linear combination of its distance from the sequence $x^n$ and a linear function of its $k^{\rm th}$ order empirical distribution. The structure of the cost function allows the encoder to employ the Viterbi algorithm to recover the minimizer of the cost. We identify a choice of the coefficients comprising the linear function of the empirical distribution used in the cost function which ensures that the algorithm universally achieves the optimum rate-distortion performance of any stationary ergodic source in the limit of large $n$, provided that $k$ diverges as $o(\log n)$. Iterative techniques for approximating the coefficients, which alleviate the computational burden of finding the optimal coefficients, are proposed and studied.
Introduction
In the field of information theory, the gap between theory and practice is often most pronounced in lossy compression. While universal lossless compression has long been dominated by efficient, practical algorithms like Lempel-Ziv (the foundation of the .zip format), lossy compression lacks a similarly robust, universal equivalent.
Theoretical frameworks for universal lossy compression exist, typically involving the minimization of a cost function that balances empirical entropy (rate) and distortion. However, implementing these frameworks usually requires an exhaustive search over an exponentially large space of possible reconstruction sequences—a task that is computationally intractable for any meaningful sequence length. Previous attempts to solve this using Markov chain Monte Carlo (MCMC) methods, such as simulated annealing, have suffered from slow convergence and a lack of provable performance bounds. This paper introduces a novel algorithm that bridges this gap by transforming the search problem into a shortest-path problem solvable via the Viterbi algorithm.
Methodology
Linearization of the Cost Function
The standard cost function for lossy compression involves minimizing the sum of a sequence's conditional empirical entropy and its distortion relative to the original source. The primary innovation of this work is the linearization of this cost function. The authors replace the highly non-linear conditional empirical entropy term with a linear function of the sequence's empirical distribution (its "type" or context counts).
Crucially, the authors prove that this linearization is "performance-lossless." With a carefully chosen set of coefficients, the linearized problem yields the exact same optimal reconstruction sequence as the original, intractable non-linear problem.
The Viterbi Algorithm
By linearizing the cost function, the problem of finding the optimal reconstruction sequence is mapped onto finding the shortest path in a Trellis diagram. This allows the use of the Viterbi algorithm, a dynamic programming technique widely used in telecommunications. This shift reduces the computational complexity from exponential in the sequence length $n$ to linear in $n$, making the search process feasible.
Iterative Approximation and Slope Annealing
To implement the Viterbi approach, the algorithm requires optimal coefficients, which themselves depend on the unknown optimal reconstruction sequence. To resolve this circular dependency, the authors propose an iterative heuristic:
- Initialization: Use the original sequence to compute initial coefficients.
- Optimization: Run the Viterbi algorithm to find a new reconstruction sequence based on current coefficients.
- Update: Recalculate coefficients based on the new sequence.
- Convergence: Repeat until the sequence stabilizes.
To further improve performance, the authors introduce "slope annealing." This technique involves starting with a high penalty for distortion and gradually relaxing it, using the output of one stage as the initialization for the next, effectively guiding the algorithm toward a global minimum.
Experimental Results
The algorithm was evaluated on two primary simulated discrete sources: a memoryless i.i.d. Bernoulli(0.5) source and a Binary Symmetric Markov Source (BSMS) with a transition probability of $q=0.2$.
Convergence and Performance
In simulations with $n=10,000$ and a context length of $k=8$, the iterative algorithm demonstrated rapid convergence. For the memoryless source, convergence occurred in fewer than 60 iterations; for the Markov source, it averaged fewer than 15.
The resulting rate-distortion curves closely tracked the theoretical Shannon limits for the memoryless source. For the Markov source, the performance fell consistently between the established theoretical upper and lower bounds, validating the algorithm's effectiveness in handling sources with memory.
Discussion and Limitations
While the algorithm represents a significant step forward, it faces two primary constraints:
- Context Complexity: Although complexity is linear in $n$, it is exponential in the context length $k$ ($O(n|X|^{k+1})$). This limits the algorithm's ability to capture very long-range dependencies in data.
- Local Minima: The iterative method is a heuristic. While the authors mathematically prove that the "energy" (cost) decreases at each step—guaranteeing convergence to at least a local minimum—it does not strictly guarantee the global optimum in all cases.
Conclusion
By combining linearization with the Viterbi algorithm, this research provides a practical path toward universal lossy compression. The ability to achieve near-optimal rate-distortion performance with linear complexity in sequence length offers a promising alternative to slow MCMC-based methods. Future work focusing on optimized "cooling schedules" for slope annealing may further enhance the algorithm's ability to reach global optima within bounded computational limits.
Summary updated