All models

CDC

A lossy image compressor whose decoder is a conditional diffusion model.

Diffusion and generative · 1,344 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (13 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
53.9M
Operations
1,344
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2023
Cited by
79 (as of 26 October 2026)
Authors
Ruihan Yang, Stephan Mandt
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15060
Graph hash
d69213c1ade1aeec6a2f4d8dec029b191d6ea2543cf3fc0e71f644b860a6fa62
Skeleton hash
423ffe185057c2257d4a342c3a9249b49a6cd9dfeafba2e145cddf575251d1e4
Architecture hash
7ad77a972d8090777f413b524db1d150447f38823e4322628f08ffaf4f71bbae
Diagram SHA-256
da6edc95995cf95746e866c976018128478cbfc16af1eba41b76c7afd205cbe2
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

CDC, short for Conditional Diffusion Compression, is a lossy image compression model. It follows the transform coding paradigm, in which an image is mapped into a latent space for entropy coding and from there mapped back to the data space for reconstruction. In VAE-based neural compression the decoder is a deterministic neural network, and here it is a conditional diffusion model.

The reverse diffusion process is conditioned on a content latent variable, which stores information about the image. The remaining texture variables that characterize the diffusion process are synthesized at decoding time. The denoising module is a U-Net with six units each for downsampling and upsampling, and each unit has two ResNet blocks, an attention block and a convolutional up/downsampling block. The content latent is upscaled to match the inputs of the initial four U-Net downsampling units, where it is concatenated in.

The released code has separate folders for the epsilon-parameterization and x-parameterization models. This model is the x-parameterization version, for which the paper selected a cosine variance schedule. With that parameterization the paper decodes images in only 17 steps, while its epsilon-prediction model requires hundreds of steps for comparable performance. Across multiple datasets, the paper reports stronger FID scores than the GAN-based model and competitive performance with VAE-based models in several distortion metrics.

Key idea. The paper builds an end-to-end optimized lossy image compression framework in which the decoder is a conditional diffusion model rather than a deterministic neural network.

  • cdc
  • conditional diffusion compression
  • lossy image compression
  • conditional diffusion model
  • diffusion image compression
  • neural image compression
  • x-parameterization
  • learned compression

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{yang2024lossyimagecompressionconditional,
      title={Lossy Image Compression with Conditional Diffusion Models}, 
      author={Ruihan Yang and Stephan Mandt},
      year={2024},
      eprint={2209.06950},
      archivePrefix={arXiv},
      primaryClass={eess.IV},
      url={https://arxiv.org/abs/2209.06950}, 
}