Variable-Rate Deep Image Compression through Spatially-Adaptive Feature Transform

Myungseo Song, Jinyoung Choi, Bohyung HanICCV 2021

Abstract

This paper presents a novel framework for variable-rate deep image compression using a single model. By incorporating Spatially-Adaptive Feature Transform (SFT) layers conditioned on a pixel-wise quality map, the model can dynamically allocate bitrates across an image. This approach enables both global rate control and local importance-driven compression, allowing for superior performance in both human-centric visual quality and downstream computer vision tasks without the need for retraining multiple models.

Introduction

Traditional deep learning-based image compression models are typically "fixed-rate," necessitating the training and storage of separate models for every desired quality level. Furthermore, standard architectures often apply a uniform compression ratio across the entire image, treating background noise and critical semantic features (like text or faces) with equal priority. This paper addresses these limitations by introducing a versatile framework that achieves variable-rate flexibility and spatial adaptivity within a single architecture.

Methodology

The proposed architecture builds upon the standard Mean & Scale (M&S) Hyperprior autoencoder but introduces a spatially-adaptive mechanism guided by a Quality Map ($m$). This 2D real-valued map defines the relative importance of each pixel.

Spatially-Adaptive Feature Transform (SFT)

The core innovation is the integration of SFT layers into the encoder, decoder, and hyper-encoder. These layers perform element-wise affine transformations (scaling and shifting) on internal neural features, conditioned on the quality map.

Conceptual overview of quality map guided compression and task-specific optimization.

Condition Networks and Task Optimization

Condition networks process the quality map and the source image to generate parameters for the SFT layers. A key finding is that "source conditioning"—allowing the network to see the original image content alongside the quality map—significantly improves performance. At inference time, the model can generate task-specific quality maps by freezing the compression model and using backpropagation to minimize a combined loss of bitrate and task-specific error (e.g., classification loss).

Key Results

Efficiency and Flexibility

The model outperforms baseline fixed-rate methods and remains competitive with state-of-the-art models that utilize slower autoregressive modules. By adjusting the quality map, a single model can span a wide range of bitrates that would otherwise require an entire bank of traditional models.

Task-Aware Performance

In evaluations on ImageNet, the "task-aware" quality maps maintained high classification accuracy at low bitrates where uniform compression failed. For instance, at approximately 0.4 bits-per-pixel (BPP), the task-optimized model preserved nearly original accuracy by prioritizing the object of interest.

Comparison of different quality map strategies. Note how the classification-optimized map (column 5) preserves the bird's features while blurring the background to save bits.

Visual Quality

Qualitative analysis demonstrates the model's ability to keep regions of interest, such as text on signs or facial features, sharp and legible while allowing less relevant backgrounds to become blurry to save storage space. This continuous control over spatial quality represents a significant advancement over previous binary region-of-interest (ROI) methods.

Conclusion

The Spatially-Adaptive Feature Transform framework provides a powerful, single-model solution for variable-rate and task-specific image compression. While optimizing quality maps at inference time introduces some computational overhead, the gains in flexibility and bitrate efficiency make it a compelling approach for diverse applications ranging from thumbnail generation to high-stakes computer vision tasks. Future work may involve integrating context models to further enhance compression ratios while maintaining decoding speed.

Summary updated

BibTeX
@inproceedings{song2021variable,
  author = {Myungseo Song and Jinyoung Choi and Bohyung Han},
  title = {{Variable-Rate Deep Image Compression through Spatially-Adaptive Feature Transform}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=-wflcsOBwjA},
}
Figure