资源论文ARE TRANSFORMERS UNIVERSAL APPROXIMATORSOF SEQUENCE -TO -SEQUENCE FUNCTIONS

ARE TRANSFORMERS UNIVERSAL APPROXIMATORSOF SEQUENCE -TO -SEQUENCE FUNCTIONS

2020-01-02 | |  84 |   38 |   0

Abstract

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 selfattention layers and empirically evaluate them.

上一篇:LEARNING COMPOSITIONAL KOOPMAN OPERATORSFOR MODEL -BASED CONTROL

下一篇:DEEP BATCH ACTIVE LEARNING BYD IVERSE ,U NCERTAIN GRADIENT LOWER BOUNDS

用户评价
全部评价

热门资源

  • The Variational S...

    Unlike traditional images which do not offer in...

  • Learning to Predi...

    Much of model-based reinforcement learning invo...

  • Stratified Strate...

    In this paper we introduce Stratified Strategy ...

  • Learning to learn...

    The move from hand-designed features to learned...

  • A Mathematical Mo...

    Direct democracy, where each voter casts one vo...