A universal vision transformer for fast calorimeter simulations
Luigi Favaro, Andrea Giammanco, Claudius Krause
TL;DR
This work tackles the computational bottleneck of Geant4 calorimeter simulations by introducing a universal vision-transformer surrogate built on CaloDREAM, trained with Conditional Flow Matching to model calorimeter showers across both regular and irregular geometries. The ViT-based shape network, complemented by an energy network, enables fast, high-fidelity generation of electromagnetic and hadronic showers, achieving Geant4-like distributions with generation times in the $\mathcal{O}(10-100)$ ms range on a single GPU. The study demonstrates strong fidelity across datasets (regular CaloChallenge ds2/ds3 and irregular ds1, plus hadronic tests) and shows substantial data-efficiency gains through pretraining on the LEMURS dataset followed by targeted fine-tuning, as well as effective transfer-learning between detectors and voxelizations. The results support deploying transformer-based calorimeter emulators in diverse detector geometries, with public code and data releases to facilitate community adoption and further development.
Abstract
The high-dimensional complex nature of detectors makes fast calorimeter simulations a prime application for modern generative machine learning. Vision transformers (ViTs) can emulate the Geant4 response with unmatched accuracy and are not limited to regular geometries. Starting from the CaloDREAM architecture, we demonstrate the robustness and scalability of ViTs on regular and irregular geometries, and multiple detectors. Our results show that ViTs generate electromagnetic and hadronic showers statistically indistinguishable from Geant4 in multiple evaluation metrics, while maintaining the generation time in the $\mathcal{O}(10-100)$ ms on a single GPU. Furthermore, we show that pretraining on a large dataset and fine-tuning on the target geometry leads to reduced training costs and higher data efficiency, or altogether improves the fidelity of generated showers.
