arXiv:2611.07929cs.LGNov 2026

Manuscript Offprint

arXiv:2611.07929

Flux as a Codec: Zero-Shot Lossy Compression with Flux

Fuma Kimishima, Jinjia Zhou

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.

1 INTRODUCTION

Probabilistic modeling and lossless compression are two views of the same likelihood-optimization problem. If a sender and receiver share a distribution pp, then arithmetic coding can encode an input xx using approximately −log⁡2p(x)-\log_2 p(\mathbf{x}) bits. Learning pp by maximum likelihood therefore reduces the expected ideal codelength assigned by the model. This principle underlies flow models compressed with local bits-back coding (Ho et al., 2019), and language models used as arithmetic-coding predictors (Deletang et al., 2024; Haddadi & Teahan, 2026).

Lossy compression keeps this probabilistic-coding viewpoint but changes the object being encoded. The sender need not describe xx itself; it instead communicates a lower-rate random variable from which the receiver reconstructs an approximation of xx. DiffC (Theis et al., 2022; Liu et al., 2025) makes this connection concrete for diffusion models (Sohl-Dickstein et al., 2015; Ho et al., 2020). It uses reverse channel coding (RCC) (Li & El Gamal, 2018; Theis & Ahmed, 2022; Flamich et al., 2022) to communicate samples from the sender-side Gaussian kernels along the variance preserving (VP) path, with a coding cost characterized by the negative evidence lower bound (NELBO) (Theis et al., 2022). Thus, the diffusion models can be viewed not only as a generative prior, but also as specifying a lossy codec. Because lossy compression discards information about the source, reconstruction quality must be assessed beyond codelength alone. Standard criteria include distortion, which measures pointwise fidelity such as mean squared error (MSE), and perception, or realism, which measures the distance between the data distribution and the reconstructed one. It is known that these quantities are linked by the rate–distortion–perception trade-off (Blau & Michaeli, 2018; 2019).

Modern image generation has increasingly moved toward Flow Matching (Lipman et al., 2023) and Rectified Flow (Liu et al., 2023), which learn a velocity field that transports between distributions along an optimal transport (OT) path. Flux is a prominent model in this family (Black Forest Labs, 2024), but its existing use in DiffC reparameterizes the Flux velocity field as a DDPM style prediction and performs coding on a normalized VP path (Liu et al., 2025), instead of the OT path (Liu et al., 2025) (dubbed as DiffC Flux in this paper). Although the DiffC family has been shown to achieve strong distortion performance, it remains unclear whether Flux can define a codec directly on its native OT path. This motivates studying whether Flux can instead define a zero-shot codec directly on its native OT path, and how this choice affects its rate–distortion–perception behavior.

We propose FluxC, a zero-shot codec that defines its Markov transitions directly on the Flux OT path, communicates noisy variables through RCC, and reconstructs from the communicated variables using ODE-based decoders. To characterize its coding performance, we analyze this codec from three perspectives. First, we study coding cost and bit allocation. VP and OT paths have the same ideal information rate at matched signal-to-noise ratio (SNR), but allocate bits differently across coding steps. Second, we compare reconstruction methods, including one-step and many-step ODE reconstruction, and relate them to the DiffC Flux ancestral sampling baseline. Third, we analyze the low rate regime and show that, under the assumptions of our analysis, deterministic ODE reconstruction admits an order R\sqrt{R} distortion improvement, whereas ancestral sampling improves at order RR, where RR denotes the rate in bits. Empirically, FluxC is competitive with existing generative compression baselines and achieves strong distortion performance in the ultra low rate regime.

References (60)