Predict before you train: Scaling Laws for particle physics foundation models
This paper demonstrates that joint model-and-data scaling laws fitted on small transformer models can accurately predict the performance of much larger particle physics foundation models before training, enabling the translation of compute budgets into expected physics outcomes and validating the approach against state-of-the-art benchmarks.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to bake the perfect cake, but you don't know how much flour, sugar, or heat you need. In the world of particle physics, scientists are constantly building "digital brains" (machine learning models) to analyze the chaotic debris from particle collisions, hoping to find hidden patterns that reveal new laws of nature. These digital brains are like giant ovens: the bigger the oven (the model) and the more ingredients you feed it (the data), the better the cake usually tastes. However, baking these cakes is incredibly expensive; it requires massive amounts of electricity and supercomputers. For years, scientists had to guess how big their oven should be before they started baking. They would spend millions of dollars on a huge oven, only to find out later that a medium-sized one would have done the job just as well, or that they needed a much bigger one to get the result they wanted. The big question was: Can we predict the taste of the cake before we even turn on the oven?
This paper, titled "Predict before you train," tackles that exact problem. The researchers wanted to see if they could figure out a "recipe rule" (called a scaling law) that tells them exactly how much computing power they need to get a specific result, without having to actually build the giant model first. They focused on a specific type of digital brain called a "transformer," which is usually used for reading text, but here they taught it to read particles flying out of a collider. By training a series of small, cheap models first, they tried to draw a line on a graph that predicts what would happen if they built a model one hundred times bigger. They also wanted to know if a better "pre-training" (learning general patterns) would actually help the model get better at specific physics tasks later, like spotting a top quark or telling a quark from a gluon.
The "Crystal Ball" for Particle Physics
The team, led by researchers from Stanford and SLAC, decided to test a bold idea: could they predict the performance of a massive machine learning model just by looking at the results of tiny, cheap ones? To do this, they used a dataset called "OmniLearned," which contains about one billion simulated particle jets (sprays of particles). They built a family of models called ParticleViT. Think of these models as a set of digital detectives. The smallest one is a rookie detective, and the largest is a super-sleuth with a massive memory.
The researchers started by training the rookie detectives on a small amount of computing power (less than FLOPs, which is a unit of calculation). They watched how well these small detectives learned. Then, they used a mathematical formula (a "scaling law") to draw a line on a graph, predicting what would happen if they trained a detective with a memory one hundred times larger.
The Prediction Came True
The result was like having a crystal ball. When they actually trained the giant models (using up to FLOPs), the results landed almost exactly where the prediction said they would. The actual performance was within one percent of the forecast. This is a huge deal because, until now, no one had successfully predicted the performance of a model they hadn't trained yet in particle physics. It means scientists can now do a "dry run" with small, cheap models to figure out exactly how much computing power they need to buy before they commit to the expensive, giant training runs.
The "Information Density" Surprise
One of the most interesting findings was about how much "brain power" (model size) is actually needed. In the world of language models (like the ones that write essays or chat with you), the rule of thumb is that you need a huge model to handle a lot of data. But for particle physics, the researchers found something different.
They discovered that a single particle in a jet carries much less "information" than a single word in a sentence. A word can mean a million different things depending on context, but a particle is just a particle with a few specific numbers attached to it. Because the data is less "dense" with information, the optimal model size for this billion-particle dataset is actually much smaller than what language experts would guess. The paper suggests that for this specific job, you don't need a giant brain; you just need to feed the brain a lot of examples. The "sweet spot" for the model size was found to be far smaller than the standard rules for language models, suggesting that for particle physics, it's better to spend your budget on more data rather than a bigger model.
Does a Better "General Knowledge" Help?
The team also checked if doing well at the general pre-training task (learning about all the particles) actually helped the model get better at specific physics jobs later. They tested two common tasks:
- Top Tagging: Identifying if a jet of particles came from a heavy "top quark."
- Quark/Gluon Tagging: Distinguishing between jets made by quarks and those made by gluons.
They found a clear, straight line: the models that had lower "loss" (meaning they learned the general patterns better during pre-training) also performed better on these specific tasks after being fine-tuned. In other words, if your digital detective is a genius at general particle physics, it will be a genius at spotting top quarks, too. This confirms that the "compute budget" can be directly translated into an expected physics performance. If you know how much computing power you have, you can now predict how good your model will be at finding new physics.
The Final Showdown
Finally, the researchers compared their new, generic "ParticleViT" models against OmniLearned, a famous, highly specialized model that was built with specific physics rules baked into its design (like knowing the laws of relativity). The results were surprising. The generic ParticleViT models, which had no special physics rules inside them, performed just as well as the specialized OmniLearned model on most metrics.
The only place where the specialized model had a slight edge was in the very hardest, most extreme cases of "top tagging" (the "high-purity tail"), where it was about 5% better at rejecting background noise. But for almost everything else, the simple, generic model that learned from scratch was just as good. This suggests that for many physics tasks, you don't necessarily need to build complex, physics-specific architectures; a standard, well-scaled transformer trained on enough data can do the job just as effectively.
What This Means for the Future
The paper concludes by releasing five of these models (from small to extra-large) and the full code, so other scientists can use them. The main takeaway is that the era of "guessing and hoping" is over for this field. Scientists can now use a small, cheap experiment to predict the outcome of a massive, expensive one. They can calculate exactly how much computing power they need to reach a specific goal, saving time and resources. While the paper doesn't claim to have solved all of physics, it has provided a reliable map for navigating the expensive landscape of training machine learning models in particle physics, proving that sometimes, the best way to see the future is to start small.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.