亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整的填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

Your Transformer May Not be as Powerful as You Expect

Softmax函数 变压器 计算机科学 人工神经网络 算法 理论计算机科学 人工智能 电气工程 电压 工程类
作者
Shengjie Luo,Shanda Li,Shuxin Zheng,Tie-Yan Liu,Liwei Wang,Dawei He
出处
期刊:Cornell University - arXiv
标识
DOI:10.48550/arxiv.2205.13401
摘要

Relative Positional Encoding (RPE), which encodes the relative distance between any pair of tokens, is one of the most successful modifications to the original Transformer. As far as we know, theoretical understanding of the RPE-based Transformers is largely unexplored. In this work, we mathematically analyze the power of RPE-based Transformers regarding whether the model is capable of approximating any continuous sequence-to-sequence functions. One may naturally assume the answer is in the affirmative -- RPE-based Transformers are universal function approximators. However, we present a negative result by showing there exist continuous sequence-to-sequence functions that RPE-based Transformers cannot approximate no matter how deep and wide the neural network is. One key reason lies in that most RPEs are placed in the softmax attention that always generates a right stochastic matrix. This restricts the network from capturing positional information in the RPEs and limits its capacity. To overcome the problem and make the model more powerful, we first present sufficient conditions for RPE-based Transformers to achieve universal function approximation. With the theoretical guidance, we develop a novel attention module, called Universal RPE-based (URPE) Attention, which satisfies the conditions. Therefore, the corresponding URPE-based Transformers become universal function approximators. Extensive experiments covering typical architectures and tasks demonstrate that our model is parameter-efficient and can achieve superior performance to strong baselines in a wide range of applications. The code will be made publicly available at https://github.com/lsj2408/URPE.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
大幅提高文件上传限制,最高150M (2024-4-1)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
无心的板凳完成签到,获得积分10
4秒前
7秒前
Estella发布了新的文献求助10
13秒前
13秒前
123456完成签到,获得积分10
52秒前
科研通AI2S应助科研通管家采纳,获得10
1分钟前
1分钟前
1分钟前
lala完成签到,获得积分10
2分钟前
吃鱼骨头的猫完成签到,获得积分10
2分钟前
2分钟前
3分钟前
小马甲应助科研通管家采纳,获得30
3分钟前
SciGPT应助科研通管家采纳,获得10
3分钟前
易琚发布了新的文献求助10
3分钟前
小a发布了新的文献求助10
3分钟前
3分钟前
8OK发布了新的文献求助20
3分钟前
搜集达人应助困得想薯采纳,获得10
3分钟前
3分钟前
JamesPei应助小a采纳,获得10
4分钟前
4分钟前
4分钟前
小a发布了新的文献求助10
4分钟前
老王家的儿姑娘完成签到 ,获得积分10
4分钟前
zxy完成签到 ,获得积分10
4分钟前
4分钟前
小马甲应助小a采纳,获得30
5分钟前
易琚完成签到,获得积分10
5分钟前
5分钟前
小a发布了新的文献求助30
5分钟前
ruann完成签到 ,获得积分10
5分钟前
6分钟前
Cedricharr1s完成签到,获得积分10
6分钟前
飞艇完成签到 ,获得积分10
6分钟前
叶子的叶完成签到,获得积分10
6分钟前
7分钟前
很呆的瓜发布了新的文献求助30
7分钟前
8分钟前
hahaha发布了新的文献求助10
8分钟前
高分求助中
Teaching Social and Emotional Learning in Physical Education 900
Plesiosaur extinction cycles; events that mark the beginning, middle and end of the Cretaceous 800
Boris Pesce - Gli impiegati della Fiat dal 1955 al 1999 un percorso nella memoria 500
Chinese-English Translation Lexicon Version 3.0 500
Recherches Ethnographiques sue les Yao dans la Chine du Sud 500
Two-sample Mendelian randomization analysis reveals causal relationships between blood lipids and venous thromboembolism 500
[Lambert-Eaton syndrome without calcium channel autoantibodies] 460
热门求助领域 (近24小时)
化学 材料科学 医学 生物 有机化学 工程类 生物化学 纳米技术 物理 内科学 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 电极 光电子学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 2395660
求助须知:如何正确求助?哪些是违规求助? 2098663
关于积分的说明 5289031
捐赠科研通 1826023
什么是DOI,文献DOI怎么找? 910431
版权声明 559974
科研通“疑难数据库(出版商)”最低求助积分说明 486595