arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.02393cs.LGcond-mat.mes-hallcond-mat.mtrl-scics.AIcs.CL
收藏

用于 Transformer 中自适应动力学的图感知同构注意力

Graph-Aware Isomorphic Attention for Adaptive Dynamics in Transformers

Markus J. Buehler

AI总结:

本文提出 Graph-Aware Isomorphic Attention,将注意力机制重构为图操作,利用 GIN 和 PNA 增强关系结构表示,并引入 Sparse GIN-Attention 微调法,以更低开销提升预训练模型的图感知能力与泛化性。

摘要:

我们提出了一种通过将图感知关系推理整合到注意力机制中来修改 Transformer 架构的方法,融合了图神经网络和语言建模的概念。基于注意力与图论之间的内在联系,我们将 Transformer 的注意力机制重新表述为图操作,并提出了 Graph-Aware Isomorphic Attention(图感知同构注意力)。该方法利用高级图建模策略,包括 Graph Isomorphism Networks (GIN) 和 Principal Neighborhood Aggregation (PNA),以丰富关系结构的表示。我们的方法捕获了复杂的依赖关系并能在任务间泛化,泛化差距的减小和学习性能的提升证明了这一点。此外,我们扩展了图感知注意力的概念,引入了 Sparse GIN-Attention,这是一种采用稀疏 GIN 的微调方法。通过将注意力矩阵解释为稀疏邻接图,该技术以最小的计算开销增强了预训练基础模型的适应性,赋予它们图感知能力。与 low-rank adaption (LoRA) 等替代方法相比,Sparse GIN-Attention 微调实现了更好的训练动态和泛化能力。我们讨论了传统注意力机制中潜在的图状结构,为理解 Transformer 提供了新视角,即将 Transformer 演变为用于关系推理的分层 GIN 模型。这一视角对基础模型的发展具有深远意义,使得架构设计能够动态适应局部和全局依赖关系。生物信息学、材料科学、语言建模等领域的应用均可受益于这种关系与序列数据建模的融合,为可解释和可泛化的建模策略奠定了基础。

英文摘要:

We present an approach to modifying Transformer architectures by integrating graph-aware relational reasoning into the attention mechanism, merging concepts from graph neural networks and language modeling. Building on the inherent connection between attention and graph theory, we reformulate the Transformer's attention mechanism as a graph operation and propose Graph-Aware Isomorphic Attention. This method leverages advanced graph modeling strategies, including Graph Isomorphism Networks (GIN) and Principal Neighborhood Aggregation (PNA), to enrich the representation of relational structures. Our approach captures complex dependencies and generalizes across tasks, as evidenced by a reduced generalization gap and improved learning performance. Additionally, we expand the concept of graph-aware attention to introduce Sparse GIN-Attention, a fine-tuning approach that employs sparse GINs. By interpreting attention matrices as sparse adjacency graphs, this technique enhances the adaptability of pre-trained foundational models with minimal computational overhead, endowing them with graph-aware capabilities. Sparse GIN-Attention fine-tuning achieves improved training dynamics and better generalization compared to alternative methods like low-rank adaption (LoRA). We discuss latent graph-like structures within traditional attention mechanisms, offering a new lens through which Transformers can be understood. By evolving Transformers as hierarchical GIN models for relational reasoning. This perspective suggests profound implications for foundational model development, enabling the design of architectures that dynamically adapt to both local and global dependencies. Applications in bioinformatics, materials science, language modeling, and beyond could benefit from this synthesis of relational and sequential data modeling, setting the stage for interpretable and generalizable modeling strategies.

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

↑