Expand model card: installation, pretraining recipe, data, GitHub link
Browse files
README.md
CHANGED
|
@@ -13,17 +13,29 @@ pipeline_tag: feature-extraction
|
|
| 13 |
# ParticleViT-B
|
| 14 |
|
| 15 |
ParticleViT is a generic transformer over the constituents of a collider jet,
|
| 16 |
-
with **no physics-specific inductive bias**
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
## Usage
|
| 29 |
|
|
@@ -47,11 +59,101 @@ with torch.no_grad():
|
|
| 47 |
```
|
| 48 |
|
| 49 |
For downstream tagging, replace `model.head` with a fresh linear head and
|
| 50 |
-
fine-tune the full network (see the paper's fine-tuning protocol
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
## Files
|
| 57 |
|
|
@@ -64,16 +166,34 @@ meaningless predictions.
|
|
| 64 |
## Downstream benchmark performance
|
| 65 |
|
| 66 |
Background rejection R50 / R30 after fine-tuning (higher is better), from the
|
| 67 |
-
paper's Table I:
|
| 68 |
|
| 69 |
-
| Model | depth x width | Top tagging R50 / R30 | Quark/gluon R50 / R30 |
|
| 70 |
-
|-------|---------------|-----------------------|-----------------------|
|
| 71 |
-
| ParticleViT-S | 5x512 | 616 / 2707 | 42.8 / 110.3 |
|
| 72 |
-
| ParticleViT-M | 7x640 | 606 / 2928 | 43.0 / 108.9 |
|
| 73 |
-
| ParticleViT-B (this model) | 8x832 | 618 / 2903 | 43.2 / 109.8 |
|
| 74 |
-
| ParticleViT-L | 10x1024 | 631 / 3042 | 43.4 / 112.2 |
|
| 75 |
-
| ParticleViT-XL | 14x1536 | 651 / 3008 | 43.5 / 110.2 |
|
| 76 |
|
| 77 |
## License
|
| 78 |
|
| 79 |
-
MIT.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
# ParticleViT-B
|
| 14 |
|
| 15 |
ParticleViT is a generic transformer over the constituents of a collider jet,
|
| 16 |
+
with **no physics-specific inductive bias**. Each particle is one token; a single
|
| 17 |
+
prepended class token is read out. This is the **B** rung (66.7M
|
| 18 |
+
parameters, pretraining compute 5.7e19 FLOPs) of the scaling ladder from
|
| 19 |
+
the paper *Predict before you train: scaling laws for particle physics foundation
|
| 20 |
+
models* (Uslu, Nachman, Re).
|
| 21 |
|
| 22 |
+
- **Code:** https://github.com/Jaluus/HyperScale
|
| 23 |
+
- **Paper corpus:** [OmniLearned](https://arxiv.org/abs/2510.24066) (~1.06B jets)
|
| 24 |
+
- **All five models:** [ParticleViT collection](https://huggingface.co/collections/jaluus/particlevit-6a3ef3aed272c154dbdc8df6) (S, M, B, L, XL)
|
| 25 |
|
| 26 |
+
## Installation
|
| 27 |
+
|
| 28 |
+
```bash
|
| 29 |
+
pip install torch safetensors huggingface_hub
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
That is all you need: the model code (`modeling_particlevit.py`) and the input
|
| 33 |
+
normalization (`preprocessing.py`) ship inside this repository and depend only on
|
| 34 |
+
PyTorch. To grab the files explicitly:
|
| 35 |
+
|
| 36 |
+
```bash
|
| 37 |
+
huggingface-cli download jaluus/ParticleViT-B --local-dir ParticleViT-B
|
| 38 |
+
```
|
| 39 |
|
| 40 |
## Usage
|
| 41 |
|
|
|
|
| 59 |
```
|
| 60 |
|
| 61 |
For downstream tagging, replace `model.head` with a fresh linear head and
|
| 62 |
+
fine-tune the full network end to end (see the paper's fine-tuning protocol and
|
| 63 |
+
the code repository).
|
| 64 |
+
|
| 65 |
+
**The parametric input normalization is required.** Feeding raw features without
|
| 66 |
+
applying `omnilearned_parametric_normalization.json` produces meaningless
|
| 67 |
+
predictions.
|
| 68 |
+
|
| 69 |
+
## Model architecture
|
| 70 |
+
|
| 71 |
+
A generic set-transformer over particle tokens with **no physics inductive bias**
|
| 72 |
+
(no Lorentz equivariance, no pairwise interaction features). Design choices follow
|
| 73 |
+
modern open language models:
|
| 74 |
+
|
| 75 |
+
- Reordered RMSNorm kept outside the residual stream (double-norm blocks).
|
| 76 |
+
- Query-key normalization (QK-Norm) for attention stability.
|
| 77 |
+
- SwiGLU feedforward with the 8/3 width convention.
|
| 78 |
+
- A single prepended class token for readout; **no positional encoding** (a jet's
|
| 79 |
+
constituents form a set, not a sequence).
|
| 80 |
+
- Truncated-normal (OLMo-style) initialization; head dimension 64.
|
| 81 |
+
|
| 82 |
+
| depth | width | heads | head dim | params |
|
| 83 |
+
|------:|------:|------:|---------:|-------:|
|
| 84 |
+
| 8 | 832 | 13 | 64 | 66.7M |
|
| 85 |
+
|
| 86 |
+
## Pretraining recipe
|
| 87 |
+
|
| 88 |
+
**Objective.** Softmax cross-entropy over the 210-class OmniLearned label space,
|
| 89 |
+
read from the prepended class token, with no label smoothing. An output z-loss
|
| 90 |
+
(weight 1e-5) keeps the logits bounded; it is excluded from the reported loss.
|
| 91 |
+
|
| 92 |
+
**Optimization (shared across the ladder).**
|
| 93 |
+
|
| 94 |
+
- Optimizer: AdamW (beta1 0.9, beta2 0.95), weight decay 0.1 (no decay on
|
| 95 |
+
embeddings, norm gains, or any 1-D parameter).
|
| 96 |
+
- Schedule: linear warmup (2000 steps) then cosine decay to 10% of the peak LR.
|
| 97 |
+
- No gradient clipping. BF16 mixed precision with FP32 master weights.
|
| 98 |
+
- Global batch size 16384 jets.
|
| 99 |
+
- Variable-length attention with sequence packing (removes padding, ~70% faster).
|
| 100 |
+
- Frozen parametric Gaussian transform on the four kinematic input features.
|
| 101 |
+
|
| 102 |
+
**This model (ParticleViT-B).**
|
| 103 |
+
|
| 104 |
+
| peak LR | global batch | GPUs (A100) | batch/GPU | steps | jets seen | passes | pretraining compute |
|
| 105 |
+
|--------:|-------------:|------------:|----------:|------:|----------:|-------:|--------------------:|
|
| 106 |
+
| 1e-3 | 16384 | 16 | 1024 | 183,105 | 3.0B | ~2.8 | 5.7e19 FLOPs |
|
| 107 |
+
|
| 108 |
+
Trained on the Perlmutter supercomputer (NERSC) with PyTorch distributed data
|
| 109 |
+
parallelism. Compute is accounted as 6 FLOPs per parameter per token at the
|
| 110 |
+
measured mean occupancy of the 150 particle slots.
|
| 111 |
+
|
| 112 |
+
## Pretraining data
|
| 113 |
+
|
| 114 |
+
ParticleViT is pretrained on the **OmniLearned bundle** (Bhimji, Harris, Mikuni,
|
| 115 |
+
Nachman; [arXiv:2510.24066](https://arxiv.org/abs/2510.24066), Phys. Rev. D 113,
|
| 116 |
+
032020), a union of seven simulated and real jet datasets totaling
|
| 117 |
+
**~1.06 billion training jets** (~102M validation, ~68M test). Upstream code and
|
| 118 |
+
hosting: [ViniciusMikuni/OmniLearned](https://github.com/ViniciusMikuni/OmniLearned),
|
| 119 |
+
served from `https://portal.nersc.gov/cfs/dasrepo/omnilearned/`.
|
| 120 |
+
|
| 121 |
+
| Subset | Train jets | Collider / physics | Production chain |
|
| 122 |
+
|--------|-----------:|--------------------|------------------|
|
| 123 |
+
| `jetclass` | 100M | pp to jets (10 flavors) | MadGraph5 to Pythia 8 to Delphes (CMS card), anti-kt R=0.8 |
|
| 124 |
+
| `jetclass2` | 200M | pp to jets (188 labels) | Same chain, fine-grained parton labels |
|
| 125 |
+
| `aspen` | 125M | pp, CMS 2016 open data | Real data + matched simulation |
|
| 126 |
+
| `atlas` | 178M | pp to top vs QCD | Pythia 8 + ATLAS Geant4 full sim, anti-kt R=1.0 + Soft Drop |
|
| 127 |
+
| `h1` | 42.2M | ep DIS, 27.6 x 920 GeV | Rapgap / Djangoh + Geant3, kt R=1.0 |
|
| 128 |
+
| `cms_qcd` | 239M | pp to QCD | CMS 2016 simulation framework |
|
| 129 |
+
| `cms_bsm` | 173.5M | pp to BSM signals | VLQ, charged Higgs, graviton, radion, SUSY, Z', X to YY |
|
| 130 |
+
|
| 131 |
+
Clustering radius and detector handling deliberately differ across subsets
|
| 132 |
+
(R = 0.4 / 0.8 / 1.0; Delphes vs Geant4 vs Geant3 vs real data), so the model
|
| 133 |
+
must generalize across regimes.
|
| 134 |
+
|
| 135 |
+
**Per-particle features (9 channels).** Each jet is up to 150 particles:
|
| 136 |
+
|
| 137 |
+
| idx | feature | notes |
|
| 138 |
+
|----:|---------|-------|
|
| 139 |
+
| 0 | delta eta | particle eta minus jet axis |
|
| 140 |
+
| 1 | delta phi | particle phi minus jet axis (wrapped to [-pi, pi]) |
|
| 141 |
+
| 2 | log pT | **padding sentinel: == 0 marks a padded slot** |
|
| 142 |
+
| 3 | log E | clamped >= log pT |
|
| 143 |
+
| 4 | PID | categorical particle-ID code (integer, embedded) |
|
| 144 |
+
| 5 | tanh(D0) | transverse impact parameter |
|
| 145 |
+
| 6 | D0 err | |
|
| 146 |
+
| 7 | tanh(Dz) | longitudinal impact parameter |
|
| 147 |
+
| 8 | Dz err | |
|
| 148 |
+
|
| 149 |
+
Features 0-3 are the minimal kinematic set; 4-8 are optional and **zeroed where a
|
| 150 |
+
subset does not provide them**. The four kinematic features are mapped to an
|
| 151 |
+
approximately standard-normal distribution by the frozen parametric transform in
|
| 152 |
+
`omnilearned_parametric_normalization.json` (required at inference).
|
| 153 |
+
|
| 154 |
+
**Labels.** A flat **210-class** label space with disjoint per-dataset ranges
|
| 155 |
+
(e.g. `jetclass` 2-11, `jetclass2` 12-199, single buckets for `aspen`, `cms_qcd`,
|
| 156 |
+
`cms_bsm`, ...). The pretraining objective is classification over these 210 classes.
|
| 157 |
|
| 158 |
## Files
|
| 159 |
|
|
|
|
| 166 |
## Downstream benchmark performance
|
| 167 |
|
| 168 |
Background rejection R50 / R30 after fine-tuning (higher is better), from the
|
| 169 |
+
paper's Table I. R50 and R30 are 1/eps_B at 50% and 30% signal efficiency:
|
| 170 |
|
| 171 |
+
| Model | depth x width | params | Top tagging R50 / R30 | Quark/gluon R50 / R30 |
|
| 172 |
+
|-------|---------------|-------:|-----------------------|-----------------------|
|
| 173 |
+
| ParticleViT-S | 5x512 | 16M | 616 / 2707 | 42.8 / 110.3 |
|
| 174 |
+
| ParticleViT-M | 7x640 | 35M | 606 / 2928 | 43.0 / 108.9 |
|
| 175 |
+
| ParticleViT-B **(this model)** | 8x832 | 67M | 618 / 2903 | 43.2 / 109.8 |
|
| 176 |
+
| ParticleViT-L | 10x1024 | 126M | 631 / 3042 | 43.4 / 112.2 |
|
| 177 |
+
| ParticleViT-XL | 14x1536 | 397M | 651 / 3008 | 43.5 / 110.2 |
|
| 178 |
|
| 179 |
## License
|
| 180 |
|
| 181 |
+
Released under the **MIT** license.
|
| 182 |
+
|
| 183 |
+
## Citation
|
| 184 |
+
|
| 185 |
+
```bibtex
|
| 186 |
+
@article{uslu2026predict,
|
| 187 |
+
title = {Predict before you train: scaling laws for particle physics foundation models},
|
| 188 |
+
author = {Uslu, Jan-Lucas and Nachman, Benjamin and R\'e, Christopher},
|
| 189 |
+
year = {2026}
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
@article{bhimji2025omnilearned,
|
| 193 |
+
title = {OmniLearned: A Foundation Model Framework for All Tasks Involving Jet Physics},
|
| 194 |
+
author = {Bhimji, Wahid and Harris, Chris and Mikuni, Vinicius and Nachman, Benjamin},
|
| 195 |
+
journal = {Phys. Rev. D},
|
| 196 |
+
volume = {113}, number = {3}, pages = {032020}, year = {2026},
|
| 197 |
+
eprint = {2510.24066}, archivePrefix = {arXiv}
|
| 198 |
+
}
|
| 199 |
+
```
|