Deep Transformers Thirst for Comprehensive-Frequency Data

Rui Xia, Chao Xue, Boyu Deng, Fang Wang, Jingchao Wang
3/14/2022
cs.CV
transformer-attention

Official code: MrHaiPi/EIT (2 stars, Python, last commit 2024-11-06).

Abstract

Current researches indicate that inductive bias (IB) can improve Vision Transformer (ViT) performance. However, they introduce a pyramid structure concurrently to counteract the incremental FLOPs and parameters caused by introducing IB.

Show full abstract

This structure destroys the unification of computer vision and natural language processing (NLP) and complicates the model. We study an NLP model called LSRA, which introduces IB with a pyramid-free structure. We analyze why it outperforms ViT, discovering that introducing IB increases the share of high-frequency data in each layer, giving "attention" to more information. As a result, the heads notice more diverse information, showing better performance. To further explore the potential of transformers, we propose EIT, which Efficiently introduces IB to ViT with a novel decreasing convolutional structure under a pyramid-free structure. EIT achieves competitive performance with the state-of-the-art (SOTA) methods on ImageNet-1K and achieves SOTA performance over the same scale models which have the pyramid-free structure.

View on arXivView PDF

Code Implementations(1)

MrHaiPi/EITOfficial100%
20PythonDec 28, 20212 years ago

Similar Papers

Cite this paper

@article{xia2022deep,
  title  = {Deep Transformers Thirst for Comprehensive-Frequency Data},
  author = {Rui Xia and Chao Xue and Boyu Deng and Fang Wang and Jingchao Wang},
  year   = {2022},
  eprint = {2203.07116},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.07116}
}

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

Discussion