Observer Dependent Lossy Image Compression

Maurice Weber, Cédric Renggli, Helmut Grabner, Ce Zhang

TL;DR

This paper introduces a novel approach to lossy image compression that considers both human visual perception and machine-based image classification simultaneously. By developing a flexible loss function, they demonstrate that image compression can be optimized to preserve classification accuracy much better than traditional methods, even without retraining classifiers, while still maintaining competitive visual quality.

What Problem Does This Paper Address?

Traditional lossy image compression algorithms primarily focus on optimizing for human visual perception, aiming to minimize distortions that are noticeable to the human eye. However, with the increasing prevalence of machine vision systems (e.g., for autonomous driving, medical diagnosis, surveillance), there's a growing need for compression methods that preserve information critical for image classification and other computer vision tasks. The challenge lies in the fact that what's perceptually pleasing to humans might not be what's most informative for a classifier, and vice-versa. This paper addresses this gap by proposing a unified framework that allows for a tunable trade-off between human visual quality and classification accuracy in deep neural network-based image compression.

Methods

The authors leverage a recurrent neural network (RNN)-based image compression architecture, similar to existing state-of-the-art methods. The core innovation lies in their proposed family of loss functions. They introduce two primary loss components:

  • Human Visual Perception Loss (dH): This uses the differentiable MS-SSIM (multiscale structural similarity) metric, a well-established measure that correlates well with human perception of image quality.
  • Classification Loss (dc,L): This is a novel feature reconstruction loss. It uses deep features extracted from intermediate layers of a pre-trained Convolutional Neural Network (CNN) classifier. The idea is to encourage the compression system to preserve features that are important for the classifier's decision-making process.

By combining these two losses with a weighting parameter 'α', they create a flexible objective function: da,L(x, x̂) = (1 − α) · dH(x, x̂) + α · dc,L(x, x̂). This allows them to interpolate between optimizing purely for human perception (α=0) and purely for classification (α=1), or any point in between. They also investigate different layer choices within the CNN for the feature reconstruction loss, finding that a combination of early and deep layers offers the best generalization across different CNN architectures.

Datasets

  • Training: The models were trained on the ImageNet-1K dataset.
  • Evaluation:
    • ImageNet-1K: Used for evaluating classification accuracy with various CNN architectures.
  • Kodak Photo CD dataset: Used for evaluating human visual perception (MS-SSIM).
  • CUB-200-2011 and Stanford Dogs: Used for evaluating fine-grained visual categorization tasks.

Key Insights and Ideas

  • Observer-Dependent Compression is Crucial: The paper strongly advocates for moving beyond a single "quality" metric and considering the specific observer (human or machine) when compressing images.
  • Classification-Preserving Compression is Achievable: Deep learning models can be trained to preserve classification accuracy at high compression rates without needing to retrain the classifiers themselves. This is a significant practical advantage.
  • Feature Reconstruction is Key for Classification: Using deep features from pre-trained CNNs as a loss function is highly effective in guiding the compression towards preserving discriminative information for classification.
  • Generalizability of Learned Features: The success of the classification-oriented compression across different CNN architectures suggests that there are shared, fundamental visual features learned by these networks.
  • Pronounced Trade-off at Low Bitrates: The trade-off between human visual quality and classification accuracy becomes much more significant at lower bitrates, highlighting the importance of this optimization for efficient compression.

Key Results

  • Classification Accuracy: The proposed RNN-C (classification-optimized) method significantly outperforms traditional codecs (BPG, JPEG, WebP) and human-optimized deep compression methods (RNN-H, Mentzer et al. [32]) in terms of preserved classification accuracy on ImageNet-1K, especially at low bitrates. For instance, at 0.25 bpp, Inception-ResNet classification accuracy dropped by only 2% with RNN-C, compared to larger drops with other methods.
  • Human Visual Perception: The human-optimized RNN-H achieved competitive MS-SSIM scores, comparable to or better than BPG, and significantly better than JPEG and WebP. RNN-C, while optimized for classification, still achieved competitive MS-SSIM scores, often comparable to JPEG.
  • Trade-off Demonstration: Figures clearly show that increasing the classification-oriented component (α) leads to improved classification accuracy but decreased MS-SSIM, and vice-versa. A small shift towards classification (e.g., α=0.25) yielded substantial accuracy gains with only minor MS-SSIM reduction.
  • Generalization: The RNN-C method demonstrated good generalization across various CNN architectures (DenseNet-121, Inception-ResNet-V2, ResNet-50, VGG-16, etc.) for classification tasks.

Limitations and Future Work

  • Limitations:
    • The MS-SSIM metric is an approximation of human visual perception and not a perfect model.
  • The classification loss can introduce checkerboard artifacts, which are visually unappealing but do not significantly harm classification accuracy.
  • The study primarily focuses on classification as the machine observer task.
  • Future Work:
    • Investigate other human-centric distortion metrics that might correlate better with human perceptual similarity.
  • Explore the generalization of the proposed approach to other computer vision tasks beyond classification, such as image segmentation and object detection.
  • Further explore the trade-off by investigating different types of distortion measures for the human-oriented training loss.

Summary updated

BibTeX
@inproceedings{weber2020observer,
  author = {Maurice Weber and Cédric Renggli and Helmut Grabner and Ce Zhang},
  title = {{Observer Dependent Lossy Image Compression}},
  booktitle = {GCPR},
  year = {2020},
  url = {https://openreview.net/forum?id=rqL9ZmBqgt},
}
Figure