Synonymous Variational Inference for Perceptual Image Compression

Zijian Liang, Kai Niu, Changshuo Wang, Jin Xu, Ping Zhang

Abstract

Perceptual image compression (PIC) aims to maximize visual realism at low bitrates, often at the cost of pixel-level fidelity. While empirical methods like GANs and perceptual losses have shown success, a rigorous mathematical foundation for PIC has been lacking. This paper introduces Synonymous Variational Inference (SVI), a framework based on semantic information theory that treats perceptually similar images as a "synonymous set" (Synset). By encoding only shared semantic features and hallucinating details at the decoder, SVI provides a theoretical basis for existing divergence-based optimizations. We implement a progressive Synonymous Image Compression (SIC) codec that achieves competitive variable-rate performance with a single model.

Introduction

The paradigm of image compression is shifting from minimizing distortion (MSE/PSNR) to maximizing perceptual quality. This shift is characterized by the Rate-Distortion-Perception (RDP) tradeoff. However, current PIC methods often rely on a collection of empirical techniques without a unified theoretical explanation for why specific divergence measures are effective. This work addresses this gap by applying semantic information theory to perceptual compression.

Theoretical Framework: Synonymous Variational Inference (SVI)

The core innovation is the concept of an "ideal synset" ($\mathcal{X}$)—a group of images that are perceptually indistinguishable or share the same semantic meaning. SVI generalizes standard variational inference by mapping an image to a representation of its synset rather than a single point.

Visualization of the SVI framework showing the alignment of data and latent spaces towards convergence.

As shown in the figure above, the optimization objective involves minimizing a "partial semantic KL divergence" between the reconstructed synset and the ideal synset. This process explains why divergence measures (like KL or Wasserstein) are necessary: the target is a distribution of acceptable reconstructions, not a single reference image. The authors mathematically prove that traditional Rate-Distortion and newer Rate-Distortion-Perception tradeoffs are special cases of this new "Synonymous Rate-Distortion-Perception" framework.

Practical Implementation: Synonymous Image Compression (SIC)

Based on SVI, the authors propose the SIC codec. The encoder decomposes the image's latent representation into two components:

  1. Synonymous Representation ($\tilde{\mathbf{y}}_s$): Captures core semantic meaning.
  2. Detailed Representation ($\tilde{\mathbf{y}}_e$): Captures specific textures and noise.
The inference model (analysis transform) showing the decomposition of input x into synonymous and detailed representations.

In the SIC scheme, only the synonymous representation is transmitted. The decoder then reconstructs the image by sampling the missing details from a learned distribution. To support variable bitrates, the authors implement a progressive Swin Transformer-based autoencoder. By slicing latent channels into 16 levels, a single model can transition from low-bitrate semantic reconstruction to high-bitrate detailed reconstruction.

Experimental Results

The SIC codec was trained on 100,000 images from OpenImages V6 and evaluated on CLIC2020, DIV2K, and Kodak datasets. Key findings include:

  • Single-Model Efficiency: The progressive architecture supports 16 quality levels within one network, avoiding the need for multiple models required by many generative compression methods.
  • Perceptual Gains: The model outperforms the No-GAN MS-ILLM baseline on the DISTS metric across various bitrates while maintaining comparable PSNR and LPIPS scores.
  • GAN Integration: Fine-tuning with adversarial losses further improves FID and DISTS scores, confirming the theoretical link between SVI and GAN-based compression.

Conclusion and Future Work

SVI provides a formal mathematical bridge between semantic information theory and perceptual image compression. By demonstrating that PIC is essentially the compression of synonymous sets, this work unifies traditional R-D and modern R-D-P tradeoffs.

However, the current implementation uses a simple uniform distribution to sample detailed representations, which limits performance on distribution-matching metrics like FID. Future work will focus on improving these sampling mechanisms and refining the partitioning of latent channels to further enhance coding efficiency.

Summary updated

BibTeX
@inproceedings{liang2025synonymous,
  author = {Zijian Liang and Kai Niu and Changshuo Wang and Jin Xu and Ping Zhang},
  title = {{Synonymous Variational Inference for Perceptual Image Compression}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=ialr09SfeJ},
}
Figure