Efficient Generative Image Compression with Quantized Latents Refinement
Organizations: Department of Electronic Engineering, Tsinghua University · Department of Automation, Tsinghua University · State Key Laboratory of Space Network and Communications · Beijing National Research Center for Information Science and Technology
Abstract
Generative image compression (GIC) delivers strong perceptual quality at low bitrates. However, GIC methods with strong perceptual quality often rely on pretrained diffusion models with high latency, while recent lightweight GIC methods reduce latency but deliver lower perceptual quality. We observe that, for lightweight GIC methods at low bitrates, coarse deterministic quantization can collapse nearby encoder latents corresponding to different fine details to the same point, making these details difficult to recover. Motivated by this, we propose GR-GIC, an efficient GIC that delivers competitive reconstruction performance with fast inference. For better performance, we introduce Guided Refinement (GR), which combines latent refinement guided by entropy context with adaptive perturbations for training regularization, jointly improving reconstruction at low bitrates. For fast inference, we introduce reorganized projected residual vector quantization (P-RVQ), which equivalently reorganizes residual updates into low-dimensional lookups to expose greater parallelism and reduce sequential computation. Experiments on Kodak show that for performance, compared with OneDC, GR-GIC achieves BD-rate savings of 23.19%, 37.71%, 22.30%, and 22.14% for LPIPS, DISTS, PSNR, and FID, respectively. For fast inference, the highly optimized implementation of GR-GIC encodes and decodes in 4.60 and 5.98 ms on an NVIDIA A100. Specifically, the reorganized P-RVQ implementation achieves a average speedup over the original implementation under the same FP32 setting. On an NVIDIA Jetson Orin NX, GR-GIC achieves latency comparable to lightweight GIC methods.
Figures & tables
| Family | Method | Complexity | BD-rate (%) | ||||||
| Enc. | Dec. | FLOPs | Params | LPIPS | DISTS | PSNR | FID | ||
| Pretrained diffusion | ResULIC | 96.24 | 428.32 | 8549.01 | 1390.00 | 206.40 | 260.74 | 10.77 | 304.92 |
| StableCodec | 100.18 | 200.03 | 6820.28 | 1065.81 | 8.03 | 6.77 | -17.10 | -4.45 | |
| RDEIC | 157.25 | 426.68 | 7767.46 | 1380.27 | 69.79 | 166.61 | -12.14 | 80.26 | |
| OneDC | 76.98 | 204.47 | 8557.18 | 1406.42 | 0.00 | 0.00 | 0.00 | 0.00 | |
| OSCAR | 53.04 | 167.56 | 6485.61 | 1009.30 | 127.15 | 131.50 | 154.09 | 159.92 | |
| Model | GR configuration | BPP | BPP | BPP | BPP | |||||||
| Offset | Ctx. | Stoch. | Adapt. | LPIPS | FID | LPIPS | FID | LPIPS | FID | LPIPS | FID | |
| ✗ | ✗ | ✗ | ✗ | 0.277 | 66.2 | 0.214 | 51.2 | 0.184 | 43.6 | 0.165 | 38.1 | |
| ✓ | ✗ | ✗ | ✗ | 0.271 | 63.6 | 0.212 | 46.8 | 0.184 | 39.2 | 0.164 | 35.4 | |
| ✓ | ✓ | ✗ | ✗ | 0.264 | 62.4 | 0.208 | 41.2 | 0.182 | 36.5 | 0.162 | 31.9 | |
| ✓ | ✓ | ✓ | ✗ | 0.264 | 59.5 | 0.207 | 37.9 | 0.182 | 33.8 | 0.162 | 29.5 | |
| ✓ | ✓ | ✓ | ✓ | 0.261 | 54.6 | 0.206 | 36.0 | 0.180 | 32.3 | 0.160 | 27.6 | |
| Method | 1080p | 2K | 4K | |||||
| Enc. | Dec. | Enc. | Dec. | Enc. | Dec. | Enc. | Dec. | |
| EF-LIC | 71.253 | 143.040 | 347.490 | 633.721 | 623.651 | 1137.985 | 1441.824 | 2628.537 |
| ProGIC | 83.204 | 164.517 | 413.956 | 781.443 | 748.899 | 1412.819 | 1670.957 | 3182.561 |
| AEIC | 96.784 | 1290.483 | – | s | – | s | OOM | |
| CoD-Lite | 114.456 | 239.371 | 564.422 | 1348.999 | 974.139 | 2489.412 | – | s |
| OneDC | 773.388 | 1981.831 | OOM | OOM | OOM | |||
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Resolution | Original FP32 | Reorganized FP32 | Reorganized FP16 | CUDA FP16 | |
| 1 | |||||
| 2 | |||||
| 3 | |||||
| 4 | |||||
| 1080p | 1 | ||||
| 2 |
| Module | Implemented topology | Output or role |
| Analysis transform | pixel unshuffle, entry DCB, six 368-channel body DCBs, Conv with stride 2 to 256 channels | Main latent at resolution |
| Hyper analysis | Conv , two 512-channel DCBs, two residual downsampling stages with stride 2, final 128-channel projection | Hyper latent at resolution |
| Hyper synthesis | SP , one DCB, SP , two DCBs, Conv to 512 channels | 256-channel normalization scale and 256-channel context feature |
| Context path | Quadtree support projection, projection of previously decoded groups, one group adaptor DCB, three shared 512-channel DCBs, final Conv | 256-channel entropy context mean and scale |
| GR head | Conv , three 768-channel DCBs, Conv | 256-channel offset and adaptive perturbation scale |
| Synthesis transform | SP , twelve 368-channel body DCBs, one final refinement DCB, Conv , pixel shuffle | RGB reconstruction |
| Stream | |||||
| Input dim. | 256 | 256 | 256 | 256 | 128 |
| Code dim. | 16 | 16 | 16 | 16 | 8 |
| Entries | 1024 | 512 | 256 | 128 | 1024 |
| Bits per stage | 10 | 9 | 8 | 7 | 10 |
| Resolution | BPP | Params | FLOPs | Enc. | Dec. | Mem. |
| 0.0356 | 79.389 | 456.491 | 4.475 | 5.949 | 0.183 | |
| 0.0713 | 79.389 | 456.531 | 4.523 | 5.947 | 0.185 | |
| 0.1069 | 79.389 | 456.571 | 4.717 | 6.028 | 0.187 | |
| 0.1426 | 79.389 | 456.610 | 4.674 | 6.009 | 0.189 | |
| 1080p | 0.0356 | 79.389 | 2425.111 | 13.817 | 21.428 | 0.250 |
| 0.0713 | 79.389 | 2425.321 | 14.111 | 21.483 | 0.250 |
| Resolution | Backend | Enc. | Dec. | Online E2E | Mem. |
| PyTorch FP32 | 30.453 | 44.708 | 66.519 | 0.438 | |
| PyTorch FP16 | 15.439 | 20.298 | 37.784 | 0.222 | |
| CUDA FP16 | 4.597 | 5.983 | 10.353 | 0.186 | |
| 1080p | PyTorch FP32 | 109.967 | 176.403 | 282.883 | 0.965 |
| PyTorch FP16 | 32.895 | 57.600 | 86.817 | 0.465 | |
| CUDA FP16 | 14.097 | 21.442 | 35.567 | 0.252 |
| Metric | Family | Method | Kodak | Tecnick | DIV2K | CLIC 2020 |
| LPIPS | Diffusion | OneDC | 0.00 | 0.00 | 0.00 | 0.00 |
| StableCodec | 8.03 | 32.28 | 27.06 | 36.13 | ||
| AEIC | 41.65 | 34.58 | 25.27 | 32.18 | ||
| DiT-IC | 35.99 | 61.79 | 49.18 | 52.00 | ||
| OSCAR | 127.15 | 225.78 | 201.57 | – | ||
| VAE-based | GLC | 21.53 | 47.87 | 33.19 | 39.53 |
| Method | 1080p | 2K | 4K | ||||||
| Enc. | Dec. | Mem. | Enc. | Dec. | Mem. | Enc. | Dec. | Mem. | |
| ResULIC | 481.75 | 3702.45 | 20.38 | – | s | – | – | s | – |
| StableCodec | 641.76 | 1657.43 | 21.80 | 1085.39 | 3161.54 | 30.65 | – | s | – |
| RDEIC | 683.20 | 2296.58 | 13.55 | 1436.00 | 5963.77 | 20.17 | – | s | – |
| OneDC | 303.33 | 742.06 | 12.81 | 585.72 | 1554.82 | 18.86 | 1542.18 | 4846.63 | 35.38 |
| OSCAR | 513.20 | 1123.38 | 24.75 | 2382.55 | 2719.79 | 79.44 | – | – | |
Generative Image Compression
Generative image compression uses compact codes and learned generative priors to reconstruct plausible images at very low bitrates.
See all 35 papers