Introduction
In modern computer vision pipelines, images are typically stored or transmitted in compressed formats like JPEG or HEVC. Standard practice involves a "decompress-then-analyze" routine. However, as the volume of visual data grows, the computational cost of decompressing billions of images solely for machine consumption becomes a massive bottleneck. This paper investigates whether neural networks can "see" through the chaos of a compressed bitstream directly, bypassing the decompression stage.
The primary obstacle is entropy coding, the final stage of image compression. It is designed to remove redundancy, making data appear as random noise to maximize space savings. This process destroys two properties essential for Convolutional Neural Networks (CNNs):
- Spatial Closeness: Neighboring pixels in an image are no longer adjacent in the bitstream.
- Semantic Closeness: Similar intensities are no longer represented by similar bit patterns.
Methodology
The authors developed a rigorous experimental pipeline to test the limits of learning in the coded domain.
Bitplane Processing and 1D Architectures
Since entropy-coded data loses its 2D grid structure, the authors utilized 1D-convolutional networks, specifically adapted versions of VGG11 and ResNet18 (dubbed UVGG11 and URESNET18). Instead of feeding raw bytes, the images are split into eight "bitplanes" (from Most Significant Bit to Least Significant Bit). Each bitplane is vectorized into a 1D stream, entropy-coded separately, and fed into the network as separate input channels.
Coding Schemes
The study compared two major entropy coding types:
- Huffman coding: Used in JPEG, it processes data in smaller, fixed-length chunks, which inadvertently preserves more spatial structure.
- Arithmetic coding: Used in advanced codecs like HEVC, providing higher compression but more thorough "scrambling" of data.
Experimental Results
The study utilized three 8-bit grayscale datasets: MNIST, Fashion-MNIST, and YCIFAR-10. The experiments demonstrate that while learning in the coded domain is feasible, it incurs a performance penalty compared to the pixel domain:
- MNIST: Accuracy dropped from 98.9% (uncompressed) to 83.2% (Huffman) and 63.1% (Arithmetic).
- YCIFAR-10: Accuracy dropped from 56.5% (uncompressed) to 36.0% (Huffman) and 29.7% (Arithmetic).
Despite the drop, results remained significantly higher than random guessing (10% for these datasets), proving that CNNs can extract features even from seemingly "featureless" bitstreams.
Key Insights
- Huffman is "Leakier": CNNs perform better on Huffman-coded data because its block-based nature preserves more underlying spatial structure than arithmetic coding.
- The Power of MSBs: Most learnable information resides in the Most Significant Bits (MSBs). As data moves toward the Least Significant Bits (LSBs), it becomes more random and offers fewer useful features.
- The Death of Convolution: Intentional shuffling of pixel positions and values showed that losing both spatial and semantic closeness drops YCIFAR-10 accuracy from ~62% to ~12% (nearly random), highlighting the difficulty of the task.
Discussion and Future Work
While this work proves the feasibility of coded-domain learning, a significant accuracy gap remains. Future research is needed to scale these findings to high-resolution color images and video bitstreams, which involve complex inter-frame dependencies.
The authors suggest that future "Codecs for Machines" could be designed to balance high compression ratios with the preservation of just enough structure for efficient CNN inference. This could lead to a new generation of vision systems that operate directly on compressed data, drastically reducing computational overhead.
Summary updated