arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.01476cs.LGcs.AIcs.CVstat.ML
收藏

通过核-特征对稀疏变分高斯过程的自注意力机制

Self-Attention through Kernel-Eigen Pair Sparse Variational Gaussian Processes

KU Leuven(鲁汶大学);EPFL(洛桑联邦理工学院)

Yingyi Chen, Qinghua Tao, Francesco Tonin, Johan A. K. Suykens

AI总结:

针对Transformer过度自信问题,提出KEP-SVGP方法,利用核SVD处理注意力核不对称性,构建不确定性自注意力,降低复杂度并在分布内外基准上验证性能。

摘要:

尽管Transformer的强大能力显著提升了预测精度,但它也可能产生过度自信的预测,需要校准的不确定性估计,这通常可以通过高斯过程(GPs)来解决。现有工作将具有对称核的高斯过程在变分推断下应用于注意力核;然而,它们忽略了注意力核本质上是不对称的这一事实。此外,对于大规模数据,推导高斯过程后验的复杂度仍然很高。在这项工作中,我们提出了核-特征对稀疏变分高斯过程(KEP-SVGP),用于构建具有不确定性意识的自注意力机制,其中注意力核的不对称性通过核SVD(KSVD)处理,并获得了降低的复杂度。通过KEP-SVGP,i)由KSVD关于注意力核的两组奇异向量诱导的SVGP对充分表征了不对称性;ii)仅使用KSVD的一小组伴随特征函数,SVGP后验的推导可以基于包含奇异值的对角矩阵的求逆,从而有助于降低时间复杂度;iii)推导了一个证据下界,以便变分参数和网络权重可以据此进行优化。实验验证了我们在分布内、分布偏移和分布外基准上的优异性能和效率。

英文摘要:

While the great capability of Transformers significantly boosts prediction accuracy, it could also yield overconfident predictions and require calibrated uncertainty estimation, which can be commonly tackled by Gaussian processes (GPs). Existing works apply GPs with symmetric kernels under variational inference to the attention kernel; however, omitting the fact that attention kernels are in essence asymmetric. Moreover, the complexity of deriving the GP posteriors remains high for large-scale data. In this work, we propose Kernel-Eigen Pair Sparse Variational Gaussian Processes (KEP-SVGP) for building uncertainty-aware self-attention where the asymmetry of attention kernels is tackled by Kernel SVD (KSVD) and a reduced complexity is acquired. Through KEP-SVGP, i) the SVGP pair induced by the two sets of singular vectors from KSVD w.r.t. the attention kernel fully characterizes the asymmetry; ii) using only a small set of adjoint eigenfunctions from KSVD, the derivation of SVGP posteriors can be based on the inversion of a diagonal matrix containing singular values, contributing to a reduction in time complexity; iii) an evidence lower bound is derived so that variational parameters and network weights can be optimized with it. Experiments verify our excellent performances and efficiency on in-distribution, distribution-shift and out-of-distribution benchmarks.

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

↑