Abstract
We introduce HAWCgen, a set of deep generative neural network models, which are designed to supplement, or in some cases replace, parts of the simulation pipeline for the High Altitude Water Cherenkov (HAWC) observatory. We show that simple deep generative models replicate sampling of the reconstruction at a near arbitrary speedup compared to the current simulation. Furthermore, we show that generative models can offer a replacement to the detector simulation at a comparable rate and quality to current methods. This work was done as part of an undergraduate summer intern project at NVIDIA during the month of June, 2018.
Introduction
In high-energy astrophysics, the High Altitude Water Cherenkov (HAWC) observatory monitors cosmic rays and gamma rays. To understand the data, physicists rely on massive simulation pipelines (like CORSIKA) to model how particles interact with the atmosphere and the detector. The problem is scale: HAWC is a "high statistics" experiment requiring billions of simulated events for accurate analysis. Currently, a full simulation run takes roughly 11 days on a large CPU cluster. This creates a massive bottleneck for researchers who need to tune parameters or explore "what if" scenarios.
HAWCgen addresses this by training neural networks to learn the output distribution of these slow simulations. The authors argue that traditional physics simulations are essentially generative models that are non-differentiable and slow; neural networks offer a differentiable, "automatically tunable" approximation that can generate new, physically accurate samples nearly instantaneously.
Methodology
The researchers explored two primary generative architectures to approximate the simulation pipeline:
Generative Adversarial Networks (GANs)
A 1D GAN was employed to generate 8-dimensional reconstruction parameters, such as the number of hits and zenith angle. The team utilized a Wasserstein GAN (WGAN) with a gradient penalty to ensure training stability and avoid issues like mode collapse. Additionally, a Conditional GAN variant was developed where the model is provided with specific input parameters (e.g., true energy or angle) to generate the corresponding detector response.
PixelCNN for Detector Simulation
To simulate raw detector data, the HAWC observatory's irregular grid of approximately 1,200 Photomultiplier Tubes (PMTs) was mapped onto a 40x40 pixel grid. PixelCNN++ was used to model the joint probability of these pixels. Unlike GANs, which generate images holistically, PixelCNN is autoregressive, predicting each pixel based on preceding ones. The architecture was modified to handle two distinct channels: charge (intensity) and time (arrival time).
Data and Preprocessing
The study utilized approximately 75,141 gamma-ray detector simulation events (300 MB) originally in XCDF format. Preprocessing involved mapping the PMT layout to the 40x40 array, with missing values filled with zeros for charge and -500 ns for time. The dataset was split into 80% for training and 20% for validation.
Results and Discussion
The HAWCgen models demonstrated significant improvements in simulation efficiency and accuracy:
- Computational Speedup: The 1D GAN generated events 100x faster than traditional Monte Carlo methods, producing over 15,000 samples in just 0.002 seconds.
- Physical Fidelity: Statistical tests (Kolmogorov-Smirnov and KL divergence) confirmed that GAN-generated distributions closely matched the original simulation data. For instance, the KS-statistic for the zenith angle was 0.0110.
- Image Synthesis Quality: The PixelCNN achieved a "bits per dimension" score of 0.71, indicating it effectively captured the sparse, structured nature of cosmic ray showers.
- Hardware Scaling: Projections suggest a "Fast PixelCNN" implementation could reach 580 samples/second on an NVIDIA DGX-2 system.
Conclusion and Future Work
While the 2D models handled the charge channel effectively, learning the smooth gradients required for the time channel proved more challenging. PixelCNN performed better in this regard but at a higher computational cost. Future work will focus on GAN-based models for 2D data to achieve higher speeds and extending the models to include other primary particles like protons and helium, which is necessary for a full pipeline replacement.
Summary updated