Bitstream Action Recognition is Byte Modeling

Fangcheng Li, Chaoran Huang, Tianyi Liu, Wenyang Liu, Kejun Wu, Qiong Liu, You Yang, Zhengguo LiarXiv 2026

TL;DR

This paper introduces BRACE, a framework that recognizes human actions directly from raw, corrupted image bitstreams without ever decoding them into pixels. By bypassing the fragile decoding process and using a novel representation alignment strategy, it achieves remarkable robustness to transmission and storage errors that cause standard computer vision models to fail completely.

What Problem Does This Paper Address?

Conventional action recognition is "pixel-hungry." It relies on a standard pipeline: take a compressed bitstream (like a JPEG file), decode it into an image, and then feed those pixels into a neural network. However, in the real world, bitstreams are often corrupted during transmission over unstable networks or due to physical storage damage.

Even minor bit-level corruption can be catastrophic. As shown in Figure 1, these errors can lead to severe visual artifacts or, more commonly, a complete decoding failure. When the decoder fails, pixel-domain models have no input to process. Existing solutions like image restoration are insufficient because they still require a successfully parsed file to start with. The authors identify the dependency on decoding as a fundamental bottleneck for robust action recognition in unreliable environments.

Fig. 1: Real-world corruption of image bitstream during trans- mission and storage may cause severe visual artifacts or de- coding failure, which can hardly be solved by standard image codecs and further affect image action recognition. Bitstream Action Recognition (BAR) enables the direct understanding of corrupted bitstream, solving the challenge of dependency on decoding and vulnerability to corruption.

Methods

The authors propose a paradigm shift: Bitstream Action Recognition (BAR), which treats the raw byte sequence as the primary data modality. Their solution, BRACE (Bitstream Recognition via Anchoring Corrupted Embeddings), consists of several key innovations:

  1. Real-world Bitstream Corruption Simulator (RBCS): To train robust models, the authors developed a simulator that injects realistic errors—bit-flips and byte-losses—directly into the encoded byte stream at controllable rates and positions. The RBCS pipeline simulates bit-flips and byte-losses in raw bitstreams.

  2. Dual-Branch Byte Modeling: BRACE uses a two-branch architecture. During training, one branch (the "intact branch") processes a clean bitstream to create a stable "anchor" representation. The other branch (the "corrupted branch") processes the mangled version.

  3. Intact-Anchored Representation Alignment (IARA): This is the core learning mechanism. It forces the corrupted branch to produce features and predictions that match the clean anchor. This alignment happens at both the embedding level (using MSE loss) and the decision level (using KL divergence).
  4. Unreliable-Anchor Suppression (UAS): Not all clean bitstreams are easy to classify. UAS prevents the model from trying to align corrupted features to an anchor that the clean branch itself is unsure about, ensuring a high-quality training signal.
  5. Byte-Level Backbone: Instead of standard CNNs, BRACE utilizes a ByteFormer architecture, which is specifically designed to handle long, unstructured sequences of raw bytes using transformer blocks.
Fig. 2: The illustration of our proposed Real-world Bitstream Corruption Simulator (RBCS). (a) The corruption pipeline of bitstream. Bitstream is partitioned into segments and each segment is independently corrupted by Bit-Flip or Byte-Loss. (b) RBCS applied to a real JPEG bitstream block. Red marks a bit-flipped byte and blue marks a lost byte.

Datasets

The authors introduced BAR-D, the first large-scale benchmark for bitstream action recognition under corruption.

  • Source Data: It is built upon two widely used datasets: Stanford40 (40 actions like "brushing teeth" or "riding a bike") and PPMI (24 actions involving musical instruments).
  • Scale: It contains 164,892 corrupted image bitstreams.
  • Diversity: The dataset spans 13 evaluation scenarios, including four severity levels (Light, Medium, Heavy, Extreme) and three corruption types (Bit-Flip, Byte-Loss, and Mixed).

Key Insights and Ideas

  • Bitstreams are Semantic: A major "aha" moment is that raw bytes, while unreadable to humans, contain enough implicit structural and semantic patterns for deep models to learn from directly.
  • Bypassing the Decoder is Key: The paper demonstrates that the failure of standard models isn't due to a lack of "intelligence" but rather a fragile input pipeline. By modeling bytes directly, BRACE remains functional even when 0% of the bitstreams are decodable by standard software.
  • Alignment as a Robustness Anchor: Treating a corrupted bitstream and its intact counterpart as two "realizations" of the same action allows the model to learn features that are invariant to bit-level noise.
  • Bit-level vs. Pixel-level Noise: Bit-level corruption is far more destructive than pixel-level noise (like Gaussian blur) because it breaks the underlying syntax of the file, leading to desynchronization in the data stream.

Key Results

BRACE was benchmarked against 14 methods across pixel, compressed, and bitstream domains.

  • Resilience to Failure: While pixel-domain models (like ResNet-50 or ViT) collapse to near-random accuracy as soon as corruption begins, BRACE maintains significant performance.
  • Quantitative Dominance: On BAR-Stanford40, BRACE achieved a "Corrupt Average" accuracy of 38.75%, compared to just 0.01% for ResNet-50 and 24.36% for the previous state-of-the-art byte-level model, ByteFormer.
  • Extreme Robustness: In the "Extreme" corruption scenario—where standard decoders fail 100% of the time—BRACE still managed an accuracy of 18.15%, proving it can "see" through almost total data loss.

Limitations and Future Work

While groundbreaking, the paper acknowledges some boundaries:

  • Still Images Only: The current work focuses on still-image bitstreams (JPEG). Extending this to video codecs (like H.264/H.265) is a natural but much harder next step due to complex temporal dependencies and inter-frame coding.
  • Computational Complexity: Processing raw byte sequences can lead to very long inputs for transformers. While ByteFormer uses token reduction, scaling to very high-resolution or high-bitrate files remains a challenge.
  • Codec Specificity: The models are currently trained on JPEG bitstreams. Generalizing a single model to handle multiple different image and video formats simultaneously is an open research question.

Summary updated

BibTeX
@misc{li2026bitstream,
  author = {Fangcheng Li and Chaoran Huang and Tianyi Liu and Wenyang Liu and Kejun Wu and Qiong Liu and You Yang and Zhengguo Li},
  title = {{Bitstream Action Recognition is Byte Modeling}},
  year = {2026},
  eprint = {2608.15695},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.15695},
}
Figure