arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.05646cs.CEphysics.optics
收藏

直线仿真网格上用于光子逆设计的自动微分加速形状优化方法

Automatic differentiation accelerated shape optimization approaches to photonic inverse design on rectilinear simulation grids

Sean Hooten, Peng Sun, Liron Gantz, Marco Fiorentino, Raymond G. Beausoleil, Thomas Van Vaerenbergh

AI总结:

针对直线仿真网格上光子逆设计形状优化中梯度计算复杂度高的问题,提出基于自动微分的AutoDiffGeo框架,通过可微映射与逻辑运算加速梯度计算,实现超50倍梯度加速、4倍以上总运行时间提升且器件性能损失极小。

摘要:

用于逆设计的形状优化方法通过将结构表示为形状基元的组合,提供了低维度、物理引导的结构参数化方式。然而,在离散化的直线仿真网格上,通过伴随变量法计算用户目标的梯度,需要对前向/伴随场解以及仿真材料分布相对于结构形状参数的雅可比矩阵进行求和归约。这些形状参数通常会扰动仿真网格的大部分或全局区域,导致雅可比矩阵存在大量非零项,而实践中这些项通常通过有限差分法计算。因此,梯度计算的复杂度可能很高。在本研究中,我们提出通过在结构材料分布的实例化过程中调用自动微分(AutoDiff)来加速梯度计算。为此,我们开发了从形状参数到形状基元的可扩展可微映射,以及可微有效逻辑运算(命名为AutoDiffGeo)。这些AutoDiffGeo定义可能会在场解中引入一些额外的离散化误差,因为它们放宽了形状边界处的亚像素平滑概念。不过,我们证明部分映射(例如简单长方体)相对于体积平均策略可实现零误差。我们通过三个集成光子学实例验证了AutoDiff增强的形状优化:多刻蚀闪耀光栅耦合器、非绝热波导过渡锥和偏振分束光栅耦合器。我们发现,与有限差分法相比,AutoDiff对梯度计算的加速效果通常超过50倍,在相同硬件上总运行时间加速达4倍以上,且最终器件性能几乎不受影响或完全不受影响。我们的代码已在https://github.com/smhooten/emopt开源发布。

英文摘要:

Shape optimization approaches to inverse design offer low-dimensional, physically-guided parameterizations of structures by representing them as combinations of shape primitives. However, on discretized rectilinear simulation grids, computing the gradient of a user objective via the adjoint variables method requires a sum reduction of the forward/adjoint field solutions and the Jacobian of the simulation material distribution with respect to the structural shape parameters. These shape parameters often perturb large or global parts of the simulation grid resulting in many non-zero Jacobian entries, which are typically computed by finite-difference in practice. Consequently, the gradient calculation can be non-trivial. In this work we propose to accelerate the gradient calculation by invoking automatic differentiation (AutoDiff) in instantiations of structural material distributions. In doing so, we develop extensible differentiable mappings from shape parameters to shape primitives and differentiable effective logic operations (denoted AutoDiffGeo). These AutoDiffGeo definitions may introduce some additional discretization error into the field solutions because they relax notions of sub-pixel smoothing along shape boundaries. However, we show that some mappings (e.g. simple cuboids) can achieve zero error with respect to volumetric averaging strategies. We demonstrate AutoDiff enhanced shape optimization using three integrated photonic examples: a multi-etch blazed grating coupler, a non-adiabatic waveguide transition taper, and a polarization-splitting grating coupler. We find accelerations of the gradient calculation by AutoDiff relative to finite-difference often exceed 50x, resulting in total wall time accelerations of 4x or more on the same hardware with little or no compromise to final device performance. Our code is available open source at https://github.com/smhooten/emopt

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

↑