Differentiable Surrogate for Detector Simulation and Design with Diffusion Models
Xuan Tung Nguyen, Long Chen, Tommaso Dorigo, Nicolas R. Gauger, Pietro Vischia, Federico Nardi, Muhammad Awais, Hamza Hanif, Shahzaib Abbas, Rukshak Kapoor
TL;DR
This work develops a conditional denoising-diffusion surrogate for electromagnetic calorimeter showers that is differentiable with respect to detector-design parameters. The model combines a diffusion-based generator with a two-stage pre-training and LoRA-based post-training, enabling rapid adaptation to new geometries while preserving high-fidelity energy-deposition maps conditioned on energy, cell size, and material. Fidelity assessments show relative RMSE below 2% for key observables at high energies, and gradient analyses demonstrate qualitative agreement with finite-difference references, enabling gradient-based optimization in detector design pipelines. The approach offers a scalable path toward differentiable, physics-aware surrogate modeling for fast, gradient-informed detector optimization in future collider experiments.
Abstract
In this work, we present a conditional denoising-diffusion surrogate for electromagnetic calorimeter showers that is trained to generate high-fidelity energy-deposition maps conditioned on key detector and beam parameters. The model employs efficient inference using Denoising Diffusion Implicit Model sampling and is pre-trained on GEANT4 simulations before being adapted to a new calorimeter geometry through Low-Rank Adaptation, requiring only a small post-training dataset. We evaluate physically meaningful observables, including total deposited energy, energy-weighted radius, and shower dispersion, obtaining relative root mean square error values below 2% for representative high-energy cases. This is in line with state-of-the-art calorimeter surrogates which report comparable fidelity on high-level observables. Furthermore, we compare gradients of a reconstruction-based utility function with respect to design parameters between the surrogate and finite-difference references. The diffusion surrogate reproduces the qualitative structure and directional trends of the true utility landscape, providing usable sensitivities for gradient-based optimization. These results show that diffusion-based surrogates can accelerate simulation-driven detector design while enabling differentiable, gradient-informed analysis.
