arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.20525cs.LGcs.AI
收藏

重新审视核注意力与相关高斯过程表示

Revisiting Kernel Attention with Correlated Gaussian Process Representation

FPT Software AI Center(FPT软件AI中心);School of Electrical Engineering and Computer Science, Washington State University(华盛顿州立大学电气工程与计算机科学学院);National University of Singapore(新加坡国立大学)

Long Minh Bui, Tho Tran Huu, Duy Dinh, Tan Minh Nguyen, Trong Nghia Hoang

AI总结:

本文提出相关高斯过程Transformer(CGPT),通过将自注意力建模为两个相关高斯过程的互协方差,突破对称性限制,增强表示能力,并引入稀疏近似提升扩展性,在多种基准任务上优于现有最先进的基于GP的Transformer。

摘要:

Transformer已成为建模序列数据的事实标准方法,并展现出最先进的性能。由于其广泛应用,能够估计和校准其建模不确定性对于理解和设计稳健的Transformer模型至关重要。为实现这一目标,先前的工作已使用高斯过程(GPs)对Transformer的注意力单元进行不确定性校准,并取得了显著成功。然而,此类方法不得不将Transformer限制在对称注意力的空间中,以确保其GP核规范所需的对称性要求,这降低了模型的表示能力。为缓解这一限制,我们提出了相关高斯过程Transformer(CGPT),这是一种新型的Transformer类别,其自注意力单元被建模为两个相关高斯过程(CGPs)之间的互协方差。这允许注意力中的不对称性,并能增强基于GP的Transformer的表示能力。我们还推导了CGP的稀疏近似,以使其更好地扩展。我们的实证研究表明,基于CGP和稀疏CGP的Transformer在多种基准任务上均优于最先进的基于GP的Transformer。我们实验的代码可在https://github.com/MinhLong210/CGP-Transformers获取。

英文摘要:

Transformers have increasingly become the de facto method to model sequential data with state-of-the-art performance. Due to its widespread use, being able to estimate and calibrate its modeling uncertainty is important to understand and design robust transformer models. To achieve this, previous works have used Gaussian processes (GPs) to perform uncertainty calibration for the attention units of transformers and attained notable successes. However, such approaches have to confine the transformers to the space of symmetric attention to ensure the necessary symmetric requirement of their GP's kernel specification, which reduces the representation capacity of the model. To mitigate this restriction, we propose the Correlated Gaussian Process Transformer (CGPT), a new class of transformers whose self-attention units are modeled as cross-covariance between two correlated GPs (CGPs). This allows asymmetries in attention and can enhance the representation capacity of GP-based transformers. We also derive a sparse approximation for CGP to make it scale better. Our empirical studies show that both CGP-based and sparse CGP-based transformers achieve better performance than state-of-the-art GP-based transformers on a variety of benchmark tasks. The code for our experiments is available at https://github.com/MinhLong210/CGP-Transformers.

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

↑