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

Erwin:一种面向大规模物理系统的基于树的分层Transformer

Erwin: A Tree-based Hierarchical Transformer for Large-scale Physical Systems

University of Amsterdam(阿姆斯特丹大学);CuspAI

Maksim Zhdanov, Max Welling, Jan-Willem van de Meent

AI总结:

针对不规则网格大规模物理系统的可扩展性挑战,提出分层Transformer模型Erwin,结合球树划分与跨球交互机制实现线性时间注意力,在多领域准确性与效率上均优于基线。

摘要:

定义在不规则网格上的大规模物理系统给深度学习方法带来了显著的可扩展性挑战,特别是在存在长程相互作用和多尺度耦合的情况下。计算所有成对相互作用的传统方法(如注意力机制)会变得在计算上不可行,因为其计算量随节点数量呈二次方增长。我们提出了Erwin,这是一种受计算多体物理方法启发的分层transformer,它结合了基于树算法的效率与注意力机制的表达能力。Erwin采用球树划分来组织计算,通过在固定大小的局部邻域内并行处理节点,实现了线性时间的注意力。通过对球树结构进行逐步粗化和细化,并辅以一种新颖的跨球交互机制,它能够同时捕捉细粒度的局部细节和全局特征。我们在多个领域展示了Erwin的有效性,包括宇宙学、分子动力学、PDE求解和粒子流体动力学,在这些领域中,它在准确性和计算效率上均始终优于基线方法。

英文摘要:

Large-scale physical systems defined on irregular grids pose significant scalability challenges for deep learning methods, especially in the presence of long-range interactions and multi-scale coupling. Traditional approaches that compute all pairwise interactions, such as attention, become computationally prohibitive as they scale quadratically with the number of nodes. We present Erwin, a hierarchical transformer inspired by methods from computational many-body physics, which combines the efficiency of tree-based algorithms with the expressivity of attention mechanisms. Erwin employs ball tree partitioning to organize computation, which enables linear-time attention by processing nodes in parallel within local neighborhoods of fixed size. Through progressive coarsening and refinement of the ball tree structure, complemented by a novel cross-ball interaction mechanism, it captures both fine-grained local details and global features. We demonstrate Erwin's effectiveness across multiple domains, including cosmology, molecular dynamics, PDE solving, and particle fluid dynamics, where it consistently outperforms baseline methods both in accuracy and computational efficiency.

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

↑