CoD-Lite: Real-Time Diffusion-Based Generative Image Compression

Zhaoyang Jia, Naifu Xue, Zihan Zheng, Jiahao Li, Bin Li +5 more
4/14/2026
cs.CV

Official code: microsoft/GenCodec (49 stars, MIT, last commit 2026-05-08).

Abstract

Recent advanced diffusion methods typically derive strong generative priors by scaling diffusion transformers. However, scaling fails to generalize when adapted for real-time compression scenarios that demand lightweight models. In this paper, we explore the design of real-time and lightweight diffusion codecs by addressing two pivotal questions. First, does diffusion pre-training benefit lightweight diffusion codecs? Through systematic analysis, we find that generation-oriented pre-training is less effective at small model scales whereas compression-oriented pre-training yields consistently better performance. Second, are transformers essential? We find that while global attention is crucial for standard generation, lightweight convolutions suffice for compression-oriented diffusion when paired with distillation. Guided by these findings, we establish a one-step lightweight convolution diffusion codec that achieves real-time $60$~FPS encoding and $42$~FPS decoding at 1080p. Further enhanced by distillation and adversarial learning, the proposed codec reduces bitrate by 85\% at a comparable FID to MS-ILLM, bridging the gap between generative compression and practical real-time deployment. Codes are released at https://github.com/microsoft/GenCodec/tree/main/CoD_Lite

View on arXivView PDF

Code Implementations(1)

microsoft/GenCodecOfficial100%
MIT

Generative Image and Video Compression

496Cuda, RustJun 6, 20255 months agoMIT

Cite this paper

@article{jia2026codlite,
  title  = {CoD-Lite: Real-Time Diffusion-Based Generative Image Compression},
  author = {Zhaoyang Jia and Naifu Xue and Zihan Zheng and Jiahao Li and Bin Li and Xiaoyi Zhang and Zongyu Guo and Yuan Zhang and Houqiang Li and Yan Lu},
  year   = {2026},
  eprint = {2604.12525},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.12525v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.12525.svg)](https://codeofpaper.com/paper/2604.12525)

Discussion