23–25 Sept 2024
Valencia (Spain)
Europe/Madrid timezone

Algorithmic Derivatives of Electromagnetic Shower Simulations

23 Sept 2024, 15:30
20m
Valencia (Spain)

Valencia (Spain)

Computer Science Computer Science

Speakers

Max Aehle (Fachhochschule Worms (DE)) Max Aehle

Description

Applying algorithmic differentiation to particle simulations like Geant4 would allow us to evaluate derivatives of simulation outputs with respect to inputs, e.g. of the mean energy depositions in calorimeter layers with respect to geometry parameters. Such derivatives could become instrumental for a number of application like detector optimization or parameter fitting in HEP. However, besides the technical challenge of applying AD to over one million lines of code, there is a number of mathematical/statistical challenges: Does the high density of discontinuities, induced for example by 'if' and 'while' statements in the code, cause problems in the derivative computation? Are we allowed to treat random numbers like constants with respect to AD? How large is the error when the mean pathwise derivative is evaluated as a proxy for the actual derivative of expectancies computed by Monte-Carlo algorithms?

To approach these questions, we have applied the operator-overloading AD tool CoDiPack to the compact G4HepEm/HepEmShow package for the simulation of electromagnetic showers in a simple sampling calorimeter. After disabling multiple scattering in the simulation, our pathwise gradient estimator approximates derivatives of energy depositions with only a small bias, which proved unproblematic in a simple optimization study. In this talk, we will report on our methodology and give an overview on our findings.

Authors

Max Aehle (Fachhochschule Worms (DE)) Max Aehle

Co-authors

David Lange David Lange (Princeton University (US)) Lukas Alexander Heinrich (Technische Universitat Munchen (DE)) Michael Kagan (SLAC National Accelerator Laboratory (US)) Mihaly Novak (CERN) Nicolas Gauger Vassil Vasilev (Princeton University (US))

Presentation materials