Re-Simulation-based Self-Supervised Learning for Pre-Training Foundation Models

Philip C. Harris, Michael Kagan, Jeffrey D. Krupa, Benedikt Maier, Nathaniel WoodwardarXiv 2024 · DOI

Abstract

Self-Supervised Learning (SSL) is at the core of training modern large machine learning models, providing a scheme for learning powerful representations that can be used in a variety of downstream tasks. However, SSL strategies must be adapted to the type of training data and downstream tasks required. We propose RS3L ("Re-simulation-based self-supervised representation learning"), a novel simulation-based SSL strategy that employs a method of re-simulation to drive data augmentation for contrastive learning in the physical sciences, particularly, in fields that rely on stochastic simulators. By intervening in the middle of the simulation process and re-running simulation components downstream of the intervention, we generate multiple realizations of an event, thus producing a set of augmentations covering all physics-driven variations available in the simulator. Using experiments from high-energy physics, we explore how this strategy may enable the development of a foundation model; we show how RS3L pre-training enables powerful performance in downstream tasks such as discrimination of a variety of objects and uncertainty mitigation. In addition to our results, we make the RS3L dataset publicly available for further studies on how to improve SSL strategies.

Introduction

In fields such as High-Energy Physics (HEP), researchers rely heavily on complex stochastic simulators to model subatomic interactions. However, traditional supervised machine learning faces two significant hurdles:

  1. Domain Shift: Models trained on a specific simulator (e.g., Pythia) often fail to generalize to data from another (e.g., Herwig) or to real experimental data due to overfitting on simulation-specific "nuisance" parameters.
  2. Label Scarcity: While simulated events are abundant, labeling them for specific tasks is computationally expensive, and ground-truth labels for experimental data are often unavailable.

Standard Self-Supervised Learning (SSL) techniques, such as image rotation or cropping, are physically unmotivated for jet physics. The primary source of variation in physics data is the stochastic nature of the simulation itself, such as the parton showering process. This work introduces RS3L to bake physical uncertainty directly into the model's learned representations.

Methodology

The core of the RS3L framework is a simulation-based augmentation strategy. The process begins with an intervention: the simulation is paused after the primary "hard-scattering" interaction. While the upstream process is fixed, the downstream components—parton showering and hadronization—are re-run multiple times with different random seeds or physical parameters.

Schematic of the RS3L framework showing the re-simulation process, graph construction, and contrastive learning setup.

These re-simulated versions of the same event serve as "positive pairs" for Contrastive Learning (SimCLR). The model is trained to map these different realizations to the same point in a latent space while pushing distinct physical events apart. The architecture utilizes a Graph Neural Network (GNN) with DynamicEdgeConv layers, treating jet particles as nodes to capture geometric relationships.

The RS3L dataset, released alongside this work, includes 5 million events (a 50/50 mix of QCD and Higgs boson jets) generated with Pythia8 and passed through the Delphes3 detector simulation. Robustness was further evaluated using Herwig7 as an out-of-distribution simulator.

Experimental Results

Pre-training with RS3L provides several key advantages. First, it achieves domain completeness; by using the simulator as an augmentation engine, the model learns to be invariant to the specifics of the showering process, effectively "projecting away" statistical noise. This leads to a "hot start" advantage, where pre-training on 5 million unlabeled events allows the model to match the performance of a fully supervised model using significantly fewer labeled samples.

Evolution of average cosine similarity during training. The model learns to group re-simulations (positive pairs) while naturally separating Higgs from QCD events (negative pairs).

Notably, emergent classification occurs: even without explicit labels during pre-training, the latent space naturally clusters Higgs and QCD categories separately. In downstream tasks, fine-tuning the RS3L backbone for Higgs vs. QCD classification matched or exceeded state-of-the-art supervised models. Furthermore, the model demonstrated superior Out-of-Distribution (OOD) performance; when fine-tuned to identify W boson jets—which were not present during pre-training—it outperformed supervised models by up to 10% in background rejection.

Finally, RS3L-trained models exhibited enhanced uncertainty mitigation, showing reduced sensitivity to renormalization scale variations and choices of hadronization models (Pythia vs. Herwig).

Discussion and Future Work

While the current study utilized an 8D latent space for efficiency, higher-dimensional spaces may be necessary for more complex multi-object foundation models. Future research will explore expanding the RS3L scope from individual jets to entire event topologies and applying the framework to other scientific domains, such as cosmology or fluid dynamics, where stochastic simulators are prevalent. Additionally, comparing contrastive learning with other SSL paradigms, such as masked particle modeling, remains a promising avenue for the HEP community.

Summary updated

BibTeX
@misc{harris2024re,
  author = {Philip C. Harris and Michael Kagan and Jeffrey D. Krupa and Benedikt Maier and Nathaniel Woodward},
  title = {{Re-Simulation-based Self-Supervised Learning for Pre-Training Foundation Models}},
  year = {2024},
  eprint = {2403.07066},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.07066},
}
Figure