arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.24027physics.comp-phphysics.optics
收藏

数值场优化以提高开放源码GPU加速FDTD模拟中时间可逆梯度计算的效率

Numerical field optimization for enhanced efficiency in time-reversible gradient computation of open-source GPU-accelerated FDTD simulations

Leibniz University Hannover(汉诺威莱布尼茨大学)

Yannik Mahlau, Lukas Berg, Bodo Rosenhahn

AI总结:

本文提出两种优化方法,通过减少位宽和插值提升FDTD模拟的内存效率,特别适用于GPU加速计算和大规模开源模拟。

摘要:

有限差分时域(FDTD)模拟常涉及多个数量级的物理量,如光速或电磁场振幅。为保持数值精度,许多FDTD实现使用32位或64位浮点数表示电场和磁场。然而,在时间可逆梯度计算中记录场值时,这种做法并不总是最优,特别是在模拟域边界处需要保存电场和磁场值时。由于这一内存瓶颈通常是纳米光子学时间可逆反设计的限制因素,本文提出了两种场优化方法以提高FDTD模拟的内存效率。通过使用更小位宽的场值表示以及插值,我们实现了在更低内存成本下相似的精度。这种方法尤其适用于GPU加速计算,因为降低精度的数据类型由于其计算效率和在机器学习框架中的普及而越来越受青睐。我们将这种方法整合到FDTDX中,这是一个原生支持时间可逆梯度计算的开源可微分FDTD求解器。我们的方法对于未来向大规模开源模拟的发展至关重要,这对于推进计算纳米光子学应用具有关键作用。

英文摘要:

Finite-difference time-domain (FDTD) simulations often involve physical quantities spanning multiple orders of magnitude, such as the speed of light or electromagnetic field amplitudes. The standard practice for maintaining numerical accuracy in many FDTD implementations is to use 32-bit or 64-bit floating-point values to represent the electric and magnetic fields. However, this approach is not always optimal when recording field values, particularly during time-reversible gradient computation where electric and magnetic field values need to be saved at the boundary of the simulation domain. Since this memory bottleneck is often the limiting factor in time-reversible inverse design for nanophotonics, we present two field optimizations for enhancing memory efficiency in FDTD simulations. Using a smaller bit-width representation of field values as well as interpolation, we achieve similar accuracy at lower memory cost. This approach is particularly beneficial for GPU-accelerated computing, where reduced-precision data types are increasingly preferred due to their computational efficiency and prevalence in machine learning frameworks. We integrate our approach into FDTDX, an open-source, differentiable FDTD solver that natively supports time-reversible gradient computation. Our approach is especially important for future developments towards large-scale open-source simulations, which are critical for advancing computational nanophotonic applications.

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

↑