RSIR Transformer: Hierarchical Vision Transformer using Random Sampling Windows and Important Region Windows

Zhemin Zhang, Xun Gong
4/13/2023
cs.CV

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Recently, Transformers have shown promising performance in various vision tasks. However, the high costs of global self-attention remain challenging for Transformers, especially for high-resolution vision tasks. Local self-attention runs attention computation within a limited region for the sake of efficiency, resulting in insufficient context modeling as their receptive fields are small. In this work, we introduce two new attention modules to enhance the global modeling capability of the hierarchical vision transformer, namely, random sampling windows (RS-Win) and important region windows (IR-Win). Specifically, RS-Win sample random image patches to compose the window, following a uniform distribution, i.e., the patches in RS-Win can come from any position in the image. IR-Win composes the window according to the weights of the image patches in the attention map. Notably, RS-Win is able to capture global information throughout the entire model, even in earlier, high-resolution stages. IR-Win enables the self-attention module to focus on important regions of the image and capture more informative features. Incorporated with these designs, RSIR-Win Transformer demonstrates competitive performance on common vision tasks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2023rsir,
  title  = {RSIR Transformer: Hierarchical Vision Transformer using Random Sampling Windows and Important Region Windows},
  author = {Zhemin Zhang and Xun Gong},
  year   = {2023},
  eprint = {2304.06250},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.06250v3}
}

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/2304.06250.svg)](https://codeofpaper.com/paper/2304.06250)

Discussion