Abstract
Well-trained classifiers and their complete weight distributions provide us with a well-motivated and practicable method to test generative networks in particle physics. We illustrate their benefits for distribution-shifted jets, calorimeter showers, and reconstruction-level events. In all cases, the classifier weights make for a powerful test of the generative network, identify potential problems in the density estimation, relate them to the underlying physics, and tie in with a comprehensive precision and uncertainty treatment for generative networks.
Introduction
Generative models, such as Normalizing Flows and Generative Adversarial Networks (GANs), are becoming essential tools for simulating high-energy physics (HEP) data. However, evaluating these models remains a significant challenge. Standard global metrics like the Area Under the Curve (AUC) or Fréchet Inception Distance (FID) often fail to detect localized discrepancies in high-dimensional phase space. This paper introduces a diagnostic framework using binary classifier weights to pinpoint specific physical failure modes, moving beyond aggregate summaries toward "Explainable AI" (xAI) in generative modeling.
Methodology: Classifier Weights as Diagnostics
The proposed method leverages the density ratio between true reference data ($p_{data}$) and model-generated data ($p_{model}$). By training a binary classifier to distinguish between the two, the classifier output $C(x)$ can be transformed into a weight:
$$w(x) = \frac{p_{data}(x)}{p_{model}(x)} \approx \frac{C(x)}{1 - C(x)}$$
A weight $w \approx 1$ indicates good model performance, while $w \gg 1$ signals under-production (missing features) and $w \ll 1$ signals over-production. Analyzing the full distribution of these weights, rather than just the classifier's accuracy, provides a high-precision diagnostic tool.
The AUC Trap: A JetNet Case Study
The authors demonstrate the limitations of standard metrics using the JetNet dataset. In a "tail-cut" scenario—where events with high mass $M$ are manually removed from the generated set—the global AUC remains near 0.5, suggesting the model is nearly perfect. However, the classifier weight distribution clearly flags the discrepancy.
By clustering events with extreme weights (e.g., $w > 1.05$), researchers can physically visualize the model's blind spots. In this case, the high weights cluster precisely in the missing tail region ($M > 0.17$), providing a "smoking gun" for the physical cause of the model failure.
Physical Interpretability and Model Improvement
The utility of this approach extends to complex simulations like calorimeter showers and LHC event generation ($pp \to Z + \text{jets}$):
- Calorimeter Showers: Weights revealed that models struggle with "late-developing" showers (zero energy in early layers) and that pion showers are harder to model than photons due to complex nuclear interactions.
- Event Reconstruction: In $Z+2$ jet events, weights identified a smeared $Z$-mass peak. Using these weights to reweight the generated events successfully recovered the sharp physical resonance.
Conclusion
A well-trained classifier should be a standard component of generative modeling pipelines in physics. By analyzing weight distributions and their correlations with physical variables, researchers can move from simply knowing a model is "wrong" to understanding why it is wrong and how to fix it. This framework ties together precision evaluation, uncertainty treatment, and physical interpretability.
Summary updated