Manuscript Offprint
arXiv:2611.26291Who Moved My Boson? Revealing Resonance Features Inside a Neural Network
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Methods used in mechanistic interpretability have revealed human-aligned concepts inside language and image models. In this paper, we search for physics concepts inside a neural a generative collider physics model trained on real LHC data (ShellFlow). We discover features inside ShellFlow that represent resonances, such as the , , and . The network was never told which muons come from a resonance, it was only trained to generate the kinematics of the final-state particles. We use these features to alter aspects of the boson: we change its mass between and 105 GeV, and removing such a feature from the neural network produces a broader peak. In both cases the rest of the invariant mass spectrum remains mostly unchanged. The feature was built from the gradients of the neural network, and its selectivity was built using pattern recognition methods. A generative particle physics model trained on unlabeled data can be modified internally to change a physical quantity.
Keywords:
interpretability, flow matching, steering vectors, collider physics
In most of the steering literature, the effect of a steering vector is judged by a classifier or a similarity score (Turner et al., 2023; Rimsky et al., 2024; Gaintseva et al., 2026; Konovalova et al., 2026). These scores are used because of a major limitation inherent in images or text: there is no rigorous ground truth, so it is impossible to measure how much a quantity changes. You cannot measure how much a smile has changed in a picture. A generator of collision events does not have this limitation: its output is a set of four-momenta, on which a physical observable, such as the invariant mass of a muon pair, can be measured.
In this paper, we search for a direction in ShellFlow that is aligned with the concept of the boson. We aim to find a steering vector that changes the mass of the boson and leaves the rest of the dimuon spectrum unchanged. We find its shape by doing a Taylor expansion of the invariant mass with respect to the activations of the network, and keeping only the linear term. We then argue that such steering vectors are the ones that give the largest second moment of the gradients, the derivatives of the invariant mass with respect to the activations. We use a Fukunaga–Koontz transform (FKT) (Fukunaga and Koontz, 1970) to find the vector along which this second moment is the largest for the , and the smallest for the other parts of the invariant mass spectrum. We scale and add this vector to the muon tokens and study the generated events.
We use this vector to change the mass of the boson without changing much the and peaks, or the continuum. This steering of the mass is predictable: we can select the mass of the pole itself. However, the steering also broadens the peak. Furthermore, we test if this is a direction that the network uses to construct its internal concept of the boson, by ablating the direction in the residual stream, where we find that the model generates a broader bosons without this direction.
2 Previous work
Activation steering.
Early works looking for linear directions that point to concepts inside of a model were (Mikolov et al., 2013; Alain and Bengio, 2016; Kim et al., 2018), later formalised as the linear representation hypothesis (Park et al., 2024). Such linear directions were then used to steer the output of a model in (Subramani et al., 2022; Turner et al., 2023) with the use of steering vectors. Steering vectors have been built in the literature in different ways such as: differences of activations (Turner et al., 2023; Rimsky et al., 2024; Arditi et al., 2024; Li et al., 2023), a PCA of differences of activations (Zou et al., 2023), sums of attention-head outputs (Todd et al., 2024), sparse-autoencoder features (Templeton et al., 2024), and vectors optimised by gradient descent (Subramani et al., 2022; Dunefsky and Cohan, 2025). Our steering vectors were obtained from a generalized eigenproblem that contrasts classes, on the gradients of the model’s own output. The closest methods to ours are (Beaglehole et al., 2026; Wang et al., 2026), which take eigenvectors of the “Average Gradient Outer Product” of a classifier trained on the activations. Attribution patching (Nanda, 2023; Syed et al., 2024) also uses gradients with respect to the activations, but to locate the components and circuits responsible for a behaviour, not to build a steering direction.
Steering in diffusion and flow-matching models.
Various steering analyses have been done on diffusion and flow matching models. This includes finding steering vectors in audio (Staniszewski et al., 2026) and video (Hong et al., 2026) models. However, by far, the most work has been done in text-to-image work, with methods using differences of mean activations between contrasting prompts (Gaintseva et al., 2026; Konovalova et al., 2026; Li et al., 2026), sparse-autoencoder features (Surkov et al., 2025; Kim and Ghadiyaram, 2025), and, in unconditional image models, gradients (Haas et al., 2024; Wang et al., 2026). We steer a Riemannian flow-matching generator of collision events that is conditioned on the particle content of the reconstructed event, rather than on text like most of the examples highlighted before. This also provides us a more rigorous approach to what the ground truth is with respect to what we are steering, and can even properly check if the steering respects physical laws.
Interpretability in natural science models.
A growing body of work has studied interpretability in the natural sciences. In biology, many studies have found and/or steered interpretable features of protein language models (Simon and Zou, 2025; Villegas Garcia and Ansuini, 2025; Huang et al., 2025; Parsan et al., 2025). In chemistry, steering vectors have been found in chemical language models (Dimitrievikj and Wells, 2025). In physics, interpretability methods have been applied to models of partial differential equations (Fear et al., 2025; Patil et al., 2026), weather (MacMillan and Ouellette, 2025), quantum many-body states (Qi and Earls, 2026), cosmology and astronomy (Ocampo et al., 2025; Ocampo and Cañas-Herrera, 2026; Bonnet-Guerrini et al., 2026c; Wu and Walmsley, 2025), and nuclear structure (Kitouni et al., 2024). In particle physics, they have been applied to jet classifiers (Faucett et al., 2021; Wang et al., 2024; Rai and Ganguly, 2026), to parton distributions (Kriesten et al., 2024; Bonnet-Guerrini et al., 2026a), to the latent space of a jet variational autoencoder (Collins, 2021), to jet-tagging transformers (Tiourine and Thais, 2026), and for a neutrino-telescope foundation model (Bonnet-Guerrini et al., 2026b). This paper, to our knowledge, presents the first application of steering vectors to a generative particle-physics model.
3 Background
3.1 Flow matching models
Conditional flow matching (CFM) (Lipman et al., 2023) is a machine learning method that generates data. In it, a network, with parameters , outputs a velocity field, , that transforms an initial distribution to the data distribution . Data are generated by solving the ODE
from to . Taking , we can build a path between and ,
The network is trained on this conditional velocity with the loss
Data are generated with successive Euler steps, , that end in an that should resemble the data. for Euler steps.
Riemannian flow matching (Chen and Lipman, 2024) generalizes CFM to a smooth Riemannian manifold with metric . The velocity now lies in the tangent space, , the norm in the loss is taken in the metric, , and the straight line of Eq. (2) becomes the geodesic,
Data generation proceeds through the same Euler steps, now with the exponential map, , so that remains on for all steps.
3.2 ShellFlow
In a previous work we introduced ShellFlow (Kato et al., 2026), a Riemannian conditional flow-matching transformer that generates the kinematics of reconstructed collider events, given the particle composition of the event.
It was trained on unlabelled real data: a mixed dataset of the two-to-four-lepton (ATLAS Collaboration, 2025b) and the 1LMET30 (ATLAS Collaboration, 2025a) skims of the ATLAS Open Data 13 TeV release (ATLAS Collaboration, 2025c). We trained only on events with, at most, eight particles. In total the dataset has 825 million events; the training-validation split is 95/5.
The model has two different manifolds, one for massless particles (electrons, muons, and photons) and another for massive particles (jets). The massless manifold is . In it, parametrizes the direction of the momentum, , and encodes the energy information through , with a reference energy for each particle type. At , the coordinates are sampled from : and . The massive manifold is : the first is the boost rapidity, and the second the logarithm of the mass (both sampled from a standard normal distribution). In both, the momentum follows from the on-shell condition , so every generated particle is on its mass shell.
Each particle of an event is one token. The network has six sequential transformer blocks with a width of 128, with 4 heads, cross-attention with missing transverse momentum, and a feed-forward layer. The blocks are conditioned on the flow time by an adaLN-Zero layer (Peebles and Xie, 2023). Moreover, the model is conditioned with a feature-wise linear modulation (Perez et al., 2018) that embeds the particle type, charge, and detector quantities. In total, the model has 3 million parameters.
The model has two losses: the usual flow-matching loss, similar to the one in Eq. (3), and an auxiliary loss that acts on a different velocity that aims at reconstructing the invariant masses of two, three, and four objects. The latter does not make the model agnostic to the structure of an invariant mass. We use the vanilla velocity field to generate data with 200 Euler steps, given the composition of the event.
3.3 Muon pair production at the LHC
Collisions at the LHC that result in a pair of muons are very important for analyses done at the LHC collaborations as a whole, as these are used to calibrate the measurement of energy and momentum of muons (ATLAS Collaboration, 2023). In particular, the processes through a resonant vector particle, like the , , or , are used, since their masses are known precisely and fix the momentum scale of the muons. A typical process that produces a pair of muons at the LHC is shown in Fig. 1.
A resonance occurs when the partons, the constituent particles of the protons, have a centre-of-mass energy equal to the mass of the resonant particle. The outgoing muons, with momenta , then have an invariant mass of
where the mass of the muons is neglected. At resonance, the invariant mass of the muon pair is around the mass of the resonant particle ( GeV, GeV, GeV (Particle Data Group, 2026)), and each appears as a narrow peak on top of the continuum (see Fig. 3, grey).
In terms of the ShellFlow parameters, and , it is more convenient to express Eq. (5) in terms of ,
where is the same for both muons.
Figure 1: Feynman diagram of the production of a pair, through an intermediate vector boson . denotes the proton remnants and any additional radiation.
4 Method
Figure 2: One transformer block of ShellFlow, block (dotted frame). The steering vector is added to the residual stream at the output of the block. Inset: the output tokens of one event; only the and tokens receive the steering vector, every other token is left unchanged.
Our main objective in this paper is to identify which directions in the residual stream of ShellFlow change a physical quantity in a controlled way. In Sec. 3.3, we summarized the importance of known resonances to the study of collider physics. Here we aim to find a vector that only affects the muon pairs with an invariant mass close to a specific resonance, and that can alter one of its physical observables, in particular its mass.
We will do this by adding a steering vector to the residual stream, of the form
where is the residual stream after block , is the steering vector, and is the steering coefficient.
In the rest of this section, we outline a method to obtain such a steering vector.
4.1 Steering vectors and gradients
We shall now write Eq. (7) with its explicit indices and dependences
where is the residual stream at block , at flow time and state of the event , on the token of the or of the event. The steering vector is added to the token of , and it also depends on flow time. We only add the vector to the slot of the muon tokens because we are looking for directions that only affect the shape of the invariant mass of muon pairs, but it can be easily applied to any other particle type.
The steering vector is applied at the output of the block, after its feed-forward layer has been added (see Fig. 2).
The response of the mass to the edit follows from a Taylor expansion of in the added vectors (the derivation is in App. A):
The sum runs over the Euler steps of the sampler, at flow times , and is the change of the final of pair with respect to the generation without the edit. and are concatenations over the two muon tokens:
where we call the gradient of pair at step , and is the total derivative.
This tells us that, for a steering vector of fixed length, the shift is largest when it is aligned with the gradients. Moreover, if we want the shift to be localized in a specific region of the invariant mass spectrum, such as near a resonance, the steering vector must be aligned with the gradients of the pairs in that region, and as little as possible with the gradients of all other pairs.
4.2 Discriminating directions
Our task now is to find the vectors, , that are aligned with the gradients of a specific resonance and as little as possible with other gradients. We define the resonance classes in Table 1, where is the invariant mass at generation without any intervention.
We can now pose this as an optimization problem. Let us consider one of the classes in Table 1 as , with pairs, and group the rest of the classes into . From Eq. (9), the response of pair to a steering vector at step is
with the unit gradient . We measure the response of a class by its average of the squared alignment, , where
so every class enters with the same weight, whatever its number of pairs. We choose the squared response to ensure that every pair of is small. Choosing the mean would allow the mean response to move up and down and cancel.
Our objective is to maximize the response of while minimizing the response of , or, in other words:
This is the Fukunaga–Koontz criterion (Fukunaga and Koontz, 1970). This is equivalent to the optimization of . We chose the fraction in Eq. (14) because it lies in .
Eq. (14) is a generalized Rayleigh quotient, whose maximum solves the generalized eigenproblem
We solve it by making a Fukunaga–Koontz transformation (FK transformation), that goes as follows (we omit the dependence on for convenience). We first find the spectral decomposition of the sum of both matrices,
where is a diagonal matrix with the eigenvalues of , all positive, and is an orthogonal matrix whose columns are the orthonormal eigenvectors of . We then transform the gradients, , by the matrix , such that
then, it immediately follows that . Now, given an eigenvector of with eigenvalue , we get that
Eq. (18) tells us that both FK-transformed matrices share the same eigenbasis, but with different eigenvalues. So, if has an eigenvalue , has an eigenvalue , with . This means that the most dominant eigenvectors in one class will be the least dominant in the other class. The eigenvalue is the value of Eq. (14).
We then take the eigenvector of the largest eigenvalue, , and bring it back to the coordinates of the residual stream, , as the direction of the steering vector that shifts the invariant mass of the two muons. We set the sign of the steering vector by choosing the sign where , where is the average of . The gradients were computed using a single backward pass, done at all Euler steps. This is the same way gradients were computed in Nanda (2023); Syed et al. (2024).
We end this section with other attempts at obtaining steering vectors. We first built them from the activations of pairs at specific resonances, with a difference of means and a linear probe, and tested whether steering with them, or ablating them, would produce more or fewer resonant events. These vectors changed the generated spectrum, but not in a way that could be physically interpreted. We tested two alternative methods to the criterion in Eq. (14). We compare them in App. B.
Table 1: The selection criteria of our classes of muon pairs, defined from the invariant mass of the generated pair of one seed. All events have exactly one pair of opposite-sign muons. The class contains all three resonances, as ShellFlow cannot properly generate three different resonances.
| Class | [GeV] | Events used for the gradients |
|---|---|---|
| 181,987 | ||
| 224,901 | ||
| 50,528 | ||
| rest | elsewhere above 0.3 | 542,584 |
| total | 1,000,000 |
5 Experiments
Figure 3: The steering of the boson mass. Top: dimuon invariant mass of one million muon pairs, compared with real data (grey), baseline generation of ShellFlow (black, dashed), and the results from adding a steering vector at block 1 with (blue to green). Middle: steered over baseline. Bottom: zoom-in over the different peaks: , , and bosons.
In this Section we will now show the results of the steered generation. We will present how the steering of the affects the invariant mass spectrum and the rest of the particle kinematics. We will also show how fitted physical parameters from a phenomenologically inspired model change with . Then, we shall present results of the steering vectors themselves, such as their alignment with gradients, and their evolution with . Results for the and resonances are presented in App. D.4, more details on the FKT eigenvalues in App. D.5, and the same steering on two other networks in App. C.
To define the selectivity of the steering, we define the following metric, which measures how much the invariant mass spectrum changes GeV
where and are the numbers of muon pairs in bin of the modified and the baseline generation. We only compute this metric for bins with GeV to not include differences from the steering of the boson.
Figure 4: Muon kinematics under steering. 1,000,000 validation events of every final state, the steering vector at block 1 added to every muon: transverse momentum, pseudorapidity, and azimuth of the muons. Real data (grey), baseline generation (black, dashed), and steered with (blue to green); ratio panels: steered over baseline, drawn in every bin with baseline muons, each panel on its own scale. Every other particle type is in App. D.1.
5.1 Steering effects on generated events
At every Euler step, we add the steering vector to the muon tokens as in Eq. (8) (see also Fig. 2). In this section, we present results only for block ; the reasons for this choice will become evident in the next section. We scan in steps of . Each generation uses 1,000,000 muon pairs from validation events, a different set of events from the one used to obtain the gradients of the classes in Table 1. We repeat every generation with three noise seeds and average the results. Within a seed, the steered and the baseline generations start from the same noise, so every muon pair is compared with itself.
Figure 3 shows the effects of the steering vector on the dimuon invariant mass for . The peak moves between 70 GeV and 115 GeV for the values of shown in the plot. The rest of the spectrum changes much less. We find that for . Most of this change sits around the peak. grows with , to 0.112 for , and 0.071 for . The steering is therefore not symmetric in : the peak moves by a similar amount in both directions, but negative values of change the continuum more than positive values of the same size.
In App. E we develop a phenomenologically inspired lineshape for hadron colliders. It is built from the tree-level amplitude at quark level, which we use to derive the proton-level differential cross section; this cross section is modified to include final-state radiation and convolved with a Gaussian that accounts for the detector resolution. We use it to measure how physical parameters, such as the pole mass and the decay width , change with . We fit further parameters, the detector resolution, a power-law correction to the parton luminosity, and a normalisation, whose details are in App. E.1.
The fit from the baseline generation of ShellFlow gives GeV and GeV (real data: 90.98 GeV and 2.87 GeV). The dependence of and on is shown in Fig. 5. For the fitted pole moves between 62 GeV and 131 GeV, within 0.9 GeV of the first-order prediction of Eq. (9). Since the steering vector moves , a pure shift of the pole would scale the width by the same factor as ; instead, the peak broadens with , which increases (in our fit, and the detector resolution are strongly correlated). For the baseline generation the deviance per degree of freedom is about 2; it stays between 1.8 and 4.3 for , but degrades for more negative values (see App. E.1).
Figure 5: Fitted pole and width for different as steered in block , from the lineshape fit of App. E. (a) Pole mass . (b) Width . The point at is the baseline fit. Dotted: the baseline value times , with the sum equal to 0.122, as predicted by Eq. (9). Error bars: standard deviation over three seeds of the sampler.
The steering vector is written on the muon tokens, so the muon kinematics must change with the pair mass (Fig. 4). On 1,000,000 validation events of every final state, with the steering vector added to every muon, the muon transverse momentum, , changes by up to 32 and 49% per bin at and , around the peak near , as expected. The pseudorapidity, , changes by at most 5.4% per bin, and the azimuth angle, , by at most 2%. The steering vector could also affect the other particles indirectly, but these effects are small (App. D.1).
As a control, we add a random vector at . This random vector has the same length as the steering vector, is drawn independently for each step, is different for the two muon tokens, and is the same for every event. The random vector does not steer the boson: its pole stays at 89 – 92 GeV, while our steering vector does move it. The random vector also disturbs the rest of the spectrum more than the steering vector does, and broadens the peak more.
5.2 Shape and evolution of the steering vectors
Figure 6: The steering quality features as a function of flow time . (a) Gradient response of the , , (b) the cosine similarity between the class-mean gradient of the and the steering vector, , and (c) the largest eigenvalue of Eq. (18) for the , .
We can determine how much the resonance will change for a given steering vector from Eq. (9). For a single pair , we can see that
where we neglected non-linear contributions of , is the invariant mass of the pair at baseline generation, is its invariant mass after the steering is done, and is the steering vector of class . In App. D.3 we analyze the prediction from Eq. (20). In the rest of this section, we shall focus on the average one.
Averaging over the pairs of class , the pole mass of the lineshape fit should move as
where is the average gradient of class at time , is the gradient response. Eq. (21) holds to first order in if every pair of the class responds by the same amount, since is a fit parameter and not the class mean. App. D.3 checks how far the individual pairs depart from this. Fig. 5a compares it with the fit. We note that how much the invariant mass moves depends on the size of the gradients, the steering vector, and their cosine similarity, which is defined as
where, if the were to be 0, it means the gradients and the steering vector are perpendicular, 1 means they are parallel, and that they are anti-parallel.
We perform a fit of the prediction of Eq. (21), , where is a free parameter. and are the values obtained from the lineshape fits at baseline and steered, respectively, for . We find , close to the value of computed from the gradients. The fit gives an .
We plot the prediction from Eq. (21), and the result from the fitted pole mass in Fig. 5a, where they stay within for all values of we scanned. For the width, , we make an ansatz. Let us take two pairs at the border of the resonance, . Steering both points (Eq. (21)), and subtracting them, should give us how the steering affects the width,
We plot this ansatz and the result from the fit in Fig. 5b, where we see completely different results. Of course, this prediction is related to the full spread seen in Fig. 3, rather than the physical width of the boson itself. We already find in App. E.1 that the fitted detector resolution and the fitted width are strongly correlated. We attribute the extra broadening to muon pairs responding differently to the steering (see App. D.3). If every pair around the peak responded by the same amount, Eq. (23) would hold to first order in .
The final quantity to consider when assessing the quality of a steering vector is the largest FKT eigenvalue, , of Eq. (18). As we stated before in Sec. 4, the larger the eigenvalue, the more indicative it is that the vector will point only at a specific class.
Table 2: The steering vector at each block . is the first-order shift of of the per unit (Eq. (21)), and is the average over the 200 Euler steps.
| 0 | 0.92 | ||
| 1 | 0.91 | ||
| 2 | 0.91 | ||
| 3 | 0.93 | ||
| 4 | 0.95 | ||
| 5 | 0.93 |
For the boson, Table 2 presents, for all blocks, the average or total values of these quantities over all flow time. Fig. 6 shows the quality features as a function of . We note how is the largest on earlier blocks, meaning that the steering vector will move the peak more. At it is the largest, and therefore it should move the boson the most; however, we found that steering that block also moved the rest of the invariant mass spectrum in ways we did not anticipate, such as distortions of the and peaks. We tested steering with random vectors on and found that a random steering vector presented modifications to the whole generation output, meaning that block 0 is particularly sensitive to any steering (details in App. D.2).
did not present such difficulties, and, furthermore, it is the block with the largest average cosine similarity, and the second highest gradient response. The average eigenvalue, , is the lowest in (see Fig. 6c for how it changes with ). However, all blocks have values , meaning that the FKT was quite efficient at distinguishing the direction from the rest of the classes. For reference, we also present the same analysis for in App. D.2.
5.3 Ablation of the steering vector
We now test the role that has inside of the network. To do this causally, we perform an ablation of the output of block of the muon tokens. The ablation has the shape
where and stack the two muon tokens, and we define
the mean over all muon pairs of the unsteered generation, where we used all the pairs of all classes in Table 1.
The first term inside of the square brackets of Eq. (24) subtracts the component of the residual stream along , and the second term adds back the average over all pairs, to ensure that there is as little steering as possible (Belrose et al., 2023; Li and Janson, 2024).
We examined the use of this component of the residual stream by analyzing the generated output. Ideally, if is a component truly used by the network, it should alter the peak only. We find that the generated output results in a % broader peak. We show the result of the ablation in Fig. 7. between the ablated sample and ShellFlow, below the noise sampling error of 0.018 to 0.034. The same ablation along random directions broadens the peak by only 1–4%.
Repeating the procedure on a continuum window without a resonance, of the same log-width as the window (29.56–36.84 GeV), gives a steering about half as strong, and ablating that direction leaves the spectrum unchanged.
Figure 7: Result of the generated muon spectrum from the ablation in Eq. (24) (blue), compared with the output from ShellFlow (black, dashed), and real data (grey). The inset shows the peak in linear scale, and the lower panel the ratio of ShellFlow to the ablation.
6 Discussion and conclusions
We have only tested this method for one particle type, muons, where we only changed one observable, the pole mass. Moreover, since we are working with real data, there are no truth-level classes. We only defined the classes by doing simple cuts in the invariant mass spectrum, and not a proper background analysis. Such background analysis is also missing from the lineshape fit.
Despite these limitations, we would like to quantify this gradient-based way of obtaining steering vectors. The method we described can also be used in different generative models, not only flow matching models, but also diffusion models, normalizing flows, or Schrödinger bridges; as well as one-shot generative models like generative adversarial networks (GANs) or variational autoencoders (VAEs).
We would also like to highlight the benefit of using steering vectors in physics-based models, as well as any model whose output is quantitative. The fact that we can write the fit of the lineshape of the boson allowed us to check how the steering affected not only its mass, but also other physical parameters, such as its width or the detector resolution. This is something that image, speech, or language generative models lack, a baseline that can be used to quantify the effects of steering vectors.
For particle physics, a steering vector is a handle on one physical quantity inside a generative model trained on real data. It tests what the model learned: when we move the pole, the transverse momentum of the muons follows the pole at , as the decay kinematics require, while the and peaks stay in place. It could also replace some of the samples that analyses generate to build templates and estimate systematic uncertainties, such as variations of a resonance mass, the momentum scale, or the detector resolution, which today need a new simulation or a retrained model. Our steering vector is not yet such a tool, because the peak also broadens as the pole moves; directions that move the pole, the width, and the resolution separately would be.
Acknowledgements
We acknowledge the work of the ATLAS Collaboration to record or simulate, reconstruct, and distribute the Open Data used in this paper, and to develop and support the software with which it was analysed. For the beginning and for most of the project, the GPU compute (NVIDIA A100) was provided by the NVIDIA Academic Grant Program. The last steps of the project used NVIDIA B200 GPUs from the UCloud interactive HPC system, which is managed by the eScience Center at the University of Southern Denmark. This work was supported by a research grant (VIL57416) from VILLUM FONDEN.
AI usage
Large language models were used in the preparation of this manuscript to revise prose, correct grammar, and write portions of the text. Most of the code and visualization was generated with the assistance of large language models, primarily through the Claude Code agentic coding environment (Anthropic). All output was reviewed and validated by the authors.
Data and code availability
The code that reproduces the results shall be available at https://github.com/kurquia/shellsteer. ShellFlow, ShellFlow-B, and ShellGATr are available at https://huggingface.co/pomidori73/ShellFlow. The data are ATLAS Open Data released by the ATLAS Collaboration (ATLAS Collaboration, 2025c), available at https://opendata.cern.ch/record/93910.
References
G. Alain and Y. Bengio Understanding intermediate layers using linear classifier probes. External Links: 1610.01644 Cited by: §2.
A. Arditi, O. Obeso, A. Syed, D. Paleka, N. Panickssery, W. Gurnee, and N. Nanda Refusal in language models is mediated by a single direction. In Advances in Neural Information Processing Systems, Vol. 37, pp. 136037–136083. External Links: Document, 2406.11717, Link Cited by: Appendix B, §2.
ATLAS Collaboration The ATLAS experiment at the CERN large hadron collider. Journal of Instrumentation 3, pp. S08003. External Links: Document, Link Cited by: Appendix E.
ATLAS Collaboration Measurement of the low-mass Drell-Yan differential cross section at TeV using the ATLAS detector. Journal of High Energy Physics 06, pp. 112. External Links: Document, Link, 1404.1212 Cited by: Appendix E.
ATLAS Collaboration Measurement of the double-differential high-mass Drell-Yan cross section in collisions at TeV with the ATLAS detector. Journal of High Energy Physics 08, pp. 009. External Links: Document, Link, 1606.01736 Cited by: Appendix E.
ATLAS Collaboration Muon reconstruction performance of the ATLAS detector in proton-proton collision data at TeV. Eur. Phys. J. C 76, pp. 292. External Links: Document, Link, 1603.05598 Cited by: Appendix E.
ATLAS Collaboration Studies of the muon momentum calibration and performance of the ATLAS detector with collisions at TeV. European Physical Journal C 83, pp. 686. External Links: Document, Link, 2212.07338 Cited by: Appendix E, Appendix E, §3.3.
ATLAS Collaboration ATLAS ROOT ntuple format Run 2 2015+2016 proton-proton collision data beta release, 1LMET30 skim. Note: CERN Open Data Portal External Links: Document, Link Cited by: §3.2.
ATLAS Collaboration ATLAS ROOT ntuple format Run 2 2015+2016 proton-proton collision data beta release, 2to4lep skim. Note: CERN Open Data Portal External Links: Document, Link Cited by: §3.2.
ATLAS Collaboration ROOT ntuple format 2015-2016 proton-proton open data for education and outreach beta release from the ATLAS experiment. Note: CERN Open Data Portal External Links: Document, Link Cited by: §1, §3.2, Data and code availability.
S. Baker and R. D. Cousins Clarification of the use of chi-square and likelihood functions in fits to histograms. Nuclear Instruments and Methods in Physics Research 221 (2), pp. 437–442. External Links: Document, Link Cited by: §E.1.
D. Beaglehole, A. Radhakrishnan, E. Boix-Adserà, and M. Belkin Toward universal steering and monitoring of AI models. Science 391 (6787), pp. 787–792. External Links: Document, 2502.03708, Link Cited by: §2.
N. Belrose, D. Schneider-Joseph, S. Ravfogel, R. Cotterell, E. Raff, and S. Biderman LEACE: perfect linear concept erasure in closed form. In Advances in Neural Information Processing Systems, Vol. 36, pp. 66044–66063. External Links: Document, 2306.03819, Link Cited by: §5.3.
B. Blankertz, R. Tomioka, S. Lemm, M. Kawanabe, and K. Müller Optimizing spatial filters for robust EEG single-trial analysis. IEEE Signal Processing Magazine 25 (1), pp. 41–56. External Links: Document, Link Cited by: footnote 3.
A. Bodek, A. van Dyne, J. Y. Han, W. Sakumoto, and A. Strelnikov Extracting muon momentum scale corrections for hadron collider experiments. European Physical Journal C 72, pp. 2194. External Links: Document, Link, 1208.3710 Cited by: Appendix E.
G. T. Bodwin Factorization of the Drell-Yan cross section in perturbation theory. Physical Review D 31 (10), pp. 2616–2642. External Links: Document, Link Cited by: Appendix E.
R. Bonnet-Guerrini, S. Carrazza, S. Forte, E. Groenendijk, V. Piuri, and R. Winterhalder Interpreting parton distributions with Shapley values. External Links: 2607.02647 Cited by: §2.
R. Bonnet-Guerrini, J. Ioannou-Nikolaides, I. Timiryasov, and V. Piuri Finding and using interpretable latents in a neutrino foundation model with sparse autoencoders. External Links: 2608.26090 Cited by: §1, §2.
R. Bonnet-Guerrini, B. Sanchez, D. Fouchez, B. Racine, M. Guy, M. Sabalbal, M. Yassine, and V. Piuri Interpretable human-label-free deep learning for real-bogus classification with uncertainty quantification. External Links: 2607.05393 Cited by: §2.
N. Brambilla, M. Butenschoen, and X.-P. Wang How well does nonrelativistic QCD factorization work at next-to-leading order?. Physical Review D 112 (1), pp. L011902. External Links: Document, Link Cited by: §D.4.
CDF Collaboration Measurement of the mass and width of the Z boson at the Fermilab Tevatron. Physical Review Letters 63 (7), pp. 720–723. External Links: Document, Link Cited by: Appendix E.
R. T. Q. Chen and Y. Lipman Flow matching on general geometries. In International Conference on Learning Representations, External Links: Link, 2302.03660 Cited by: §3.1.
CMS Collaboration Performance of the CMS muon detector and muon reconstruction with proton-proton collisions at TeV. Journal of Instrumentation 13, pp. P06015. External Links: Document, Link, 1804.04528 Cited by: Appendix E.
CMS Collaboration Measurement of the differential Drell-Yan cross section in proton-proton collisions at 13 TeV. Journal of High Energy Physics 12, pp. 059. External Links: Document, Link, 1812.10529 Cited by: Appendix E.
J. H. Collins An exploration of learnt representations of W jets. In ICLR 2021 Workshop on Deep Generative Models for Highly Structured Data, External Links: 2109.10919 Cited by: §2.
J. C. Collins, D. E. Soper, and G. Sterman Factorization of hard processes in QCD. In Perturbative Quantum Chromodynamics, A. H. Mueller (Ed.), Adv. Ser. Direct. High Energy Phys., Vol. 5, pp. 1–91. External Links: Document, Link, hep-ph/0409313 Cited by: Appendix E.
T. DelSole and M. K. Tippett Predictable components and singular vectors. Journal of the Atmospheric Sciences 65 (5), pp. 1666–1678. External Links: Document, Link Cited by: footnote 3.
A. Dimitrievikj and J. Wells Steering vector fields for property-controlled molecular generation with chemical language models. Note: bioRxiv External Links: Document, Link Cited by: §1, §2.
S. D. Drell and T.-M. Yan Massive Lepton-Pair Production in Hadron-Hadron Collisions at High Energies. Phys. Rev. Lett. 25, pp. 316–320. External Links: Document, Link Cited by: Appendix E, Appendix E.
J. Dunefsky and A. Cohan One-shot optimized steering vectors mediate safety-relevant behaviors in LLMs. In Second Conference on Language Modeling, External Links: Link, 2502.18862 Cited by: §2.
T. Faucett, J. Thaler, and D. Whiteson Mapping machine-learned physics into a human-readable space. Physical Review D 103 (3), pp. 036020. External Links: Document, Link, 2010.11998 Cited by: §1, §2.
R. A. Fear, P. Mukhopadhyay, M. McCabe, A. Bietti, and M. Cranmer Physics steering: causal control of cross-domain concepts in a physics foundation model. External Links: 2511.20798 Cited by: §1, §2.
R. A. Fisher The use of multiple measurements in taxonomic problems. Annals of Eugenics 7 (2), pp. 179–188. External Links: Document, Link Cited by: Appendix B.
R. A. Fisher The statistical utilization of multiple measurements. Annals of Eugenics 8 (4), pp. 376–386. External Links: Document, Link Cited by: Appendix B.
K. Fukunaga and W. L. G. Koontz Application of the Karhunen-Loève expansion to feature selection and ordering. IEEE Transactions on Computers C-19 (4), pp. 311–318. External Links: Document, Link Cited by: §1, §4.2.
T. Gaintseva, A. Oncescu, C. Ma, Z. Liu, M. Benning, G. Slabaugh, J. Deng, and I. Elezi CASteer: cross-attention steering for controllable concept erasure. In International Conference on Learning Representations, External Links: Link, 2503.09630 Cited by: §1, §1, §2.
R. Haas, I. Huberman-Spiegelglas, R. Mulayoff, S. Graßhof, S. S. Brandt, and T. Michaeli Discovering interpretable directions in the semantic latent space of diffusion models. In 2024 IEEE 18th International Conference on Automatic Face and Gesture Recognition (FG), External Links: Document, Link, 2303.11073 Cited by: §1, §2.
J. Hong, A. Chan, Q. Dai, J. Skifstad, and G. Chou Activation steering of video generation models via reduced-order linear optimal control. External Links: 2606.04775 Cited by: §2.
L. Huang, R. Zhu, B. He, and J. Yao Steering protein language models. In Proceedings of the 42nd International Conference on Machine Learning, PMLR, Vol. 267, pp. 26247–26260. External Links: Link, 2509.07983 Cited by: §1, §2.
M. Kato, K. A. Urquía-Calderón, I. Timiryasov, and O. Ruchayskiy Learning Standard Model structure from LHC data with Riemannian flow matching. External Links: 2607.16144 Cited by: Appendix C, Appendix C, §1, §3.2.
B. Kim, M. Wattenberg, J. Gilmer, C. Cai, J. Wexler, F. Viégas, and R. Sayres Interpretability beyond feature attribution: quantitative testing with concept activation vectors (TCAV). In Proceedings of the 35th International Conference on Machine Learning, PMLR, Vol. 80, pp. 2668–2677. External Links: Link Cited by: §2.
D. Kim and D. Ghadiyaram Concept steerers: leveraging K-sparse autoencoders for test-time controllable generations. External Links: 2501.19066 Cited by: §2.
O. Kitouni, N. Nolte, V. S. Pérez-Díaz, S. Trifinopoulos, and M. Williams From neurons to neutrons: a case study in interpretability. In Proceedings of the 41st International Conference on Machine Learning, Vol. 235, pp. 24726–24748. External Links: Link, 2405.17425 Cited by: §2.
N. Konovalova, I. Idrisov, and A. Alanov SHIFT: steering hidden intermediates in flow transformers. In ICML 2026 Workshop on Mechanistic Interpretability, External Links: Link, 2604.09213 Cited by: §1, §1, §2.
B. Kriesten, J. Gomprecht, and T. J. Hobbs Explainable AI classification for parton density theory. Journal of High Energy Physics 11, pp. 007. External Links: Document, 2407.03411 Cited by: §2.
J.-P. Lansberg New observables in inclusive production of quarkonia. Physics Reports 889, pp. 1–106. External Links: Document, Link Cited by: §D.4.
LHCb Collaboration Measurement of the Z-boson mass. Physical Review Letters 135, pp. 161802. External Links: Document, Link, 2505.15582 Cited by: Appendix E.
K. Li, O. Patel, F. Viégas, H. Pfister, and M. Wattenberg Inference-time intervention: eliciting truthful answers from a language model. In Advances in Neural Information Processing Systems, Vol. 36, pp. 41451–41530. External Links: Document, 2306.03341, Link Cited by: Appendix B, §2.
M. Li and L. Janson Optimal ablation for interpretability. In Advances in Neural Information Processing Systems, Vol. 37, pp. 109233–109282. External Links: Document, 2409.09951, Link Cited by: §5.3.
Q. Li, X. Fu, Y. Zhao, Q. Wang, J. Dai, and J. Han Semantic steering for controllable generation: tuning-free concept erasure in multimodal diffusion transformers. In Proceedings of the 34th ACM International Conference on Multimedia, External Links: Document, 2608.12829 Cited by: §2.
Y. Lipman, R. T. Q. Chen, H. Ben-Hamu, M. Nickel, and M. Le Flow matching for generative modeling. In International Conference on Learning Representations, External Links: Link, 2210.02747 Cited by: §3.1.
T. MacMillan and N. T. Ouellette Towards mechanistic understanding in a data-driven weather model: internal activations reveal interpretable physical features. External Links: 2512.24440 Cited by: §2.
T. Mikolov, W. Yih, and G. Zweig Linguistic regularities in continuous space word representations. In Proceedings of the 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Atlanta, Georgia, pp. 746–751. External Links: Link Cited by: §1, §2.
G. Montagna, O. Nicrosini, and F. Piccinini Precision physics at LEP. Rivista del Nuovo Cimento 21 (9), pp. 1–162. External Links: Document, hep-ph/9802302 Cited by: Appendix E.
N. Nanda Attribution patching: activation patching at industrial scale. Note: Blog post External Links: Link Cited by: §2, §4.2.
NNPDF Collaboration, R. D. Ball, S. Carrazza, J. Cruz-Martinez, et al. The path to proton structure at 1% accuracy. The European Physical Journal C 82 (5), pp. 428. External Links: Document, 2109.02653 Cited by: Appendix E.
I. Ocampo, G. Alestas, S. Nesseris, and D. Sapone Enhancing cosmological model selection with interpretable machine learning. Physical Review Letters 134 (4), pp. 041002. External Links: Document, 2406.08351 Cited by: §2.
I. Ocampo and G. Cañas-Herrera Explaining neural networks on the sky: machine learning interpretability for cosmic microwave background maps. External Links: 2604.05290 Cited by: §2.
K. Park, Y. J. Choe, and V. Veitch The linear representation hypothesis and the geometry of large language models. In Proceedings of the 41st International Conference on Machine Learning, PMLR, Vol. 235, pp. 39643–39666. External Links: 2311.03658, Link Cited by: §1, §2.
N. Parsan, D. J. Yang, and J. J. Yang Towards interpretable protein structure prediction with sparse autoencoders. External Links: 2503.08764 Cited by: §2.
Particle Data Group Review of particle physics. Int. J. Mod. Phys. A 41, pp. 2630011. External Links: Document, Link Cited by: Table 6, Table 6, §3.3.
N. N. Patil, Eshwar R. A., and G. V. Honnavar PhysSAE: mechanistic interpretability of PINNs with sparse autoencoders. External Links: 2609.07061 Cited by: §2.
W. Peebles and S. Xie Scalable diffusion models with transformers. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 4172–4182. External Links: Document, Link, 2212.09748 Cited by: §3.2.
E. Perez, F. Strub, H. de Vries, V. Dumoulin, and A. Courville FiLM: visual reasoning with a general conditioning layer. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 32. External Links: Document, Link, 1709.07871 Cited by: §3.2.
A. Petitjean, T. Plehn, J. Spinner, and U. Köthe Economical jet taggers – equivariant, slim, and quantized. External Links: 2512.17011 Cited by: Appendix C, Appendix C.
Z. Qi and C. Earls Mechanistic interpretability and causal feature steering of neural quantum states via sparse autoencoders. External Links: 2607.01336 Cited by: §2.
S. Rai and S. Ganguly Dissecting jet-tagger through mechanistic interpretability. External Links: 2605.09881 Cited by: §2.
C. R. Rao The utilization of multiple measurements in problems of biological classification. Journal of the Royal Statistical Society: Series B (Methodological) 10 (2), pp. 159–193. External Links: Document, Link Cited by: Appendix B.
N. Rimsky, N. Gabrieli, J. Schulz, M. Tong, E. Hubinger, and A. M. Turner Steering Llama 2 via contrastive activation addition. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Bangkok, Thailand, pp. 15504–15522. External Links: Document, 2312.06681, Link Cited by: Appendix B, §1, §1, §2.
S. Shleifer, J. Weston, and M. Ott NormFormer: improved transformer pretraining with extra normalization. External Links: 2110.09456 Cited by: footnote 4.
E. Simon and J. Zou InterPLM: discovering interpretable features in protein language models via sparse autoencoders. Nature Methods 22 (10), pp. 2107–2117. External Links: Document, Link, 2412.12101 Cited by: §1, §2.
N. Sofroniew, I. Kauvar, W. Saunders, R. Chen, T. Henighan, S. Hydrie, C. Citro, A. Pearce, J. Tarng, W. Gurnee, J. Batson, S. Zimmerman, K. Rivoire, K. Fish, C. Olah, and J. Lindsey Emotion concepts and their function in a large language model. Note: Transformer Circuits Thread External Links: Link Cited by: §1.
J. Spinner, V. Bresó, P. de Haan, T. Plehn, J. Thaler, and J. Brehmer Lorentz-equivariant geometric algebra transformers for high-energy physics. In Advances in Neural Information Processing Systems, Vol. 37, pp. 22178–22205. External Links: Document, 2405.14806, Link Cited by: Appendix C.
Ł. Staniszewski, K. Zaleska, M. Modrzejewski, and K. Deja TADA! Tuning audio diffusion models through activation steering. External Links: 2602.11910 Cited by: §2.
N. Subramani, N. Suresh, and M. E. Peters Extracting latent steering vectors from pretrained language models. In Findings of the Association for Computational Linguistics: ACL 2022, pp. 566–581. External Links: Document, 2205.05124, Link Cited by: §2.
W. Sun, X. Song, P. Li, L. Yin, Y. Zheng, and S. Liu The curse of depth in large language models. In Advances in Neural Information Processing Systems, Vol. 38, pp. 163104–163136. External Links: Document, 2502.05795, Link Cited by: footnote 4.
V. Surkov, C. Wendler, A. Mari, M. Terekhov, J. Deschenaux, R. West, C. Gulcehre, and D. Bau One-step is enough: sparse autoencoders for text-to-image diffusion models. In Advances in Neural Information Processing Systems, Vol. 38. External Links: Link, 2410.22366 Cited by: §2.
A. Syed, C. Rager, and A. Conmy Attribution patching outperforms automated circuit discovery. In Proceedings of the 7th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP, pp. 407–416. External Links: Document, Link, 2310.10348 Cited by: §2, §4.2.
M. Tegmark, A. N. Taylor, and A. F. Heavens Karhunen-Loève eigenvalue problems in cosmology: how should we tackle large data sets?. The Astrophysical Journal 480 (1), pp. 22–35. External Links: Document, Link, astro-ph/9603021 Cited by: footnote 3.
A. Templeton, T. Conerly, J. Marcus, J. Lindsey, T. Bricken, B. Chen, A. Pearce, C. Citro, E. Ameisen, A. Jones, H. Cunningham, N. L. Turner, C. McDougall, M. MacDiarmid, A. Tamkin, E. Durmus, T. Hume, F. Mosconi, C. D. Freeman, T. R. Sumers, E. Rees, J. Batson, A. Jermyn, S. Carter, C. Olah, and T. Henighan Scaling monosemanticity: extracting interpretable features from Claude 3 Sonnet. Note: Transformer Circuits Thread External Links: 2605.29358, Link Cited by: §1, §2.
D. Tiourine and S. Thais Activation steering in a jet-tagging transformer: physical concept directions and their limits. In Interpretability for Discovery Workshop, NeurIPS 2026, External Links: Link Cited by: §2.
E. Todd, M. L. Li, A. Sen Sharma, A. Mueller, B. C. Wallace, and D. Bau Function vectors in large language models. In International Conference on Learning Representations, External Links: Link, 2310.15213 Cited by: §2.
A. M. Turner, L. Thiergart, G. Leech, D. Udell, J. J. Vazquez, U. Mini, and M. MacDiarmid Steering language models with activation engineering. External Links: 2308.10248 Cited by: §1, §1, §2.
E. N. Villegas Garcia and A. Ansuini Interpreting and steering protein language models through sparse autoencoders. External Links: 2502.09135 Cited by: §2.
A. Wang, A. Gandrakota, J. Ngadiuba, V. Sahu, P. Bhatnagar, E. E. Khoda, and J. Duarte Interpreting transformers for jet tagging. In Machine Learning and the Physical Sciences Workshop, NeurIPS 2024, External Links: 2412.03673 Cited by: §1, §2.
Q. Wang, M. Belkin, and Y. Wang General and efficient steering of unconditional diffusion models. In Proceedings of the 43rd International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 306, pp. 124969–124998. External Links: 2602.11395, Link Cited by: §2, §2.
J. F. Wu and M. Walmsley Re-envisioning Euclid galaxy morphology: identifying and interpreting features with sparse autoencoders. In NeurIPS 2025 Workshop on Machine Learning and the Physical Sciences, External Links: Link, 2510.23749 Cited by: §2.
Z. Wu, A. Arora, A. Geiger, Z. Wang, J. Huang, D. Jurafsky, C. D. Manning, and C. Potts AxBench: steering LLMs? even simple baselines outperform sparse autoencoders. In Proceedings of the 42nd International Conference on Machine Learning, Vol. 267, pp. 67035–67080. External Links: Link, 2501.17148 Cited by: Appendix B.
A. Zou, L. Phan, S. Chen, J. Campbell, P. Guo, R. Ren, A. Pan, X. Yin, M. Mazeika, A. Dombrowski, S. Goel, N. Li, M. J. Byun, Z. Wang, A. Mallen, S. Basart, S. Koyejo, D. Song, M. Fredrikson, J. Z. Kolter, and D. Hendrycks Representation engineering: a top-down approach to AI transparency. External Links: 2310.01405 Cited by: §1, §2.
Appendix A Derivation of the linear response
Let’s take again Eq. (6) at the end of generation
its dependence on the block outputs becomes apparent once we consider how and depend on the velocity field, which are both dependent on the outputs of the blocks themselves
where is the state of all particles of the event, and the exponential map for is
Then, is a function of the velocity field for all Euler steps. At each step, the velocity field is itself the output of all blocks. Adding to the output of block on the muon tokens gives
where is the last block, and is zero on all other tokens. We evaluate the network at every Euler step, meaning that is a function of all the : , with , and is the generation without the edit. A linear expansion from the usual multivariate Taylor expansion gives
This total derivative, of course, is just the derivative with respect to the block outputs, what in the main text is referred to simply as gradients
Now, setting , and writing explicitly the time dependence we arrive at
which is exactly what we have in Eq. (9).
Appendix B Steering vectors from different methods
Figure 8: The steering of the boson with the difference-of-means steering vector, as in Fig. 3. Top: dimuon invariant mass of one million muon pairs, compared with real data (grey), baseline generation of ShellFlow (black, dashed), and the results from adding the steering vector at block 1 with . Middle: steered over baseline. Bottom: zoom-in over the , , and peaks.
Figure 9: The same as Fig. 8 for the Fisher steering vector, with (blue to green).
We consider two different criterion functions to the one defined in Eq. (14). We use them as baselines for the steering vectors of the main text. All three criteria act on the same unit gradients, , at every step (we omit the dependence on ), with the same classes and as in Sec. 4.2.
The criteria are written in terms of the means, second moments, and covariances of the classes and ,
and similar for , where every class in enters with the same weight, as in Eq. (13).
The three criterion functions are
The difference of means looks for the direction along which the means of the two classes are farthest apart. The Fisher criterion (Fisher, 1936; Fisher, 1938; Rao, 1948) looks for the direction that separates the means while keeping the spread of each class small. The Fukunaga–Koontz criterion of Eq. (14) looks for the direction where the second moment of is large, while that of is small.
All three are generalized Rayleigh quotients, , with and symmetric and positive definite. The maximum solves the generalized eigenproblem
which becomes an ordinary eigenproblem after a whitening transformation of , as we did for the Fukunaga–Koontz criterion in Sec. 4.2. For and , has rank one, so Eq. (38) has a single nonzero eigenvalue, and its unit eigenvector has the closed form
We fix their sign as for the Fukunaga–Koontz direction. The difference of means is the most common way to build a steering vector in language models (Li et al., 2023; Rimsky et al., 2024; Arditi et al., 2024), and it is a strong baseline among steering methods (Wu et al., 2025).
Figure 10: Fitted pole (a) and width (b) of the boson against for the three steering vectors at block 1, as in Fig. 5; dotted: the first-order prediction of each. The Fisher steering vector skews the peak, so its fits describe the peak less well.
Neither of the two is optimal for a localized shift, where we are maximizing the response of the pairs in while minimizing that of the pairs in . The difference of means only optimizes the mean responses, so the responses of single pairs can be large and cancel in the mean. The Fisher criterion keeps the spread of small, but not its mean response, so can shift as a whole. Only minimizes both the spread and the mean response of .
B.1 Steering of the boson
We steer the boson with the steering vectors of Eq. (39) exactly as in Sec. 5. We chose the values of so that the steering moves the as much as the FK steering vector does at . For difference of means, this is , and for Fisher this is .
Neither method is selective. We can see in Fig. 8 and Fig. 9 that the steering succeeds in shifting the pole, while at the same time altering the rest of the continuum and the other resonances. This is in contrast with what we have in the main text. for the values of considered for FK. In contrast for difference of means it is 0.363 and for Fisher 0.718. All these values are obtained for respectively for FK, difference of means, and Fisher.
As for the predictions given in Eq. (21), we perform the same fit as in Sec. 5.2 and find that difference of means has an and for Fisher , both following the exponential prediction. The fitted values of are close to the ones measured from the gradients. For difference of means the value of the sum (fitted) is 0.4569 (0.4871), and for Fisher 0.0617 (0.0682).
Appendix C Steering of other networks
Table 3: The three networks. ShellGATr counts its channels in four-vectors (v) and scalars (s). FLOPs: one forward pass per particle, measured at 8 particles per event.
| Channels | Architecture | Training | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| embedding | MLP | heads | blocks | parameters | FLOPs | data | events | epochs | lr | GPUs | |
| ShellFlow | 128 | 512 | 4 | 6 | 3.02M | 5.5M | 1LMET30 + 2to4lep | 783M | 30 | 8 A100 | |
| ShellFlow-B | 128 | 512 | 4 | 6 | 3.02M | 5.5M | 2to4lep | 268M | 100 | 4 A100 | |
| ShellGATr | 32 v + 96 s | 128 v + 384 s | 4 | 6 | 3.09M | 6.2M | 2to4lep | 268M | 100 | 4 B200 |
We test our method for finding steerable features on two different versions of ShellFlow. Both have around the same number of trainable parameters, but were trained only on the 2to4lep selection with 268M events. For comparison, the model that is the protagonist of the main text was trained on 1LMET30 + 2to4lep, that merges two ATLAS selections, and has 783M events.
We introduce ShellFlow-B, an early iteration of ShellFlow that was trained during the preparation of Kato et al. (2026). We also present ShellGATr, which uses the L-GATr-slim layers, a Lorentz-equivariant transformer, rather than the classical transformer (Spinner et al., 2024; Petitjean et al., 2025, see). ShellGATr was trained specifically to test steering, but we found interesting features, such as the fact that it could separate the from the , which the other networks could not do. ShellGATr will be the focus of a future study.
Table 3 summarizes the differences in the network architectures and during training. Since ShellFlow is trained on a different dataset, its manifold coordinates are normalized differently from those of the other two networks. Furthermore, in ShellFlow-B and ShellGATr, each particle type has its own input and output layers. Both ShellFlow and ShellFlow-B directly read the manifold coordinates, whereas ShellGATr has a layer that converts those coordinates into four-vectors
where is the boost rapidity and is the mass of the particle. Each ShellGATr token carries together with two fixed four-vectors, the time axis and the beam axis , which a learned linear map mixes into the vector channels. The chart coordinates or , (the beam component), and enter as scalars.
The missing transverse momentum enters the cross-attention as plain features in ShellFlow and ShellFlow-B, and as a four-vector together with its magnitude in ShellGATr.
For ShellGATr, we chose the activation functions used in Petitjean et al. (2025). For vectors it is where are linear combinations of the input vectors, and is the product in Minkowski space. For scalars it is , where are input scalars, and are trainable parameters. The activation functions of ShellFlow-B are the same as the ShellFlow ones (SwiGLU).
Finally, we have differences that these two new networks have at the level of loss. The flow-matching loss weights each particle by a quality score built from its detector features (Kato et al., 2026, Eq. 16). In ShellFlow, this weight has a floor of 0.5, whereas in the other two networks the floor is 0. The auxiliary loss is weighted by how far the generated distribution is from real data (Kato et al., 2026, Eq. 20). This weight has a ceiling of 3 in ShellFlow (Kato et al., 2026, see Table 8 of) and of 5 in the other two networks.
Figure 11: Dimuon invariant mass of ShellFlow-B for the steering vector at block , for .
Figure 12: The same as Fig. 11 for ShellGATr, for .
C.1 Steering of both networks
Figure 13: Fitted pole (a) and width (b) against for the steering vector at block of the three networks, as in Fig. 5, mean of three seeds. Dotted: the baseline value of each network times .
We now perform the same procedure done in the main text. We take two samples of 1,000,000 muon pairs from 2to4lep validation events. On the first sample, we compute the gradients and the steering vectors, and on the second we steer. As in Sec. 5.1, we use three noise seeds, and within a seed the steered and baseline generations start from the same noise.
We compute the gradients on the and tokens for block , we concatenate them, and compute their second moments. The second moments are then separated by classes corresponding to , or the continuum, and we do a one-versus-rest FK procedure.
We note that this procedure is not Lorentz-invariant. In ShellGATr, the gradients have both scalar and vector components. For the vector component, the normalization of the gradients is done with the Euclidean metric, thus breaking Lorentz invariance. This is not of large concern for us, since the network already breaks the Minkowski group to only have rotations about the beam axis. Our procedure preserves this symmetry.
We show the resulting invariant mass spectra in Figs. 11 and 12. We find similar results for ShellFlow-B as in the main text, but we found the ShellGATr network to be more sensitive in generation for the rest of the resonances. For ShellFlow-B, for GeV, the steered and baseline histograms differ per bin by less than 8% on average for . ShellGATr needs a larger to move the by the same amount, and it alters the continuum more. At , which moves the as far as does in ShellFlow-B, the histograms differ below 60 GeV three times as much as in ShellFlow-B.
Table 4: The steering vector at block of the three networks, as in Table 2.
| ShellFlow | 0.122 | 0.147 | 0.91 |
| ShellFlow-B | 0.140 | 0.108 | 0.92 |
| ShellGATr | 0.047 | 0.111 | 0.91 |
We fit the peak of both networks with the lineshape of App. E. Figure 13 shows the fitted pole and width against for the three networks. For ShellFlow-B, the pole stays within 3% of the prediction of Eq. (21) for all values of we scanned, and the fit of gives close to . For ShellGATr, the pole stays within 2% of the prediction for . For larger it moves less than predicted, and below it stays near 75 GeV.
As for ShellFlow, the width of both networks grows faster than the ansatz of Eq. (23). ShellFlow-B broadens most for positive , and ShellGATr for negative . The lineshape fits are also poorer than for ShellFlow: the steered peak of ShellGATr becomes lopsided (Fig. 12), and its deviance per degree of freedom reaches 41 for positive .
We do not know the cause of these differences. They do not show in the first-order quantities of Table 4. The steering vector of ShellGATr is as aligned with and as -specific as those of the other two networks. Only its is smaller, so it needs a larger . The networks differ in several places that the steering vector passes through, for example the input of the activation functions of the vector components are ShellGATr are quadratic, whereas the argument of the gates of ShellFlow and ShellFlow-B is linear in it.
Figure 14: Kinematics of the electrons, photons, jets, large-R jets, and hadronic taus after the steering on muon tokens at block that moves the boson peak. Same events and steering as in Fig. 4: 1,000,000 validation events. Columns: transverse momentum, pseudorapidity, azimuth, energy, and, for the massive particles, mass; 60 bins per panel. Real data (grey), baseline generation (black, dashed), and steered with (blue to green). Ratio panels: steered over baseline.
Appendix D Further results of the steering
D.1 Kinematics of the steered events
We now show the results of the steering on reconstructed particles that were not specifically steered; that is electrons, photons, hadronic taus, jets, and large-R jets. Figure 14 shows the results for every particle with the same steering vector as in the main text: the steering vector on block for . We do not expect huge edits to occur for these particles, as, of course, the steering vector is only added to the muon tokens. However, the tokens of the rest of the particles should not remain unaffected. At every inference step, subsequent attention blocks also read the steering vector, thus altering the generated kinematics of all particles in the event.
For , no bin with at least 1,000 baseline particles changes by more than 2.4%. The largest changes sit at the edges of the pseudorapidity acceptance and at high transverse momentum, where there is low statistics.
D.2 The steering vector at blocks 0 and 3
Figure 15: The steering vector at block (left, ) and (right, ), as in Fig. 3. Top: dimuon invariant mass of one million muon pairs, real data (grey), baseline generation of ShellFlow (black, dashed), and steered (blue to green). Middle: steered over baseline. Bottom: zooms on the , , and .
Figure 16: Fitted pole and width against for the steering vector at blocks , 1, and 3, as in Fig. 5. Dotted: the baseline value times of each block (Table 2).
We repeat the same exercises as in the main text for blocks and . Figure 15 shows the dimuon invariant mass plots for both, and Fig. 16 the fitted pole and width against . The quality features of both blocks are in Table 2 and Fig. 6.
As we mentioned in the main text, is a sensitive block. We found that adding the steering vector, as well as a random vector, altered the invariant mass spectrum way more than the steering on block . This is clear from the peaks in and in Fig. 15.
At , is a third of its value at , so the steering vector needs to move the as far as does with . We do find, however, that the and peaks stay in place, and that their windows defined in Table 1 lose at most 6% of their pairs for . We also find that the fit degrades for and splits the broadening between the width and the resolution, so the fitted width in Fig. 16 grows less than the peak.
D.3 Per-pair predictions
In Sec. 5.2 we only compared the prediction of Eq. (21), which uses the average gradient of the class, with the fitted pole of the boson. Here, we shall take a step forward, and do this for each muon pair in Eq. (20).
Figure 17 compares the steered invariant mass of each pair with the prediction of Eq. (20). The 68% regions agree for all four values of . The 95% regions separate on the flanks of the , more at .
From these predictions, we repeat the same process we did in the main text. We take the pair candidates used for the steered generation in Sec. 5, and make an individual fit for each pair of the shape
where is the baseline generation, is the result after steering, and is the free parameter. We do it for the values . The exponential form describes each pair well (median ). The fitted and the computed differ by a median of 5%. Without a fit, Eq. (20) predicts the steered mass of each pair with a median error of 3% of the pair’s mass shift at , and 7% at . The exponential form fits worst near the window edges. Within 4 GeV of them about 30% of the pairs have , against 2% of the pairs between 89 and 95 GeV.
Figure 17: Steered generation compared to the baseline ShellFlow generation for different values of . The filled regions show the output of the steered model, and the red contour lines show the predicted steering of Eq. (20). The star is the result from Eq. (21).
D.4 and steering vectors
Figure 18: The steering of the mass, as in Fig. 3: dimuon invariant mass of one million muon pairs, compared with real data (grey), baseline generation of ShellFlow (black, dashed), and the results from adding the steering vector at block 1 with (blue to green).
Figure 19: The same as Fig. 18 for the steering vector.
We build steering vectors for the and classes of Table 1 in the same way as for the . We add them at block , with the same values of , the same 1,000,000 muon pairs, and the same three seeds as in Sec. 5. Figures 18 and 19 show the dimuon invariant mass for .
We do not fit a lineshape to the quarkonia peaks, because it would require a careful understanding of the production channels. Quarkonium production is still not fully understood. There is no single theoretical model that describes all measurements, in particular at low transverse momentum (Lansberg, 2020; Brambilla et al., 2025). Moreover, the class holds three resonances that the model cannot separate (Table 1).
Table 5: of each class at block .
| Class | |
|---|---|
| 0.122 | |
| 0.063 | |
| 0.123 |
The steering vector moves the peak from 3.08 GeV in the baseline generation to between 2.72 and 3.52 GeV for . The , which belongs to the rest class, moves with it. However, for positive it becomes distorted. For the same , the moves by about half the fraction of its mass that the moves under the steering vector.
The steering vector moves the peak from 9.68 GeV to between 7.95 and 12.81 GeV for . also moves by about the same fraction of its mass as the steering vector moves the . The effect is not symmetric in . For negative , the peak keeps its width down to , and its width doubles at .
Both quarkonium steering vectors move their own peak and leave the rest of the invariant mass spectrum alone. Both broaden their own peak faster than the steering vector broadens the .
D.5 The steering vectors over flow time
Here we look at the steering vectors of the , , and classes of Table 1 at each of the 200 Euler steps, at block .
Separation of the classes.
The figure on the right shows the largest eigenvalue of Eq. (18) for each class against flow time, as Fig. 6c does for the at every block. To know how large the values of are, we build three random classes, drawn from the pairs outside the window. We find the steering vector of each random class against all other pairs, with the same weighting as a resonance against the other three classes. Their largest eigenvalues form the grey band, at about 0.3 for the whole flow. All three classes lie far above this band at every step, so a random group of pairs does not reach the separation of the classes. The is the most separable of the three at every step, and it is above 0.9 from . The reaches 0.9 only at , and the only in the last steps of the flow. All three classes become more separable as the flow approaches .
The two muons.
In the main text we obtained two steering vectors, one to be added to the muon tokens, , and another to be added to the antimuon token . The figure on the right shows the cosine similarity of both vectors. At almost every step, the two parts are the same vector up to a sign. Two random vectors with 128 entries have a cosine similarity of about . For the and the , they point in opposite directions before , and in the same direction after it. For the , they point in the same direction at every step. Every change of sign falls where the two largest eigenvalues of Eq. (18) cross. There, the steering vector changes from an eigenvector that moves the two muons in opposite directions to one that moves them in the same direction. The dip of the near is where its two largest eigenvalues come close without crossing.

Rotation of the steering vectors.
The figure on the right shows, for each class, the absolute cosine similarity between its steering vectors at two flow times and . A steering vector that did not change with flow time would fill the map with ones. Instead, all three rotate. The map splits into two blocks at , where the parts on the two muons change sign: the steering vectors before and after it are orthogonal. After , the steering vector keeps turning slowly. The splits at the same place, and it turns again near , where its two parts dip. The turns smoothly, without a sharp change, and its early and late steering vectors are also orthogonal. No steering vector stays within of its final direction before the last two steps. A single steering vector for all of the flow would not follow this rotation, which is why we use one for each Euler step.
Appendix E Lineshape fit of the peak
We build a lineshape of the boson to quantify the movement of the pole. We do not claim this is a precision measurement of the boson. Every pole, width, and resolution in this paper comes from one fit of one function to a histogram of the dimuon mass. The same fit is applied to the real data, to the baseline generation, and to the generation at each , so the numbers before and after an edit are directly comparable. Fits of this kind are standard at hadron colliders, for the mass and width of the (CDF Collaboration, 1989; LHCb Collaboration, 2025) and for the calibration of the scale and resolution of the muon momentum on the peak (Bodek et al., 2012; CMS Collaboration, 2018; ATLAS Collaboration, 2023). This appendix derives the function in four steps, the tree-level cross section of the partons, the cross section of the protons, the detector resolution, and the final-state radiation, states the order of each step, and then describes the fit.
At leading order a muon pair is produced by the annihilation of a quark and an antiquark through a photon or a boson (Drell and Yan, 1970),
with the invariant mass of the pair. A fermion of charge and weak isospin couples to the photon with strength (where is electric charge) and to the with the vector and axial couplings
(where , , and is the Weinberg angle). With the photon propagator taken out in front, the enters through the ratio of the two propagators,
a Breit–Wigner resonance of mass and width . The squared average amplitude is:
where is the angle between and the quark in the rest frame of the pair, which at this order is the Collins–Soper angle. This leaves the tree-level cross section, with the electromagnetic coupling, as:
The cross section of two protons at squared energy , here TeV, is the cross section of the partons folded with the parton distributions of the proton. This is the factorisation of Drell and Yan (1970), established in QCD by Bodwin (1985) and Collins et al. (1989):
The differential cross section in any variable follows by inserting one under the integral, written as the integral of a delta function of that variable. For the mass of the pair, , and the integral over gives
with the parton luminosity of flavour .
Figure 20: Lineshape fits of the peak. Real data (grey), baseline generation of ShellFlow (black, dashed), and the generation steered at block 1 with (blue to green), one seed. Each sample is drawn in the 100 bins of its own fit window, with the fitted lineshape as a thin line. Bottom: pulls, .
We compute the integral in the rapidity of the pair, with and , over . In terms of ,
This spectrum has been measured at the LHC for values of from GeV to TeV energies (ATLAS Collaboration, 2014; ATLAS Collaboration, 2016a; CMS Collaboration, 2019).
We take the luminosity of each quark type at the mass of the pair from the NNPDF4.0 distributions at next-to-leading order (NNPDF Collaboration et al., 2022), with the scale equal to , for two quark types, up-type and down-type. We multiply it by the acceptance of the muon selection, and GeV, for pairs without transverse momentum. A free power absorbs what this leading-order luminosity does not describe: the higher orders, the transverse momentum of the pair, and the remaining backgrounds. We define the number of pairs as the cross section times a normalisation constant ,
where now includes the acceptance. The constant includes the integrated luminosity of the collider, the efficiency of the trigger and of the selection, and the constant factors of Eq. (49). It is a free parameter, and its only use is to make the fit match the total number of pairs.
ATLAS (ATLAS Collaboration, 2008) measures the momentum of a muon with a resolution between one and a few percent (ATLAS Collaboration, 2016b; ATLAS Collaboration, 2023). We describe this resolution by a Gaussian in of standard deviation , the same over the fit window,
cut at five standard deviations.
To account for final-state radiation, we introduce the radiator function (Montagna et al., 1998),
where a pair with invariant mass before radiation has invariant mass after it, so . is defined as
evaluated at the fitted pole , with the muon mass. We model the lineshape as
where is the logarithm of the invariant mass before radiation, and is the value after resolution. We set . This cutoff only amounts to a loss of of the muon pairs.
E.1 Details on the fit
Figure 21: The remaining parameters of the lineshape fit against , for the steering vector at block 1: (a) detector resolution , (b) luminosity exponent , and (c) deviance per degree of freedom. Mean over three seeds, with their standard deviation as bars. Dotted in (a): the baseline value times , a pure shift of , as in Fig. 5. At the fit sets to zero and puts all of the broadening into .
We fit Eq. (54) to the counts of muon pairs in 100 bins of equal width in , within of the peak, about 71 to 117 GeV for the baseline generation. We first take as the peak the median of over the pairs whose baseline mass lies in the window of Table 1, fit, then centre the window on the fitted pole and fit again. Every pair of a sample enters the histogram, whatever its mass before the steering.
The expected count in bin is the integral of Eq. (54) over the bin, a function of the five free parameters . The observed counts are Poisson distributed, and we minimise the deviance (Baker and Cousins, 1984),
which is times the logarithm of the ratio of the Poisson likelihood of the fit to that of a perfect fit. For large counts, follows a distribution with degrees of freedom, and we quote per degree of freedom as the quality of the fit. The uncertainty of each parameter is where rises by one above its minimum, , with the other parameters free. The Weinberg angle is fixed at , and follows the fitted pole through Eq. (53).
We evaluate the lineshape on a grid in from 25 to 320 GeV with a step of , and compute both integrals of Eq. (54) as discrete convolutions on this grid. We minimise with a bounded trust-region method, from four starting points for and , and keep the smallest . The pole is bounded to the fit window, and to between and 0.35 times , and to . The fit of the baseline starts at , , and , with at the peak; each steered sample starts from the baseline fit of its seed, with at its own peak.
Results.
Table 6 gives the fits of the real data, the baseline generation, and the generation steered with at block 1, and Fig. 20 shows the fitted lineshapes against the counts. The statistical uncertainty of the pole is about 10 MeV, far below the shifts of the steering, and the three generations with different seeds agree within it. and have a correlation of in every fit: the fit can trade the width of the Breit–Wigner against the width of the resolution, which is why we do not read the growth of with as a change of the physical width alone. The fit describes the real data and the baseline well, and degrades as grows, most for negative , where the steered peak is no longer a Breit–Wigner folded with a Gaussian (Fig. 21c). Fig. 21 also shows the remaining parameters of the fit against : the resolution grows faster than a pure shift of for and falls for , while absorbs the change of the continuum on both sides.
Table 6: Lineshape fits of the peak. Values are the mean over three seeds; uncertainties are statistical, from . is the deviance per degree of freedom (95). PDG: world average of the Particle Data Group (Particle Data Group, 2026).
| Sample | [GeV] | [GeV] | [GeV] | ||
|---|---|---|---|---|---|
| PDG | – | – | – | ||
| . | |||||
| Real data | 1.3 | ||||
| Baseline generation | 2.0 | ||||
| . | |||||
| 15.1 | |||||
| 9.4 | |||||
| 3.8 | |||||
| 1.8 | |||||
| 2.0 | |||||
| 3.2 | |||||
| 4.3 | |||||
| 3.8 |