NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learned Image Compression for Machine Perception

Felipe Codevilla, Jean-Gabriel Simard, Ross Goroshin, Chris PalarXiv 2021

Abstract

Traditional image compression algorithms are optimized for human perception, often discarding information critical for automated analysis. This paper introduces a framework that jointly optimizes image compression for both human reconstruction and machine vision tasks. By incorporating a "Utility" term into the standard rate-distortion trade-off, the authors develop a machine-friendly compression format. The proposed method achieves superior accuracy on classification and detection tasks at bitrates 4–10x smaller than standard JPEGs and enables faster inference by operating directly on compressed latent representations.

Introduction

As autonomous systems, surveillance networks, and medical diagnostics become the primary consumers of digital imagery, the limitations of human-centric compression like JPEG become apparent. These standards often remove high-frequency details that, while invisible to humans, are essential for neural networks to identify objects or segment scenes. This research addresses the challenge of creating compression that retains semantic information while remaining highly efficient.

Methodology

The authors propose a Rate-Distortion-Utility (RDU) framework, extending the standard learned compression objective with a utility loss ($U$) derived from downstream vision tasks.

Architecture and Multi-task Learning

The system is built on a hierarchical Variational Auto-Encoder (VAE). An encoder transforms an image into a quantized latent representation ($\hat{z}$), which serves as the compressed format. During training, this representation is simultaneously used to reconstruct the image and to feed task-specific decoders for classification, detection, and segmentation.

The proposed framework (a) jointly trains an image compressor for reconstruction and vision tasks. Once trained, the fixed compressed format (b) can be used for new tasks like segmentation or novel object classes.

The sResnet Adapter and Direct Inference

A key innovation is the SubPixel ResNet (sResnet) adapter. Standard vision backbones expect high-resolution RGB inputs; the sResnet uses "pixel shuffling" to recover spatial resolution directly from the compressed latent space. This allows vision models to perform inference without the computational overhead of full image decompression, resulting in up to a 20% increase in forward propagation speed.

Datasets and Evaluation

The researchers utilized a robust suite of benchmarks to validate their approach:

  • OpenImages: A subset of 400,000 images was used to train the primary image decoder.
  • ImageNet: Used for training and evaluating classification performance.
  • Pascal VOC: Employed for object detection and semantic segmentation tasks.
  • Kodak Dataset: Used to measure standard compression quality via Peak Signal-to-Noise Ratio (PSNR).

Key Insights

  • Semantic Prioritization: Task-informed models learn to preserve the texture of objects of interest (e.g., a bird's feathers) while aggressively compressing irrelevant backgrounds like foliage.
  • Compression as a Regularizer: Forcing a representation to be highly compressible acts as a regularizer, improving performance in low-shot learning scenarios by retaining only the most essential semantic features.
  • Cross-Task Generalization: Compressed formats optimized for one task (like classification) often generalize well to others (like segmentation), indicating the capture of fundamental semantic structures.

Results

Evaluated on standard benchmarks, the method demonstrates significant advantages:

  • Bitrate Efficiency: The model achieves better performance than JPEG at bitrates 4 to 10 times smaller.
  • Task Accuracy: At approximately 1.0 bits per pixel (bpp), the "Class & Detection Informed" model achieved a 71.3 mIoU on segmentation, compared to 67.5 for standard JPEG at the same rate.
  • Graceful Degradation: Unlike naive methods that collapse at extremely low bitrates, the task-informed models maintain robust performance.

Conclusion

Transitioning from human-centric to machine-centric compression is vital for scaling global AI infrastructure. While the proposed framework offers substantial gains in efficiency and speed, future work must address potential task biases and the hardware requirements for specialized low-bit depth decoding.

Summary updated

BibTeX
@misc{codevilla2021learned,
  author = {Felipe Codevilla and Jean-Gabriel Simard and Ross Goroshin and Chris Pal},
  title = {{Learned Image Compression for Machine Perception}},
  year = {2021},
  eprint = {2111.02249},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.02249},
}
Figure