arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1912.10077cs.LGstat.ML
收藏

Transformers是序列到序列函数的通用逼近器吗?

Are Transformers universal approximators of sequence-to-sequence functions?

MIT(麻省理工学院);Google Research(谷歌研究院)

Chulhee Yun, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank J. Reddi, Sanjiv Kumar

摘要:

尽管Transformer模型被广泛用于NLP任务,但这些模型的表达能力还没有得到很好的理解。在本文中,我们建立了Transformer模型是具有紧支撑的连续置换等变序列到序列函数的通用逼近器,这是相当令人惊讶的,因为这些模型中的共享参数的数量。此外,使用位置编码,我们绕过了置换等方差的限制,并表明,Transformer模型可以普遍逼近任意连续序列到序列的功能上的一个紧凑的区域。有趣的是,我们的证明技术清楚地突出了自我注意和前馈层在Transformers中的不同角色。特别地,我们证明了固定宽度的自注意层可以计算输入序列的上下文映射,在Transformers的通用近似性质中起着关键作用。基于我们的分析,我们考虑了自我注意层的其他更简单的替代方案,并对其进行了实证评估。

英文摘要:

Despite the widespread adoption of Transformer models for NLP tasks, the expressive power of these models is not well-understood. In this paper, we establish that Transformer models are universal approximators of continuous permutation equivariant sequence-to-sequence functions with compact support, which is quite surprising given the amount of shared parameters in these models. Furthermore, using positional encodings, we circumvent the restriction of permutation equivariance, and show that Transformer models can universally approximate arbitrary continuous sequence-to-sequence functions on a compact domain. Interestingly, our proof techniques clearly highlight the different roles of the self-attention and the feed-forward layers in Transformers. In particular, we prove that fixed width self-attention layers can compute contextual mappings of the input sequences, playing a key role in the universal approximation property of Transformers. Based on this insight from our analysis, we consider other simpler alternatives to self-attention layers and empirically evaluate them.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑