The Devil Is in the Details: Window-based Attention for Image Compression

Renjie Zou, Chunfeng Song, Zhaoxiang Zhang
3/16/2022
388 citations
eess.IVcs.CV
transformer-attention

Official code: Googolxx/STF (194 stars, Python, Apache-2.0, PyTorch, last commit 2023-11-11).

Abstract

Learned image compression methods have exhibited superior rate-distortion performance than classical image compression standards. Most existing learned image compression models are based on Convolutional Neural Networks (CNNs).

Show full abstract

Despite great contributions, a main drawback of CNN based model is that its structure is not designed for capturing local redundancy, especially the non-repetitive textures, which severely affects the reconstruction quality. Therefore, how to make full use of both global structure and local texture becomes the core problem for learning-based image compression. Inspired by recent progresses of Vision Transformer (ViT) and Swin Transformer, we found that combining the local-aware attention mechanism with the global-related feature learning could meet the expectation in image compression. In this paper, we first extensively study the effects of multiple kinds of attention mechanisms for local features learning, then introduce a more straightforward yet effective window-based local attention block. The proposed window-based attention is very flexible which could work as a plug-and-play component to enhance CNN and Transformer models. Moreover, we propose a novel Symmetrical TransFormer (STF) framework with absolute transformer blocks in the down-sampling encoder and up-sampling decoder. Extensive experimental evaluations have shown that the proposed method is effective and outperforms the state-of-the-art methods. The code is publicly available at https://github.com/Googolxx/STF.

View on arXivView PDF

Code Implementations(1)

Googolxx/STFOfficial100%
PyTorchApache-2.0

Pytorch implementation of the paper "The Devil Is in the Details: Window-based Attention for Image Compression".

19423Python, C++Mar 4, 20223 years agoApache-2.0
attention-mechanismpythonpytorchtransformer

Similar Papers

Cite this paper

@article{zou2022devil,
  title  = {The Devil Is in the Details: Window-based Attention for Image Compression},
  author = {Renjie Zou and Chunfeng Song and Zhaoxiang Zhang},
  year   = {2022},
  eprint = {2203.08450},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.08450}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.08450.svg)](https://codeofpaper.com/paper/2203.08450)

Discussion