View all files | ||||
Official implementation of PHAT-JeT (Patch Hierarchical Attention Transformer for Jet Tagging), an efficient attention-based architecture for real-time particle jet classification in high-energy physics experiments.
PHAT-JeT addresses the challenge of performing accurate jet tagging under the extreme latency and resource constraints imposed by real-time trigger systems at the Large Hadron Collider (LHC). While transformer models achieve state-of-the-art accuracy in particle-level jet classification, their quadratic computational cost hinders deployment in real-time applications where decisions must be made within ~10 microseconds.
Particle jets in the detector coordinate system (η, φ). Each jet consists of collimated particle showers that must be efficiently classified in real-time.
The PHAT block partitions input particles into patches before computing attention, enabling efficient processing while maintaining global context through patch-token interactions.
Performance comparison on 5-class jet classification (q, g, W, Z, t):
| PHAT-JeT | 81.80 ± 0.02 | 0.962 | 71.6 ± 0.6 | 6,694 | 1.31M |
| JEDI-Linear | 81.56 ± 0.05 | 0.961 | 68.7 ± 2.7 | 19,800 | 1.38M |
| Transformer | 81.27 ± 0.06 | 0.959 | 66.9 ± 0.6 | 4,600 | 2.48M |
| SAL-T | 81.28 ± 0.10 | 0.960 | 64.7 ± 0.5 | 5,144 | 1.26M |
| Linformer | 81.22 ± 0.07 | 0.960 | 65.0 ± 1.7 | 11,945 | 1.32M |
| PointTransformer V3 | 80.99 ± 0.15 | 0.955 | 60.2 ± 1.4 | 8,113 | 768K |
| PointNet | 74.22 ± 0.07 | 0.931 | 21.3 ± 0.3 | 5,893 | 788K |
Avg Bkg Rej = Average background rejection at 80% signal efficiency (higher is better)
PHAT-JeT achieves the highest accuracy, ROC AUC, and background rejection while maintaining a competitive parameter count and computational cost suitable for real-time deployment.
Train PHAT-JeT on the HLS4ML dataset:
Key training arguments:
Evaluate a trained model:
The model architecture is defined in models/PHAT_JeT.py:
We evaluate PHAT-JeT on three jet tagging benchmarks:
HLS4ML LHC Jet Dataset: 5-class classification (q, g, W, Z, t) designed for CMS Level-1 trigger emulation
Top Tagging Dataset: Binary classification (top quarks vs. light quarks/gluons)
Quark-Gluon Dataset: Binary classification (quark-initiated vs. gluon-initiated jets)
Detailed view of PHAT-JeT's core components: Geometric Message Passing (GMP) and Hierarchical Patch Attention mechanism.
The GMP module injects local angular context into particle embeddings:
This provides the model with physics-informed positional information about local detector structure.
Attention is computed at two levels:
This hierarchical design reduces computational cost from O(N²) to approximately O(N) while maintaining representational capacity.
This project is licensed under the MIT License - see the LICENSE file for details.