Distillation of a Normalising Flow into a Compact Symbolic Expression for Real-Time Anomaly Detection at the LHC Level-1 Trigger
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: High Energy Physics: Experiment. The day in high-energy experiment: detectors, searches and limits.
Kai: We're looking at the paper: "Distillation of a Normalising Flow into a Compact Symbolic Expression for Real-Time Anomaly Detection at the LHC Level-1 Trigger".
Paper summary: Kai: We just touched on how they managed to distill this complex normalising flow into a compact symbolic expression, which is the main point of this paper. They are proposing using symbolnet to learn an explicit function that mimics the teacher's anomaly detection behavior based on its negative log-likelihood scores.
Mira: That's right, and what they claim is that this approach avoids deploying another complex neural network student altogether. Instead, they aim for a representation where you have a formula whose inputs, operations, and numerical behavior can be directly inspected by physicists.
Lev: From my side, I'm focused on the fact that the teacher model itself uses an exact negative log-likelihood under the learned density as its anomaly score. This is different from reconstruction error methods or variational approaches that use a lower bound on likelihood, so this explicit likelihood function is what makes it tractable for distillation.
Kai: So, to summarize what's important here, they take the teacher's exact negative log-likelihood and use symbolnet to find the simplest possible symbolic representation of that score as a function of the fifty seven input features. The goal is real-time deployment at Level-one trigger <ref:2611.30896#pg1>.
Mira: And why this matters for us, it’s because it shows knowledge distillation can successfully separate the complexity of learning the standard model distribution from what you ultimately deploy for triggering events at the LHC. It gives us a route to translate highly expressive models into something transparent and compatible with real-time constraints.
Lev: The caveat I always bring up is that they rely on a specific teacher, which is the RealNVP normalising flow developed in reference seventeen so if that teacher model has any hidden assumptions or limitations, those limitations are directly inherited by the symbolic student <ref:2611.30896#pg2>.
Kai: That's fair. They use the same benchmark datasets and pre-processing as reference seventeen for their training and testing, which means we're evaluating this on a consistent set of physics data from ATLAS and CMS events <ref:2611.30896#pg2>.
Mira: And they used two point eight million events for training, seven hundred thousand for validation, and an independent sample of two million events for testing to train the symbolic student. That's a solid amount of data to learn that function effectively.
Lev: From a real-hardware perspective, the fact that the final expression is fixed and countable before synthesis is what makes it possible to target specific hardware resources like lookup tables and DSP slices on an FPGA. It’s not just a black box anymore; it's a structure we can optimize.
Kai: So, the key takeaway for this paper is that distillation isn't just about shrinking models; it’s about transforming the deployment format from a neural network to an explicit mathematical formula for faster, more transparent real-time anomaly detection.
Conclusion: Kai: We're wrapping up our discussion on this paper, "Distillation of a Normalising Flow into a Compact Symbolic Expression for Real-Time Anomaly Detection at the LHC Level-one Trigger <ref:2611.30896#pg1,Distillation of a Normalising Flow into a Compact Symbolic Expression for Real>." This work really shows how distillation can be used to simplify models for practical deployment.
Mira: It moves beyond just making the model smaller; it focuses on creating an explicit mathematical formula whose inputs and operations are directly examinable, which is a key feature. It provides a path for translating those complex anomaly detection models into forms that fit the constraints of real-time triggering systems.
Lev: For us in error correction and hardware design, the main implication is that having this structure means we can analyze the arithmetic complexity upfront rather than just dealing with an opaque neural network architecture during synthesis.
Kai: So, to put it plainly, this paper gives researchers a concrete route for taking highly expressive anomaly-detection models and turning them into compact, transparent representations suitable for the speed requirements of real-time LHC triggering.
Mira: It suggests that instead of always deploying another neural network student, we should explore whether the underlying behavior can be captured by an explicit mathematical expression.
Lev: And from my perspective on error correction, this opens up a way to rigorously analyze and optimize those expressions before committing to the hardware build.
Justin Bollhalder, Florencia Canelli, Valentina Guglielmi, Roope Oskari Niemi, Maurizio Pierini, Chang Sun, Francesco Vaselli
Department of Mathematics, University of Zurich · Lake Lucerne Institute, Vitznau Switzerland · Physik-Institut, Universität Zurich Zürich Switzerland · European Organization for Nuclear Research CERN CH-1211 Geneva 23 Switzerland · California Institute of Technology Pasadena CA USA · Scuola Normale Superiore Pisa Italy · Istituto Nazionale di Fisica Nucleare INFN Pisa Italy
hep-ex
Submitted: 2026-11-23
Updated: 2026-11-23
Code: https://github.com/jusbol/symbolic-student-expression
License: http://creativecommons.org/licenses/by-sa/4.0/
Importance score: 100/100
The gist: Distillation of a Normalising Flow into a Compact Symbolic Expression for Real-Time Anomaly Detection at the LHC Level-1 Trigger is about distilling an anomaly detection model based on a normalising…
Key concepts
- Normalising Flow
- A type of neural network that learns a mapping between input data and a simple distribution, like a standard normal distribution. It's used here as the 'teacher' model to learn how to score events based on their likelihood under this learned distribution.
- Knowledge Distillation
- A technique where knowledge from a large, complex 'teacher' model is transferred to a smaller, simpler 'student' model. Here, the symbolic student is trained specifically to mimic the anomaly scores produced by the original normalising flow teacher.
- Symbolic Regression
- An automated process that searches for mathematical formulas that best fit a given set of data. It takes complex models and attempts to represent their function using explicit mathematical equations, rather than just learned weights in a neural network.
Terminology
Summary
Distillation of a Normalising Flow into a Compact Symbolic Expression for Real-Time Anomaly Detection at the LHC Level-1 Trigger is about distilling an anomaly detection model based on a normalising flow into an explicit mathematical formula using symbolic regression to achieve real-time deployment at the LHC Level-1 Trigger. p. 0 Distillation of a Normalising Flow into a Compact Symbolic
Expression for Real-Time Anomaly Detection at the LHC Level-1
Trigger
Justin Bollhalder1,2
, Florencia Canelli3
, Valentina Guglielmi3
, Roope Oskari Niemi4
,
Maurizio Pierini4
, Chang Sun5
, Francesco Vaselli6
1Department of Mathematics, University of Zurich, Zurich, Switzerland
2Lake Lucerne Institute, Vitznau, Switzerland
3Physik-Institut, Universität Zürich, Zürich, Switzerland
4European Organization for Nuclear Research (CERN), CH-1211 Geneva 23, Switzerland
5California Institute of Technology, Pasadena, CA, USA
6Scuola Normale Superiore, Pisa, Italy, and Istituto Nazionale di Fisica Nucleare (INFN), Pisa, Italy
∗Corresponding authors: justinroger. bollhalder@uzh.Where the paper says it
Motivation and Context
Anomaly detection techniques are becoming popular alternatives to traditional signature-aware new physics searches at the CERN Large Hadron Collider.<ref:2611.30896#pg1, "At the CERN Large Hadron Collider (LHC) is the ultimate source of scientific data">. p. 0 44% of its DSP slices. 1 Introduction
The CERN Large Hadron Collider (LHC) is the ultimate
source of scientific data: proton collisions happen in the four
large LHC detectors at a nominal rate of 40 MHz, producing
O (1) MB of data each time. Guglielmi)
Abstract
At the CERN Large Hadron Collider, anomaly detection
techniques are becoming popular alternatives to traditional
signature-aware new physics searches. For this approach to
avoid any bias induced by the real-time event selection applied
in the trigger system of ATLAS and CMS, it should be implemented before the first stage of selection, the Level-1 Trigger. This requires deciding to accept or reject each collision within
a few microseconds, a latency budget that excludes the most
expressive anomaly-detection models. Knowledge distillation
has successfully addressed this issue by replacing a complex
anomaly-detection model with a lighter student network. During training, the framework selects
the relevant input features, operations, and terms, yielding
a student composed of arithmetic operations and a limited
number of elementary functions. The objective of this paper is
to determine how much of the performance of the normalisingflow strategy can be retained when the neural-network student
of Ref. [17] but investigate a fundamentally different representation for the student. Rather than distilling the normalisingflow teacher into another neural network, we ask whether its
anomaly-detection behaviour can be represented by a compact
symbolic expression [19, 20].Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Teacher Model and Target Score
The teacher model is the RealNVP normalising flow developed and validated in Ref. [17].<ref:2611.30896#pg3, Here, we summarise only the aspects required for
the distillation procedure used in this work. The teacher normalising flow learns an invertible mapping
between the 57-dimensional input space and a latent space
endowed with a standard normal prior. The teacher normalising flow learns an invertible mapping
between the 57-dimensional input space and a latent space
endowed with a standard normal prior. The probability density
assigned by the model to each event can therefore be evaluated
2 This paradigm has been successfully applied to convolutional autoencoders [16] and more
recently to normalising flows [17, 18]. A high-capacity normalising flow, trained exclusively on SM events and using the
exact negative log-likelihood under the learned density as its
anomaly score, served as the teacher for a compact multilayer
perceptron (MLP), which served as the student. The four BSM benchmark samples exhibit
enhanced populations in the high-𝑡 region, as shown in Figure 2. The score 𝑡 is a non-decreasing function of the teacher NLL
and therefore preserves its ordering, apart from ties introduced
by the finite ECDF resolution and the upper-rank cap.The teacher model is the RealNVP normalising flow developed and validated in Ref. [17]
>. This flow learns an invertible mapping between the 57-dimensional input space and a latent space endowed with a standard normal prior. p. 1Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Symbolic Student Architecture and Training
The symbolic student is trained to reproduce the teacher scores using SymbolNet [21].<ref:2611.30896#pg4, Sparsity is learned jointly during training through trainable pruning thresholds, which determine
which input features, weights, and symbolic terms remain in
the final expression. The student consists of three ingredients:
10
−6 10
−5 10
−4 10
−3 10
−2 10
−1 10
0
False Positive Rate
10
−6
10
−5
10
−4
10
−3
10
−2
10
−1
10
0
True Positive Rate
LQ ! • Input gate: Each of the 57 input features carries a learnable threshold in [0, 1]; a feature survives only while
its (fixed, unit) gate weight exceeds the threshold. Features whose gates close will not contribute to the final
mathematical expression. 4 Symbolic-student architecture
The symbolic student is trained to reproduce the teacher scores
using SymbolNet [21]. Sparsity is learned jointly during training through trainable pruning thresholds, which determine
which input features, weights, and symbolic terms remain in
the final expression. (1) with a scalar output 𝑧(𝑥), which is used directly as the
student anomaly score. The regression component of the loss
is a tail-weighted Huber loss:
Lreg =
D
1 + 𝛽 𝑝(𝑦)
2
10 𝛾 max(0, min(𝑦, 𝑦cap )−𝑦0 ) 𝐻1 (𝑦 − 𝑧)
E
events
,
𝐻1 (𝑒) =
(
𝑒
2
/2, |𝑒| ≤ 1,
|𝑒| − 1/2, |𝑒| > 1.The symbolic student is trained to reproduce the teacher scores using SymbolNet [21]
>. The architecture consists of three ingredients: an input gate, symbolic layers, and operator slots. p. 2Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Performance and Hardware Deployment
The symbolic student achieves discrimination performance comparable to that of the RealNVP teacher across all four BSM benchmarks, both in terms of AUC and in terms of true-positive rates at the four fixed false-positive rates down to 10−5.<ref:2611.30896#pg7>. The final expression contains 577 operations and uses 30 input features. p. 3 Expression size is measured with SymPy [31] count_ops
after common-subexpression elimination (CSE), with each
elementary-function call counted as one operation. The final
expression contains 577 operations and uses 30 input features. Expression size is measured with SymPy [31] count_ops
after common-subexpression elimination (CSE), with each
elementary-function call counted as one operation. The final
expression contains 577 operations and uses 30 input features. The final expression contains 577 operations and matches the teacher’s discrimination on a test
dataset, generalising to four benchmark new physics scenarios. Implemented on a Xilinx Virtex UltraScale+ VU13P FPGA,
the symbolic student has a nine-cycle latency, corresponding
to 42. 8 ns
at this frequency and 45 ns at the 200 MHz target frequency. The routed design uses 14 049 lookup tables (LUTs), 4 785
flip-flops (FFs), 54 DSP slices, and 13 block RAMs, below 1%
of the device in each category. 8 ns
at this frequency and 45 ns at the 200 MHz target frequency. The routed design uses 14 049 lookup tables (LUTs), 4 785
flip-flops (FFs), 54 DSP slices, and 13 block RAMs, below 1%
of the device in each category. The final symbolic student contains 577 operations
after common-subexpression elimination and depends on 30
of the 57 input features. The symbolic student retains discrimination performance
comparable to that of the substantially larger teacher across all
four BSM benchmarks, including at false-positive rates as low
as 10−5
. The final symbolic student contains 577 operations
after common-subexpression elimination and depends on 30
of the 57 input features. The symbolic student retains discrimination performance
comparable to that of the substantially larger teacher across all
four BSM benchmarks, including at false-positive rates as low
as 10−5
.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Conclusion and Impact
The results show that knowledge distillation can separate the complexity of the model used to learn the SM distribution from the representation ultimately used for real-time inference.<ref:2611.30896#pg9, "More broadly, these results show that knowledge distillation can separate the complexity of the model used to learn the SM distribution from the representation ultimately used for real-time inference">. p. 8 0 times fewer flip-flops
than the 8-bit MLP student, at a latency within the range of the
MLP designs and at the cost of a small number of DSP slices
and block RAMs, a favourable trade-off between resources and
performance. More broadly, these results show that knowledge distillation
can separate the complexity of the model used to learn the
SM distribution from the representation ultimately used for
real-time inference. Symbolic regression takes this separation
one step further: rather than deploying another neural network,
the resulting trigger algorithm is an explicit mathematical
expression whose inputs, operations, and numerical behaviour
can be examined directly. The framework is not tied to the
particular RealNVP teacher used here; in principle, another
model producing a scalar anomaly score could be substituted
and a new symbolic student trained within the same distillation
and deployment pipeline. More broadly, these results show that knowledge distillation
can separate the complexity of the model used to learn the
SM distribution from the representation ultimately used for
real-time inference. Symbolic regression takes this separation
one step further: rather than deploying another neural network,
the resulting trigger algorithm is an explicit mathematical
expression whose inputs, operations, and numerical behaviour
can be examined directly. The framework is not tied to the
particular RealNVP teacher used here; in principle, another
model producing a scalar anomaly score could be substituted
and a new symbolic student trained within the same distillation
and deployment pipeline. This provides a route for translating increasingly expressive anomaly-detection models into
compact and transparent representations compatible with the
constraints of real-time triggering. The framework is not tied to the
particular RealNVP teacher used here; in principle, another
model producing a scalar anomaly score could be substituted
and a new symbolic student trained within the same distillation
and deployment pipeline. This provides a route for translating increasingly expressive anomaly-detection models into
compact and transparent representations compatible with the
constraints of real-time triggering. Data availability
The LHC benchmark datasets used in this work are publicly
available on Zenodo [24–27]. The deployed expression is given
in Appendix C and, at full precision, at https://github. The deployed expression is given
in Appendix C and, at full precision, at https://github. com/jusbol/symbolic-student-expression. Data availability
The LHC benchmark datasets used in this work are publicly
available on Zenodo [24–27]. The deployed expression is given
in Appendix C and, at full precision, at https://github. The deployed expression is given
in Appendix C and, at full precision, at https://github. com/jusbol/symbolic-student-expression.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Data and Evaluation
The same publicly available LHC anomaly-detection benchmark datasets, event selection, and pre-processing as Ref. [17] are used. p. 1 [18] also
investigated the use of a boosted decision tree as a student. This
strategy largely decouples the expressive model used to learn
the SM distribution from the architecture ultimately deployed
in the trigger. The value of 𝛽 is varied
across the training stages as described in Table 3, while 𝑦0 = 3
and 𝛾 = 1 are kept fixed. Training uses the Adam [29] optimiser with a gradient clip norm of 1. We use the identical data partition as in Ref. 8M events for training, 700 000 for validation, and an independent sample of 2M events for testing. None of the BSM samples is used during training. Each event is represented by 57 trigger-level input features:
transverse momentum 𝑝T, pseudorapidity 𝜂, and azimuthal
angle 𝜙 for up to four muons, four electrons, and ten jets,
together with the missing-transverse-energy information represented by |𝐸
miss
T
| and 𝜙, with its pseudorapidity component
set to zero. None of the BSM samples is used during training. Each event is represented by 57 trigger-level input features:
transverse momentum 𝑝T, pseudorapidity 𝜂, and azimuthal
angle 𝜙 for up to four muons, four electrons, and ten jets,
together with the missing-transverse-energy information represented by |𝐸
miss
T
| and 𝜙, with its pseudorapidity component
set to zero.Where the paper says it
We use the same publicly available LHC anomaly-detection benchmark datasets, event selection, and pre-processing as Ref. [17]
>. The training uses 2. p. 4Where the paper says it
Where the paper says it
We use the same benchmark has also been used in Refs. [10, 13], allowing the different anomaly-detection approaches to be evaluated on a common dataset
>. Each event is represented by 57 trigger-level input features. p. 1Where the paper says it
Where the paper says it
Resource Comparison
The symbolic student needs 3.9 times fewer lookup tables and 5. p. 8 On the
same device and at the same clock target, its firmware uses
3. 9 times fewer lookup tables and 5. 9 times fewer lookup tables and 5. 0 times fewer flip-flops
than the 8-bit MLP student, at a latency within the range of the
MLP designs and at the cost of a small number of DSP slices
and block RAMs, a favourable trade-off between resources and
performance. The compression is also visible at the level of the input representation. Although all 57 trigger-level features are available
during training, only 30 appear in the final symbolic expression. All training, pruning, checkpoint selection, and other
model-development choices are made using SM events only. Because the student is an explicit formula rather than a
network, its arithmetic complexity is fixed and countable
before any synthesis step.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Hardware Implementation Details
The deployed expression of Appendix C is turned into firmware with the symbolic-expression backend of hls4ml.<ref:2611.30896#pg9>. All inputs, coefficients, intermediate values and the output share one fixed-point type, ap fixed. p. 5 0), which writes the expression directly into the
high-level-synthesis (HLS) C++ source, with the coefficients
as constants of the arithmetic. All inputs, coefficients, intermediate values and the output share one fixed-point type,
ap_fixed<20,10>: 20 bits, of which 10 are integer bits including the sign, with convergent rounding and saturation on
overflow. For this approach to
avoid any bias induced by the real-time event selection applied
in the trigger system of ATLAS and CMS, it should be implemented before the first stage of selection, the Level-1 Trigger. This requires deciding to accept or reject each collision within
a few microseconds, a latency budget that excludes the most
expressive anomaly-detection models. Implemented on a Xilinx Virtex UltraScale+ VU13P FPGA,
the symbolic student has a nine-cycle latency, corresponding
to 42. 8 ns at the post-route maximum clock frequency, and
uses 0. The final expression contains 577 operations and matches the teacher’s discrimination on a test
dataset, generalising to four benchmark new physics scenarios. Implemented on a Xilinx Virtex UltraScale+ VU13P FPGA,
the symbolic student has a nine-cycle latency, corresponding
to 42. Implemented on a Xilinx Virtex UltraScale+ VU13P FPGA,
the symbolic student has a nine-cycle latency, corresponding
to 42. 8 ns at the post-route maximum clock frequency, and
uses 0. [17], with
resource and timing reported from the tool report. The routed
design meets the 200 MHz timing target.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Symbolic representation for real-time deployment can make hardware-facing decisions more transparent by allowing direct inspection of
the complete trigger algorithm
whoseinputs, coefficients, and individual operations can be inspected directly.
-
The symbolic student system allows for feature selection and compression through knowledge distillation, resulting in a final expression with a fixed arithmetic complexity of 577 operations that matches the teacher's discrimination on test data.
-
The system enables hardware optimization by reporting
the arithmetic complexity, the input features it retains, and its FPGA latency and resource usage
for the symbolic student, showing favorable trade-offs compared to neural network students in terms of LUTs and flip-flops. -
The symbolic student maintains discrimination performance comparable to the teacher across all four BSM benchmarks at false-positive rates as low as 10 minus 5, achieving AUCs up to 90.90 for the A to four l benchmark.
-
The system facilitates model translation by showing that
knowledge distillation can separate the complexity of the model used to learn the SM distribution from the representation ultimately used for real-time inference.
Abstract
At the CERN Large Hadron Collider, anomaly detection techniques are becoming popular alternatives to traditional signature-aware new physics searches. For this approach to avoid any bias induced by the real-time event selection applied in the trigger system of ATLAS and CMS, it should be implemented before the first stage of selection, the Level-1 Trigger. This requires deciding to accept or reject each collision within a few microseconds, a latency budget that excludes the most expressive anomaly-detection models. Knowledge distillation has successfully addressed this issue by replacing a complex anomaly-detection model with a lighter student network. This work takes the compression one step further, distilling an anomaly detection model based on a normalising flow into an explicit mathematical formula. Using the SymbolNet symbolic-regression framework with adaptive pruning, the student is a learned functional form based on a chosen subset of the inputs, providing at once feature selection and compression through knowledge distillation. The final expression contains 577 operations and matches the teacher's discrimination on a test dataset, generalising to four benchmark new physics scenarios. Implemented on a Xilinx Virtex UltraScale+ VU13P FPGA, the symbolic student has a nine-cycle latency, corresponding to 42.8,ns at the post-route maximum clock frequency, and uses 0.81% of the device's LUTs and 0.44% of its DSP slices.
Sources
- The LHC Olympics 2020: A Community Challenge for Anomaly Detection in High Energy Physics
- The Dark Machines Anomaly Score Challenge: Benchmark Data and Model Independent Event Classification for the Large Hadron Collider
- Auto-Encoding Variational Bayes
- Variational Autoencoders for New Physics Mining at the Large Hadron Collider
- Adversarially Learned Anomaly Detection on CMS Open Data: re-discovering the top quark
- Autoencoders on FPGAs for real-time, unsupervised new physics detection at 40 MHz at the Large Hadron Collider
- Real-time Anomaly Detection at the L1 Trigger of CMS Experiment
- It's not a FAD: first results in using Flows for unsupervised Anomaly Detection at 40 MHz at the Large Hadron Collider
- Distilling the Knowledge in a Neural Network
- Evaluation of Novel Fast Machine Learning Algorithms for Knowledge-Distillation-Based Anomaly Detection at CMS
- Discovering Symbolic Models from Deep Learning with Inductive Biases
- SymbolNet: Neural Symbolic Regression with Adaptive Dynamic Pruning for Compression
- Symbolic Regression on FPGAs for Fast Machine Learning Inference
- LHC physics dataset for unsupervised New Physics detection at 40 MHz
- Adam: A Method for Stochastic Optimization
- Dynamic Sparse Training: Find Efficient Sparse Network From Scratch With Trainable Masked Layers
- Fast inference of deep neural networks in FPGAs for particle physics
- hls4ml: A Flexible, Open-Source Platform for Deep Learning Acceleration on Reconfigurable Hardware
Related papers
- DrSai: an agentic AI system toward autonomous physics analysis workflows at BESIII
- CANTON- mu Proposal: A Next-Generation Muon g-2 Measurement at Sub-0.1 ppm Precision
- Search for dark photon dark matter near 1,meV using a superconducting mixer
- A First Indication of Low-Energy Solar Neutrino-Electron Scattering with PandaX-4T Run 2 Data
- ANUBIS detector and its sensitivity to neutral long-lived particles
- How to scale your HEP ML models: A recipe for robust architecture comparisons at scale