arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.13378cs.CEphysics.comp-ph
收藏

通过自动微分实现鲁棒的无矩阵牛顿-克雷洛夫求解器

Robust Matrix-Free Newton-Krylov Solvers via Automatic Differentiation

KTH Royal Institute of Technology(皇家理工学院)

Marco Pasquale, Stefano Markidis

AI总结:

本文通过自动微分替代有限差分方法,提升了JFNK求解器的鲁棒性和计算效率,使求解速度提升2-3个数量级,且在不同非线性条件下保持高完成率。

摘要:

Jacobian-Free Newton-Krylov (JFNK) 方法避免形成完整的雅可比矩阵,但仍然需要雅可比-向量积,即非线性残差沿克雷洛夫方向的Gâteaux导数。在标准有限差分(FD)公式中,这些积通过扰动牛顿状态并差分残差获得,使得线性化对舍入误差和浮点精度敏感。本文评估了前向模式自动微分(AD)作为FD雅可比-向量积替代方案的全局影响。比较保持离散化、牛顿迭代、线搜索、克雷洛夫方法、容差、CPU/GPU后端固定,仅改变线性化策略。测试包括伯格斯动力学、苏-奥尔逊辐射扩散、反应-扩散和非线性时谐麦克斯韦方程,每种在不同非线性条件下评估。通过防止克雷洛夫算子退化,AD在CPU和GPU架构上均加速计算2-3个数量级。更重要的是,它显著提高了求解器的鲁棒性,实现最低完成率为95%,相比FD仅为42%。最终,准确的Gâteaux导数在JFNK方法中统一了性能和精度,使AD成为刚性非线性和降精度环境下的最佳选择。

英文摘要:

Jacobian-Free Newton-Krylov (JFNK) methods avoid forming the full Jacobian, but still require Jacobian-vector products, i.e., Gateaux derivatives of the nonlinear residual along Krylov directions. In standard Finite Differences (FD) formulations, these products are obtained by perturbing the Newton state and differencing residuals, making the linearization sensitive to round-off error and floating-point precision. This work evaluates the global impact of forward-mode Automatic Differentiation (AD) as a replacement for FD Jacobian-vector product in finite-precision JFNK solvers. The comparison keeps the discretization, Newton iteration, line search, Krylov methods, tolerances, and CPU/GPU backend fixed, only varying linearization strategy. Benchmarks include Burgers dynamics, Su-Olson radiation diffusion, reaction-diffusion, and nonlinear time-harmonic Maxwell equations, each evaluated in different nonlinear regimes. By preventing degradation of the Krylov operator, AD accelerates computation by 2-3 orders of magnitude across both CPU and GPU architectures. More importantly, it drastically improves global solver robustness, achieving a minimum completion rate of 95%, compared to just 42% for FD. Ultimately, accurate Gateaux derivatives unify performance and accuracy in JFNK methods, making AD the optimal choice for stiff nonlinear and reduced-precision environments.

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

↑