Skip to main content
QUICK REVIEW

[Paper Review] Lossy Compression for Lossless Prediction

Yann Dubois, Benjamin Bloem-Reddy|arXiv (Cornell University)|Jun 21, 2021
Image and Signal Denoising MethodsComputer Science4 citations
TL;DR

This paper proposes a novel lossy compression framework that preserves only information necessary for downstream predictive tasks invariant under data augmentations (e.g., rotation, cropping). By formalizing the minimal bit-rate required to maintain high performance across all such tasks, the authors design unsupervised neural compressors—inspired by variational autoencoders and contrastive self-supervised learning—that achieve over 1000× bit-rate reduction on ImageNet compared to JPEG, with no drop in downstream classification accuracy.

ABSTRACT

Most data is automatically collected and only ever "seen" by algorithms. Yet, data compressors preserve perceptual fidelity rather than just the information needed by algorithms performing downstream tasks. In this paper, we characterize the bit-rate required to ensure high performance on all predictive tasks that are invariant under a set of transformations, such as data augmentations. Based on our theory, we design unsupervised objectives for training neural compressors. Using these objectives, we train a generic image compressor that achieves substantial rate savings (more than $1000 imes$ on ImageNet) compared to JPEG on 8 datasets, without decreasing downstream classification performance.

Motivation & Objective

  • Address the inefficiency of traditional lossy compressors that prioritize perceptual fidelity over algorithmic utility.
  • Formalize the minimal bit-rate required to ensure high performance on all downstream tasks invariant under user-defined transformations (e.g., rotation, brightness).
  • Develop unsupervised neural compression objectives that approximate the theoretical optimal rate for invariant prediction.
  • Demonstrate zero-shot generalization of the compressor across diverse datasets without retraining.
  • Enable substantial rate savings while preserving predictive performance for tasks like image classification and galaxy morphology analysis.

Proposed method

  • Define a worst-case invariant task as recognizing transformed versions of the same example, which bounds the required bit-rate for all such tasks.
  • Formalize the optimal compression rate as the mutual information between input and worst-case label, minimizing rate under a distortion constraint.
  • Design two unsupervised training objectives: one based on variational autoencoding to reconstruct canonical examples, and another adapting contrastive self-supervised learning (SSL) to learn invariant representations.
  • Use CLIP- or ResNet-based encoders to extract features, then train a neural compressor (BINCE) to minimize rate while preserving information for invariant tasks.
  • Apply the compressor to data without access to downstream labels, relying solely on invariance structure and contrastive objectives.
  • Train the compressor end-to-end using a rate-distortion objective that balances compression efficiency and predictive utility.

Experimental results

Research questions

  • RQ1What is the minimal bit-rate required to ensure high performance on all prediction tasks invariant under a given set of transformations?
  • RQ2Can we design unsupervised neural compressors that approximate this optimal rate without access to downstream task labels?
  • RQ3How well does a compressor trained on one dataset generalize to unrelated datasets in a zero-shot manner?
  • RQ4To what extent can pre-trained self-supervised models (e.g., CLIP) be repurposed as general-purpose compressors for invariant prediction?
  • RQ5How does the performance of the proposed compressor compare to state-of-the-art perceptual compressors (e.g., JPEG, WebP) on diverse, real-world datasets?

Key findings

  • The theoretical minimal bit-rate for high performance on all augmentation-invariant tasks corresponds exactly to the rate needed to compress the worst-case label (i.e., identifying transformed examples).
  • The proposed compressors achieve over 1000× bit-rate reduction on ImageNet compared to JPEG, with no drop in downstream image classification accuracy.
  • On 8 diverse datasets—including GalaxyZoo, which contains non-natural images—the compressor generalizes zero-shot, outperforming JPEG and WebP in rate while maintaining or improving predictive performance.
  • The CLIP-based compressor achieves a bit-rate of 0.33 Mb/img on GalaxyZoo, compared to 0.48 Mb/img for WebP, with lower test loss and better generalization than end-to-end trained BINCE.
  • The use of contrastive self-supervised pretraining (e.g., CLIP) enables strong zero-shot generalization, with the CLIP-based compressor significantly outperforming a ResNet50 fine-tuned end-to-end on GalaxyZoo.
  • Linear and MLP classifiers achieve similar performance on the compressed representations, indicating that the information is easily decodable, consistent with properties of contrastive SSL models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.