arXiv:2610.24094cs.CVOct 2026

Manuscript Offprint

arXiv:2610.24094

BiNar: Bitstream Native Restorer for Bitstream-corrupted Image Restoration

Fangcheng Li, Zhen Yu, Kejun Wu, Tianyi Liu

ABSTRACT

Bitstream-corrupted image restoration (BCIR) aims to reconstruct faithful images from corrupted compressed bitstreams. However, corruption occurs in bitstream-domain may lead to unpredictable error propagation and distortion amplification in pixel-domain, and even result in complete undecodability by standard decoders, posing significant challenge to existing image restoration paradigms. To address this challenge, we propose Bitstream Native Restorer (BiNar), a generative restoration framework that leverages fine-grained bitstream-native semantics to guide bitstream-corrupted image restoration. In BiNar, Bitstream Semantic Modeling (BSeM) extracts robust informative semantics and models sequential bytes directly from corrupted bitstream, enabling to generate fine-grained bitstream descriptions without relying on pixel decoding. Based on the descriptions, the Corruption-adaptive Multimodal Semantic Aggregation (CMSA) further extracts adaptive visual modal cues in decoded corrupted images and aggregates to bitstream descriptions. The multimodal aggregated fine-grained descriptions can serve as coherent restoration guidance. Finally, Blind Corruption Localization (BCoL) exploits the segmentation prior of visual foundation models to identify and locate error regions that requires recovery in corrupted images. The located error regions and the fine-grained descriptions jointly serve as visual prompt and language prompt of diffusion models image restoration, respectively. Extensive experiments under diverse bitstream corruption conditions show that BiNar outperforms all State-of-the-arts image restoration models regardless of perceptual quality or objective quality. Ablation studies demonstrate the effectiveness of fine-grained bitstream-native semantics in BCIR task.

1 INTRODUCTION

Image restoration aims to recover clean images from degraded inputs by exploiting the texture, structure, and semantic cues that remain visible. Faithful restoration therefore depends on whether these cues remain informative about the original image. However, bitstream corruption can severely distort or even eliminate these cues. Compressed image bitstreams are highly vulnerable to corruption during storage and transmission. Since bitstream corruption occurs before image decoding, localized errors may propagate through the decoding process and disrupt subsequent coded content Lam & Reibman (1995); Bourdon et al. (2005). As a result, even limited corruption can produce widespread and unpredictable pixel-domain distortions, including color shifts, structural displacement, missing content, and severe visual artifacts Liu et al. (2023b). Under such degradation, semantic modeling from the decoded image becomes increasingly challenging, as the observed pixels may no longer faithfully represent the original content. In more severe cases, bitstream corruption can even cause decoding failure, leaving no usable visual information from which semantic cues can be extracted. Such degraded or missing semantics make faithful image restoration particularly challenging.

As illustrated in Fig. 1, existing methods for bitstream-corrupted image restoration (BCIR) mainly attempt to recover visual information after decoding or exploit thumbnail guidance for restoration Liu et al. (2023b); Hu et al. (2025). When decoding produces severe color distortion, structural displacement, or missing regions, the remaining pixels provide limited information for recovering fine structures and semantic details. Moreover, thumbnail guidance is not universally available. Some compressed image files do not contain an embedded thumbnail, since common image formats such as Exif and JFIF do not require one Hamilton (2004). Even when a thumbnail is originally present, corruption of the file structure or associated metadata may prevent it from being correctly parsed.

Figure

Figure 1: Paradigm comparison of bitstream-corrupted image restoration. (a) Conventional bitstream-corrupted image restoration relies on decoded visual observations and auxiliary thumbnail guidance Liu et al. (2023b). (b) Our method removes this dependence by extracting semantic guidance directly from corrupted bitstream for robust image restoration.

and extracted Wiegand et al. (2003). As a result, this additional visual cue may also be unavailable in challenging corruption cases, further limiting restoration based on decoded visual information. A bitstream error can disrupt the decoding process and propagate to subsequent content, causing a much larger region to become distorted in the pixel Kuo et al. (2019). However, this propagation does not imply that the corresponding information has been equally lost from the compressed representation. Large portions of the coded data may remain unchanged even when the decoded image exhibits severe color distortion, structural displacement, or missing regions. These surviving bytes can therefore preserve information about the original image that is no longer faithfully expressed in the decoded observation. This makes the corrupted bitstream itself a promising source of semantic information for restoration.

To this end, we propose Bitstream Native Restorer (BiNar), a generative restoration framework that exploits fine-grained bitstream-native semantics for bitstream-corrupted image restoration. The key contribution of BiNar is to establish a semantic pathway directly from corrupted bitstreams, providing informative restoration cues when pixel-derived semantics become unreliable or unavailable. Specifically, Bitstream Semantic Modeling (BSeM) directly models sequential bytes from corrupted bitstreams to extract fine-grained semantics without relying on pixel decoding. Corruption-adaptive Multimodal Semantic Aggregation (CMSA) further extracts useful visual cues from decoded corrupted images and aggregates them with the bitstream-derived semantics to obtain enhanced fine-grained descriptions. In parallel, Blind Corruption Localization (BCoL) exploits the segmentation prior of a visual foundation model to identify regions requiring recovery. The resulting fine-grained descriptions and localized corruption regions serve as language and visual prompts to jointly guide a pretrained diffusion model for image restoration. Extensive experiments across diverse bitstream corruption conditions show that BiNar achieves the best performance on seven of eight restoration metrics, while ablation studies further demonstrate the effectiveness of fine-grained bitstream-native semantics and the proposed components.

References (30)