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

关系函数与注意力机制的逼近

Approximation of relation functions and attention mechanisms

Yale University(耶鲁大学);Wu Tsai Institute(吴茨艾研究所);Institute for Foundations of Data Science(数据科学基础研究所)

Awni Altabaa, John Lafferty

AI总结:

本文证明神经网络内积可通用逼近对称与非对称关系函数,给出神经元数界,并用于解释 Transformers 注意力可逼近预序检索机制。

摘要:

神经网络特征图的内积作为一种建模输入之间关系的方法,出现在各种各样的机器学习框架中。本工作研究神经网络内积的逼近性质。结果表明,多层感知器与其自身的内积是对称正定关系函数的通用逼近器。在非对称关系函数的情形下,结果表明两个不同多层感知器的内积是通用逼近器。在这两种情形下,都得到了达到给定逼近精度所需神经元数量的界。在对称情形下,该函数类可等同于再生核 Hilbert 空间的核;而在非对称情形下,该函数类可等同于再生核 Banach 空间的核。最后,这些逼近结果被应用于分析 Transformers 背后的注意力机制,表明由抽象预序定义的任何检索机制都可以通过注意力的内积关系来逼近。该结果利用经济学中的 Debreu 表示定理,以效用函数来表示偏好关系。

英文摘要:

Inner products of neural network feature maps arise in a wide variety of machine learning frameworks as a method of modeling relations between inputs. This work studies the approximation properties of inner products of neural networks. It is shown that the inner product of a multi-layer perceptron with itself is a universal approximator for symmetric positive-definite relation functions. In the case of asymmetric relation functions, it is shown that the inner product of two different multi-layer perceptrons is a universal approximator. In both cases, a bound is obtained on the number of neurons required to achieve a given accuracy of approximation. In the symmetric case, the function class can be identified with kernels of reproducing kernel Hilbert spaces, whereas in the asymmetric case the function class can be identified with kernels of reproducing kernel Banach spaces. Finally, these approximation results are applied to analyzing the attention mechanism underlying Transformers, showing that any retrieval mechanism defined by an abstract preorder can be approximated by attention through its inner product relations. This result uses the Debreu representation theorem in economics to represent preference relations in terms of utility functions.

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

↑