Lune

NeurIPS2022顶会

Improving Transformer with an Admixture of Attention Heads

Tan Nguyen, Tam Nguyen, Hai Do, Khai Nguyen, Vishwanath Saragadam, Minh Pham, Duy Khuong Nguyen, Nhat Ho, Stanley J. Osher

摘要

Transformers with multi-head self-attention have achieved remarkable success in sequence modeling and beyond. However, they suffer from high computational and memory complexities for computing the attention matrix at each head. Recently, it has been shown that those attention matrices lie on a low-dimensional manifold and, thus, are redundant. We propose the Transformer with a Finite Admixture of Shared Heads (FiSHformers), a novel class of efficient and flexible transformers that allow the sharing of attention matrices between attention heads. At the core of FiSHformer is a novel finite admixture model of shared heads (FiSH) that samples attention matrices from a set of global attention matrices. The number of global attention matrices is much smaller than the number of local attention matrices generated. FiSHformers directly learn these global attention matrices rather than the local ones as in other transformers, thus significantly improving the computational and memory efficiency of the model. We empirically verify the advantages of the FiSHformer over the baseline transformers in a wide range of practical applications including language modeling, machine translation, and image classification. On the WikiText-103, IWSLT'14 De-En and WMT'14 En-De, FiSHformers use much fewer floating-point operations per second (FLOPs), memory, and parameters compared to the baseline transformers.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Elliptical Attention 引用了 FourierFormer: Transformer Meets Generalized Fourier Integral Theorem
  • Elliptical Attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Elliptical Attention 引用了 Reformer: The Efficient Transformer
  • Elliptical Attention 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Elliptical Attention 引用了 Designing Robust Transformers using Robust Kernel Density Estimation
  • Elliptical Attention 引用了 Training data-efficient image transformers & distillation through attention
  • Elliptical Attention 引用了 Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis
  • Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis 引用了 Elliptical Attention
  • FourierFormer: Transformer Meets Generalized Fourier Integral Theorem 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • FourierFormer: Transformer Meets Generalized Fourier Integral Theorem 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • FourierFormer: Transformer Meets Generalized Fourier Integral Theorem 引用了 Language Models are Few-Shot Learners
  • FourierFormer: Transformer Meets Generalized Fourier Integral Theorem 引用了 Training data-efficient image transformers & distillation through attention
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 Language Models are Few-Shot Learners
  • SwitchHead: Accelerating Transformers with Mixture-of-Experts Attention 引用了 Language Models are Few-Shot Learners
  • 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
  • Designing Robust Transformers using Robust Kernel Density Estimation 引用了 FourierFormer: Transformer Meets Generalized Fourier Integral Theorem
  • Designing Robust Transformers using Robust Kernel Density Estimation 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Designing Robust Transformers using Robust Kernel Density Estimation 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Designing Robust Transformers using Robust Kernel Density Estimation 引用了 Language Models are Few-Shot Learners
  • Designing Robust Transformers using Robust Kernel Density Estimation 引用了 Training data-efficient image transformers & distillation through attention
  • Training data-efficient image transformers & distillation through attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis 引用了 FourierFormer: Transformer Meets Generalized Fourier Integral Theorem
  • Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis 引用了 Designing Robust Transformers using Robust Kernel Density Estimation
  • Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis 引用了 Language Models are Few-Shot Learners
  • Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis 引用了 Training data-efficient image transformers & distillation through attention
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper12

  1. FourierFormer: Transformer Meets Generalized Fourier Integral TheoremTan Nguyen, Minh Pham, Tam Nguyen, Khai Nguyen 等NeurIPS 2022 · 59 次引用
  2. SwitchHead: Accelerating Transformers with Mixture-of-Experts AttentionRóbert Csordás, Piotr Piekos, Kazuki Irie, Jürgen SchmidhuberNeurIPS 2024 · 46 次引用
  3. Designing Robust Transformers using Robust Kernel Density EstimationXing Han, Tongzheng Ren, Tan Nguyen, Khai Nguyen 等NeurIPS 2023 · 14 次引用
  4. Elliptical AttentionStefan K. Nielsen, Laziz U. Abdullaev, Rachel S. Y. Teo, Tan NguyenNeurIPS 2024 · 12 次引用
  5. Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component AnalysisRachel S. Y. Teo, Tan M. NguyenNeurIPS 2024 · 11 次引用

它引用的 Paper19

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
  3. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  4. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa 等ICML 2021 · 8,974 次引用
  5. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 次引用

相关 Paper

  1. MemoryFormer : Minimize Transformer Computation by Removing Fully-Connected LayersNing Ding, Yehui Tang, Haochen Qin, Zhenli Zhou 等NeurIPS 2024 · 8 次引用
  2. Improving Transformers with Probabilistic Attention KeysTam Minh Nguyen, Tan Minh Nguyen, Dung D. Le, Duy Khuong Nguyen 等ICML 2022 · 38 次引用
  3. Linearizing Transformer with Key-Value MemoryYizhe Zhang, Deng CaiEMNLP 2022 · 3 次引用
  4. DenseFormer: Enhancing Information Flow in Transformers via Depth Weighted AveragingMatteo Pagliardini, Amirkeivan Mohtashami, François Fleuret, Martin JaggiNeurIPS 2024 · 60 次引用
  5. Diffuser: Efficient Transformers with Multi-Hop Attention Diffusion for Long SequencesAosong Feng, Irene Li, Yuang Jiang, Rex YingAAAI 2023 · 20 次引用
黄昏的海面,两侧是细线勾勒的悬崖