Abstract
Lossless image compression is traditionally viewed as a density estimation problem. While deep learning models like autoregressive networks offer high compression efficiency, they are often computationally prohibitive. This paper introduces SReC (Super-Resolution based Compression), a novel algorithm that frames lossless compression as an iterative super-resolution task. By decomposing images into a hierarchy of resolutions and utilizing autoregressive sub-pixel prediction, SReC achieves state-of-the-art bitrates while being significantly faster and more lightweight than existing deep generative models.
Introduction
The goal of lossless image compression is to represent an image using the minimum number of bits without any loss of information. This is fundamentally a problem of modeling the probability distribution of pixels; a more accurate model allows entropy coders, such as Arithmetic Coding (AC), to reach the theoretical Shannon entropy limit.
Existing deep learning approaches generally fall into two categories: autoregressive models (e.g., PixelCNN), which are highly accurate but slow due to sequential pixel prediction, and latent vector models (e.g., L3C), which are faster but often fail to capture fine-grained details. SReC bridges this gap by using a hierarchical super-resolution framework that allows for massive parallelization on GPUs while maintaining high-fidelity probabilistic modeling.
Methodology
Iterative Upscaling
SReC operates by decomposing a high-resolution image into a hierarchy of lower resolutions. The compression process begins by storing a very small low-resolution version of the image (typically $1/8^{th}$ of the original dimensions) as raw pixel data. The model then performs three successive iterations of "lossless super-resolution" to reconstruct the original image.
Autoregressive Sub-pixel Prediction
At each upscaling step, the model predicts four high-resolution pixels for every single low-resolution pixel (a $2 \times 2$ block). To maximize efficiency, SReC employs an autoregressive strategy within these blocks. It predicts the first pixel, then the second (conditioned on the first), and then the third (conditioned on the first two).
A critical innovation in SReC is the use of the "Free" Pixel. Because the low-resolution pixel is defined as the average of the four high-resolution pixels, the fourth pixel is mathematically determined once the first three are known. By calculating this fourth pixel rather than predicting it, the model significantly reduces the amount of data that needs to be stored.
Probability Modeling and Parallelism
Instead of predicting discrete color values, the underlying Convolutional Neural Network (CNN) outputs the parameters of a Discretized Mixture of Logistics. This continuous distribution is then quantized and fed into an Arithmetic Coder. Because the predictions for each $2 \times 2$ block are independent of other blocks at the same resolution level, the entire image can be processed in parallel on a GPU, leading to substantial speed gains over pixel-by-pixel autoregressive models.
Experimental Results
Compression Performance
The authors evaluated SReC on the Open Images benchmark. On lossless PNG versions of the dataset, SReC achieved a compression rate of 2.70 bits per subpixel (bpsp). This outperforms traditional codecs like WebP (3.03 bpsp) and FLIF (2.87 bpsp), as well as previous deep learning models like L3C (2.99 bpsp).
Computational Efficiency
SReC demonstrates remarkable efficiency across several metrics:
- Speed: It is approximately 55× faster than IDF, the previous state-of-the-art in deep lossless compression, when processing high-resolution images.
- Model Size: The model is highly compact, requiring only 4.2 million parameters, compared to the 84 million parameters required by IDF.
- Scalability: Unlike many deep models that struggle with memory constraints at high resolutions, SReC scales gracefully to images as large as $960 \times 960$.
Conclusion and Future Work
SReC demonstrates that framing compression as a super-resolution task provides natural constraints that improve both efficiency and speed. While the model sets a new standard for deep lossless compression, challenges remain. Currently, a significant portion of the bitrate (approx. 24%) is dedicated to "rounding bits" required to reconcile floating-point averages with integer pixel values. Future research into more efficient handling of these rounding errors and optimizing the decoding synchronization between the CPU and GPU could further enhance SReC's utility in real-world applications.
Summary updated