arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.13066math.NAcs.NA
收藏

用于块三角 Toeplitz 矩阵的快速、可扩展且基于 FFT 的 GPU 加速算法,并应用于由自治动力系统支配的线性反问题

Fast And Scalable FFT-Based GPU-Accelerated Algorithms for Block-Triangular Toeplitz Matrices With Application to Linear Inverse Problems Governed by Autonomous Dynamical Systems

Sreeram Venkat, Milinda Fernando, Stefan Henneking, Omar Ghattas

AI总结:

针对线性时不变 PDE 反问题中 Hessian 作用代价高的问题,本文利用 p2o 映射的块 Toeplitz 结构实现紧凑存储和基于 FFT 的多 GPU 加速矩阵-向量乘法,显著提升速度与可扩展性。

摘要:

我们提出了一种高效且可扩展的算法,用于执行块 Toeplitz 矩阵的矩阵-向量乘法(“matvecs”)。这类矩阵在其块层面具有平移不变性,出现在求解由自治系统(尤其是时不变系统)支配的反问题的背景中。在本文中,我们考虑从以偏微分方程(PDE)形式给出的线性时不变动力系统的观测数据中推断未知参数的反问题。无矩阵 Newton-conjugate-gradient(牛顿-共轭梯度)方法通常是求解这些反问题的黄金标准,但它们需要 Hessian 对向量进行大量作用。基于伴随的无矩阵 Hessian 矩阵-向量乘法在每次 Hessian 作用时都需求解一对线性化的正演/伴随 PDE,这对于大规模反问题可能代价高昂。正演 PDE 问题的时不变性使离散化的 parameter-to-observable(p2o,参数到观测量)映射具有块 Toeplitz 结构,该映射定义了从 PDE 的输入(参数)到输出(观测量)的映射。这种块 Toeplitz 结构使我们能够利用两个关键特性:(1)p2o 映射及其伴随的紧凑存储;(2)基于 fast Fourier transform(FFT,快速傅里叶变换)的高效 Hessian 矩阵-向量乘法。所提出的算法被映射到大型多 GPU 集群上,并在 NVIDIA A100 GPU 上达到峰值带宽的 80% 以上。在多达 48 块 A100 GPU 上展示了出色的弱可扩展性。对于目标问题,该实现可在几分之一秒内执行 Hessian 矩阵-向量乘法,这比通过正演/伴随 PDE 求解实现的传统无矩阵 Hessian 矩阵-向量乘法快数个数量级。

英文摘要:

We present an efficient and scalable algorithm for performing matrix-vector multiplications ("matvecs") for block Toeplitz matrices. Such matrices, which are shift-invariant with respect to their blocks, arise in the context of solving inverse problems governed by autonomous systems, and time-invariant systems in particular. In this article, we consider inverse problems that infer unknown parameters from observational data of a linear time-invariant dynamical system given in the form of partial differential equations (PDEs). Matrix-free Newton-conjugate-gradient methods are often the gold standard for solving these inverse problems, but they require numerous actions of the Hessian on a vector. Matrix-free adjoint-based Hessian matvecs require solution of a pair of linearized forward/adjoint PDE solves per Hessian action, which may be prohibitive for large-scale inverse problems. Time invariance of the forward PDE problem leads to a block Toeplitz structure of the discretized parameter-to-observable (p2o) map defining the mapping from inputs (parameters) to outputs (observables) of the PDEs. This block Toeplitz structure enables us to exploit two key properties: (1) compact storage of the p2o map and its adjoint; and (2) efficient fast Fourier transform (FFT)-based Hessian matvecs. The proposed algorithm is mapped onto large multi-GPU clusters and achieves more than 80 percent of peak bandwidth on NVIDIA A100 GPUs. Excellent weak scaling is shown for up to 48 A100 GPUs. For the targeted problems, the implementation executes Hessian matvecs within fractions of a second, which is orders of magnitude faster than can be achieved by conventional matrix-free Hessian matvecs via forward/adjoint PDE solves.

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

↑