arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.08323cs.LGcs.CL
收藏

关于Transformer核的学习

On Learning the Transformer Kernel

ETH Zürich(苏黎世联邦理工学院);Google Research(谷歌研究院)

Sankalan Pal Chowdhury, Adamos Solomou, Avinava Dubey, Mrinmaya Sachan

摘要:

在这项工作中,我们介绍KERNELIZED Transformer,一个通用的,可扩展的,数据驱动的框架,学习内核功能的Transformers。我们的框架将Transformer内核近似为光谱特征图之间的点积,并通过学习光谱分布来学习内核。这不仅有助于端到端地学习通用内核,而且还将Transformers的时间和空间复杂度从二次降低到线性。我们表明,KERNELIZED Transformers实现性能媲美现有的高效Transformer架构,无论是在精度和计算效率。我们的研究还表明,内核的选择对性能有很大的影响,内核学习变体是固定内核Transformers的竞争替代品,无论是在长序列还是短序列任务中。

英文摘要:

In this work we introduce KERNELIZED TRANSFORMER, a generic, scalable, data driven framework for learning the kernel function in Transformers. Our framework approximates the Transformer kernel as a dot product between spectral feature maps and learns the kernel by learning the spectral distribution. This not only helps in learning a generic kernel end-to-end, but also reduces the time and space complexity of Transformers from quadratic to linear. We show that KERNELIZED TRANSFORMERS achieve performance comparable to existing efficient Transformer architectures, both in terms of accuracy as well as computational efficiency. Our study also demonstrates that the choice of the kernel has a substantial impact on performance, and kernel learning variants are competitive alternatives to fixed kernel Transformers, both in long as well as short sequence tasks.

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

↑