Once-for-All: Controllable Generative Image Compression with Dynamic Granularity Adaption

Anqi Li, Yuxi Liu, H. Bai, Feng Li, Runmin Cong +2 more
2/12/2026

No official code found. Best implementation: lianqi1008/Control-GIC (69 stars, last commit 2025-07-10).

Abstract

Although recent generative image compression methods have demonstrated impressive potential in optimizing the rate-distortion-perception trade-off, they still face the critical challenge of flexible rate adaption to diverse compression necessities and scenarios. To overcome this challenge, this paper proposes a Controllable Generative Image Compression framework, termed Control-GIC, the first capable of fine-grained bitrate adaption across a broad spectrum while ensuring high-fidelity and generality compression. Control-GIC is grounded in a VQGAN framework that encodes an image as a sequence of variable-length codes (i.e. VQ-indices), which can be losslessly compressed and exhibits a direct positive correlation with the bitrates. Drawing inspiration from the classical coding principle, we correlate the information density of local image patches with their granular representations. Hence, we can flexibly determine a proper allocation of granularity for the patches to achieve dynamic adjustment for VQ-indices, resulting in desirable compression rates. We further develop a probabilistic conditional decoder capable of retrieving historic encoded multi-granularity representations according to transmitted codes, and then reconstruct hierarchical granular features in the formalization of conditional probability, enabling more informative aggregation to improve reconstruction realism. Our experiments show that Control-GIC allows highly flexible and controllable bitrate adaption where the results demonstrate its superior performance over recent state-of-the-art methods. Code is available at https://github.com/lianqi1008/Control-GIC.

View on arXivView PDF

Code Implementations(1)

[ICLR 2025] Pytorch implementation of the paper "Once-for-All: Controllable Generative Image Compression with Dynamic Granularity Adaptation".

693PythonMay 8, 20241 years ago

Similar Papers

Cite this paper

@article{li2026onceforall,
  title  = {Once-for-All: Controllable Generative Image Compression with Dynamic Granularity Adaption},
  author = {Anqi Li and Yuxi Liu and H. Bai and Feng Li and Runmin Cong and Meng Wang and Yao Zhao},
  year   = {2026},
  eprint = {2406.00758},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2406.00758},
  journal = {ICLR 2024 2024}
}

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/2406.00758.svg)](https://codeofpaper.com/paper/2406.00758)

Discussion