Towards Efficient Image Compression Without Autoregressive Models

Muhammad Salman Ali, Yeongwoong Kim, Maryam Qamar, Sung-Chang Lim, Donghyun Kim, Chaoning Zhang, Sung-Ho Bae, Hui Yong Kim

Learned Image Compression (LIC) has seen rapid advancements, frequently surpassing the performance of conventional codecs. However, achieving state-of-the-art compression rates typically relies on computationally heavy architectures. This paper introduces a novel "correlation loss" that forces latent features to be spatially independent during training. By shifting the burden of handling data dependencies from the model architecture to the loss function, this approach achieves up to 98% of the performance of slow autoregressive models while being up to 50 times faster during decoding.

The Bottleneck of Autoregressive Models

In LIC, models transform images into a "latent space" to be compressed. To do this efficiently, the model needs to accurately predict the probability distribution of these latents. Most standard models assume that latent elements are independent, but in reality, they are highly correlated.

To fix this discrepancy, researchers typically use Autoregressive (AR) context models. These models predict the value of a pixel based on previously decoded neighbors. While AR models are highly accurate, they are inherently sequential—pixel $B$ cannot be calculated until pixel $A$ is finished. This prevents parallelization on GPUs, rendering them incredibly slow and impractical for real-time applications or edge devices. The core challenge addressed by this paper is achieving AR-level compression performance without the associated speed penalty.

Proposed Method: Correlation Loss ($L_{corr}$)

Instead of building a complex, slow architecture to handle spatial correlations during inference, the authors propose a novel Correlation Loss ($L_{corr}$) to eliminate them during the training phase.

  1. Decorrelation at Training: During training, the model calculates a correlation map within a local $k \times k$ window for the latent features.
  2. Point Masking: A "Point Mask" is applied to this map to ignore self-correlation (the center pixel's correlation with itself) while penalizing correlations with all surrounding neighbors.
  3. Optimization: The $L_2$ norm of this masked correlation map is added to the standard Rate-Distortion (RD) loss function.
  4. Plug-and-Play: This approach acts as a plug-in and does not require changing the model's architecture. Once the model is trained to produce decorrelated latents, the simple, fast "independent" probability models already used in LIC become significantly more accurate.

Because the correlation loss is only active during training, the inference and decoding times remain completely unchanged, effectively providing a "free" performance boost to the end-user.

Visual comparison of latent features and correlation maps with and without the proposed correlation loss.

Key Insights and Results

The most profound insight of this work is that we do not necessarily need smarter, heavier models to handle complex data dependencies; instead, we can use smarter loss functions to force the data to fit simpler, faster models. Furthermore, forcing decorrelation helps the model preserve more detailed texture information, as the "hyperprior" is forced to learn distinctive features rather than relying on redundant spatial patterns.

The authors evaluated their method on the Kodak lossless image suite (after training on the Vimeo-90k dataset) and compared it against standard AR-based models and several fast baselines:

  • Baseline Improvement: Simply adding the correlation loss to "Cheng’s Hyperprior" (a common baseline) yielded a 9.5% BD-Rate gain with zero increase in inference time.
  • Synergy with Parallel Models: The method works exceptionally well when combined with existing "semi-parallel" models like Checkerboard (Ckbd) and ChARM. These models are already faster than AR models but usually lag in quality; the correlation loss bridges that quality gap almost entirely.
  • Speed vs. Efficiency: When combined with Checkerboard-CM, the method captures 90% of the gains typically only seen in slow AR models while being 50x faster. Combined with ChARM-CM, it captures 98% of the AR-based gains while being 30x faster.
BD-Rate gains versus inference time, illustrating the superior performance-complexity trade-off of the proposed method.

Limitations and Future Directions

While highly effective, the authors note that the correlation loss exhibits diminishing returns at higher bitrates. As the bits-per-pixel (bpp) increases, the inherent correlation in the latents naturally decreases, meaning the loss function has less "work" to do and provides smaller marginal gains. Additionally, while tested on CNN and Swin Transformer architectures, the optimal window size ($k \times k$) and scaling factor for the correlation loss might require tuning for radically different architectures.

Future work may explore different mask designs beyond the Point Mask to investigate the effects of spatially relaxed decorrelation constraints, potentially unlocking even greater efficiencies in learned image compression.

Summary updated

BibTeX
@inproceedings{ali2023towards,
  author = {Muhammad Salman Ali and Yeongwoong Kim and Maryam Qamar and Sung-Chang Lim and Donghyun Kim and Chaoning Zhang and Sung-Ho Bae and Hui Yong Kim},
  title = {{Towards Efficient Image Compression Without Autoregressive Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=1ihGy9vAIg},
}
Figure