# Balancing the Encoder and Decoder Complexity in Image Compression for Classification

**Authors:** Zhihao Duan, Adnan Faisal Hossain, Jiangpeng He, Fengqing Zhu

PMC · DOI: 10.21203/rs.3.rs-4002168/v1 · Research Square · 2024-04-22

## TL;DR

This paper explores how to balance encoder and decoder sizes in image compression to improve classification performance and flexibility.

## Contribution

The paper introduces a feature compression-based method that allows adjustable trade-offs between compression rate, accuracy, and model size.

## Key findings

- Encoder and decoder sizes have a complementary relationship in image compression for classification.
- The proposed method achieves competitive results on ImageNet with greater flexibility than existing methods.

## Abstract

This paper presents a study on the computational complexity of coding for machines, with a focus on image coding for classification. We first conduct a comprehensive set of experiments to analyze the size of the encoder (which encodes images to bitstreams), the size of the decoder (which decodes bitstreams and predicts class labels), and their impact on the rate-accuracy trade-off in compression for classification. Through empirical investigation, we demonstrate a complementary relationship between the encoder size and the decoder size, i.e., it is better to employ a large encoder with a small decoder and vice versa. Motivated by this relationship, we introduce a feature compression-based method for efficient image compression for classification. By compressing features at various layers of a neural network-based image classification model, our method achieves adjustable rate, accuracy, and encoder (or decoder) size using a single model. Experimental results on ImageNet classification show that our method achieves competitive results with existing methods while being much more flexible. The code will be made publicly available.

## Full-text entities

- **Diseases:** R-D (MESH:D006311), -50 (OMIM:300988), FICoP (MESH:C564543)
- **Chemicals:** ConvNeXt (-)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC11092870/full.md

## Figures

13 figures with captions in the complete paper: https://tomesphere.com/paper/PMC11092870/full.md

## References

59 references — full list in the complete paper: https://tomesphere.com/paper/PMC11092870/full.md

---
Source: https://tomesphere.com/paper/PMC11092870