Manuscript Offprint

arXiv:2610.06784

How to scale your HEP ML models: A recipe for robust architecture comparisons at scale

Matthias Vigl, Nikita Pond, Jackson Barr, Alexander Froch, Dan Guest, Nicole Hartman, Michael Kagan, Lukas Heinrich

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Much of the recent progress in machine learning domains such as language models has come from scaling laws that predict performance as a function of training effort. In high-energy physics (HEP) similar behavior has now been observed. To aid further study, we present a systematic procedure to derive robust scaling laws and compare design choices on the relevant budget axes for HEP tasks. We first validate the full scaling trajectory on toy problems and then apply the procedure to multi-task transformers on the ∼\sim11 billion-jet ATLAS JetSet2 dataset, in both the compute-and data-constrained regimes. For the latter, we predict, to the best of our knowledge for the first time, the jointly optimal model size, training horizon, learning rate and batch size under early stopping. At compute-optimal scaling, we recover a near-equal C\sqrt{C} dependence of model and dataset size, and find that auxiliary objectives lower the primary jet-classification loss at equal compute budget. Expanding the inputs toward lower-level data systematically lowers the loss while leaving the scaling exponent nearly unchanged. The onset of the power-law regime is itself set by scale: below a threshold in dataset size the loss carries little information about high-compute scaling, underscoring the value of large, high-quality full-simulation datasets as a foundation for scaling studies and the development of foundation models in HEP.

1 Introduction and Related work

Jet flavor tagging, the identification of the flavor of jets, including those originating from b- and c-quarks, τ\tau-leptons, and light quarks or gluons, is a central component of the LHC [1] physics program. ATLAS [2] has progressively moved toward increasingly powerful neural-network-based taggers, from recurrent and deep-sets architectures over tracks [3] to graph and transformer models [4, 5], with the latest GN family [6–8] using transformers trained directly on low-level tracks and particle-flow constituents. A similar progression has taken place at CMS [9] with UParT and GloParT [10–13], mirroring a broader move in jet physics toward constituent-level architectures [14–23].

In machine learning, increasing model size, training data, and compute has driven much of the recent progress in language [24–26] and vision [27]. Neural scaling laws [24, 25] quantify this dependence through power-law relations between achievable loss and model size N, dataset size D, and compute C. They can be used both to predict performance at a larger training budget and to decide how a given budget should be divided between N and D. General-purpose foundation models in industry have continued to grow in both model size and training data, reaching trillions of parameters [28–30]. This paradigm is now entering HEP, where foundation models trained on increasingly large samples are being explored with a variety of pretraining strategies [31–41]. For heavy-flavor tagging, ATLAS recently demonstrated the first Chinchilla-style [25] scaling laws for transformer-based taggers trained on billions of simulated jets [42], showing that large gains are possible from scaling compute alone, and CMS has studied transformer scaling for the same task [43]. Scaling behavior has also been studied across a growing range of other HEP problems, including data scaling of jet classifiers [44], compute-optimal scaling of boosted-jet taggers [45], jet [46] and full-event [47] generation, amplitude surrogates [48], foundation-model pretraining [49–51],

∗^{*}mvigl@slac.stanford.edu and over-parameterization effects in HEP data [52]. Taken together, these studies establish that a wide range of HEP tasks exhibit systematic scaling behavior.

Scaling models, however, requires more than observing performance as a function of model or dataset size, as the scaling behavior depends on whether each run is trained under appropriately tuned dynamics [53]. As scaling is explored more deeply in HEP, we offer this paper as a pedagogical guide to deriving robust scaling laws. We also study how scaling depends on choices within the machine-learning setup, such as auxiliary objectives and input features, and how these design choices can be compared.

The central issue is illustrated in Fig. 1. At fixed model size and shape, the optimal learning rate η\eta and batch size b change systematically with the training budget [54–58]. Fixing hyperparameters at a reference budget can therefore mix genuine scaling behavior with the movement of the training optimum. A robust scaling analysis must instead account for this movement explicitly across all scalable axes.

Figure

Figure 1: Validation-loss landscape L(η,b)L(\eta, b) of the flavor tagger trained with all auxiliary tasks included, at fixed model size N∼6.7MN \sim 6.7M, for training-token budgets T=4×107T = 4 \times 10^7, 4×1084 \times 10^8, and 4×10104 \times 10^{10}. The dashed line traces the optimal learning rate η∗(b;T)\eta^*(b; T) at each batch size for a given token budget, and the red marker the joint optimum (η∗(T),b∗(T))(\eta^*(T), b^*(T)). As the token budget grows, the optimal learning rate decreases at fixed batch size, while at fixed learning rate the optimal batch size grows. The joint optimum migrates toward larger batch sizes and learning rates. Scaling these quantities optimally and transferring them across model sizes and shapes is a prerequisite for constructing robust scaling laws.

In this work, we show that in the practical setting of jet flavor tagging the optimal training hyperparameters are themselves predictable through their own scaling laws. Building on theoretical descriptions of the joint (η,b,T)(\eta, b, T) optimum [59] and on parameterizations that make hyperparameters transferable across width and depth [60–65], we fit how the joint optimal learning rate, batch size and model shape move with the token budget. When this recipe is followed, the loss as a function of compute becomes a well-behaved scaling law (Fig. 2). The resulting compute-optimal frontier is a property of the architecture rather than of hyperparameter choices, and provides the basis for reliable comparisons of architectures, objectives, and input representations at scale.

The paper is structured as follows. Section 2 introduces the GN family tagger, the dataset, and the multi-task training setup. Section 3 reviews compute-optimal scaling laws, the logic of hyperparameter tuning under a compute constraint, and how architectures should be

Figure

Figure 2: Jet-classification loss against training compute, with every run trained at its predicted optimal (η⋆,b⋆)(\eta^{\star}, b^{\star}) and at the compute-optimal allocation (N⋆,D⋆)(N^{\star}, D^{\star}) at every budget C.

compared at scale. Section 4 follows a scaling law from onset to the irreducible floor, on a teacher–student problem with a known floor and on MLP probes over compressed jets. Section 5 derives the hyperparameter recipe: a width-and depth-transferable parameterization of the joint optimum (η⋆(T),b⋆(T))(\eta^{\star}(T), b^{\star}(T)), and the optimal aspect ratio. Section 6 applies the recipe to the full tagger and extracts the compute-optimal allocation, and Section 7 extends it to repeated data under early stopping, predicting the jointly optimal model size, training horizon, learning rate and batch size. Section 8 compares design choices such as auxiliary losses and input parameters along their own compute-optimal frontiers. Section 9 translates the loss into background rejection and projects the performance at larger budgets, followed by a discussion and conclusions in Section 10.

References (100)

Couldn't load all references. Reload the page to try again.