File size: 3,581 Bytes
80d0347
 
8aeb7f8
02abe20
8aeb7f8
 
 
 
 
 
 
02abe20
511459f
 
8aeb7f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
511459f
8aeb7f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
license: lgpl
library_name: pytorch
tags:
- physics
- particle-physics
- nuclear-physics
- foundation-model
- mamba
- state-space-model
- track-reconstruction
- arxiv:2508.14087
---

# FM4NPP: Foundation Models for Nuclear and Particle Physics

Pretrained state space model (Mamba / Mamba2) checkpoints for particle physics,
from the paper **[Foundation Models for Particle Physics](https://arxiv.org/abs/2508.14087)**
(accepted to ICLR 2026). Developed at Brookhaven National Laboratory.

- 📄 Paper: https://arxiv.org/abs/2508.14087 · [OpenReview](https://openreview.net/forum?id=qaI3cLFsiX)
- 💻 Code: https://github.com/FM4NPP/PP_collision
- 📊 Dataset (TPCpp-10M): https://doi.org/10.5281/zenodo.16970029

## Model description

FM4NPP pretrains state space models (Mamba, Mamba2) on simulated proton–proton
collision data from a Time Projection Chamber (TPC), then transfers the learned
representations to downstream tasks such as track reconstruction (track finding).

Two model sizes are provided:

**Mamba 5M**

| Parameter | Value |
|---|---|
| `embed_dim` | 256 |
| `num_layers` | 12 |
| `d_state` | 16 |
| `d_conv` | 4 |
| `expand` | 2 |

**Mamba2 5M**

| Parameter | Value |
|---|---|
| `embed_dim` | 256 |
| `num_layers` | 12 |
| `d_state` | 128 |
| `headdim` | 64 |
| `ngroups` | 1 |

## Intended use

These checkpoints are intended for research on foundation models in nuclear and
particle physics: pretraining on unlabeled TPC data and fine-tuning for downstream
tasks like track reconstruction, particle classification, and noise tagging.

## How to use

Full training and inference code is in the
[GitHub repository](https://github.com/FM4NPP/PP_collision).

```bash
# Environment
conda create -n fm4npp python=3.10
conda activate fm4npp
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
pip install mamba-ssm causal-conv1d triton
pip install pyyaml numpy scipy tqdm mmap-ninja

# Download the checkpoint from this repo
huggingface-cli download <your-username>/<your-repo> --local-dir ./checkpoints

# Fine-tune for track reconstruction (point pretrained_ckpt at the downloaded file)
python train/downstream/track_finding_trainer.py \
    --yaml_config=scripts/configs/mamba_tracking.yaml \
    --config=mamba_5m_downstream \
    --run_num=run0
```

## Training data

Pretrained on **TPCpp-10M**: 10M simulated proton–proton collision events (100 files,
~118.5 GB compressed, NumPy `.npz`) for pretraining, plus 70k/13k/7k labeled
train/val/test events for downstream tasks. Each spacepoint carries 30D features
(position, momentum, energy, time, detector metadata).

Dataset: https://doi.org/10.5281/zenodo.16970029 ·
Dataset paper: https://www.sciencedirect.com/science/article/pii/S2352340925011060

## Citation

```bibtex
@article{park2025fm4npp,
  title={FM4NPP: A Scaling Foundation Model for Nuclear and Particle Physics},
  author={Park, David and Li, Shuhang and Huang, Yi and Luo, Xihaier and Yu, Haiwang and Go, Yeonju and Pinkenburg, Christopher and Lin, Yuewei and Yoo, Shinjae and Osborn, Joseph and others},
  journal={arXiv preprint arXiv:2508.14087},
  year={2025}
}

@article{tpcpp10m2025,
  title={TPCpp-10M: Simulated proton-proton collisions in a Time Projection Chamber for AI Foundation Models},
  author={Li, Shuhang and Huang, Yi and Park, David and Luo, Xihaier and Yu, Haiwang and Go, Yeonju and Pinkenburg, Christopher and Lin, Yuewei and Yoo, Shinjae and Osborn, Joseph and Roland, Christof and Huang, Jin and Ren, Yihui},
  journal={arXiv preprint arXiv:2509.05792},
  year={2025}
}
```