Ultra High Fidelity Image Compression with 𝓁∞-constrained Encoding and Deep Decoding

Xi Zhang, Xiaolin WuarXiv 2020

Abstract

In many professional fields, such as medicine, remote sensing and sciences, users often demand image compression methods to be mathematically lossless. But lossless image coding has a rather low compression ratio (around 2:1 for natural images). The only known technique to achieve significant compression while meeting the stringent fidelity requirements is the methodology of $\ell_\infty$-constrained coding that was developed and standardized in nineties. We make a major progress in $\ell_\infty$-constrained image coding after two decades, by developing a novel CNN-based soft $\ell_\infty$-constrained decoding method. The new method repairs compression defects by using a restoration CNN called the $\ell_\infty\mbox{-SDNet}$ to map a conventionally decoded image to the latent image. A unique strength of the $\ell_\infty\mbox{-SDNet}$ is its ability to enforce a tight error bound on a per pixel basis. As such, no small distinctive structures of the original image can be dropped or distorted, even if they are statistical outliers that are otherwise sacrificed by mainstream CNN restoration methods. More importantly, this research ushers in a new image compression system of $\ell_\infty$-constrained encoding and deep soft decoding ($\ell_\infty\mbox{-ED}^2$). The $\ell_\infty \mbox{-ED}^2$ approach beats the best of existing lossy image compression methods (e.g., BPG, WebP, etc.) not only in $\ell_\infty$ but also in $\ell_2$ error metric and perceptual quality, for bit rates near the threshold of perceptually transparent reconstruction. Operationally, the new compression system is practical, with a low-complexity real-time encoder and a cascade decoder consisting of a fast initial decoder and an optional CNN soft decoder.

Introduction

In specialized domains like medical imaging, satellite surveillance, and scientific research, image fidelity is paramount. Standard lossy compression algorithms, such as JPEG or BPG, are typically optimized for human visual aesthetics by minimizing the $\ell_2$ (Mean Squared Error) metric. While effective for consumer photography, this approach tends to "average out" small, statistically rare details—such as a minute lesion in a medical scan or a small object in satellite imagery—treating them as noise.

Mathematically lossless compression remains the gold standard for these fields but is limited by low compression ratios (typically around 2:1). To bridge this gap, researchers have revisited $\ell_\infty$-constrained coding, also known as "near-lossless" coding. This technique guarantees that no single pixel in the reconstructed image deviates from the original by more than a user-defined tolerance ($\tau$).

The $\ell_\infty\text{-ED}^2$ Framework

The proposed $\ell_\infty\text{-ED}^2$ system combines a traditional, low-complexity encoder with a modern deep-learning "soft" decoder to achieve high compression ratios without sacrificing critical details.

Encoder and Hard Decoder

The system utilizes a traditional predictive-quantization scheme (similar to CALIC) to ensure every pixel remains within the specified error bound $\tau$. This stage is computationally efficient, making it suitable for real-time data acquisition on resource-constrained hardware like satellites or medical sensors.

$\ell_\infty\text{-SDNet}$ (Soft Decoder)

The core innovation is the $\ell_\infty\text{-SDNet}$, a Convolutional Neural Network (CNN) designed to "repair" artifacts introduced during the initial decoding process. Unlike standard CNN restorers that attempt to "guess" missing information, the $\ell_\infty\text{-SDNet}$ operates within a mathematically guaranteed "safety zone" provided by the $\ell_\infty$ bound.

Key technical features include:

  • Quasi-$\ell_\infty$ Loss: While standard training uses MSE, the authors developed a "Quasi-$\ell_\infty$" loss function. It employs a fourth-power penalty ($x^4$) to aggressively penalize any pixel drifting outside the allowed error bound while remaining differentiable for backpropagation.
  • Truncated Activation: The final layer uses a custom activation function that clips the output to ensure it stays within $\pm\tau$ of the hard-decoded value.
  • Efficient Architecture: By using dilated convolutions, the network maintains a large receptive field with a relatively shallow and fast architecture.

Experimental Results

The model was trained on the DIV2K dataset and evaluated against standard benchmarks (LIVE1, Kodak, Urban100) and a specialized Aerial Dataset of high-resolution satellite imagery.

  • Superior Fidelity: The $\ell_\infty\text{-ED}^2$ system consistently outperformed BPG, WebP, and JPEG 2000 in both PSNR and $\ell_\infty$ error metrics at bitrates near the "perceptually transparent" threshold (0.8 to 1.0 bits per pixel).
  • Detail Preservation: Qualitative analysis shows that while BPG often erases small, high-frequency structures (like small hardware components on a spacecraft), the proposed method preserves them perfectly due to the strict per-pixel bound.
  • Computational Efficiency: The $\ell_\infty\text{-SDNet}$ is approximately half the size of the popular DnCNN model and three times faster, facilitating practical deployment.

Conclusion

The $\ell_\infty\text{-ED}^2$ approach represents a significant advancement in high-fidelity image compression. By integrating traditional mathematical constraints with deep learning, it offers a practical solution for fields where data integrity cannot be compromised. While optimized for high bitrates, future research may explore integrating these constraints into end-to-end learned compression frameworks for even broader applicability.

Summary updated

Abstract

In many professional fields, such as medicine, remote sensing and sciences, users often demand image compression methods to be mathematically lossless. But lossless image coding has a rather low compression ratio (around 2:1 for natural images). The only known technique to achieve significant compression while meeting the stringent fidelity requirements is the methodology of $\ell_\infty$-constrained coding that was developed and standardized in nineties. We make a major progress in $\ell_\infty$-constrained image coding after two decades, by developing a novel CNN-based soft $\ell_\infty$-constrained decoding method. The new method repairs compression defects by using a restoration CNN called the $\ell_\infty\mbox{-SDNet}$ to map a conventionally decoded image to the latent image. A unique strength of the $\ell_\infty\mbox{-SDNet}$ is its ability to enforce a tight error bound on a per pixel basis. As such, no small distinctive structures of the original image can be dropped or distorted, even if they are statistical outliers that are otherwise sacrificed by mainstream CNN restoration methods. More importantly, this research ushers in a new image compression system of $\ell_\infty$-constrained encoding and deep soft decoding ($\ell_\infty\mbox{-ED}^2$). The $\ell_\infty \mbox{-ED}^2$ approach beats the best of existing lossy image compression methods (e.g., BPG, WebP, etc.) not only in $\ell_\infty$ but also in $\ell_2$ error metric and perceptual quality, for bit rates near the threshold of perceptually transparent reconstruction. Operationally, the new compression system is practical, with a low-complexity real-time encoder and a cascade decoder consisting of a fast initial decoder and an optional CNN soft decoder.
BibTeX
@misc{zhang2020ultra,
  author = {Xi Zhang and Xiaolin Wu},
  title = {{Ultra High Fidelity Image Compression with 𝓁∞-constrained Encoding and Deep Decoding}},
  year = {2020},
  eprint = {2002.03482},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.03482},
}
Figure