Flux as a Codec: Zero-Shot Lossy Compression with Flux
Organizations: Hosei University, Tokyo, Japan
Abstract
We propose FluxC, a zero-shot codec that uses Flux as a compression prior. Although DiffC has shown that pretrained diffusion models can serve as zero-shot codecs, we ask how the choice of coding path and reconstruction method affects rate--distortion--perception behavior. We analyze FluxC along three axes: coding cost and bit allocation, reconstruction method, and low rate distortion. At matched signal-to-noise ratio (SNR), we show that the path choice does not affect the ideal information rate, but changes how bits are allocated across time steps. For reconstruction, we compare ancestral sampling, one-step ODE reconstruction, and many-step ODE reconstruction. Our analysis shows that ODE-based reconstruction can achieve lower distortion than ancestral sampling, especially in the low rate regime. Experiments on Gaussian sources and natural images support this prediction. Moreover, FluxC performs competitively with, and in some cases outperforms, recent neural image compression methods, suggesting that Flux can serve as a principled zero-shot codec.
Figures & tables
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Method | Enc steps | Encode | Decode |
|---|---|---|---|---|
| Kodak | DiffC SD1.5 | 50 | 39.41 | 72.82 |
| Kodak | DiffC SD2.1 | 50 | 38.27 | 69.81 |
| Kodak | DiffC Flux | 46 | 36.00 | 517.08 |
| Kodak | FluxC-1 | 46 | ||
| Kodak | FluxC-ODE | 46 | 35.05 | 574.51 |
| DIV2K | DiffC SD1.5 | 50 | 40.10 | 73.14 |
| Dataset | Method | Enc steps | Encode | Decode |
|---|---|---|---|---|
| Kodak | FluxC-ODE | 16 | 11.79 | 99.14 |
| Kodak | FluxC-ODE | 6 | 4.57 | 26.59 |
| Kodak | FluxC-ODE | 4 | 5.09 | 9.65 |
| Kodak | FluxC-1 | 16 | 11.67 | 18.48 |
| Kodak | FluxC-1 | 6 | 7.69 | |
| Kodak | FluxC-1 | 4 | 5.08 |