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

Transformers是深度无限维非Mercer二进制核机器

Transformers are Deep Infinite-Dimensional Non-Mercer Binary Kernel Machines

University of California(加利福尼亚大学)

Matthew A. Wright, Joseph E. Gonzalez

摘要:

尽管它们在自然语言处理等核心人工智能领域无处不在,但像Transformer模型这样的基于深度注意力的神经网络的机制尚未完全理解。在这篇文章中,我们提出了一个新的视角来理解Transformers是如何工作的。特别是,我们表明,“点积注意”,这是Transformer的操作的核心,可以被描述为一对Banach空间上的核学习方法。特别地,Transformer的内核被表征为具有无限的特征维度。在此过程中,我们考虑将标准内核学习问题扩展到二进制设置,其中数据来自两个输入域,并且为每个跨域对定义响应。我们证明了一个新的表示定理,这些二进制核机器与非Mercer(不确定的,不对称的)内核(这意味着学习的功能是再生核Banach空间的元素,而不是希尔伯特空间),也证明了一个新的普遍逼近定理,表明Transformer计算可以学习任何二进制非Mercer再生核Banach空间对。我们在Transformers中对新内核进行了实验,并获得了表明标准Transformer内核的无限维度对其性能部分负责的结果。本文的研究结果为现代机器学习中一个非常重要但又知之甚少的模型提供了新的理论认识。

英文摘要:

Despite their ubiquity in core AI fields like natural language processing, the mechanics of deep attention-based neural networks like the Transformer model are not fully understood. In this article, we present a new perspective towards understanding how Transformers work. In particular, we show that the "dot-product attention" that is the core of the Transformer's operation can be characterized as a kernel learning method on a pair of Banach spaces. In particular, the Transformer's kernel is characterized as having an infinite feature dimension. Along the way we consider an extension of the standard kernel learning problem to a binary setting, where data come from two input domains and a response is defined for every cross-domain pair. We prove a new representer theorem for these binary kernel machines with non-Mercer (indefinite, asymmetric) kernels (implying that the functions learned are elements of reproducing kernel Banach spaces rather than Hilbert spaces), and also prove a new universal approximation theorem showing that the Transformer calculation can learn any binary non-Mercer reproducing kernel Banach space pair. We experiment with new kernels in Transformers, and obtain results that suggest the infinite dimensionality of the standard Transformer kernel is partially responsible for its performance. This paper's results provide a new theoretical understanding of a very important but poorly understood model in modern machine~learning.

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

↑