The encoding method of position embeddings in vision transformer

嵌入 职位(财务) 计算机科学 人工智能 卷积神经网络 编码(内存) 变压器 模式识别(心理学) 人工神经网络 计算机视觉 工程类 财务 电气工程 经济 电压
作者
Kai Jiang,Peng Peng,Youzao Lian,Weisheng Xu
出处
期刊:Journal of Visual Communication and Image Representation [Elsevier]
卷期号:89: 103664-103664 被引量:14
标识
DOI:10.1016/j.jvcir.2022.103664
摘要

In contrast to Convolutional Neural Networks (CNNs), Vision Transformers (ViT) cannot capture sequence ordering of input tokens and require position embeddings. As a learnable fixed-dimension vector, the position embedding improves accuracy while limiting the migration of the model between different input sizes. Hence, this paper conducts an empirical study on position embeddings of pre-trained models, which mainly focuses on two questions: (1) What do the position embeddings learn from training? (2) How do the position embeddings affect the self-attention modules? This paper analyzes the pattern of position embedding in pre-trained models and finds that the linear combination of Gabor filters and edge markers can fit the learned position embeddings well. The Gabor filters and edge markers can occupy some channels to append the position information, and the edge markers have flowed to values in self-attention modules. The experimental results can guide future work to choose suitable position embeddings.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
丘比特应助布鲁鲁采纳,获得10
1秒前
4秒前
杰杰大叔发布了新的文献求助10
4秒前
田様应助Zy采纳,获得10
5秒前
春风吹叁旬完成签到,获得积分20
7秒前
8秒前
9秒前
10秒前
orixero应助平淡的冰巧采纳,获得10
11秒前
12秒前
李密完成签到 ,获得积分10
13秒前
白日做梦完成签到 ,获得积分10
13秒前
mm_zxh完成签到,获得积分10
13秒前
阿航完成签到,获得积分10
14秒前
小许发布了新的文献求助10
14秒前
一勺晚安z发布了新的文献求助10
15秒前
oxygen253完成签到,获得积分10
17秒前
19秒前
橙子爱吃火龙果完成签到 ,获得积分10
19秒前
西西完成签到 ,获得积分10
22秒前
mz11完成签到,获得积分10
22秒前
23秒前
23秒前
Tycoon发布了新的文献求助10
25秒前
李天王完成签到,获得积分10
25秒前
tanrui发布了新的文献求助10
26秒前
26秒前
大西瓜发布了新的文献求助10
27秒前
领导范儿应助现代雪柳采纳,获得10
29秒前
Akim应助Tycoon采纳,获得10
31秒前
Iceshadows发布了新的文献求助10
31秒前
sci大佬完成签到,获得积分10
32秒前
33秒前
闲鱼电脑完成签到,获得积分10
35秒前
35秒前
37秒前
37秒前
41秒前
osteoclast发布了新的文献求助10
42秒前
现代雪柳发布了新的文献求助10
42秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Petrucci's General Chemistry: Principles and Modern Applications, 12th edition 600
FUNDAMENTAL STUDY OF ADAPTIVE CONTROL SYSTEMS 500
微纳米加工技术及其应用 500
Nanoelectronics and Information Technology: Advanced Electronic Materials and Novel Devices 500
Performance optimization of advanced vapor compression systems working with low-GWP refrigerants using numerical and experimental methods 500
Constitutional and Administrative Law 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 纳米技术 计算机科学 内科学 化学工程 复合材料 物理化学 基因 遗传学 催化作用 冶金 量子力学 光电子学
热门帖子
关注 科研通微信公众号,转发送积分 5300590
求助须知:如何正确求助?哪些是违规求助? 4448410
关于积分的说明 13845816
捐赠科研通 4334134
什么是DOI,文献DOI怎么找? 2379350
邀请新用户注册赠送积分活动 1374494
关于科研通互助平台的介绍 1340160