TL;DR
Researchers from National Chiao Tung University (NCTU) developed an end-to-end learned image compression system for the 2018 Challenge on Learned Image Compression (CLIC). By combining a deep autoencoder with a specialized "importance net," the system achieves spatially varying bit allocation, significantly outperforming JPEG and approaching the performance of the high-efficiency BPG codec at low bitrates.
What Problem Does This Paper Address?
Traditional image compression (like JPEG) relies on hand-crafted algorithms to decide which information to keep and which to discard. While effective, these methods don't adapt to the specific semantic content of an image.
In the realm of deep learning, the challenge is creating a "lossy" compressor that is fully differentiable. Standard quantization (rounding numbers to save space) has a zero derivative almost everywhere, which "breaks" the backpropagation needed for training. Furthermore, not all parts of an image are equally important; a clear blue sky needs fewer bits than a complex texture like a brick wall. The authors tackle the dual challenge of making quantization trainable and implementing an efficient, content-aware bit allocation strategy.
Methods
The NCTU proposal utilizes a three-part architecture:
- The Autoencoder: Based on the work of Mentzer et al., the encoder uses convolutional layers and 15 residual blocks to condense an image into a set of feature maps. The decoder performs the inverse to reconstruct the image.
- The Importance Net: This separate neural network analyzes the encoder's features to produce an "importance map." This map acts as a spatial mask, determining the bit depth for different regions. Essentially, it tells the system: "use more bits for the detailed areas and fewer for the simple ones."
- Quantization and Entropy Coding:
- Soft-Quantization: To allow for training via gradient descent, the authors use a "soft" differentiable approximation of quantization during the training phase.
- Arithmetic Coding: For the final bitstream, they implemented a context-adaptive binary arithmetic coder inspired by the JPEG2000 standard. It processes data bitplane by bitplane (from most significant to least significant), using flags to efficiently skip blocks of zeros.
The entire system is optimized using a composite loss function that balances the estimated bitrate against distortion, measured by both Mean Squared Error (MSE) and Multi-Scale Structural Similarity (MS-SSIM).
Datasets
- Training: 10,000 images from the ImageNet (ILSVRC) 2012 dataset. The researchers used random 128x128 crops to train the network.
- Testing/Validation: The Kodak PhotoCD dataset and the CLIC 2018 test set (consisting of 287 images).
Key Insights and Ideas
- Spatially Varying Bit Depth: Instead of a global compression setting, the importance map allows the model to truncate the bit depth of feature maps locally. This mimics how human vision prioritizes detail in complex areas over uniform regions.
- Hybrid Distortion Metric: By training on a weighted sum of MSE and MS-SSIM, the model attempts to satisfy both mathematical fidelity (PSNR) and perceived visual quality.
- JPEG2000 Inspiration for Deep Learning: While the features are learned, the authors found success by applying "old school" entropy coding principles—like bitplane coding and significance flags—to the resulting deep feature maps.
Key Results
The system was designed to meet a strict constraint of 0.15 bits-per-pixel (bpp).
| Method | BITS/PIXEL | PSNR (dB) | MS-SSIM |
|---|---|---|---|
| JPEG | 0.155 | 22.1 | 0.7568 |
| Ours | 0.126 | 26.3 | 0.9242 |
| BPG | 0.153 | 29.2 | 0.9425 |
The NCTU system significantly outperformed JPEG in both objective (PSNR) and structural (MS-SSIM) metrics while using fewer bits. While it trailed the state-of-the-art BPG codec by about 3dB in PSNR, its MS-SSIM score (which often correlates better with human perception) was very competitive.
Limitations and Future Work
The authors noted a specific qualitative artifact: color banding. In certain images, the importance map's bit-truncation logic caused visible "steps" or bands in smooth gradients.
Future work involves refining the importance map's impact on subjective quality to eliminate these artifacts. Additionally, while the system outperforms traditional JPEG, there remains a performance gap compared to BPG, suggesting that more sophisticated context modeling in the entropy coder or deeper architectures could yield further gains.
Summary updated