Implicit Kernel Attention
Kyungwoo Song, Yohan Jung, Dongjun Kim, Il-Chul Moon
摘要
Attention computes the dependency between representations, and it encourages the model to focus on the important selective features. Attention-based models, such as Transformer and graph attention network (GAT), are widely utilized for sequential data and graph-structured data. This paper suggests a new interpretation and generalized structure of the attention in Transformer and GAT. For the attention in Transformer and GAT, we derive that the attention is a product of two parts: 1) the RBF kernel to measure the similarity of two instances and 2) the exponential of L 2 norm to compute the importance of individual instances. From this decomposition, we generalize the attention in three ways. First, we propose implicit kernel attention with an implicit kernel function instead of manual kernel selection. Second, we generalize L 2 norm as the L p norm. Third, we extend our attention to structured multi-head attention. Our generalized attention shows better performance on classification, translation, and regression tasks.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Perceiving Longer Sequences With Bi-Directional Cross-Attention Transformers 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Perceiving Longer Sequences With Bi-Directional Cross-Attention Transformers 引用了 Rethinking Attention with Performers
- Rethinking Attention with Performers 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Choose a Transformer: Fourier or Galerkin 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Choose a Transformer: Fourier or Galerkin 引用了 Rethinking Attention with Performers
- Is Attention Better Than Matrix Decomposition? 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
引用它的顶会 Paper4
- Choose a Transformer: Fourier or GalerkinShuhao CaoNeurIPS 2021 · 516 次引用
- Is Attention Better Than Matrix Decomposition?Zhengyang Geng, Meng-Hao Guo, Hongxu Chen, Xia Li 等ICLR 2021 · 171 次引用
- Uniform Memory Retrieval with Larger Capacity for Modern Hopfield ModelsDennis Wu, Jerry Yao-Chieh Hu, Teng-Yun Hsiao, Han LiuICML 2024 · 44 次引用
- Perceiving Longer Sequences With Bi-Directional Cross-Attention TransformersMarkus Hiller, Krista A. Ehinger, Tom DrummondNeurIPS 2024 · 23 次引用
它引用的 Paper3
- Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 次引用
- Encoding word order in complex embeddingsBenyou Wang, Donghao Zhao, Christina Lioma, Qiuchi Li 等ICLR 2020 · 134 次引用
- Rethinking Attention with PerformersKrzysztof Marcin Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song 等ICLR 2021 · 122 次引用
相关 Paper
- FourierFormer: Transformer Meets Generalized Fourier Integral TheoremTan Nguyen, Minh Pham, Tam Nguyen, Khai Nguyen 等NeurIPS 2022 · 59 次引用
- A Primal-Dual Framework for Transformers and Neural NetworksTan Minh Nguyen, Tam Minh Nguyen, Nhat Ho, Andrea L. Bertozzi 等ICLR 2023 · 2 次引用
- DHAKR: Learning Deep Hierarchical Attention-Based Kernelized Representations for Graph ClassificationFeifei Qian, Lu Bai, Lixin Cui, Ming Li 等AAAI 2025 · 4 次引用
- GBK-GNN: Gated Bi-Kernel Graph Neural Networks for Modeling Both Homophily and HeterophilyLun Du, Xiaozhou Shi, Qiang Fu, Xiaojun Ma 等WWW 2022 · 155 次引用
- Sequential Recommendation with Relation-Aware Kernelized Self-AttentionMingi Ji, Weonyoung Joo, Kyungwoo Song, Yoon-Yeong Kim 等AAAI 2020 · 31 次引用
