arXiv:2610.25682cs.AIOct 2026

Manuscript Offprint

arXiv:2610.25682

BitFlat: Error-Localized Bitstream Design for Robust Diffusion Image Compression

Xinfeng Deng, Li Zhou, Haitao Chen, Shengjie Wu, Lingjin Kong, Nan Li, Haitao Zhao, Dongtang Ma

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Xinfeng Deng, Li Zhou Senior Member, IEEE, Haitao Chen, Shengjie Wu, Lingjin Kong, Nan Li, Haitao Zhao Senior Member, IEEE, and Dongtang Ma, Senior Member, IEEE

Abstract—Zero-shot diffusion image compression based on reverse channel coding achieves high perceptual quality at low bitrates without retraining, yet its bitstream remains vulnerable to bit flips. Prior work has shown that a joint combinatorial representation can amplify a single bit flip into substitutions of multiple atoms and that indexing each atom independently confines this error propagation. However, independent indexing reduces the number of atoms that fit within the bit budget and gives the decoder no indication of which atoms are corrupted. To address these issues, we propose BitFlat, a training-free error-localizing bitstream framework with two components. Blockwise Locality Alignment (BLA) decomposes the globally coupled atom selection at each diffusion step into independent selection units, each describing one signed atom from a dedicated codebook with a fixed-width field, so that any bit error affects only the unit in which it occurs. Reliability-Aware Diffusion Control (RADC) uses the bits saved by BLA to impose structured valid-codeword constraints within each field and converts the decoding state of each field into a binary reliability gate, which turns detected corrupted atoms into erasures at known positions and excludes them from noise synthesis. BitFlat requires neither target residuals nor additional network forward passes and leaves the diffusion model unchanged. Experiments on Kodak, DIV2K, and CLIC2020 show that BitFlat outperforms conventional, learned, and diffusion-based codecs at bit error rates from 10−410^{-4} to 10−210^{-2} and, even with 26.7% fewer bits, surpasses Robust Turbo-DDCM.

Index Terms—Diffusion image compression, error resilience, reverse channel coding, bit flips, reliability-aware decoding.

I. INTRODUCTION

In recent years, learned image compression has substantially improved rate-distortion (R-D) performance through the joint optimization of nonlinear transforms and probabilistic models [1]–[3]. Generative image compression further incorporates perceptual quality into the coding objective, driving image coding toward joint rate-distortion-perception (R-D-P) optimization [4], [5]. Leveraging their powerful image priors, diffusion models have been widely used for low-bitrate image reconstruction. Representative approaches include dedicated conditional diffusion codecs [6], the reuse of pretrained generative models [7], [8], and zero-shot compression based on reverse channel coding (RCC) [9]–[11]. In these zero-shot approaches, the encoder and decoder share Gaussian codebooks generated from a common random seed. The bitstream

One bit flip at a coded step

Reconstruction

Figure

BER = 10−210^{-2} Zoomed-in view

bpp/LPIPS 0.0999/0.853

bpp/LPIPS 0.1003/0.310

bpp/LPIPS 0.0997/0.136

Fig. 1. Effect of the bitstream representation on error propagation. A bit flip can cause multiple atoms under joint combinatorial coding. Independent indexing localizes substitutions, while BitFlat converts detected corrupted selections into erasures.

records only the indices and signs of the noise atoms selected at each diffusion step, allowing the decoder to reproduce the generative trajectory. Consequently, each bit in the bitstream directly determines the noise injected into the generative process, which acts as the control signal for diffusion.

However, in practical multimedia systems, bit flips may occur as a bitstream is stored or transmitted from the encoder to the decoder. Such bit flips can originate from memory faults [12], [13], flash-memory wear-out [14], silent data corruption in the storage stack [15], external interference [16], or residual channel errors [17]. Even a limited number of bit errors can alter coded symbols and disrupt bitstream parsing, causing pronounced reconstruction distortion or even decoding failure. Existing systems typically augment compressed bitstreams with external error-correction or integrity-checking mechanisms [18]. Such protection, however, is designed independently of the compressed representation. It is generally agnostic to the unequal impact of different bits on reconstruction, and when errors exceed its correction capability, it cannot indicate to the decoder which portions of the representation are unreliable. A key challenge in advancing generative image compression toward practical deployment is therefore to endow compressed representations with intrinsic error resilience and to enable the decoder to exploit bitstream reliability information.

Recently, Robust Turbo-DDCM [19] showed that RCC-based diffusion compression exhibits more gradual degradation under bit flips than conventional and learned codecs and that the bitstream representation itself strongly affects error propagation. A joint combinatorial representation encodes the selected set of atoms as a single index over all possible

This work was supported in part by the National Natural Science Foundation of China under Grant 62171449. (Corresponding author: Li Zhou.)

X. Deng, L. Zhou, H. Chen, S. Wu, L. Kong, N. Li, H. Zhao and D. Ma are with the College of Electronic Science and Technology, National University of Defense Technology, Changsha, 410073, China. (E-mail: dengxinfeng23, zhouli2035, chenhaitao20, wushengjie21, konglingjin19, li.nan, haitaozhao, dongtangma@nudt.edu.cn).

combinations, so a single bit flip can alter multiple atoms at the same step. To confine this error propagation, they transmit the index of each selected atom independently. However, independent indexing requires each atom to be individually addressed within the global codebook and redundantly records the ordering of the selected atoms. Consequently, fewer atoms can be transmitted under the same bit budget. Moreover, this representation contains no structural redundancy that would allow the decoder to identify which atoms have been corrupted, so corrupted atoms are injected into the generative trajectory in the same manner as uncorrupted ones. It therefore remains an open challenge to preserve both error locality and representational compactness within a limited bit budget while enabling the decoder to identify and avoid unreliable atoms.

As illustrated in Fig. 1, the same diffusion model can exhibit markedly different degradation behavior solely because of differences in bitstream representation. We further note that the overhead of independent indexing arises from global addressing and redundant ordering information rather than from locality itself. Locality only requires that each field determine a single atom, and it does not require this atom to be addressed within the global codebook. Aligning bitstream fields with atom selections from dedicated codebooks therefore allows error locality and representational compactness to be achieved simultaneously. Moreover, the bits saved in this way can be spent on structured redundancy that indicates to the decoder which atoms are unreliable.

To address these issues, we propose BitFlat, a training-free error-localizing framework for diffusion bitstreams. Blockwise Locality Alignment (BLA) decomposes the globally coupled atom selection at each step into independent selection units, thereby aligning field boundaries in the bit domain with atom boundaries in the diffusion control domain. Reliability-Aware Diffusion Control (RADC) uses the bits saved by BLA to impose structured valid-codeword constraints within each field and converts the decoding state of each field into a binary reliability gate for noise synthesis. In this way, BitFlat unifies representational locality, local reliability, and generative control recovery within a single encoding and decoding pipeline. The main contributions of this work are summarized as follows.

  • We analyze error locality in diffusion bitstreams and show that the overhead of independent indexing stems from global addressing and redundant ordering rather than from locality itself. Based on this analysis, we propose BLA, which employs dedicated codebooks and fixed-width selection units to confine each bit error to a single atom while transmitting more atoms than independent indexing under the same bit budget, without modifying the pretrained diffusion model.

  • We propose RADC, which explicitly incorporates field-level decoding states into noise synthesis. It converts detected but uncorrectable atom substitutions into erasures at known positions and suppresses the influence of unreliable atoms on the generative trajectory through reliability gating and rescaling. The entire process requires neither target residuals nor additional network forward passes.

• Extensive experiments on three benchmark datasets at bit error rates from 10−410^{-4} to 10−210^{-2} show that BitFlat outperforms Robust Turbo-DDCM even with 26.7% fewer bits. Ablation studies verify the complementarity of BLA and reliability gating and guide the selection of field codes.

References (43)