清晨好,您是今天最早来到科研通的研友!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您科研之路漫漫前行!

Self-attention Mechanism at the Token Level: Gradient Analysis and Algorithm Optimization

计算机科学 安全性令牌 变压器 机器翻译 人工智能 机制(生物学) 算法 失真(音乐) 电压 认识论 带宽(计算) 放大器 哲学 物理 量子力学 计算机安全 计算机网络
作者
Linqing Liu,Xiaolong Xu
出处
期刊:Knowledge Based Systems [Elsevier BV]
卷期号:277: 110784-110784 被引量:5
标识
DOI:10.1016/j.knosys.2023.110784
摘要

The self-attention mechanism is a feature processing mechanism for structured data in deep learning models. It has been widely used in transformer-based deep learning models and has demonstrated superior performance in various fields, such as machine translation, speech recognition, text-to-text conversion, and computer vision. The self-attention mechanism mainly focuses on the surface structure of structured data, but it also involves attention between basic data units and self-attention of basic data units in the deeper structure of the data. In this paper, we investigate the forward attention flow and backward gradient flow in the self-attention module of the transformer model based on the sequence-to-sequence data structure used in machine translation tasks. We found that this combination produces a "gradient distortion" phenomenon at the token level of basic data units. We consider this phenomenon a defect and propose a series of solutions to address it theoretically. Furthermore, we conduct experiments and select the most robust solution as the Unevenness-Reduced Self-Attention (URSA) module, which replaces the original self-attention module. The experimental results demonstrate that the "gradient distortion" phenomenon exists both theoretically and numerically, and the URSA module enables the self-attention mechanism to achieve consistent, stable, and effective optimization across different models, tasks, corpora, and evaluation metrics. The URSA module is both simple and highly portable.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
大个应助木昆采纳,获得10
9秒前
研友_8Y2DXL完成签到,获得积分10
13秒前
欣喜的涵柏完成签到 ,获得积分10
17秒前
77wlr完成签到,获得积分10
18秒前
xiang完成签到,获得积分10
24秒前
wakawaka完成签到 ,获得积分10
24秒前
Akim应助聪明怜阳采纳,获得10
24秒前
30秒前
优秀的流沙完成签到,获得积分10
35秒前
35秒前
xiaowangwang完成签到 ,获得积分10
35秒前
木昆发布了新的文献求助10
36秒前
粗暴的镜子完成签到,获得积分10
38秒前
聪明怜阳发布了新的文献求助10
41秒前
小鸭嘎嘎完成签到 ,获得积分10
41秒前
聪明怜阳完成签到,获得积分10
54秒前
耍酷的指甲油完成签到 ,获得积分10
55秒前
务实的一斩完成签到 ,获得积分10
57秒前
彩色的芷容完成签到 ,获得积分20
1分钟前
changfox完成签到,获得积分10
1分钟前
迅速的千风完成签到 ,获得积分10
1分钟前
fyj完成签到 ,获得积分10
1分钟前
大大大忽悠完成签到 ,获得积分10
1分钟前
always完成签到,获得积分10
1分钟前
zl完成签到,获得积分10
1分钟前
冷静的尔竹完成签到,获得积分10
1分钟前
Axel完成签到,获得积分10
1分钟前
淡然的冬瓜完成签到,获得积分10
1分钟前
muriel完成签到,获得积分0
1分钟前
creep2020完成签到,获得积分0
1分钟前
e746700020完成签到,获得积分10
1分钟前
Kao应助科研通管家采纳,获得10
1分钟前
Kao应助科研通管家采纳,获得10
1分钟前
2分钟前
忘忧Aquarius完成签到,获得积分0
2分钟前
狮山教授发布了新的文献求助10
2分钟前
TOUHOUU完成签到 ,获得积分10
2分钟前
狮山教授完成签到,获得积分10
2分钟前
wzbc完成签到,获得积分10
2分钟前
Dan_Young完成签到,获得积分10
2分钟前
高分求助中
Principles of Economics, 11th Edition 10000
University Physics with Modern Physics, 16th edition 10000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Development of a Bridge Weigh-In-Motion System: A technology to convert the bridge response to the passage of traffic into data on vehicle configurations, speeds, times of travel and weights 1000
ズームレンズの光学設計に関する研究 800
Fundamentals of Pharmaceutical and Biologics Regulations: A Global Perspective, Second Edition 700
Matrix Methods in Data Mining and Pattern Recognition Second Edition 610
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7282125
求助须知:如何正确求助?哪些是违规求助? 8902995
关于积分的说明 18833740
捐赠科研通 6953175
什么是DOI,文献DOI怎么找? 3207556
关于科研通互助平台的介绍 2377826
邀请新用户注册赠送积分活动 2182729