TL;DR
This paper introduces TinyLIC, a novel learned lossy image coding (LIC) method that achieves state-of-the-art compression performance and significantly improves decoding speed. It achieves this by intelligently aggregating neighborhood information using a new Integrated Convolution and Self-Attention (ICSA) unit for adaptive transforms and a Multistage Context Model (MCM) for efficient entropy coding.
What Problem Does This Paper Address?
Achieving high-efficiency lossy image coding (LIC) that balances superior compression performance with fast computation is a significant challenge. Traditional image coding methods rely on fixed transforms, which struggle to adapt to the diverse and non-stationary nature of image content. While learned approaches have shown promise, they often face limitations in either compression efficiency or computational speed, particularly in the entropy coding stage, which is inherently sequential and can be a bottleneck for decoding. This paper aims to bridge this gap by developing a method that intelligently leverages neighborhood information for both transform and entropy coding, leading to both high compression and high throughput.
Methods
The core of TinyLIC lies in its novel Adaptive Neighborhood Information Aggregation (ANIA) strategy, applied to both the transform and entropy coding modules.
- Integrated Convolution and Self-Attention (ICSA) Unit: This unit forms the content-adaptive transform. It combines a convolutional layer for initial feature embedding and downsampling with multiple Residual Neighborhood Attention Blocks (RNABs). RNABs leverage window-based self-attention to dynamically weigh and aggregate neighborhood information, allowing the transform to adapt to the specific content of the input image. This is an improvement over fixed-weight CNNs that might struggle with out-of-distribution data.
- Multistage Context Model (MCM): This module addresses the challenge of efficient entropy coding. Instead of the sequential, autoregressive approach common in previous methods, MCM processes latent features in a pre-arranged, non-uniform spatial-channel order. It uses a four-stage pipeline with a Generalized Checkerboard Pattern (GCP) to enable parallel processing of latent elements, significantly speeding up decoding while maintaining accurate probability estimation.
These ICSA and MCM units are integrated within a Variational AutoEncoder (VAE) architecture for end-to-end learning of a compact representation.
Datasets
- Training: Flicker2W dataset was used for training.
- Evaluation: The authors evaluated their method on three popular datasets:
- Kodak dataset
- Tecnick dataset
- CLIC professional validation dataset
- NIC_Dataset (a public dataset with various resolutions)
Key Insights and Ideas
- Adaptive Neighborhood Aggregation is Key: The paper strongly advocates that the "vital factor" for high-efficiency LIC is the intelligent aggregation of neighborhood information, not just the complexity of the transform itself.
- Self-Attention for Dynamic Transforms: Using self-attention within the transform module allows for content-adaptive characterization, making it more robust to variations in image content compared to fixed-weight CNNs.
- Parallelism in Entropy Coding: The MCM's multistage, non-uniform grouping strategy is a crucial innovation for overcoming the decoding latency bottleneck inherent in sequential autoregressive models. This allows for significant speedups without sacrificing compression performance.
- Unified Model for Wide Bitrate Range: TinyLIC demonstrates strong performance across a wide range of bitrates with a single, unified model, which is a practical advantage.
Key Results
- Compression Performance: TinyLIC achieves state-of-the-art compression, outperforming VVC Intra by an average of 3% BD-rate gains across multiple datasets. It also shows significant improvements over other prominent learned image coding methods. For example, on the Kodak dataset, it achieves a 21.77% BD-rate improvement against the BPG anchor, surpassing VVC Intra's 20.53%.
- Computational Efficiency: The method offers a remarkable >60x decoding speedup compared to a popular LIC method (Minnen'18) with a comparable model size.
- Complexity-Performance Tradeoff: TinyLIC presents a superior performance-complexity tradeoff, achieving better compression with fewer MACs/pixel and parameters than many competing methods.
- Qualitative Improvements: Visualizations show that TinyLIC produces reconstructions with sharper textures and less noise compared to BPG and VVC Intra.
Limitations and Future Work
- Computational Cost of Self-Attention: While window-based self-attention is used to mitigate computational complexity, it's still a factor. The paper explores different window sizes, suggesting a 7x7 window offers a good balance.
- Model Size: While competitive, the model size is still a consideration for extremely resource-constrained environments.
- Future Work: The authors suggest that the progressive decoding capability of MCM could be beneficial for networked applications with unreliable connections. Further exploration of different self-attention mechanisms and context modeling strategies is also implied.
Summary updated