利用电磁簇射模拟的路径式算法导数进行优化
Optimization Using Pathwise Algorithmic Derivatives of Electromagnetic Shower Simulations
AI总结:
本研究将算法微分集成到电磁簇射模拟代码HepEmShow中,验证了路径式导数在禁用多次散射时能准确近似能量沉积导数,并展示了其在随机梯度优化中的适用性。
摘要:
在近似蒙特卡洛模拟计算的期望值导数的已知方法中,路径式导数的平均值通常是最易于应用的一种。通过算法微分计算这些导数通常不需要对代码进行大量手动分析和重写,即使对于高能物理中粒子探测器相互作用模拟等非常复杂的程序也是如此。然而,如果程序中存在不连续性,路径式导数估计器可能会有偏差,这可能削弱其在应用中的价值。本工作将算法微分集成到基于G4HepEm的电磁簇射模拟代码HepEmShow中,使我们能够研究路径式导数在多大程度上近似采样量热器中能量沉积对束流和几何参数的导数。我们发现,当模拟中禁用多次散射时,路径式导数的均值快速收敛到其期望值,并且这些值接近能量沉积的实际导数。此外,我们在一个模型示例中展示了这种新型梯度估计器在基于随机梯度的优化中的适用性。
英文摘要:
Among the well-known methods to approximate derivatives of expectancies computed by Monte-Carlo simulations, averages of pathwise derivatives are often the easiest one to apply. Computing them via algorithmic differentiation typically does not require major manual analysis and rewriting of the code, even for very complex programs like simulations of particle-detector interactions in high-energy physics. However, the pathwise derivative estimator can be biased if there are discontinuities in the program, which may diminish its value for applications. This work integrates algorithmic differentiation into the electromagnetic shower simulation code HepEmShow based on G4HepEm, allowing us to study how well pathwise derivatives approximate derivatives of energy depositions in a sampling calorimeter with respect to parameters of the beam and geometry. We found that when multiple scattering is disabled in the simulation, means of pathwise derivatives converge quickly to their expected values, and these are close to the actual derivatives of the energy deposition. Additionally, we demonstrate the applicability of this novel gradient estimator for stochastic gradient-based optimization in a model example.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。