Flexibly imposing periodicity in kernel independent FMM: A Multipole-To-Local operator approach
Center for Computational Biology, Flatiron Institute(Flatiron研究所计算生物学中心);Courant Institute of Mathematical Sciences, New York University(纽约大学柯朗数学科学研究所)
An important but missing component in the application of the kernel independent fast multipole method (KIFMM) is the capability for flexibly and efficiently imposing singly, doubly, and triply periodic boundary conditions. In most popular packages such periodicities are imposed with the hierarchical repetition of periodic boxes, which may give an incorrect answer due to the conditional convergence of some kernel sums. Here we present an efficient method to properly impose periodic boundary conditions using a near-far splitting scheme. The near-field contribution is directly calculated with the KIFMM method, while the far-field contribution is calculated with a multipole-to-local (M2L) operator which is independent of the source and target point distribution. The M2L operator is constructed with the far-field portion of the kernel function to generate the far-field contribution with the downward equivalent source points in KIFMM. This method guarantees the sum of the near-field \& far-field converge pointwise to results satisfying periodicity and compatibility conditions. The computational cost of the far-field calculation observes the same $\mathcal{O}(N)$ complexity as FMM and is designed to be small by reusing the data computed by KIFMM for the near-field. The far-field calculations require no additional control parameters, and observes the same theoretical error bound as KIFMM. We present accuracy and timing test results for the Laplace kernel in singly periodic domains and the Stokes velocity kernel in doubly and triply periodic domains.
University of Florida(佛罗里达大学);New York University(纽约大学);Flatiron Institute(平顿研究所);University of Chicago(芝加哥大学);Indian Institute of Technology Bombay(孟买印度理工学院);Princeton University(普林斯顿大学)
A Heterogeneous FMM for 2-D Layered Media Helmholtz Equation I: Two & Three Layers Cases
University of Massachusetts Lowell(马萨诸塞大学洛威尔分校);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);Beijing Computational Science Research Center(北京计算科学研究中心);University of North Carolina at Charlotte(北卡罗来纳大学夏洛特分校)
FMM-Net: neural network architecture based on the Fast Multipole Method
Skolkovo Institute of Science and Technology(斯科尔科沃科技学院);Marchuk Institute of Numerical Mathematics of the Russian Academy of Sciences(俄罗斯科学院马尔丘克数值数学研究所)
本文介绍了一种新的线性方程组快速直接求解器,它产生于积分方程、多元统计、径向基插值等广泛的应用领域,仅举几例。\emph{The highlight of this new fast direct solver is that the solver scales linearly in the number of unknowns in all dimensions.}该求解器称为逆快速多极方法(缩写为IFMM),其工作原理与快速多极方法(缩写为FMM)相同。更一般地,求解器可以立即扩展到分层矩阵类,表示为具有强容许准则(弱低秩结构)的$\mathcal{H}^2$矩阵,即,\emph{the interaction between neighboring cluster of particles is full-rank whereas the interaction between particles corresponding to well-separated clusters can be efficiently represented as a low-rank matrix}。该算法从现有的方法出发,在整个算法中,对应于相邻集群的相互作用总是被视为满秩相互作用。我们的方法依赖于两个主要思想:(i)由FMM产生的$N \times N$矩阵(从现在起称为FMM矩阵)可以…
FMMformer: Efficient and Flexible Transformer via Decomposed Near-field and Far-field Attention
University of California, Los Angeles(加利福尼亚大学洛杉矶分校);University of Utah(犹他大学);University of California, Irvine(加利福尼亚大学欧文分校)
我们提出FMMformers,一类高效和灵活的Transformers的灵感来自著名的快速多极子方法(FMM)加速相互作用的粒子模拟。FMM将粒子间的相互作用分解为近场和远场分量,分别进行直接计算和粗粒度计算。类似地,FMMformer将注意力分解为近场注意力和远场注意力,通过带状矩阵对近场注意力进行建模,通过低秩矩阵对远场注意力进行建模。计算FMMformer的注意矩阵需要相对于序列长度的计算时间和存储器占用的线性复杂度。相比之下,标准Transformers遭受二次复杂性。我们分析并验证了FMMformer在Long Range Arena和语言建模基准测试中相对于标准Transformer的优势。FMMformer甚至可以在精度方面远远超过标准Transformer。例如,FMMformer在五个长距离竞技场任务上实现$60.74\%$的平均分类准确度,这显著优于标准Transformer的$58.70\%$的平均准确度。