PatchSVD: A Non-uniform SVD-based Image Compression Algorithm

Zahra Golpayegani, Nizar BouguilaIcpram 2024

TL;DR

This paper introduces PatchSVD, a novel image compression algorithm that leverages Singular Value Decomposition (SVD) in a non-uniform, region-based manner. By adaptively applying SVD to image patches based on their complexity, PatchSVD aims to achieve better compression ratios and visual quality, particularly in images with sharp intensity changes like text.

What Problem Does This Paper Address?

Storing and transmitting the ever-increasing volume of image data presents a significant challenge, especially for devices with limited storage capacity or bandwidth. While traditional image compression algorithms like JPEG offer high compression ratios, they often introduce noticeable artifacts, particularly in areas with sharp details or text, due to their block-based, uniform processing assumptions. Lossless compression, on the other hand, achieves limited compression ratios. Existing methods for improving compression in specific regions (Regions of Interest or ROIs) often require manual user input or complex deep learning models that demand substantial computational resources. This paper addresses the need for an efficient, automated image compression technique that can preserve details in complex image regions while achieving high compression ratios, without the need for user intervention or extensive training.

Methods

The core of PatchSVD lies in its non-uniform application of SVD. The algorithm first computes a low-rank SVD approximation of the entire image and then subtracts this approximation from the original image. This difference image highlights areas where the initial SVD approximation was less effective, indicating regions with higher complexity or information content.

The image is then divided into patches. A "score function" is applied to each patch based on the difference image to quantify its complexity. Patches are ranked based on these scores, and a predetermined number of the most "complex" patches are identified. These complex patches are then compressed using SVD with a higher rank (more singular values retained), while the simpler patches are compressed with a lower rank. This adaptive approach allows for more aggressive compression in less critical areas and more careful compression in detail-rich regions, leading to a better overall trade-off between compression ratio and visual quality. The paper also discusses the mathematical formulation for calculating the compression ratio (CR) based on the number of complex and simple patches and their respective SVD ranks.

Datasets

The authors evaluated their method on two datasets:

  • Kodak dataset: A classic dataset containing 24 full-color images, frequently used for image compression algorithm evaluation.
  • CLIC (Challenge on Learned Image Compression) dataset: Introduced in 2020, this dataset includes both RGB and grayscale images and was used in its test split, comprising 428 samples.

The paper notes that these datasets contain original PNG format images, which were not pre-converted to JPEG, ensuring a fair comparison.

Key Insights and Ideas

  • Non-uniformity is key: The paper demonstrates that applying compression uniformly across an image, as in standard SVD or JPEG, can be suboptimal. Adapting compression based on local image complexity is crucial for better quality at high compression ratios.
  • Difference image as a complexity indicator: The subtraction of a low-rank SVD approximation from the original image effectively highlights areas that require more detailed representation, serving as an intuitive and effective complexity map.
  • Patch-based SVD offers flexibility: By processing the image in patches and assigning different SVD ranks, PatchSVD provides a flexible framework that can be tailored to specific compression needs and image characteristics.
  • Text and sharp edges benefit significantly: The qualitative results, particularly the comparison with JPEG on text images, highlight PatchSVD's advantage in preserving legibility in areas with sharp intensity transitions.

Key Results

  • Outperforms SVD: PatchSVD consistently outperforms standard SVD in terms of SSIM, PSNR, and MSE metrics across both the Kodak and CLIC datasets.
  • Competitive with JPEG: While JPEG sometimes achieves higher overall compression ratios, PatchSVD demonstrates superior performance in preserving details, especially in images containing text, as visually demonstrated in Figure 5.
  • Patch size matters: The performance of PatchSVD is influenced by patch size. Excessively large patches can reduce the sensitivity of the score function, while very small patches might not capture sufficient local context. The paper suggests optimal patch sizes (e.g., 10 for CLIC, 16 for Kodak) based on experimental results.
  • Standard deviation as a good score function: Among the tested score functions (mean, max, standard deviation), the standard deviation of pixel values within a patch yielded the best results, indicating its effectiveness in identifying complex regions.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that JPEG might still achieve higher compression ratios in some cases, though at the cost of more noticeable artifacts.
  • The effectiveness of the score function can be influenced by the chosen patch size.
  • The algorithm falls back to standard SVD for very large patch sizes, indicating a limitation in its adaptive capability beyond a certain point.
  • Future Work:
    • Investigating the impact of PatchSVD on downstream tasks (e.g., image recognition, object detection).
  • Applying PatchSVD to medical imaging, where preserving high-resolution diagnostic information in specific regions is critical.
  • Developing more customized score functions, potentially incorporating expert knowledge or domain-specific features, to further enhance performance.

Summary updated

BibTeX
@inproceedings{golpayegani2024patchsvd,
  author = {Zahra Golpayegani and Nizar Bouguila},
  title = {{PatchSVD: A Non-uniform SVD-based Image Compression Algorithm}},
  booktitle = {Icpram},
  year = {2024},
}
Figure