TL;DR
Neural image compression models achieve state-of-the-art rate-distortion performance but are computationally expensive, hindering widespread adoption. This paper introduces a method to optimize neural image compression architectures for computational efficiency, achieving over 50% reduction in decoder runtime without sacrificing rate-distortion performance.
What Problem Does This Paper Address?
Neural networks have revolutionized image compression, often outperforming traditional codecs like JPEG and BPG in terms of rate-distortion (how much data is used versus the quality of the reconstructed image). However, these powerful neural models are computationally intensive, particularly the decoder. Since images are typically decompressed many more times than they are compressed (e.g., when viewed on a phone), efficient decoding is crucial for practical deployment. This paper addresses the challenge of making these high-performing neural image compression models computationally feasible by focusing on optimizing their decoder architectures.
Methods
The authors tackle computational efficiency through a multi-pronged approach:
- Architecture Analysis: They begin by analyzing the complexity of a popular neural image compression architecture, the Mean-Scale Hyperprior, focusing specifically on the decoder.
- GDN Activation Optimization: They simplify the Generalized Divisive Normalization (GDN) activation function, a common component in these networks. By removing square root operations and simplifying parameters, they achieve a significant speed-up in GDN computations with no loss in performance.
- Automated Architecture Search (MorphNet + Group Lasso): They employ an adaptation of the MorphNet technique, which uses a Group Lasso regularization to automatically prune filters (channels) from the network. This process is guided by a FLOP (floating-point operation) regularizer, directly optimizing for computational cost. They use an over-parameterized "Larger Mean-Scale" network as a starting point and then use this regularization to discover more efficient architectures, termed "Computationally Efficient Neural Image Compression" (CENIC) models.
- Trade-off Analysis: They systematically explore the trade-offs between rate-distortion performance and runtime performance across different regularization strengths and distortion metrics (MSE and MS-SSIM).
Datasets
The primary dataset used for training and evaluation is the Kodak image dataset. This is a standard benchmark dataset in image compression research.
Key Insights and Ideas
- Decoder Efficiency is Key: The paper strongly emphasizes that for image compression, decoder efficiency is paramount due to the asymmetric nature of compression (compress once, decompress many times).
- GDN Simplification Pays Off: Even small modifications to standard components like GDN can yield noticeable speed-ups without impacting rate-distortion performance.
- Automated Search is Crucial: The search space for optimal neural network architectures is vast. Automated techniques like MorphNet are essential for efficiently discovering computationally efficient models.
- Loss Function Matters for Speed: Optimizing for MS-SSIM (which correlates better with human perception) appears to make it easier to find computationally efficient models compared to optimizing for MSE.
- Capacity vs. Efficiency: Simply increasing the number of parameters (capacity) in a well-tuned architecture doesn't necessarily lead to better rate-distortion performance and can significantly increase runtime.
Key Results
- The proposed optimization techniques reduced decoder runtime requirements by over 50% for a state-of-the-art neural architecture.
- Simplifying the GDN activation function resulted in a 14.33 ms reduction (21.4% savings) within the GDN operation and a 2.7% overall speed-up in the Mean-Scale models.
- The automated architecture search generated 207 unique decoder architectures.
- On a CPU, the Mean-Scale model achieved an average runtime of 230 ms, while on a GPU (NVIDIA TitanXp), it achieved 62 ms, demonstrating a 3.7x speed-up.
- MS-SSIM optimized models showed a tendency to cluster towards lower runtimes compared to MSE optimized models, indicating that MS-SSIM is easier to optimize for FLOP performance.
Limitations and Future Work
- CPU Focus: While the paper acknowledges GPU performance, the primary analysis and results are based on CPU performance.
- Encoder Optimization: The current work focuses solely on decoder optimization. The authors suggest that for real-time applications, optimizing both encoder and decoder jointly is necessary.
- Memory Constraints: The paper notes that large intermediate tensors in fully convolutional networks can stress caches and memory systems, an aspect not deeply investigated in this work. Future research could explore memory system impacts and memory bandwidth limitations.
- Perceptual Metrics: The authors suggest that researching more perceptually-based image metrics that are differentiable would lead to more optimal run-time-distortion trade-offs.
Summary updated