DAPE V2: Process Attention Score as Feature Map for Length Extrapolation
Chuanyang Zheng, Yihang Gao, Han Shi, Jing Xiong, Jiankai Sun, Jingyao Li, Minbin Huang, Xiaozhe Ren, Michael Ng, Xin Jiang, Zhenguo Li, Yu Li
摘要
The attention mechanism is a fundamental component of the Transformer model, contributing to interactions among distinct tokens, in contrast to earlier feed-forward neural networks. In general, the attention scores are determined simply by the key-query products. However, this work's occasional trial (combining DAPE and NoPE) of including additional MLPs on attention scores without position encoding indicates that the classical key-query multiplication may limit the performance of Transformers. In this work, we conceptualize attention as a feature map and apply the convolution operator (for neighboring attention scores across different heads) to mimic the processing methods in computer vision. Specifically, the main contribution of this paper is identifying and interpreting the Transformer length extrapolation problem as a result of the limited expressiveness of the naive query and key dot product, and we successfully translate the length extrapolation issue into a well-understood feature map processing problem. The novel insight, which can be adapted to various attention-related models, reveals that the current Transformer architecture has the potential for further evolution. Extensive experiments demonstrate that treating attention as a feature map and applying convolution as a processing method significantly enhances Transformer performance.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Efficient Streaming Language Models with Attention Sinks 引用了 Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation
- Efficient Streaming Language Models with Attention Sinks 引用了 Language Models are Few-Shot Learners
- PaTH Attention: Position Encoding via Accumulating Householder Transformations 引用了 Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation
- Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation 引用了 Language Models are Few-Shot Learners
- Scalable Diffusion Models with Transformers 引用了 Language Models are Few-Shot Learners
- Context-aware Biases for Length Extrapolation 引用了 Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation
- Beyond Real: Imaginary Extension of Rotary Position Embeddings for Long-Context LLMs 引用了 PaTH Attention: Position Encoding via Accumulating Householder Transformations
- Beyond Real: Imaginary Extension of Rotary Position Embeddings for Long-Context LLMs 引用了 Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation
- SAS: Simulated Attention Score 引用了 Efficient Streaming Language Models with Attention Sinks
- SAS: Simulated Attention Score 引用了 Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation
- SAS: Simulated Attention Score 引用了 Language Models are Few-Shot Learners
- SAS: Simulated Attention Score 引用了 PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarization
引用它的顶会 Paper7
- PaTH Attention: Position Encoding via Accumulating Householder TransformationsSonglin Yang, Yikang Shen, Kaiyue Wen, Shawn Tan 等NeurIPS 2025 · 36 次引用
- Mixture-of-Scores: Robust Image-Text Data Valuation via Three Lines of CodeSitong Wu, Haoru Tan, Yukang Chen, Shaofeng Zhang 等ICCV 2025 · 4 次引用
- SAS: Simulated Attention ScoreChuanyang Zheng, Jiankai Sun, Yihang Gao, Yuehao Wang 等NeurIPS 2025 · 3 次引用
- Context-aware Biases for Length ExtrapolationAli Veisi, Hamidreza Amirzadeh, Amir MansourianEMNLP 2025 · 2 次引用
- Beyond Real: Imaginary Extension of Rotary Position Embeddings for Long-Context LLMsXiaoran Liu, Yuerong Song, Zhigeng Liu, Zengfeng Huang 等ICLR 2026 · 2 次引用
它引用的 Paper54
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Scalable Diffusion Models with TransformersWilliam Peebles, Saining XieICCV 2023 · 5,568 次引用
- PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive SummarizationJingqing Zhang, Yao Zhao, Mohammad Saleh, Peter J. LiuICML 2020 · 2,453 次引用
- Efficient Streaming Language Models with Attention SinksGuangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han 等ICLR 2024 · 1,714 次引用
- Train Short, Test Long: Attention with Linear Biases Enables Input Length ExtrapolationOfir Press, Noah A. Smith, Mike LewisICLR 2022 · 1,168 次引用
相关 Paper
- Evolving Attention with Residual ConvolutionsYujing Wang, Yaming Yang, Jiangang Bai, Mingliang Zhang 等ICML 2021 · 43 次引用
- A Length-Extrapolatable TransformerYutao Sun, Li Dong, Barun Patra, Shuming Ma 等ACL 2023 · 45 次引用
- Jump Self-attention: Capturing High-order Statistics in TransformersHaoyi Zhou, Siyang Xiao, Shanghang Zhang, Jieqi Peng 等NeurIPS 2022 · 4 次引用
- Transformer Working Memory Enables Regular Language Reasoning And Natural Language Length ExtrapolationTa-Chung Chi, Ting-Han Fan, Alexander Rudnicky, Peter J. RamadgeEMNLP Findings 2023 · 1 次引用
- Linear Log-Normal Attention with Unbiased ConcentrationYury Nahshan, Joseph Kampeas, Emir HalevaICLR 2024 · 13 次引用
