TL;DR
Deep Perceptual Compression (DPC) is a novel image compression framework that replaces traditional mathematical loss functions with a "deep perceptual metric" trained on human judgments. By optimizing for how humans actually see rather than just minimizing pixel-wise error, DPC produces sharper images that are preferred by human evaluators and lead to higher accuracy in downstream tasks like object detection.
What Problem Does This Paper Address?
In the world of lossy image compression, the goal is to throw away as much data as possible while keeping the image looking "good." Traditionally, "good" has been defined by metrics like Mean Squared Error (MSE) or Multi-Scale Structural Similarity (MS-SSIM).
However, the authors point out a growing problem: deep learning models are becoming too good at "gaming" these metrics. A model can achieve a record-breaking MS-SSIM score while producing images that look blurry, contain strange artifacts, or have unreadable text to a human observer. As shown in Figure 1, older, non-learned codecs like BPG often look better to humans despite having lower mathematical scores than recent deep-learned models.
Methods
The authors propose Deep Perceptual Compression (DPC). The core innovation lies in the loss function used during training. Instead of relying solely on MS-SSIM, they incorporate a Deep Perceptual Loss (DPL) based on the Learned Perceptual Image Patch Similarity (LPIPS) metric.
The Architecture
DPC uses an encoder-decoder framework consisting of:
- Encoder/Decoder: Stacked residual blocks.
- Quantizer: A differentiable soft-quantization layer that converts continuous latent representations into discrete bits.
- Entropy Model: A variant of PixelCNN used to estimate the probability distribution of the quantized data for efficient bit-stream generation.
The Secret Sauce: Perceptual Loss
To calculate the DPL, both the original and reconstructed images are fed through a pre-trained VGG-16 network. The model compares the internal activations (feature maps) at five different layers. Because these layers represent how a neural network "perceives" features like edges, textures, and shapes, minimizing the distance between these activations forces the compression model to preserve visually important structures.
To ensure stability, they combine this DPL with a standard MS-SSIM loss in a multi-task learning setup, as illustrated in the architecture overview:
Datasets
- Training: The model was trained on the ImageNet (ILSVRC2012) dataset.
- Evaluation: Performance was tested on four standard benchmarks: Kodak, Urban100, Set14, and Set5.
- Downstream Task: The MS-COCO validation set was used to evaluate how compression affects object detection performance.
Key Insights and Ideas
- Metrics are not Perceptions: The most important takeaway is that optimizing for PSNR or MS-SSIM can actively hurt visual quality in deep learning models. These metrics tend to favor "safe," blurry reconstructions over sharp, detailed ones.
- Sharpness Matters: By using a perceptual loss, DPC recovers high-frequency details that other models smooth away. This is clearly visible in the comparison of facial features and textures in Figure 2 (labeled Figure 5 in the provided artifacts).
- Machines Benefit Too: Interestingly, what looks better to humans also works better for machines. Images compressed with DPC retained more "semantic" information, allowing a pre-trained object detector to maintain higher accuracy compared to images compressed with other methods.
Key Results
- Human Evaluation: In a large-scale study on Amazon MTurk using a Two-Alternative Forced Choice (2AFC) setup, humans consistently preferred DPC over other deep-learned methods (like Mentzer et al. and Ballé et al.) and JPEG-2000. DPC's performance was found to be comparable to BPG, the current state-of-the-art handcrafted codec.
- Object Detection: Using a pre-trained Faster R-CNN, the authors found that DPC suffered the least degradation in Average Precision (AP) at low bitrates. For example, at very low bitrates, DPC significantly outperformed other learned methods, and at 1.0 bits-per-pixel (bpp), it performed nearly as well as BPG.
Limitations and Future Work
- Detector Degradation: While DPC performs better than its peers, all compression methods still cause some drop in object detection accuracy compared to uncompressed images. The authors suggest that fine-tuning detectors specifically on compressed images could bridge this gap.
- Computational Complexity: The paper does not deeply explore the computational overhead of running a VGG-based loss during training or the inference speed of the autoencoder compared to simpler codecs.
- BPG remains a tough competitor: While DPC beats other deep learning models in human preference, BPG is still highly competitive and occasionally superior at specific bitrates, suggesting there is still room for improvement in learned compression architectures.
Summary updated