Introduction
In High Energy Physics (HEP), the Large Hadron Collider (LHC) produces "jets"—collimated sprays of particles resulting from high-energy collisions. While these datasets are a goldmine for machine learning research, they are often locked behind domain-specific file formats (like ROOT) and require significant preprocessing expertise. Furthermore, the lack of standardized benchmarking protocols has historically hindered the objective comparison of novel generative models and classifiers.
JetNet is an open-source Python library designed to bridge this gap. By providing standardized PyTorch interfaces and physics-centric evaluation metrics, JetNet enables researchers to develop, benchmark, and reproduce complex ML models with significantly less domain-specific "data plumbing," adhering to the FAIR (Findable, Accessible, Interoperable, and Reproducible) principles.
Methodology and Core Features
JetNet is built on top of the PyTorch ecosystem, making it immediately accessible to the broader ML community. Its core contributions focus on standardizing the pipeline from data ingestion to performance evaluation.
Standardized Data Interfaces
The package provides a common API to load multiple heterogeneous HEP datasets. It handles the expert knowledge required to parse particle-level information into usable tensor formats, facilitating "plug-and-play" experimentation for interdisciplinary researchers who may not be experts in particle physics theory.
Physics-Informed Metrics
Standard computer vision metrics, such as the Fréchet Inception Distance (FID), are often insufficient for evaluating particle clouds, which must adhere to strict physical constraints. JetNet implements specialized metrics to address this:
- Fréchet Physics Distance (FPD) and Kernel Physics Distance (KPD): These evaluate how well a model captures the actual physical properties of a jet.
- Fréchet ParticleNet Distance (FPND): A domain-specific adaptation for evaluating generative performance using a pre-trained ParticleNet model.
- 1-Wasserstein distance (W1): Used to compare distributions of physical quantities like jet mass and constituent momentum.
Differentiable Loss Functions
A significant technical highlight is the implementation of a differentiable version of the Energy Mover’s Distance (EMD). This allows researchers to incorporate physics-based distances directly into the loss functions of their neural networks, encouraging the model to learn physically consistent representations.
Data Ecosystem
JetNet provides streamlined access to several cornerstone reference datasets, all hosted on Zenodo for long-term accessibility:
- JetNet Dataset: The namesake dataset used for generative modeling and classification.
- Top Quark Tagging: A standard benchmark for identifying the decay of top quarks.
- Quark-Gluon Tagging: A dataset focused on discriminating between jets initiated by quarks versus gluons.
Research Impact and Benchmarking
Rather than operating in isolation, JetNet acts as a complementary layer to existing libraries like EnergyFlow, optimized specifically for PyTorch workflows. Its impact is evidenced by its adoption in several research areas:
- Generative Models: Facilitated the training and evaluation of GANs (e.g., EPiC-GAN) and Diffusion models (e.g., PC-JeDi).
- Architectural Innovation: Enabled research into equivariant networks and Transformers by providing the necessary benchmarking infrastructure.
- Reproducibility: By using JetNet’s standardized metrics, multiple papers can now directly compare their results on the same physical quantities, ensuring a consistent yardstick for progress in the field.
Limitations and Future Work
The authors have identified several key areas for future development to enhance the package's utility:
- Framework Support: While currently tied to PyTorch, future versions aim to support other backends like JAX.
- Data Complexity: Plans are in place to expand from high-level jet data into detector-level data, which includes more raw and complex instrumental effects.
- Scalability: To handle massive datasets that exceed system memory, the team plans to implement lazy loading techniques.
- Community Challenges: The authors envision JetNet hosting community-wide benchmarking challenges to further drive algorithmic innovation in High Energy Physics.
Summary updated