Deep Learning Directly on Compressed Bitstreams

You are reading version 1 of this direction, frozen 2026-10-04. The latest version is version 2.

Version 1 of 2124 papers135 conceptsfrozen 2026-10-04

In the standard computer vision pipeline, we treat compressed files like JPEG images or H.264 videos as "shrink-wrapped" packages that must be fully unwrapped before use. This "decode-then-process" paradigm requires decompressing bitstreams into raw RGB pixels, a step that Lionel Gueguen and colleagues in Faster Neural Networks Straight from JPEG identify as a significant computational tax. In fact, decoding can account for up to 20% of total inference time, often bottlenecking high-speed GPUs with CPU-bound tasks.

A growing body of research suggests we should stop fighting the codec and start learning from it. By treating compressed representations—such as Discrete Cosine Transform (DCT) coefficients, motion vectors, and residuals—as direct inputs to neural networks, researchers are building models that are not only faster but often more efficient at capturing the underlying signal.

The Codec as a Feature Extractor

The intuition behind compressed-domain learning is that video and image codecs are already doing a form of "feature extraction." To save space, codecs identify what is important (the signal) and discard what is redundant (the noise).

For images, JPEG compression transforms pixels into the frequency domain using DCT. Rather than forcing a network to learn these spatial frequencies from scratch, Jeongsoo Park and Justin Johnson demonstrate in RGB No More: Minimally-Decoded JPEG Vision Transformers that Vision Transformers (ViTs) can achieve a 39% training speedup by operating directly on these DCT coefficients. The network essentially starts its journey in the frequency domain, bypassing the redundant "patchify" steps of standard ViTs.

Motion Vectors as Free Optical Flow

In video, the efficiency gains are even more dramatic. Standard video models often rely on "optical flow" to understand movement, a calculation so expensive it is frequently pre-computed and stored on disk. However, as Chao-Yuan Wu and Philipp Kraehenbuehl argue in Compressed Video Action Recognition, the video codec has already calculated a version of this movement in the form of motion vectors.

Their framework, CoViAR, processes three distinct streams from the compressed bitstream:

  1. I-frames: Full spatial images (the "anchors").
  2. Motion Vectors: The "free" movement signals.
  3. Residuals: The pixel-wise errors that correct the motion predictions.

By skipping decompression and leveraging these pre-existing signals, CoViAR runs nearly 5x faster than traditional 3D CNNs. Similarly, Mingyu Ding and Zhiwu Lu showed in Compressed Video Contrastive Learning that using these "free" vectors reduces data pre-processing time by 95% without sacrificing accuracy.

Bridging the Domain Gap

A major challenge in this field is that most powerful pre-trained models (like CLIP or GPT-4V) were trained on raw pixels. How do we apply their knowledge to the "alien" language of bitstreams?

One approach is Mimicry. In Mimic The Raw Domain, Barak Battash and colleagues use a teacher-student framework where a compressed-domain model (the student) is trained to produce features that match a raw-pixel model (the teacher). This allows the student to benefit from the teacher's semantic knowledge while maintaining the speed of the compressed domain.

Another approach is Prompt Tuning. Bing Li and Di Huang introduced Compressed Video Prompt Tuning (CVPT), which uses lightweight "prompts" to adapt frozen, pixel-based models to handle compressed inputs. This avoids the need to re-train massive models from scratch for every new video format.

Extreme Efficiency and Privacy

At the far end of this research direction is the idea of "seeing" without looking at pixels at all. In Judging a video by its bitstream cover, Yuxing Han demonstrates that you can classify video content with 80% accuracy by looking only at the sequence of frame sizes in the bitstream.

Because frame sizes fluctuate based on the complexity and movement of the scene, they form a "temporal signature" of the action. This method is 15,000 times faster than real-time and offers a unique privacy advantage: the model can identify what is happening (e.g., "someone is running") without ever having the ability to see the person's face or identity.

The Future of AI-Native Media

As we move toward "AI-native" systems, the distinction between compression for storage and representation for analysis is blurring. Jixiang Luo and others are proposing systems where the same bitstream used for storage also powers semantic search.

By treating the binary structure of media as a language—an idea explored by Juan Camilo Perez in Compressed-Language Models—we can build Transformers that "read" JPEGs and MP3s directly. This shift promises to resolve the "memory wall" in high-resolution imaging and enable real-time analytics across thousands of concurrent camera streams, as envisioned in the work of Duché Axel on motion-vector-based tracking.

Papers in this version

Showing 60 of 124 papers.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 55 papers
  2. Version 1 · 2026-10-04 · 124 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_video_decoding_overhead_f1608d72,
  title = {video decoding overhead},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/video-decoding-overhead/rdr_f1608d728d044b62b9a5b409bf40fcdd},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_deep_learning_directly_on_compressed_bit_f1608d72_v1,
  title = {Deep Learning Directly on Compressed Bitstreams},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/deep-learning-directly-on-compressed-bitstreams/rdr_f1608d728d044b62b9a5b409bf40fcdd/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}