← Latest papers
⚛️ high-energy experiments

Weight-space programming and mechanistic interpretability for model editing in particle physics

This paper demonstrates that weight-space programming and sparse autoencoder-guided edits can effectively repair infrared safety violations in a particle-physics foundation model by targeting specific latent directions or using language agents to directly modify weights, achieving precise flaw removal with minimal parameter changes compared to fine-tuning.

Original author: Raphaël Bonnet-Guerrini, Johann Ioannou-Nikolaides, Troels Petersen

Published 2026-11-23
📖 4 min read🧠 Deep dive

Original author: Raphaël Bonnet-Guerrini, Johann Ioannou-Nikolaides, Troels Petersen

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 author. For technical accuracy, refer to the original paper. Read full disclaimer

In the heart of particle physics, scientists smash protons together at nearly the speed of light to uncover the fundamental building blocks of the universe. The debris from these collisions forms sprays of particles called jets, which physicists must sort through to find rare signals hidden within a massive ocean of background noise. For decades, they relied on hand-crafted rules based on deep physical intuition to identify these jets. Recently, however, artificial intelligence has taken over, learning to recognize these patterns directly from the data with incredible speed and accuracy. These AI systems, known as foundation models, are trained on billions of simulated collisions and can be adapted to many different tasks. But as these models become more powerful, they also become more opaque. Unlike a human-designed rule, a neural network builds its own internal logic, and sometimes it learns shortcuts that have nothing to do with the actual physics, relying instead on subtle quirks of the data it was trained on. If a model learns to identify a particle based on a tiny, invisible artifact of the simulation rather than the particle itself, its predictions could be dangerously wrong when applied to real-world experiments.

A team of researchers set out to investigate exactly this kind of hidden flaw in a leading AI model used for jet physics. They discovered that the model had developed a strange sensitivity to the presence of a single, extremely faint particle. In the real world, adding a tiny, soft particle to a jet should not change what that jet is; this is a fundamental rule of physics known as infrared safety. However, the researchers found that when they added just one soft, neutral particle to a jet, the AI model would suddenly change its mind about what the jet was, often misidentifying it completely. This happened because the model had learned to associate the presence of these faint particles with a specific type of simulated data it had seen during training, rather than with the physics of the jet itself. The model was essentially using a dataset signature as a shortcut to guess the answer, which violated the core principles of the science it was supposed to be doing.

To fix this, the researchers first used a technique called mechanistic interpretability to look inside the model's brain and find exactly where this mistake was happening. They traced the error to a few specific parts of the network that were paying too much attention to these faint particles. Once they knew where the problem lay, they tested two different ways to repair the model without having to retrain it from scratch. The first method involved using a specialized tool to identify and remove the specific internal directions in the model's memory that were causing the error. The second, more novel approach, used a language-based AI agent to read the model's code and weights directly. This agent was given a description of the problem and asked to write a fix into the model's weights, all without using the standard mathematical tools usually required for training. Remarkably, both methods successfully removed the model's sensitivity to the faint particles. The repaired model stopped misidentifying jets when a soft particle was added, yet it kept all its other abilities intact, correctly identifying jets and performing other physics tasks just as well as before.

The researchers found that these fixes were highly efficient, changing far fewer numbers inside the model than traditional retraining methods would have required. Crucially, the repair worked not just for the specific task they tested, but for every other task the model could perform, including generating new jets and measuring their properties. This suggests that by fixing the core internal representation, the correction spread to all the model's functions. The study demonstrates that it is possible to surgically edit the weights of a complex AI model to remove unwanted behaviors learned from data artifacts, restoring its adherence to physical laws while preserving its powerful predictive capabilities. This offers a promising path forward for ensuring that the artificial intelligence guiding future physics experiments remains reliable and grounded in the true nature of the universe, rather than the quirks of the simulations used to teach it.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →