PolaFormer: Polarity-aware Linear Attention for Vision Transformers

极性(国际关系) 变压器 计算机科学 验光服务 人工智能 医学 工程类 电气工程 电压 化学 生物化学 细胞
作者
Weikang Meng,Yadan Luo,Xin Li,Dongmei Jiang,Zheng Zhang
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:2
标识
DOI:10.48550/arxiv.2501.15061
摘要

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%.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
追寻达发布了新的文献求助30
刚刚
十二发布了新的文献求助10
刚刚
seuu完成签到 ,获得积分10
1秒前
Faceman完成签到,获得积分20
1秒前
1秒前
清茶发布了新的文献求助10
1秒前
科研通AI6.4应助pipi采纳,获得10
1秒前
ayan完成签到,获得积分10
1秒前
2秒前
racill发布了新的文献求助10
2秒前
Cancellerzz发布了新的文献求助10
3秒前
鳗鱼香萱完成签到,获得积分10
3秒前
3秒前
刘书洋发布了新的文献求助20
4秒前
爱吃的肥虾完成签到,获得积分0
4秒前
沐坤关发布了新的文献求助30
4秒前
hyunjj_niel发布了新的文献求助10
4秒前
欣喜的香菱完成签到 ,获得积分10
5秒前
6秒前
Wearnn发布了新的文献求助10
7秒前
xvedi发布了新的文献求助10
8秒前
哈基伟发布了新的文献求助10
9秒前
FashionBoy应助guyu谷雨采纳,获得30
9秒前
斯文败类应助su采纳,获得10
10秒前
Criminology34应助六月飞雪采纳,获得10
10秒前
11秒前
CipherSage应助gjy采纳,获得10
11秒前
研友_VZG7GZ应助Alone采纳,获得10
11秒前
叶湘伦发布了新的文献求助10
11秒前
13秒前
se完成签到,获得积分20
15秒前
16秒前
molihuakai应助痴情的安荷采纳,获得10
17秒前
minnanfan完成签到 ,获得积分10
17秒前
在水一方应助AISEASEA采纳,获得10
17秒前
wqx完成签到,获得积分10
17秒前
科研通AI6.4应助AISEASEA采纳,获得10
17秒前
科研通AI6.2应助AISEASEA采纳,获得10
17秒前
深情安青应助AISEASEA采纳,获得10
18秒前
科研通AI6.2应助AISEASEA采纳,获得10
18秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
内視鏡的に摘除しえた十二指腸乳頭部腫瘍の2例 660
On nonlinear stability of contact discontinuities. In: Hyperbolic problems: theory, numerics, applications (Stony Brook, NY, 1994) 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
微电子器件实验教程 400
The Neuroscience of Language 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7679076
求助须知:如何正确求助?哪些是违规求助? 9244119
关于积分的说明 19927755
捐赠科研通 7249825
什么是DOI,文献DOI怎么找? 3287305
关于科研通互助平台的介绍 2445011
邀请新用户注册赠送积分活动 2290568