ho22joshua Claude Opus 5.5 commited on
Commit
5b73bcb
·
1 Parent(s): b08aa60

feat: add the ATLAS Open Data GamGam 5-class task and faster training

Browse files

Add the Higgs production multiclass task of Ho et al. (2026), Table 3:
ttH, ggF, VBF, WH, ZH from the ATLAS Open Data 13 TeV GamGam MC, pinned to
a Hugging Face dataset revision.

Data:
- derived branches split ``lep_*`` into electrons and muons and apply the
MV2c10 70% working point, so the pretraining node schema applies
- ``fold_modulus`` derives folds from event numbers in exact integers
- 64-event fixtures of the five samples and an end-to-end workflow test

Training:
- paper recipe (Adam 1e-4, 0.99 decay, stop after 5 epochs without
training-loss improvement) and ``best.pt`` selection by validation AUC
- checkpoint save_every_epochs/save_best/save_last are now honored;
per-epoch history.jsonl; evaluate can write metrics JSON
- macro precision/recall/F1 for multiclass tasks
- O(n log n) weighted ROC AUC on the metric device (was O(P*N) pairs)

Speed (A100, GamGam, batch 1024): about 56 s -> 35 s per epoch by default,
18 s with the opt-in paper_fast preset:
- loader worker processes with pinned, non-blocking batch transfers
- no per-step host synchronization in the multiclass loss or loss check
- group sizes from known counts, index_select gathers, Identity for p=0
dropout (forward outputs unchanged bitwise; parity tests pass)
- opt-in CUDA graph replay of padded training steps and TF32 matmuls

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

38 files changed +1510 -96
Files changed (38)
data/fixtures/testing/atlas_opendata_gamgam/mc_341081.ttH125_gamgam_64.rootAdded
Binary file (16.3 kB). View file
data/fixtures/testing/atlas_opendata_gamgam/mc_343981.ggH125_gamgam_64.rootAdded
Binary file (11.1 kB). View file
data/fixtures/testing/atlas_opendata_gamgam/mc_345041.VBFH125_gamgam_64.rootAdded
Binary file (11.5 kB). View file
data/fixtures/testing/atlas_opendata_gamgam/mc_345318.WpH125J_Wincl_gamgam_64.rootAdded
Binary file (12.7 kB). View file
data/fixtures/testing/atlas_opendata_gamgam/mc_345319.ZH125J_Zincl_gamgam_64.rootAdded
Binary file (12.5 kB). View file
scripts/dev/shrink_root_sample.py+37-7
scripts/slurm/train_gamgam_paper.shAdded+32
src/gnn4colliders/config/application.py+125-16
src/gnn4colliders/config/factories.py+1
src/gnn4colliders/configs/checkpoint/best_auc.yamlAdded+9
src/gnn4colliders/configs/checkpoint/default.yaml+3
src/gnn4colliders/configs/config_atlas_opendata_gamgam.yamlAdded+16
src/gnn4colliders/configs/data/atlas_opendata_gamgam.yamlAdded+82
src/gnn4colliders/configs/inference/default.yaml+2
src/gnn4colliders/configs/model/root_gnn/edge_network_gamgam.yamlAdded+8
src/gnn4colliders/configs/task/gamgam_multiclass.yamlAdded+4
src/gnn4colliders/configs/trainer/default.yaml+5
src/gnn4colliders/configs/trainer/paper.yamlAdded+21
src/gnn4colliders/configs/trainer/paper_fast.yamlAdded+8
src/gnn4colliders/data/dataset.py+37-13
src/gnn4colliders/data/loader.py+58-2
src/gnn4colliders/data/preparation.py+14-5
src/gnn4colliders/features/derived.pyAdded+103
src/gnn4colliders/graphs/padding.pyAdded+118
src/gnn4colliders/models/root_gnn/blocks.py+6-1
src/gnn4colliders/models/root_gnn/edge_network.py+17-11
src/gnn4colliders/sequences/sample.py+5-2
src/gnn4colliders/tasks/_common.py+85-14
src/gnn4colliders/tasks/multiclass_classification.py+13-3
src/gnn4colliders/training/__init__.py+2-1
src/gnn4colliders/training/cuda_graphs.pyAdded+101
src/gnn4colliders/training/reproducibility.py+11
src/gnn4colliders/training/trainer.py+77-21
tests/integration/test_gamgam_workflow.pyAdded+150
tests/unit/features/test_derived.pyAdded+101
tests/unit/graphs/test_padding.pyAdded+62
tests/unit/tasks/test_fast_metrics.pyAdded+72
tests/unit/training/test_lifecycle_policies.pyAdded+125