Lune

ICLR2023顶会

Treeformer: Dense Gradient Trees for Efficient Attention Computation

Lovish Madaan, Srinadh Bhojanapalli, Himanshu Jain, Prateek Jain

摘要

Standard inference and training with transformer based architectures scale quadratically with input sequence length. This is prohibitively large for a variety of applications especially in web-page translation, query-answering etc. Consequently, several approaches have been developed recently to speedup attention computation by enforcing different attention structures such as sparsity (Zaheer et al., 2020 ), low-rank (Wang et al., 2020), approximating attention using kernels (Choromanski et al., 2021) . In this work, we view attention computation as that of nearest neighbor retrieval, and use decision tree based hierarchical navigation to reduce the retrieval cost per query token from linear in sequence length to nearly logarithmic. Based on such hierarchical navigation, we design Treeformer which can use one of two efficient attention layers -TF-ATTENTION and TC-ATTENTION. TF-ATTENTION computes the attention in a fine-grained style, while TC-ATTENTION is a coarse attention layer which also ensures that the gradients are "dense". To optimize such challenging discrete layers, we propose a two-level bootstrapped training method. Using extensive experiments on standard NLP benchmarks, especially for long-sequences, we demonstrate that our TREEFORMER architecture can be almost as accurate as baseline Transformer while using 30x lesser FLOPs in the attention layer. Compared to Linformer, the accuracy can be as much as 12% higher while using similar FLOPs in the attention layer.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Long Range Arena : A Benchmark for Efficient Transformers 引用了 Big Bird: Transformers for Longer Sequences
  • Long Range Arena : A Benchmark for Efficient Transformers 引用了 Reformer: The Efficient Transformer
  • Big Bird: Transformers for Longer Sequences 引用了 Reformer: The Efficient Transformer
  • Efficiently Modeling Long Sequences with Structured State Spaces 引用了 Long Range Arena : A Benchmark for Efficient Transformers
  • Efficiently Modeling Long Sequences with Structured State Spaces 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Efficient Attention via Control Variates 引用了 Long Range Arena : A Benchmark for Efficient Transformers
  • Efficient Attention via Control Variates 引用了 Big Bird: Transformers for Longer Sequences
  • Efficient Attention via Control Variates 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Efficient Attention via Control Variates 引用了 Reformer: The Efficient Transformer
  • Log-Linear Attention 引用了 Efficiently Modeling Long Sequences with Structured State Spaces
  • Log-Linear Attention 引用了 Reformer: The Efficient Transformer
  • Training-free Diffusion Model Adaptation for Variable-Sized Text-to-Image Synthesis 引用了 Big Bird: Transformers for Longer Sequences
  • Training-free Diffusion Model Adaptation for Variable-Sized Text-to-Image Synthesis 引用了 Reformer: The Efficient Transformer
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. Training-free Diffusion Model Adaptation for Variable-Sized Text-to-Image SynthesisZhiyu Jin, Xuli Shen, Bin Li, Xiangyang XueNeurIPS 2023 · 72 次引用
  2. Log-Linear AttentionHan Guo, Songlin Yang, Tarushii Goel, Eric P. Xing 等ICLR 2026 · 41 次引用
  3. Efficient Attention via Control VariatesLin Zheng, Jianbo Yuan, Chong Wang, Lingpeng KongICLR 2023 · 2 次引用
  4. Tree Cross AttentionLeo Feng, Frederick Tung, Hossein Hajimirsadeghi, Yoshua Bengio 等ICLR 2024

它引用的 Paper9

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  2. Efficiently Modeling Long Sequences with Structured State SpacesAlbert Gu, Karan Goel, Christopher RéICLR 2022 · 3,482 次引用
  3. Big Bird: Transformers for Longer SequencesManzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie 等NeurIPS 2020 · 3,159 次引用
  4. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 次引用
  5. Long Range Arena : A Benchmark for Efficient TransformersYi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen 等ICLR 2021 · 881 次引用

相关 Paper

  1. Trainable Log-linear Sparse Attention for Efficient Diffusion TransformersYifan Zhou, Zeqi Xiao, Tianyi Wei, Shuai Yang 等CVPR 2026 · 6 次引用
  2. BiFormer: Vision Transformer with Bi-Level Routing AttentionLei Zhu, Xinjiang Wang, Zhanghan Ke, Wayne Zhang 等CVPR 2023
  3. KDEformer: Accelerating Transformers via Kernel Density EstimationAmir Zandieh, Insu Han, Majid Daliri, Amin KarbasiICML 2023 · 55 次引用
  4. MemoryFormer : Minimize Transformer Computation by Removing Fully-Connected LayersNing Ding, Yehui Tang, Haochen Qin, Zhenli Zhou 等NeurIPS 2024 · 8 次引用
  5. DenseFormer: Enhancing Information Flow in Transformers via Depth Weighted AveragingMatteo Pagliardini, Amirkeivan Mohtashami, François Fleuret, Martin JaggiNeurIPS 2024 · 60 次引用
黄昏的海面,两侧是细线勾勒的悬崖