Lune

NeurIPS2021Top-tier venue

Glance-and-Gaze Vision Transformer

Qihang Yu, Yingda Xia, Yutong Bai, Yongyi Lu, Alan L. Yuille, Wei Shen

Abstract

Recently, there emerges a series of vision Transformers, which show superior performance with a more compact model size than conventional convolutional neural networks, thanks to the strong ability of Transformers to model long-range dependencies. However, the advantages of vision Transformers also come with a price: Self-attention, the core part of Transformer, has a quadratic complexity to the input sequence length. This leads to a dramatic increase of computation and memory cost with the increase of sequence length, thus introducing difficulties when applying Transformers to the vision tasks that require dense predictions based on high-resolution feature maps. In this paper, we propose a new vision Transformer, named Glance-and-Gaze Transformer (GG-Transformer), to address the aforementioned issues. It is motivated by the Glance and Gaze behavior of human beings when recognizing objects in natural scenes, with the ability to efficiently model both long-range dependencies and local context. In GG-Transformer, the Glance and Gaze behavior is realized by two parallel branches: The Glance branch is achieved by performing self-attention on the adaptively-dilated partitions of the input, which leads to a linear complexity while still enjoying a global receptive field; The Gaze branch is implemented by a simple depth-wise convolutional layer, which compensates local image context to the features obtained by the Glance mechanism. We empirically demonstrate our method achieves consistently superior performance over previous state-of-the-art Transformers on various vision tasks and benchmarks. The codes and models will be made available at https://github.com/yucornetto/GG-Transformer .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

22 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Scaled ReLU Matters for Training Vision Transformers cites MSG-Transformer: Exchanging Local Spatial Information by Manipulating Messenger Tokens
  • Scaled ReLU Matters for Training Vision Transformers cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Scaled ReLU Matters for Training Vision Transformers cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Scaled ReLU Matters for Training Vision Transformers cites Training data-efficient image transformers & distillation through attention
  • YOLOv12: Attention-Centric Real-Time Object Detectors cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • YOLOv12: Attention-Centric Real-Time Object Detectors cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • YOLOv12: Attention-Centric Real-Time Object Detectors cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • YOLOv12: Attention-Centric Real-Time Object Detectors cites Training data-efficient image transformers & distillation through attention
  • MSG-Transformer: Exchanging Local Spatial Information by Manipulating Messenger Tokens cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • MSG-Transformer: Exchanging Local Spatial Information by Manipulating Messenger Tokens cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • MSG-Transformer: Exchanging Local Spatial Information by Manipulating Messenger Tokens cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • MSG-Transformer: Exchanging Local Spatial Information by Manipulating Messenger Tokens cites Training data-efficient image transformers & distillation through attention
  • MPViT: Multi-Path Vision Transformer for Dense Prediction cites CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
  • MPViT: Multi-Path Vision Transformer for Dense Prediction cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • MPViT: Multi-Path Vision Transformer for Dense Prediction cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • MPViT: Multi-Path Vision Transformer for Dense Prediction cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • MPViT: Multi-Path Vision Transformer for Dense Prediction cites Training data-efficient image transformers & distillation through attention
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Training data-efficient image transformers & distillation through attention
  • Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions cites CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
  • Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions cites Training data-efficient image transformers & distillation through attention
  • CF-ViT: A General Coarse-to-Fine Method for Vision Transformer cites MSG-Transformer: Exchanging Local Spatial Information by Manipulating Messenger Tokens
  • CF-ViT: A General Coarse-to-Fine Method for Vision Transformer cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Training data-efficient image transformers & distillation through attention cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers22

  1. YOLOv12: Attention-Centric Real-Time Object DetectorsYunjie Tian, Qixiang Ye, David S. DoermannNeurIPS 2025 · 2,652 citations
  2. MPViT: Multi-Path Vision Transformer for Dense PredictionYoungwan Lee, Jonghee Kim, Jeffrey Willette, Sung Ju HwangCVPR 2022 · 339 citations
  3. CF-ViT: A General Coarse-to-Fine Method for Vision TransformerMengzhao Chen, Mingbao Lin, Ke Li, Yunhang Shen et al.AAAI 2023 · 105 citations
  4. MSG-Transformer: Exchanging Local Spatial Information by Manipulating Messenger TokensJiemin Fang, Lingxi Xie, Xinggang Wang, Xiaopeng Zhang et al.CVPR 2022 · 73 citations
  5. Scaled ReLU Matters for Training Vision TransformersPichao Wang, Xue Wang, Hao Luo, Jingkai Zhou et al.AAAI 2022 · 55 citations

Builds on18

  1. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  3. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa et al.ICML 2021 · 8,974 citations
  4. CutMix: Regularization Strategy to Train Strong Classifiers With Localizable FeaturesSangdoo Yun, Dongyoon Han, Sanghyuk Chun, Seong Joon Oh et al.ICCV 2019 · 5,843 citations
  5. Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without ConvolutionsWenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan et al.ICCV 2021 · 4,909 citations

Related papers

  1. Focal Attention for Long-Range Interactions in Vision TransformersJianwei Yang, Chunyuan Li, Pengchuan Zhang, Xiyang Dai et al.NeurIPS 2021 · 228 citations
  2. Less Is More: Pay Less Attention in Vision TransformersZizheng Pan, Bohan Zhuang, Haoyu He, Jing Liu et al.AAAI 2022 · 109 citations
  3. Glance2Gaze: Efficient Vision-Language Models from Glance Fusion to Gaze CompressionJuan Chen, Honglin Liu, Yingying Ao, Ting Zhang et al.NeurIPS 2025 · 1 citation
  4. Group Vision TransformerYaopeng Peng, Milan Sonka, Danny Z. ChenACM MM 2024
  5. Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image EncodingPengchuan Zhang, Xiyang Dai, Jianwei Yang, Bin Xiao et al.ICCV 2021 · 384 citations
Dusk over the sea between two cliffs drawn in fine vertical lines