随机泰勒导数估计器:面向任意微分算子的高效摊销
Stochastic Taylor Derivative Estimator: Efficient amortization for arbitrary differential operators
AI总结:
针对含高维高阶微分算子的神经网络损失优化成本高的问题,提出随机泰勒导数估计器,通过构造输入切向量实现多变量函数导数张量的高效收缩,在PINNs任务中实现千倍加速与数十倍内存缩减,可快速求解百万维PDE。
摘要:
使用反向传播评估包含高维高阶微分算子的损失来优化神经网络的成本极高,原因在于导数张量规模呈$\u0026#119978;(d^{k})$缩放,且计算图规模呈$\u0026#119978;(2^{k-1}L)$缩放,其中$d$为定义域维度,$L$为前向计算图中的算子数量,$k$为导数阶数。在以往研究中,$d$的多项式缩放问题通过随机化在优化过程中摊销计算得到解决;另外,单变量函数($d=1$)中$k$的指数缩放问题则通过高阶自动微分(AD)得到解决。本研究展示了如何通过为单变量高阶AD合理构造输入切向量,高效实现多变量函数任意阶导数张量的任意收缩,该方法可用于高效随机化任意微分算子。将其应用于Physics-Informed Neural Networks(PINNs,物理信息神经网络)时,与使用一阶AD的随机化方法相比,我们的方法实现了超1000倍的加速和超30倍的内存缩减,目前可在单张NVIDIA A100 GPU上用8分钟求解100万维偏微分方程(PDEs)。这项工作为在大规模问题中使用高阶微分算子提供了可能。
英文摘要:
Optimizing neural networks with loss that contain high-dimensional and high-order differential operators is expensive to evaluate with back-propagation due to $\mathcal{O}(d^{k})$ scaling of the derivative tensor size and the $\mathcal{O}(2^{k-1}L)$ scaling in the computation graph, where $d$ is the dimension of the domain, $L$ is the number of ops in the forward computation graph, and $k$ is the derivative order. In previous works, the polynomial scaling in $d$ was addressed by amortizing the computation over the optimization process via randomization. Separately, the exponential scaling in $k$ for univariate functions ($d=1$) was addressed with high-order auto-differentiation (AD). In this work, we show how to efficiently perform arbitrary contraction of the derivative tensor of arbitrary order for multivariate functions, by properly constructing the input tangents to univariate high-order AD, which can be used to efficiently randomize any differential operator. When applied to Physics-Informed Neural Networks (PINNs), our method provides >1000$\times$ speed-up and >30$\times$ memory reduction over randomization with first-order AD, and we can now solve \emph{1-million-dimensional PDEs in 8 minutes on a single NVIDIA A100 GPU}. This work opens the possibility of using high-order differential operators in large-scale problems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。