不完全 Cholesky 预条件子的神经加速
Neural Acceleration of Incomplete Cholesky Preconditioners
AI总结:
本文提出用 GPU 训练的简单人工神经网络生成不完全稀疏 Cholesky 预条件子,以克服传统数值调参与并行化困难,实验表明其稳定且减迭代效果不劣于多种传统技术。
摘要:
稀疏线性方程组的求解在科学应用中无处不在。由于内存和计算复杂度的限制,通常会选择预条件共轭梯度法(PCG)等迭代方法,而不是直接方法。然而,这些方法的效率取决于所使用的预条件子。预条件子的开发通常需要对稀疏线性系统有一定洞察,并需要在生成预条件子与减少迭代次数之间取得期望的权衡。不完全分解方法往往是生成这些预条件子的黑箱方法,但可能因多种原因而失败。这些原因包括数值问题,需要在使用难以并行化的算法时搜索合适的缩放、平移和填充。随着向异构计算的发展,许多稀疏应用发现,针对训练神经网络等稠密张量应用进行优化的 GPU 未得到充分利用。在本工作中,我们证明,在编译时或在 GPU 上与正在运行的应用并行训练的简单人工神经网络,能够提供一种不完全稀疏 Cholesky 分解,并将其用作预条件子。在减少迭代次数方面,所生成的预条件子与使用缩放和平移等多种预条件技术得到的预条件子同样好,甚至更好。此外,所生成的方法同样有效,并且始终能够产生可减少迭代次数的预条件子,从不会失败。
英文摘要:
The solution of a sparse system of linear equations is ubiquitous in scientific applications. Iterative methods, such as the Preconditioned Conjugate Gradient method (PCG), are normally chosen over direct methods due to memory and computational complexity constraints. However, the efficiency of these methods depends on the preconditioner utilized. The development of the preconditioner normally requires some insight into the sparse linear system and the desired trade-off of generating the preconditioner and the reduction in the number of iterations. Incomplete factorization methods tend to be black box methods to generate these preconditioners but may fail for a number of reasons. These reasons include numerical issues that require searching for adequate scaling, shifting, and fill-in while utilizing a difficult to parallelize algorithm. With a move towards heterogeneous computing, many sparse applications find GPUs that are optimized for dense tensor applications like training neural networks being underutilized. In this work, we demonstrate that a simple artificial neural network trained either at compile time or in parallel to the running application on a GPU can provide an incomplete sparse Cholesky factorization that can be used as a preconditioner. This generated preconditioner is as good or better in terms of reduction of iterations than the one found using multiple preconditioning techniques such as scaling and shifting. Moreover, the generated method also works and never fails to produce a preconditioner that does not reduce the iteration count.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。