arXiv:2610.29439cs.LGOct 2026

Manuscript Offprint

arXiv:2610.29439

How Far Can Foundation Models Be Distilled for Efficient Jet Tagging?

Jay Agarwal, Siddharth Khare, Dhruv Kumar

Abstract

Jet tagging is one of the most important applications of machine learning at the Large Hadron Collider. Recent models build in more physics knowledge or rely on large-scale pretraining, but the experiments place strict limits on their inference cost. Knowledge distillation can transfer their performance to small students that are cheap to run. We ask which properties of a teacher help the student, how small a student can get and how close it can come to the state of the art. On a jet tagging benchmark, we distil six teachers that differ in architecture, symmetry and pretraining, including two foundation models, into five small students. Every teacher improves every student, and the gain depends mainly on the strength of the teacher. We then shrink our two strongest distilled students, Transformer and L-GATr-slim, in width and in depth. With 20 thousand parameters, a distilled L-GATr-slim outperforms every published jet tagger trained from scratch at a fraction of the inference cost of every teacher. Even with two thousand parameters, it matches ParT, a model with a thousand times as many parameters. We also study what the students learn from their teachers. Our benchmark of inference cost shows that students of the same size can differ by almost an order of magnitude in speed. We release the code and the weights of all trained models.

1 Introduction

Modern machine learning has transformed data analysis at the Large Hadron Collider (LHC), and jet tagging is among its most established applications [26]. A jet is a collimated spray of particles recorded by the detector. The task is to identify the particle that a jet originated from, using the momenta of up to a few hundred measured constituents. In the past few years, jet tagging has seen many new model designs: some adapt modern architectures with physics knowledge [16, 34, 35, 42], and some build the symmetries of particle physics data into the model itself [9, 21, 37, 38]. Recently, foundation models have been pretrained on large datasets, and fine-tuning them outperforms training the same model from scratch [6, 23, 35].

However, these developments have made taggers more expensive to run. While training a tagger takes at most a few days, the experiments at the LHC place strict requirements on its inference cost [17]. Interactions between every pair of particles, equivariant layers and large pretrained models all make a tagger more expensive to evaluate, and its parameter count does not show by how much.

Knowledge distillation, or simply distillation, has become a standard technique in machine learning to reduce the size and computational cost of a model while closely matching its performance [22, 24]. A large teacher model guides the training of a small student model. In jet tagging, the teacher is trained once, the student learns to match the teacher's predictions and only the student is deployed.

Several questions about distillation in jet tagging remain open. Which properties of a teacher help the student: its strength, its symmetry, its pretraining or its architecture? How does the benefit depend on the size of the student, and how small can the student get before distillation stops helping? How close can a distilled student come to the state of the art? Previous studies in particle physics use one or two

Preprint.

teachers and simple students such as Deep Sets or an MLP [5, 19, 28]. Because their teachers differ in strength as well as in the property of interest, they cannot tell the two effects apart. Their students also remain well below the strongest taggers, which leaves open whether distillation costs too much performance to be useful.

In this paper we answer these questions with a systematic and controlled study on the top-tagging benchmark [26]. In Section 4 we distil six teachers into five students with about 200 thousand parameters each, about a tenth of the size of most teachers. The teachers span a range of strength, differ in architecture, symmetry and pretraining, and include state-of-the-art models. The students include a plain Transformer and smaller versions of the teachers. We keep the distillation setting the same for every pair, so that the comparison is fair. In Section 5 we scale our two strongest distilled students, which are also among the cheapest to run, Transformer and the symmetry-aware L-GATr-slim [33], in width and in depth from about one thousand to 400 thousand parameters. In Section 6 we study what the student learns from its teacher: how closely it reproduces the teacher's predictions and which of the teacher's mistakes it shares, down to single jets. In Section 7 we benchmark the inference cost of every model. We report the number of operations per jet, the throughput and peak memory on a GPU and the latency for a single jet on one CPU core.

We find that distillation improves each of our five students with every teacher, and that the benefit follows mainly the strength of the teacher, whatever its architecture or pretraining. A teacher trained from scratch that is as strong as a pretrained one gives students that perform about as well. Distillation also works well for small students, which can outperform much larger state-of-the-art teachers. With about 20 thousand parameters, a distilled L-GATr-slim outperforms every published tagger trained from scratch [33], and only pretrained taggers do better. It does so at a fraction of the inference cost of every teacher. With two thousand parameters, a distilled L-GATr-slim still matches ParT, which has 2.1 million parameters. Students copy their teachers closely, down to mistakes that only their own teacher makes. Students of the same size can differ by almost an order of magnitude in speed, mainly because some of them compute features for every pair of particles. Our code and the weights of all trained models are available at https://github.com/JayAgarwal25/distilling-jet-taggers, so that every result can be reproduced and other teachers and students can be distilled in the same way.

References (42)