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

粒子系统随机批处理方法如何增强图Transformer:内存效率与并行计算策略

How Particle-System Random Batch Methods Enhance Graph Transformer: Memory Efficiency and Parallel Computing Strategy

Shanghai Jiao Tong University(上海交通大学)

Hanwen Liu, Yixuan Ma, Shi Jin, Yuguang Wang

AI总结:

本文提出随机批注意力(RBA),一种具有线性复杂度和理论收敛保证的自注意力机制,可并行实现以节省内存,并能改进大多数现有模型,在大图实验中验证了其优势。

摘要:

注意力机制是Transformer模型的重要组成部分。它通过添加全局信息帮助从嵌入向量中提取特征,其表达能力已被证明是强大的。然而,二次复杂度限制了其实用性。尽管已有若干研究提供了稀疏形式的注意力机制,但它们在降低复杂度的同时,缺乏对其机制表达能力的理论分析。在本文中,我们提出了随机批注意力(Random Batch Attention,RBA),这是一种线性自注意力机制,在保持表达能力方面具有理论支持。随机批注意力具有以下几个显著优势:(1)随机批注意力具有线性时间复杂度。除此之外,它可以在一个新维度上并行实现,从而大幅节省内存。(2)随机批注意力机制可以通过替换其注意力机制来改进大多数现有模型,甚至包括许多先前已改进的注意力机制。(3)随机批注意力机制在收敛性方面具有理论解释,因为它源自计算数学中的随机批处理方法。在大图上的实验证明了上述优势。此外,自注意力机制的理论建模为未来注意力机制分析研究提供了新工具。

英文摘要:

Attention mechanism is a significant part of Transformer models. It helps extract features from embedded vectors by adding global information and its expressivity has been proved to be powerful. Nevertheless, the quadratic complexity restricts its practicability. Although several researches have provided attention mechanism in sparse form, they are lack of theoretical analysis about the expressivity of their mechanism while reducing complexity. In this paper, we put forward Random Batch Attention (RBA), a linear self-attention mechanism, which has theoretical support of the ability to maintain its expressivity. Random Batch Attention has several significant strengths as follows: (1) Random Batch Attention has linear time complexity. Other than this, it can be implemented in parallel on a new dimension, which contributes to much memory saving. (2) Random Batch Attention mechanism can improve most of the existing models by replacing their attention mechanisms, even many previously improved attention mechanisms. (3) Random Batch Attention mechanism has theoretical explanation in convergence, as it comes from Random Batch Methods on computation mathematics. Experiments on large graphs have proved advantages mentioned above. Also, the theoretical modeling of self-attention mechanism is a new tool for future research on attention-mechanism analysis.

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

↑