Towards Bitstream-corrupted Harsh Visual Understanding: Through Bitstream Language Modeling as Robust Semantic Priors

Chaoran Huang, Fangcheng Li, Tianyi Liu, Wenyang Liu, Kejun WuarXiv 2026

TL;DR

When video bitstreams are corrupted by network errors or cyberattacks, standard decoders produce heavily distorted pixels, causing downstream vision models to fail completely. This paper introduces BLMSP, a framework that bypasses pixel reconstruction by reading the raw, corrupted byte stream as a "language" to extract robust semantic priors. Injecting these priors into off-the-shelf models significantly improves video captioning, pose estimation, and video restoration under severe degradation.

What Problem Does This Paper Address?

Traditional computer vision pipelines follow a strict "decode-then-understand" paradigm: compressed video bitstreams are decoded into clean pixels before being fed into vision models. However, in real-world scenarios—such as unstable network communications, file truncation, or cyberattacks—bitstreams frequently get corrupted.

Because video compression relies heavily on spatial and temporal dependencies, even minor byte-level errors can propagate across multiple frames. This results in severe pixel distortion, blocking artifacts, or complete decoding failure. When the visual input becomes an unrecognizable mess, standard pixel-domain vision models break down. The authors address this challenge by asking a clever question: Can we extract meaningful semantic information directly from the corrupted binary data itself, treating it as a source of evidence rather than a failed input?

Methods

The authors propose Bitstream Language Modeling as Robust Semantic Priors (BLMSP), a dual-branch framework that processes partially recovered frames alongside raw byte sequences.

Figure 2: Overview of the proposed BLMSP framework for Bitstream-corrupted Harsh Visual Understanding (BcHVU). BLMSP learns semantic representations directly from corrupted video bitstreams and injects them as robust priors into down- stream BcHVU-specific models. A cross-codec semantic distillation scheme further transfers knowledge from MJPEG to H.264 bitstreams through feature alignment and distribution-level supervision, enabling robust video captioning, human pose estima- tion, and video restoration under severe visual degradation.

Key components include:

  • Video Bitstream Byte Model (VBBM): Built on top of a byte-level transformer architecture (ByteFormer), this model bypasses standard decoding and processes raw byte sequences directly without any modality-specific tokenization.
  • Cross-Codec Semantic Distillation: Learning from inter-frame compressed codecs like H.264 is difficult because semantic information is scattered across complex temporal prediction dependencies. To solve this, the authors use knowledge distillation. A frozen "Teacher" model trained on simpler MJPEG bitstreams (where frames are encoded independently) guides a "Student" H.264 model using cross-entropy, KL-divergence, and feature alignment losses.
  • Prior Injection: The VBBM outputs class probabilities that are filtered through an adaptive Top-$k$ gating strategy. For video captioning and restoration, these probabilities are converted into confidence-aware text prompts fed into Large Language Models (LLMs). For human pose estimation, they are converted into semantic embeddings and fused directly into the vision model's feature maps.

Datasets

Because no large-scale dataset existed for this specific task, the authors constructed the Corrupted-bitstream Harsh-video Paired (CHP) dataset by adapting a bitstream corruption simulator across three public benchmarks:

  • UCF101: Used for byte-level action classification, video captioning, and video restoration.
  • Penn Action & Sub-JHMDB: Used for human pose estimation.

The resulting CHP dataset contains 607k corrupted bitstream segments and 287k paired harsh video clips. It covers both MJPEG and H.264 formats across nine distinct corruption configurations (varying by light, medium, and heavy severities of bit-flipping, byte-loss, and mixed noise).

Key Insights and Ideas

  • Bytes Have Hidden Semantics: Even when a bitstream is too corrupted for a hardware decoder to parse into clean images, byte-level transformers can still recognize underlying statistical patterns and syntax rules to infer the high-level action occurring in the video.
  • MJPEG as a Stepping Stone: Using an intra-frame codec (MJPEG) to teach an inter-frame codec (H.264) effectively bridges the gap caused by complex temporal compression dependencies, making byte-level learning viable for advanced video formats.
  • Priors as a Safety Net: Instead of trying to replace the visual branch entirely, the bitstream-native prior acts as a complementary guide. It provides crucial context (e.g., "a man is doing push-ups") to anchor downstream models when the visual input is heavily degraded.

Key Results

The proposed VBBM achieved a 38.1% Top-1 action recognition accuracy directly from corrupted H.264 bitstreams, notably outperforming generic byte models like MEGABYTE (12.5%) and standard ByteFormer (18.8% on clean streams).

Injecting these learned bitstream priors yielded substantial improvements across all downstream tasks:

  • Video Restoration: Improved by an average of 2.51 dB in PSNR.
  • Video Captioning: Boosted performance by 0.20 in CIDEr.
  • Human Pose Estimation: Increased accuracy by 0.18 in [email protected].
Figure 1: Comparison between downstream processing with- out and with bitstream-native semantic priors.

Limitations and Future Work

  • Coarse Semantics: The extracted priors are currently action-centric (e.g., identifying the main activity) and do not capture fine-grained details, background objects, or complex scene-level semantics.
  • Codec Generalization: The framework was evaluated primarily on MJPEG and H.264. Its effectiveness on newer or more complex codecs (like H.265/HEVC or AV1) remains to be tested.
  • Real-world Transmission Noise: The corruption was simulated using controlled mathematical models; future work will need to validate how well this approach handles actual, messy real-world network packet drops and hardware faults.

Summary updated

BibTeX
@misc{huang2026towards,
  author = {Chaoran Huang and Fangcheng Li and Tianyi Liu and Wenyang Liu and Kejun Wu},
  title = {{Towards Bitstream-corrupted Harsh Visual Understanding: Through Bitstream Language Modeling as Robust Semantic Priors}},
  year = {2026},
  eprint = {2608.21837},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.21837},
}
Figure