Lune

ICCV2023顶会

LaPE: Layer-adaptive Position Embedding for Vision Transformers with Independent Layer Normalization

Runyi Yu, Zhennan Wang, Yinhuai Wang, Kehan Li, Chang Liu, Haoyi Duan, Xiangyang Ji, Jie Chen

摘要

Position information is critical for Vision Transformers (VTs) due to the permutation-invariance of self-attention operations. A typical way to introduce position information is adding the absolute Position Embedding (PE) to patch embedding before entering VTs. However, this approach operates the same Layer Normalization (LN) to token embedding and PE, and delivers the same PE to each layer. This results in restricted and monotonic PE across layers, as the shared LN affine parameters are not dedicated to PE, and the PE cannot be adjusted on a per-layer basis. To overcome these limitations, we propose using two independent LNs for token embeddings and PE in each layer, and progressively delivering PE across layers. By implementing this approach, VTs will receive layer-adaptive and hierarchical PE. We name our method as Layer-adaptive Position Embedding, abbreviated as LaPE, which is simple, effective, and robust. Extensive experiments on image classification, object detection, and semantic segmentation demonstrate that LaPE significantly outperforms the default PE method. For example, LaPE improves +1.06% for CCT on CIFAR100, +1.57% for DeiT-Ti on ImageNet-1K, +0.7 box AP and +0.5 mask AP for ViT-Adapter-Ti on COCO, and +1.37 mIoU for tiny Segmenter on ADE20K. This is remarkable considering LaPE only increases negligible parameters, memory, and computational cost.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Cross-modal Prompts: Adapting Large Pre-trained Models for Audio-Visual Downstream Tasks 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Cross-modal Prompts: Adapting Large Pre-trained Models for Audio-Visual Downstream Tasks 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Maximizing the Position Embedding for Vision Transformers with Global Average Pooling 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Maximizing the Position Embedding for Vision Transformers with Global Average Pooling 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Maximizing the Position Embedding for Vision Transformers with Global Average Pooling 引用了 Training data-efficient image transformers & distillation through attention
  • Maximizing the Position Embedding for Vision Transformers with Global Average Pooling 引用了 Deformable DETR: Deformable Transformers for End-to-End Object Detection
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Training data-efficient image transformers & distillation through attention
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Deformable DETR: Deformable Transformers for End-to-End Object Detection
  • Training data-efficient image transformers & distillation through attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper2

  1. Cross-modal Prompts: Adapting Large Pre-trained Models for Audio-Visual Downstream TasksHaoyi Duan, Yan Xia, Mingze Zhou, Li Tang 等NeurIPS 2023 · 59 次引用
  2. Maximizing the Position Embedding for Vision Transformers with Global Average PoolingWonjun Lee, Bumsub Ham, Suhyun KimAAAI 2025 · 3 次引用

它引用的 Paper25

  1. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  3. SegFormer: Simple and Efficient Design for Semantic Segmentation with TransformersEnze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar 等NeurIPS 2021 · 9,661 次引用
  4. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa 等ICML 2021 · 8,974 次引用
  5. Deformable DETR: Deformable Transformers for End-to-End Object DetectionXizhou Zhu, Weijie Su, Lewei Lu, Bin Li 等ICLR 2021 · 7,353 次引用

相关 Paper

  1. LOOPE: Learnable Optimal Patch Order for Positional Encoders in Vision TransformersMd Abtahi Majeed Chowdhury, Md Rifat Ur Rahman, Akil Ahmad TakiCVPR Findings 2026
  2. Dynamic Token Normalization improves Vision TransformersWenqi Shao, Yixiao Ge, Zhaoyang Zhang, Xuyuan Xu 等ICLR 2022 · 13 次引用
  3. MSPE: Multi-Scale Patch Embedding Prompts Vision Transformers to Any ResolutionWenzhuo Liu, Fei Zhu, Shijie Ma, Cheng-Lin LiuNeurIPS 2024 · 17 次引用
  4. Positional Label for Self-Supervised Vision TransformerZhemin Zhang, Xun GongAAAI 2023 · 12 次引用
  5. Scale-space Tokenization for Improving the Robustness of Vision TransformersLei Xu, Rei Kawakami, Nakamasa InoueACM MM 2023 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖