Abstract
In this paper, we propose a new deep image compression framework called Complexity and Bitrate Adaptive Network (CBANet), which aims to learn one single network to support variable bitrate coding under different computational complexity constraints. In contrast to the existing state-of-the-art learning based image compression frameworks that only consider the rate-distortion trade-off without introducing any constraint related to the computational complexity, our CBANet considers the trade-off between the rate and distortion under dynamic computational complexity constraints. Specifically, to decode the images with one single decoder under various computational complexity constraints, we propose a new multi-branch complexity adaptive module, in which each branch only takes a small portion of the computational budget of the decoder. The reconstructed images with different visual qualities can be readily generated by using different numbers of branches. Furthermore, to achieve variable bitrate decoding with one single decoder, we propose a bitrate adaptive module to project the representation from a base bitrate to the expected representation at a target bitrate for transmission. Then it will project the transmitted representation at the target bitrate back to that at the base bitrate for the decoding process. The proposed bit adaptive module can significantly reduce the storage requirement for deployment platforms. As a result, our CBANet enables one single codec to support multiple bitrate decoding under various computational complexity constraints. Comprehensive experiments on two benchmark datasets demonstrate the effectiveness of our CBANet for deep image compression.
The Challenge of Rigid Compression Models
Traditional image compression standards like JPEG are inherently adjustable, allowing users to trade off quality for file size. However, modern Deep Learning-based Image Compression (DIC) models are notoriously rigid. Typically, a specific model is trained for a single "Rate-Distortion" (RD) point. To support multiple bitrates across diverse hardware—such as a low-power smartphone, a mid-range PC, and a high-end workstation—developers would traditionally need to train and store dozens of separate models.
This "storage explosion" makes deploying DIC in real-world scenarios impractical. CBANet addresses this by creating a "one-size-fits-all" architecture that can dynamically trade off image quality for either lower data usage (bitrate) or lower power consumption (computational complexity) on the fly.
Proposed Architecture
CBANet introduces two primary modules to achieve its adaptivity: the Complexity Adaptive Module (CAM) and the Bitrate Adaptive Module (BAM).
Complexity Adaptive Module (CAM)
Instead of a single monolithic decoder, the CAM uses a multi-branch structure. Each branch contributes a "residual" component to the final image. For low-power devices, the system can use only the first branch to achieve fast decoding with lower quality. For high-performance workstations, all branches can be utilized to maximize visual fidelity.
Bitrate Adaptive Module (BAM)
This module consists of a Bitrate Adaptive Layer (BAL) at the encoder and an Inverse Bitrate Adaptive Layer (IBAL) at the decoder. These layers use small convolutional networks to "project" the latent representation from a base bitrate to a target bitrate. This allows the core network to process different bitrates without requiring entirely different sets of weights for each rate.
Key Insights and Training Strategy
- Decoder-Centric Design: The authors focus adaptivity on the decoder, which is the component most likely to run on diverse consumer hardware with varying battery and CPU limits.
- Disentangled Optimization: Training is split into two steps—complexity first, then bitrate—to avoid the instability of optimizing for two moving targets simultaneously.
- Efficiency: Fine-tuning a BAM for a new bitrate is 10x faster than training a new model from scratch, significantly easing system maintenance.
Experimental Results
Evaluation on the Kodak and CLIC 2020 datasets demonstrated the practical benefits of the CBANet framework:
- Storage Efficiency: CBANet achieved an 85.9% to 92.0% reduction in the number of parameters required to support multiple bitrates and complexity levels compared to the baseline of storing multiple models.
- Performance: The CBANet-AR variant outperformed fixed-bitrate baselines on the CLIC dataset in several scenarios, proving that adaptivity does not necessitate a loss in quality.
- Decoding Speed: On an Intel Core i5 CPU, the "low-complexity" mode provided a 67.69% speedup in decoding time compared to the full-complexity baseline.
Limitations and Future Work
While highly effective, the BAM has a limited "reach"; performance can drop by approximately 0.5dB when the target bitrate is very far from the training base bitrate. Future research may explore making the encoder side equally "slimmable" to benefit power-constrained devices during the upload process.
Summary updated