PolaFormer: Polarity-aware Linear Attention for Vision Transformers
Weikang Meng, Yadan Luo, Xin Li, Dongmei Jiang, Zheng Zhang
摘要
Linear attention has emerged as a promising alternative to softmax-based attention, leveraging kernelized feature maps to reduce complexity from quadratic to linear in sequence length. However, the non-negative constraint on feature maps and the relaxed exponential function used in approximation lead to significant information loss compared to the original query-key dot products, resulting in less discriminative attention maps with higher entropy. To address the missing interactions driven by negative values in query-key pairs, we propose a polarity-aware linear attention mechanism that explicitly models both same-signed and opposite-signed query-key interactions, ensuring comprehensive coverage of relational information. Furthermore, to restore the spiky properties of attention maps, we provide a theoretical analysis proving the existence of a class of element-wise functions (with positive first and second derivatives) that can reduce entropy in the attention distribution. For simplicity, and recognizing the distinct contributions of each dimension, we employ a learnable power function for rescaling, allowing strong and weak attention signals to be effectively separated. Extensive experiments demonstrate that the proposed PolaFormer improves performance on various vision tasks, enhancing both expressiveness and efficiency by up to 4.6%. Code is available at https://github.com/ZacharyMeng/PolaFormer . Figure 1: Attention weight visualization. Unlike prior linear attention approaches ((Katharopoulos et al., 2020) the 3rd and (Han et al., 2023a) 4th plots) that generate uniform responses, the proposed PolaFormer captures a more accurate query-key interaction with lower entropy, closely resembling softmax while maintaining linear complexity.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- VMamba: Visual State Space Model 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- VMamba: Visual State Space Model 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- VMamba: Visual State Space Model 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- VMamba: Visual State Space Model 引用了 Training data-efficient image transformers & distillation through attention
- HierEdit: Region-Aware Hierarchical Diffusion for Efficient High-Resolution Editing 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Norm\timesDirection: Restoring the Missing Query Norm in Vision Linear Attention 引用了 VMamba: Visual State Space Model
- Norm\timesDirection: Restoring the Missing Query Norm in Vision Linear Attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Norm\timesDirection: Restoring the Missing Query Norm in Vision Linear Attention 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Norm\timesDirection: Restoring the Missing Query Norm in Vision Linear Attention 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- Norm\timesDirection: Restoring the Missing Query Norm in Vision Linear Attention 引用了 Training data-efficient image transformers & distillation through attention
- Norm\timesDirection: Restoring the Missing Query Norm in Vision Linear Attention 引用了 Cluster-Wise Spatio-Temporal Masking for Efficient Video-Language Pretraining
- Norm\timesDirection: Restoring the Missing Query Norm in Vision Linear Attention 引用了 Vision Transformers Are Circulant Attention Learners
- LaplacianFormer: Rethinking Linear Attention with Laplacian Kernel 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- LaplacianFormer: Rethinking Linear Attention with Laplacian Kernel 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- LaplacianFormer: Rethinking Linear Attention with Laplacian Kernel 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- 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 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Training data-efficient image transformers & distillation through attention
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions 引用了 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
- Cluster-Wise Spatio-Temporal Masking for Efficient Video-Language Pretraining 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Vision Transformers Are Circulant Attention Learners 引用了 VMamba: Visual State Space Model
- Vision Transformers Are Circulant Attention Learners 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Vision Transformers Are Circulant Attention Learners 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Vision Transformers Are Circulant Attention Learners 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- Vision Transformers Are Circulant Attention Learners 引用了 Training data-efficient image transformers & distillation through attention
引用它的顶会 Paper10
- LaplacianFormer: Rethinking Linear Attention with Laplacian KernelZhe Feng, Sen Lian, Changwei Wang, Muyang Zhang 等ICLR 2026 · 3 次引用
- Cluster-Wise Spatio-Temporal Masking for Efficient Video-Language PretrainingWeijun Zhuang, Yuqing Huang, Weikang Meng, Xin Li 等CVPR 2026 · 3 次引用
- HierEdit: Region-Aware Hierarchical Diffusion for Efficient High-Resolution EditingYuyao Zhang, Alexander Huang-Menders, Yu-Wing TaiCVPR 2026 · 2 次引用
- NormDirection: Restoring the Missing Query Norm in Vision Linear AttentionWeikang Meng, Yadan Luo, Liangyu Huo, Yingjian Li 等ICML 2026 · 2 次引用
- Vision Transformers Are Circulant Attention LearnersDongchen Han, Tianyu Li, Ziyi Wang, Gao HuangAAAI 2026 · 2 次引用
它引用的 Paper18
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa 等ICML 2021 · 8,974 次引用
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without ConvolutionsWenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan 等ICCV 2021 · 4,909 次引用
- VMamba: Visual State Space ModelYue Liu, Yunjie Tian, Yuzhong Zhao, Hongtian Yu 等NeurIPS 2024 · 3,199 次引用
相关 Paper
- cosFormer: Rethinking Softmax In AttentionZhen Qin, Weixuan Sun, Hui Deng, Dongxu Li 等ICLR 2022 · 303 次引用
- Rectifying Magnitude Neglect in Linear AttentionQihang Fan, Huaibo Huang, Yuang Ai, Ran HeICCV 2025 · 14 次引用
- PolySketchFormer: Fast Transformers via Sketching Polynomial KernelsPraneeth Kacham, Vahab Mirrokni, Peilin ZhongICML 2024 · 27 次引用
- Linear Complexity Randomized Self-attention MechanismLin Zheng, Chong Wang, Lingpeng KongICML 2022 · 39 次引用
- Flowformer: Linearizing Transformers with Conservation FlowsHaixu Wu, Jialong Wu, Jiehui Xu, Jianmin Wang 等ICML 2022 · 130 次引用
