betaFeedback

WorksPhysics and Astronomy

Distillation of a Normalising Flow into a Compact Symbolic Expression for Real-Time Anomaly Detection at the LHC Level-1 Trigger

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.

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)O(1) MB of data each time. Such a large volume of raw detector data cannot be recorded in full by the ATLAS [1] and CMS [2] experiments. Both experiments therefore rely on real-time selection algorithms, running in two-stage trigger systems. The trigger determines, in real time, which collisions are retained for further analysis. In CMS and ATLAS, the first stage of this selection is the hardware-based Level-1 Trigger (L1T) [3, 4], implemented on Field-Programmable Gate Arrays (FPGAs). Within a latency budget of a few microseconds, the L1T must reduce the incoming event rate from O(10)O(10) MHz to O(100)O(100) kHz. The accepted events are passed to the software-based High-Level Trigger (HLT), where more sophisticated reconstruction and selection algorithms can be applied on a more relaxed timescale.

The stringent latency and resource constraints of the L1T have traditionally favoured algorithms designed to identify specific, predefined physics signatures. Such targeted selections have been central to the success of the LHC physics programme, but necessarily rely on assumptions about how the sought-after phenomena appear in the detector. This limitation has motivated increasing interest in model-agnostic anomaly detection [5, 6], in which algorithms learn a description of Standard Model (SM) events and identify collisions that depart from it. Early studies investigated autoencoder-based methods for offline and high-level-trigger applications [7, 8, 9], while subsequent work demonstrated that machine-learning anomaly detectors could be implemented directly at the L1T [10]. This research programme has led to algorithms such as AXOL1TL and CICADA [11] in CMS and GELATO [12] in ATLAS. More recently, continuous normalising flows have also been investigated for real-time anomaly detection at the L1T [13].

A central challenge is that the most expressive anomaly-detection models are generally not those most easily deployed under the stringent hardware constraints of the L1T. As proposed in [14], one can use knowledge distillation [15] to train a supervised student to imitate the decision of a much more complex unsupervised teacher. 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. Ref. [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.

In this work, we retain the teacher–student strategy of Ref. [17] but investigate a fundamentally different representation for the student. Rather than distilling the normalising-flow teacher into another neural network, we ask whether its anomaly-detection behaviour can be represented by a compact symbolic expression [19, 20]. We use SymbolNet [21], a neural symbolic-regression framework with adaptive pruning, to learn an explicit function of the trigger-level input features from the teacher scores. 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 normalising-flow strategy can be retained when the neural-network student of Ref. [17] is replaced by a symbolic representation.

Such a representation offers several potential advantages for real-time deployment [22]. The complete trigger algorithm is expressed as an explicit mathematical formula whose inputs, coefficients, and individual operations can be inspected directly. Its arithmetic complexity can be determined before synthesis, while the effects of coefficient and intermediate-value quantisation can be studied operation by operation. Symbolic regression therefore offers a route towards further compression of the distilled model while making the hardware-facing decision rule more transparent.

The main contributions of this work are:

  • We distil the anomaly scores of the RealNVP teacher from Ref. [17] into a compact symbolic expression, rather than into a conventional machine-learning algorithm;

  • We quantify how accurately the symbolic student reproduces the teacher’s anomaly-detection performance across four BSM benchmarks and compare it with the neural-network student of Ref. [17];

  • We characterise the symbolic expression from the perspective of hardware deployment, reporting its arithmetic complexity, the input features it retains, and its FPGA latency and resource usage.

The rest of this paper is organised as follows. § 2 describes the data samples. § 3 summarises the teacher model taken from Ref. [17]. § 4, § 5, and § 6 present the symbolic student, the distillation target and loss function, and the training and pruning procedure, respectively. § 7 compares the anomaly-detection performance of the symbolic student with the teacher and with the neural-network student of Ref. [17]. § 8 reports the FPGA implementation and the corresponding resource comparison, and § 9 concludes the paper.

Data samples

We use the same publicly available LHC anomaly-detection benchmark datasets, event selection, and pre-processing as Ref. [17], to which we refer for a detailed description. The samples were originally introduced in Ref. [10] and released on Zenodo [23, 24, 25, 26, 27]; their generation and composition are documented in Ref. [28]. The same benchmark has also been used in Refs. [10, 13], allowing the different anomaly-detection approaches to be evaluated on a common dataset.

The SM background consists of simulated proton–proton collision events passing the trigger-like pre-selection described in Ref. [17]. We use the identical data partition as in Ref. [17]: 2.8M events for training, 700 000 for validation, and an independent sample of 2M events for testing. Performance on anomalous events is evaluated using four beyond-the-Standard-Model (BSM) benchmark samples:

  • LQ→bτLQ \to b\tau: an 80 GeV leptoquark, 340 544 events [24];

  • A→4ℓA \to4\ell: a 50 GeV neutral scalar, 55 969 events [25];

  • h0→ττh^{0} \to\tau\tau: a 60 GeV neutral scalar, 691 283 events [26];

  • h±→τνh^{\pm} \to\tau\nu: a 60 GeV charged scalar, 760 272 events [27].

None of the BSM samples is used during training.

Each event is represented by 57 trigger-level input features: transverse momentum pTp_{\mathrm{T}}, pseudorapidity η\eta, and azimuthal angle ϕ\phi for up to four muons, four electrons, and ten jets, together with the missing-transverse-energy information represented by ∣ETmiss∣|E_{\mathrm{T}}^{\mathrm{miss}}| and ϕ\phi, with its pseudorapidity component set to zero. Missing object entries are zero-padded to obtain a fixed-size representation, and all features are standardised using statistics determined exclusively from the SM training sample. The same input representation is used for both the teacher and the symbolic student.

The teacher model

The teacher model is the RealNVP normalising flow developed and validated in Ref. [17], to which we refer for a complete description of its architecture, training procedure, and robustness studies. 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 probability density assigned by the model to each event can therefore be evaluated exactly using the change-of-variables formula. The resulting per-event negative log-likelihood (NLL), ℓ(x)=−log⁡p(x)\ell(x) = -\log p(x), is used as the teacher anomaly score: events assigned a lower probability by the learned SM density have a larger NLL and are therefore regarded as more anomalous. This construction does not rely on any specific BSM signal hypothesis. In contrast to reconstruction-error-based anomaly scores, and to variational approaches based on a lower bound on the likelihood, a normalising flow provides an explicit and tractable likelihood under the learned density model.

SignalAUCTPR at fixed FPR
10−210^{-2}10−310^{-3}10−410^{-4}10−510^{-5}
LQ →bτ\to b\tau86.1413.521.660.210.054
A→4ℓA \to4\ell90.7840.5212.918.544.067
h0→ττh^{0} \to\tau\tau73.9911.132.750.410.068
h±→τνh^{\pm} \to\tau\nu89.3820.662.700.270.051

Table 1. Teacher performance: AUC and TPR at fixed background rates of 10−210^{-2}, 10−310^{-3}, 10−410^{-4} and 10−510^{-5} for the four BSM benchmarks, reproducing the values of Ref. [17]. All values are given in percent.

The RealNVP architecture comprises 8 affine coupling layers with alternating masks. Each coupling layer contains two independent neural networks that parameterise the scale and translation transformations, respectively; both networks have three hidden layers of 256 units with ReLU activations. The complete model contains approximately 2.6M trainable parameters. It is trained on the 2.8M SM training events by minimising the mean NLL using the Adam optimiser [29], with an initial learning rate of 10−410^{-4} and a batch size of 4096. Training is performed for up to 200 epochs, with early stopping after five epochs without improvement in the validation loss and restoration of the best-performing weights. Throughout this study, we use the same trained teacher instance as in Ref. [17].

Table 1 summarises the performance of the teacher on the four BSM benchmarks. We report the area under the receiver operating characteristic curve (AUC) and the true-positive rate (TPR) at false-positive rates (FPRs) of 10−210^{-2}, 10−310^{-3}, 10−410^{-4}, and 10−510^{-5}. The highest AUC is obtained for the A→4ℓA \to4\ell benchmark, whereas the lowest is obtained for the h0→ττh^{0} \to\tau\tau benchmark, which is more difficult to distinguish from the SM background. The corresponding ROC curves are shown in Figure 1.

Figure 1. ROC curves of the RealNVP teacher on the four BSM benchmark signals, each evaluated against the SM test set. The dotted diagonal indicates a random classifier. Figure from Ref. [17].

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. The student consists of three ingredients:

  • Input gate: Each of the 57 input features carries a learnable threshold in [0,1][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.

  • Symbolic layers: Each hidden layer first computes masked affine combinations of its inputs. Unary slots apply functions assigned from a fixed set of available functions to individual combinations, whereas each product slot multiplies a pair of combinations to generate cross-terms. Every weight and bias has an independent non-negative threshold and remains active only while its magnitude exceeds that threshold: a weight ww contributes to the network as wΘ(∣w∣−tw)w\Theta(|w|-t_w), where Θ\Theta is the Heaviside step function Θ(x)=1\Theta(x)=1 for x>0x>0 and 0 otherwise) and twt_w is its learnable threshold, following the dynamic-sparse-training masking scheme of Ref. [30] as adapted in SymbolNet. Operator slots have separate gates: closing a unary gate replaces its assigned function with the identity, while closing a binary gate replaces its operator with addition. The gates are evaluated by a hard step function in the forward pass, with the derivative of a sigmoid used as a smooth surrogate during backpropagation. In this paper, the binary thresholds are frozen, so all eight product slots in each hidden layer remain active.

  • Self-pruning through loss: During the adaptive pruning steps, sparsity regularisers drive the input gates, affine coefficients, and unary operator gates towards target sparsity fractions α\alpha. The learned thresholds determine which entries remain active during these steps. A subsequent

deterministic saliency-ranked cut enforces the final operation budget, after which the mask structure is frozen and the surviving coefficients are re-tuned. Binary gates remain open throughout.

The symbolic student has two hidden symbolic layers, each with 32 unary slots and eight product slots. Its architecture before and after pruning is summarised in Table 2.

PropertySymbolic student
As configured (before training)
hidden symbolic layers2
slots per layer (unary + product)32 + 8
available unary functions{id,x2,tanh⁡,e−x2,cos⁡}\{\mathrm{id}, x^2, \tanh, e^{-x^2}, \cos\}
available binary operation×\times
inputs offered57
After training and compression
expression size577 CSE operations
inputs read by the expression30 of 57

Table 2. Symbolic student: the network as configured before training (upper block) and the closed-form expression obtained after pruning and size-targeted compression (lower block). The slot counts and the function set are those made available to the optimiser; pruning selects a subset of them.

The operator set was chosen from exploratory runs with a broader collection of numerically stable functions. After pruning, tanh⁡\tanh and e−x2e^{-x^2} were consistently the most useful nonlinearities, while cos⁡\cos was retained less frequently; the remaining candidates provided little improvement after compression. The square is evaluated as clip⁡(x,−10,10)2\operatorname{clip}(x,-10,10)^2, a numerical guard of the SymbolNet implementation that is kept in the deployed expression, where it acts on the most anomalous events.

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.

Distillation target and loss function

For ranking-based anomaly detection, the relevant information in the teacher NLL is its position relative to the SM distribution, rather than its absolute numerical scale. Following Ref. [17], we therefore express each event in terms of its rank among the N=2.8MN = 2.8\mathrm{M} SM training events.

Let {xi}i=1N\{x_i\}_{i=1}^{N} denote the SM training sample and ℓ(x)\ell(x) the teacher NLL of an event. Each event is assigned the empirical cumulative distribution function (ECDF) value of its NLL over the SM training sample, and the upper-tail probability is mapped to a logarithmic scale. We use the same ECDF construction as Ref. [17] and define the tail score

t(x)=−log⁡10[1−min⁡(∣{i:ℓ(xi)<ℓ(x)}∣,N−1)+1N+1].(1)t(x)=-\log_{10}\left[1-\frac{\min\left(\left|\{i:\ell(x_i)<\ell(x)\}\right|,N-1\right)+1}{N+1}\right]. \tag*{(1)}

The clipping of the empirical rank at N−1N-1 prevents the argument of the logarithm from vanishing for events with an NLL larger than all values in the training sample, and bounds the score:

0<t(x)≤log⁡10(N+1)≈6.45for N=2.8×106.(2)0<t(x)\le\log_{10}(N+1)\approx6.45 \qquad\text{for }N=2.8\times10^{6}. \tag*{(2)}

The logarithmic map matters because the region relevant to a low-rate trigger is compressed into a narrow interval of ECDF values near one: SM tail probabilities of 10−310^{-3} and 10−510^{-5} correspond to ECDF values of 0.999 and 0.99999, respectively, whereas one unit of tt corresponds to one decade of SM tail probability. The four BSM benchmark samples exhibit enhanced populations in the high-tt region, as shown in Figure 2.

Figure 2. Teacher score distributions after the t=−log⁡10(1−ECDF)t=-\log_{10}(1-\mathrm{ECDF}) transformation for the SM test sample and the four anomaly benchmarks. The SM distribution decreases by one decade per unit of tt by construction, while all four signals extend into the high-tt tail.

The score tt 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. In the numerical evaluation, the AUC obtained from tt agrees with that obtained directly from the NLL to better than 10−710^{-7}.

The student is trained to regress the target y(x)=t(x)y(x)=t(x) of Eq. (1) with a scalar output z(x)z(x), which is used directly as the student anomaly score. The regression component of the loss is a tail-weighted Huber loss:

Lreg=⟨(1+βp(y)2)10γmax⁡(0,min⁡(y,ycap)−y0)H1(y−z)⟩events,\mathcal{L}_{\mathrm{reg}}=\left\langle\left(1+\beta p(y)^2\right)10^{\gamma\max(0,\min(y,y_{\mathrm{cap}})-y_0)}H_1(y-z)\right\rangle_{\mathrm{events}},
H1(e)={e2/2,∣e∣≤1,∣e∣−1/2,∣e∣>1.(3)H_1(e)= \begin{cases} e^2/2, & |e|\le1,\\ |e|-1/2, & |e|>1. \end{cases} \tag*{(3)}

where p(y)=1−10−yp(y)=1-10^{-y} is the ECDF value corresponding to the target, and ycap=5y_{\mathrm{cap}}=5 caps the target inside the exponent. The factor 1+βp(y)21+\beta p(y)^2 gives more weight to events in the anomalous tail. Since p(y)p(y) approaches one rapidly, however, this weighting becomes nearly constant for large yy and does not compensate for the decreasing number of SM events in the deepest part of the tail. We therefore introduce the additional factor 10γmax⁡(0,min⁡(y,ycap)−y0)10^{\gamma\max(0,\min(y,y_{\mathrm{cap}})-y_0)}. We set y0=3y_0=3, corresponding to an empirical SM tail probability of 10−310^{-3}, and γ=1\gamma=1. The additional weighting is therefore inactive for y≤3y \le3 and increases by a factor of ten per unit of yy beyond this point, compensating for the corresponding decrease in the number of SM training events. The cap at ycap=5y_{\mathrm{cap}}=5 bounds the per-event weight at about 200 if β=1\beta=1. For the same reason, the loss is accumulated in double precision: summing float32 contributions across a batch spanning this weight range was measurably noisy, whereas float64 accumulation removed the effect.

During the adaptive-pruning stages, the total loss additionally contains the SymbolNet sparsity regularisers for the input, coefficient, and unary-operator gates. The value of β\beta is varied across the training stages as described in Table 3, while y0=3y_0=3 and γ=1\gamma=1 are kept fixed. Training uses the Adam [29] optimiser with a gradient clip norm of 1.0 and only SM events, with the teacher scores serving as regression targets.

StepStageSymbolic student
1plain trainingβ=1\beta=1; 100 ep @ 1.2⋅10−31.2 \cdot10^{-3} + 60 @ 4⋅10−44 \cdot10^{-4} + 30 @ 1.2⋅10−41.2 \cdot10^{-4}; bs 2048
2light pruningβ=1\beta=1; α=(.35,.85,.50)\alpha=(.35,.85,.50); 70 ep; lr 10−310^{-3}; saliency guard (top 12)
3stronger pruningβ=1\beta=1; α=(.40,.93,.60)\alpha=(.40,.93,.60); 55 ep; lr 8⋅10−48 \cdot10^{-4}; saliency guard (top 12)
4reduction to sizeβ=2\beta=2; 7–15 % saliency-ranked cuts with 6-ep recoveries; CSE ≤626\le626
5fixed-structure retuningβ=3\beta=3; ≤90\le90 ep; lr 2⋅10−42 \cdot10^{-4}; bs 4096
6low-lr retuningβ=4\beta=4; ≤60\le60 ep; lr 6⋅10−56 \cdot10^{-5}; bs 4096

Table 3. Training steps and hyperparameters for the symbolic student. α=(αin,αw,αun)\alpha=(\alpha_{\mathrm{in}},\alpha_w,\alpha_{\mathrm{un}}) are the sparsity targets for input features, weights, and unary operators; products are never pruned. The retuning steps keep the checkpoint with the lowest SM validation loss (§ 6).

Training and pruning procedure

The symbolic student is trained in several stages, starting from the full network and gradually reducing it to the final expression. The hyperparameters used at each stage are listed in Table 3.

  1. Plain training (β=1\beta=1): we first train the full SymbolNet with all pruning masks open. This gives the model time to learn the teacher target before any sparsity is introduced.

  1. Light pruning (β=1\beta=1): we activate the trainable pruning thresholds and impose moderate sparsity targets on the input features, affine coefficients, and unary operators.

  1. Stronger pruning (β=1\beta=1): the sparsity targets are increased and training continues, progressively simplifying the resulting symbolic expression. The binary product slots are kept active throughout.

  1. Reduction to the target size (β=2\beta=2): the remaining expression is reduced through a sequence of small saliency-based cuts, each followed by a short recovery fit. The size target is set by a teacher–student agreement criterion computed on SM events only: we trained students at six size budgets and measured, at fixed background rates of 10−310^{-3}, 10−410^{-4}, and 10−510^{-5}, the fraction of teacher-selected SM events that each student also selects (see Figure 6 in Appendix § 13). The agreement at the two shallower rates saturates by roughly 500 operations, while the deepest rate continues to improve up to roughly 600 operations and flattens thereafter; we therefore chose CSE ≤626\le626 operations, the smallest tested budget at which all three working points have saturated. The evolution of the BSM performance along the compression path (Figure 8 in Appendix § 13) was examined only after this choice, as a diagnostic.

Figure 6. Teacher–student selection agreement versus expression size, on SM events only. Complete students were trained at six size budgets (five retrainings per budget, nine at the chosen one); each point is placed at the mean operation count of its budget, and the error bars give the spread across retrainings. At each background rate, teacher and student each select the same fraction of SM test events, and the vertical axis shows the fraction of the teacher-selected events that the student also selects. The dotted line marks the deployed size. The size target CSE ≤626\le626 is the smallest budget at which all three curves have flattened, with the deepest working point, 10−510^{-5}, saturating last.

Figure 8. AUC versus expression size along the symbolic student’s compression path for the four BSM benchmarks and their mean. Each point is evaluated after a pruning step and its short recovery fit. The star marks the fully retuned deployed expression, while the dashed horizontal line shows the teacher performance. Sizes are CSE-reduced operation counts.

The size-budget study uses SM validation and test samples to obtain sufficient event counts at background rates down to 10−510^{-5}; an independent cross-check on an additional 7.95 million previously unused SM events confirms the stability of the chosen budget.

  1. Fixed-structure retuning (β=3\beta=3): after reaching the target size, the pruning masks are frozen and only the surviving weights and biases are trained. We retain the checkpoint with the lowest regression loss on the SM validation sample.

  1. Low-learning-rate retuning (β=4\beta=4): finally, we perform one more fixed-structure fit at a lower learning rate to refine the remaining coefficients.

To avoid pruning parameters that are small in magnitude but might still be important for the model output, we use first-order saliency information during pruning. For the input features, we estimate the importance of xix_i using

⟨∣∂L∂xi∣⟩events(4)\left\langle\left|\frac{\partial\mathcal{L}}{\partial x_i}\right| \right\rangle_{\mathrm{events}} \tag*{(4)}

averaged over a batch of 8192 SM training events, recompute this ranking every ten epochs, and protect the twelve most salient inputs from pruning. During the final size reduction, coefficients are ranked using

∣w∂L∂w∣(5)\left|w\frac{\partial\mathcal{L}}{\partial w}\right| \tag*{(5)}

instead of ∣w∣|w| alone, with the loss evaluated on one such batch. Each epoch is trained on a fresh random subset of 300 000 events, independently redrawn from the 2.8M-event SM training sample at every epoch, so that no event is systematically excluded. Because the sparsity regularisers act on every minibatch, the pruning schedule of Table 3 is calibrated to the number of gradient updates rather than to the nominal epoch count: training on full-sample epochs at the same epoch counts would raise the number of updates, and hence the pruning pressure, roughly ninefold. We verified that the epoch size affects only training throughput and not the final model, by repeating training on the full sample with the epoch count rescaled to match the number of gradient updates.

Performance comparison

The performance of the symbolic student is summarised in Table 4, together with that of the RealNVP teacher and of the distilled MLP student of Ref. [17]. The teacher is evaluated with its tail score tt of Eq. (1) and the student with its output zz. In order to estimate the uncertainty associated with the choice of the training starting conditions, we vary the seed with respect to the nominal value. The quoted uncertainties are the root-mean-square (RMS) deviations of the results from four additional trainings relative to the nominal result, as in Ref. [17]. 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−510^{-5}. The event-level agreement is shown in Figure 3 and Figure 4. Figure 3 compares how the two models rank events. The student output zz is converted to a tail score tzt_z using the distribution of zz on SM events. The mean student tail score tzt_z follows the teacher tail score tt across the full range in all five samples. Figure 4 compares the scores directly. The residuals between zz and tt are narrow and centred at zero, with a larger spread in the sparsely populated high-score tail. The MLP student of Ref. [17], shown with the symbolic student in Figure 4, has a narrower residual core, whereas the symbolic student has fewer large residuals on A→4ℓA \to4\ell events.

Figure 3. Event-level tail-score calibration for the symbolic student on the SM test sample and four BSM benchmarks. Both scores are mapped through their own SM-training distributions to the log-survival scale, with the vertical axis showing the student tail score tz=−log⁡10(1−ECDF⁡z)t_z = -\log_{10}(1-\operatorname{ECDF}_z). The colour gives the number of events per bin, the red curve is the binned mean for bins containing at least 20 events, and the dashed line denotes identical ranking. Events beyond the SM-training range accumulate at log⁡10(N+1)≃6.45\log_{10}(N+1) \simeq6.45.

Distributions of teacher–student residuals for the MLP and symbolic students

Figure 4. Distributions of the residual steacher−sstudents_{\mathrm{teacher}} - s_{\mathrm{student}} for SM test events and the four anomaly benchmarks, for the MLP student of Ref. [17] (left) and the symbolic student (right), where steachers_{\mathrm{teacher}} is the teacher tail score tt and sstudents_{\mathrm{student}} the student output. The dashed vertical line marks perfect agreement.

SignalModelAUC10−210^{-2}10−310^{-3}10−410^{-4}10−510^{-5}
LQ →\to bτ\tauRealNVP teacher86.14 ±\pm 0.6513.52 ±\pm 0.151.66 ±\pm 0.050.21 ±\pm 0.010.054 ±\pm 0.012
LQ →\to bτ\tauDistilled MLP student86.09 ±\pm 0.6113.53 ±\pm 0.311.57 ±\pm 0.080.19 ±\pm 0.020.037 ±\pm 0.005
LQ →\to bτ\tauSymbolic student86.61 ±\pm 0.2414.26 ±\pm 0.301.99 ±\pm 0.240.21 ±\pm 0.030.073 ±\pm 0.012
A→4ℓA \to4\ellRealNVP teacher90.78 ±\pm 0.1740.52 ±\pm 0.9112.91 ±\pm 0.858.54 ±\pm 0.694.067 ±\pm 1.253
A→4ℓA \to4\ellDistilled MLP student90.66 ±\pm 0.1837.01 ±\pm 2.1212.45 ±\pm 1.347.52 ±\pm 0.463.104 ±\pm 0.230
A→4ℓA \to4\ellSymbolic student90.90 ±\pm 0.2241.59 ±\pm 2.6914.86 ±\pm 1.288.98 ±\pm 1.125.691 ±\pm 1.431
h0→ττh^0 \to\tau\tauRealNVP teacher73.99 ±\pm 0.9211.13 ±\pm 0.252.75 ±\pm 0.130.41 ±\pm 0.030.068 ±\pm 0.008
h0→ττh^0 \to\tau\tauDistilled MLP student74.00 ±\pm 0.9311.26 ±\pm 0.332.70 ±\pm 0.140.41 ±\pm 0.020.054 ±\pm 0.008
h0→ττh^0 \to\tau\tauSymbolic student74.51 ±\pm 0.1811.62 ±\pm 0.213.06 ±\pm 0.360.44 ±\pm 0.080.083 ±\pm 0.006
h±→τνh^\pm\to\tau\nuRealNVP teacher89.38 ±\pm 0.7620.66 ±\pm 1.272.70 ±\pm 0.210.27 ±\pm 0.030.051 ±\pm 0.009
h±→τνh^\pm\to\tau\nuDistilled MLP student89.33 ±\pm 0.7920.98 ±\pm 1.542.70 ±\pm 0.160.29 ±\pm 0.010.050 ±\pm 0.004
h±→τνh^\pm\to\tau\nuSymbolic student89.56 ±\pm 0.1921.41 ±\pm 0.813.18 ±\pm 0.410.27 ±\pm 0.080.063 ±\pm 0.006

Table 4. Floating-point anomaly-detection performance of the RealNVP teacher of Ref. [17], of the distilled MLP student of Ref. [17], and of the symbolic student obtained in this paper on the four BSM benchmarks. Values correspond to the nominal training and are given in percent; uncertainties represent the RMS deviations of the results from four additional independent trainings, performed with different random seeds, relative to the nominal result. The value and uncertainties of the teacher and MLP student are taken from Ref. [17].

The comparison with the distilled MLP of Ref. [17] is particularly direct, since both students use the same frozen teacher, the same distillation target, and the same data. Across the four benchmarks, the symbolic student achieves AUCs comparable to those of the distilled MLP and broadly comparable signal efficiencies at fixed false-positive rates.

The low-background region is shown in Figure 5, where the ROC curves are plotted on logarithmic axes, with the variation across retrainings shown as a band. The symbolic student follows the teacher closely over the full range of false-positive rates considered.

Figure 5. ROC curves of the RealNVP teacher and the deployed symbolic student on logarithmic axes for the four BSM benchmarks. The shaded bands show the RMS deviations of four additional trainings from the nominal curves. The quoted AUC uncertainties are defined in the same way. The central values and uncertainties of the teacher are taken from Ref. [17].

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. Since the student is an explicit formula, the retained inputs can be identified directly rather than inferred from an attribution method. Their distribution across the reconstructed physics objects and kinematic variables is shown in Figure 9 in Appendix § 14.

Figure 9. Input features appearing in the deployed symbolic expression, in the standard dataset ordering: 19 reconstructed objects (missing transverse energy, four electrons, four muons, ten jets), each described by (pT,η,ϕ)(p_T,\eta,\phi). Filled cells are read by the expression; 30 of the 57 available inputs survive. The η\eta component of the missing transverse energy is identically zero in the dataset and is never selected.

FPGA implementation and resource comparison

The deployed expression of Appendix § 15 is turned into firmware with the symbolic-expression backend of hls4ml [22, 32, 33] (version 1.3.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. This is the narrowest type for which, in a scan on the bit-accurate emulation of the generated C++, the AUC and the true-positive rates at background rates of 10−310^{-3} to 10−510^{-5} stay within 0.1 percentage points and 10%, respectively, of their floating-point values on every benchmark; with fewer integer bits the function arguments of the most anomalous events saturate and the deep-tail efficiency drops while the AUC is unchanged.

The hyperbolic tangent, the Gaussian e−u2e^{-u^2} and the cosine are read from 512-entry lookup tables, and the three remaining exponentials are evaluated with the HLS library. Each of the 280 multiplicative coefficients is rounded after training to the nearest value with at most two non-zero signed binary digits, so that every multiplication by a constant reduces to at most one shift-and-add; this lowers the number of adders for the constant multiplications from 600 to 255. Table 5 compares the floating-point expression with the bit-accurate emulation of the resulting fixed-point C++ on the full test statistics: the AUC changes by at most 0.13 percentage points, and the true-positive rates at background rates of 10−310^{-3} to 10−510^{-5} stay within 5% of their floating-point values.

SignalArithmeticAUC10−210^{-2}10−310^{-3}10−410^{-4}10−510^{-5}
LQ→bτLQ \to b\tauFloating point86.6114.261.990.2100.073
LQ→bτLQ \to b\tauFixed-point firmware86.4814.222.030.2100.070
A→4ℓA \to4\ellFloating point90.9041.5914.868.9765.691
A→4ℓA \to4\ellFixed-point firmware90.8941.6715.168.9985.578
h0→ττh^0 \to\tau\tauFloating point74.5111.623.060.4390.083
h0→ττh^0 \to\tau\tauFixed-point firmware74.4611.523.020.4390.080
h±→τνh^\pm\to\tau\nuFloating point89.5621.413.180.2680.063
h±→τνh^\pm\to\tau\nuFixed-point firmware89.4621.153.150.2670.060

Table 5. Anomaly-detection performance of the deployed symbolic student in floating-point arithmetic (as in Table 4) and of its fixed-point firmware (ap_fixed<20,10>, coefficients rounded to two signed digits), evaluated with the bit-accurate emulation of the generated C++ on the full test statistics. All values are given in percent.

The firmware is synthesised with AMD Vitis HLS 2025.1 as a fully pipelined design that accepts one event per clock cycle, and is taken through out-of-context (OOC) synthesis, placement and routing with Vivado 2025.1 targeting the Xilinx Virtex UltraScale+ VU13P (xcvu13p-flga2577-2-e) at a 200 MHz clock, the device and clock target of Ref. [17], with resource and timing reported from the tool report. The routed design meets the 200 MHz timing target. Its estimated post-route maximum clock frequency is 210.5 MHz, corresponding to a clock period of 4.751 ns. The nine-cycle latency is 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.

Table 6 places this result next to the MLP student of Ref. [17], implemented on the same device and with the same clock target as multiplier-free Verilog at three bit widths. The symbolic student needs 3.9 times fewer LUTs and 5.0 times fewer flipflops than the 8-bit MLP, the configuration that preserves the floating-point performance of that student, and fewer LUTs than even its 3-bit configuration. Unlike the MLP designs, it uses DSP slices, for the products between two variables and inside the exponential and cosine evaluations, and block RAMs, for the function tables. Since the two students are also implemented

ModelPrecisionFmax⁡F_{\max} [MHz]Latency at Fmax⁡F_{\max} [ns]DSPLUTFFBRAM
MLP student [17]3-bit221.127.1015 7208 1600
MLP student [17]4-bit222.227.0020 9546 8670
MLP student [17]8-bit211.851.9054 74023 6930
Symbolic student (this work)20-bit, 2-digit coefficients210.542.85414 0494 78513

Table 6. Post-route timing and resource usage on the Xilinx Virtex UltraScale+ VU13P. Latencies are reported at each design’s post-route Fmax⁡F_{\max}, following Ref. [17]. At the 200 MHz target clock frequency, the symbolic student’s nine-cycle latency is 45 ns.

with different flows, multiplier-free Verilog for the MLP and HLS for the symbolic student, the comparison indicates a favourable trade-off between resources and performance rather than an advantage in every hardware resource.

Conclusions

We have presented a pipeline for unsupervised anomaly detection at the LHC Level-1 Trigger in which the anomaly scores of the RealNVP normalising-flow teacher of Ref. [17] are distilled into a closed-form symbolic expression. Using SymbolNet [21], the student learns both the functional form of the expression and a sparse subset of the available trigger-level inputs. 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−510^{-5}. 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. In 20-bit fixed-point arithmetic with every coefficient rounded to two signed binary digits, the expression retains its floating-point performance to within 0.13 percentage points in AUC. The routed firmware on a Xilinx Virtex UltraScale+ VU13P processes one event per clock cycle and has a nine-cycle latency, corresponding to 42.8 ns at the estimated post-route maximum clock frequency. It uses 14 049 lookup tables, 4 785 flip-flops, 54 DSP slices and 13 block RAMs.

The closest comparison is with the MLP student of Ref. [17], which is distilled from the same frozen teacher using the same target and data partition. The symbolic student achieves performance comparable to that of the teacher and the distilled MLP across the four benchmarks. The symbolic student reads 30 rather than 57 inputs and contains 577 operations against the 7 808 dense weight multiplications of the MLP. On the same device and at the same clock target, its firmware uses 3.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.

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.

Funding

Roope Oskari Niemi acknowledges funding from the Eric & Wendy Schmidt Fund for Strategic Innovation through the CERN Next Generation Triggers project under Grant Agreement No. SIF-2023-004.

Chang Sun is partially supported by United States DoE (grant numbers DE-SC0011925, DE-FOA-0002705) and NSF (grant numbers PHY240298, PHY2117997).

Acknowledgements

A first draft of this paper was generated with the assistance of Anthropic’s Claude, based on existing code, a technical document, and a set of publications on related FPGA toolflows. The draft was subsequently reviewed and edited by the authors. OpenAI ChatGPT has been used for a final editorial check. Anthropic’s Claude and OpenAI ChatGPT were also used, under the authors’ supervision, to assist with code development. All AI-assisted code was reviewed and validated by the authors.

Data availability

The LHC benchmark datasets used in this work are publicly available on Zenodo [24, 25, 26, 27]. The deployed expression is given in Appendix § 15 and, at full precision, at https://github.com/jusbol/symbolic-student-expression.

Choice of the expression size and compression path

The expression size was fixed before any signal sample was examined. Figure 6 shows the criterion: teacher–student selection agreement on SM events as a function of the size budget. The agreement at background rates of 10−310^{-3} and 10−410^{-4} saturates by roughly 500 operations, while the 10−510^{-5} working point continues to improve up to roughly 600 operations; the target CSE ≤626\le626 is the smallest budget beyond which no working point improves further.

The error bars in Figure 6 give the spread across retrainings: at the chosen budget the agreement is 0.75±0.110.75 \pm0.11 at a background rate of 10−310^{-3}, 0.58±0.090.58 \pm0.09 at 10−410^{-4}, and 0.56±0.080.56 \pm0.08 at 10−510^{-5}.

As a further cross-check, Figure 7 shows the mean relative residual between the student output and the teacher score as a function of the teacher score, for the chosen budget and its two neighbours. In the high-score region, t≳4t \gtrsim4, the chosen and the larger budget agree within the statistical uncertainties, while the smaller budget lies slightly lower in the two highest bins.

Figure 7. Mean relative residual (z−t)/t(z-t)/t between the student output zz and the teacher score tt as a function of tt, on SM test events, for the selected size budget (CSE ≤626\le626) and for the neighbouring smaller and larger budgets, obtained from the same training. The error bars give the statistical uncertainty of the mean in each bin. The region t<0.25t < 0.25, where the denominator approaches zero, is not shown.

Figure 8 traces the compression path followed during the size-targeted pruning stages. The AUC values shown here were obtained only after the size target had been fixed with the SM-only criterion above; the figure is reported as a diagnostic of the pruning procedure, and no BSM information entered the size choice. The deployed model is the fully retuned expression marked by the star.

Input features of the deployed expression

Figure 9 shows which inputs the deployed expression reads. The selection concentrates on transverse momenta and retains the missing-transverse-energy magnitude, consistent with the saliency ranking observed during training.

Closed-form symbolic-student expression

The complete deployed formula of the symbolic student is reproduced below with coefficients rounded to three significant digits (xix_i denotes the ii-th standardised input feature; the deployed version uses full precision). The complete expression, with full-precision coefficients and the input standardisation constants, is available at https://github.com/jusbol/symbolic-student-expression. Common subexpressions are named uju_j; the final sum is split into the print-only groups $z_A and zBz_{\mathrm{B}}; and gauss⁡(u)\operatorname{gauss}(u) denotes e−u2e^{-u^2}; every square is evaluated with its argument clipped to [−10,10][-10,10], as in training (§ 4). The displayed equations are the entire trigger algorithm:

u0=gauss⁡(0.646−1.15x33)u1=tanh⁡(−0.124x21−0.269x3+0.184x30+0.145x36+0.269x6)u2=tanh⁡(0.348x36+0.378x39+0.0932x42+1.7x6−0.375x9+0.207)u3=tanh⁡(0.504x18−0.000695x27−0.175x3+0.121x30−0.154x33+1.35x6+0.16)u4=cos⁡(−0.233x10+0.383x13+0.479x22−0.189x23−0.203x24+0.455x30+0.15x51)u5=tanh⁡(0.0363x15+0.0452x3+0.0483x30+0.647x33+0.538x36+0.763x39−0.162x9−0.389)u6=(0.235x17+0.249x5)2u7=cos⁡(−0.294x22−0.281x24−0.334x4−0.155x45−0.147x47+0.304x50−0.194x51−0.124x53+0.164x9)u8=x36u9=cos⁡(−0.147x10+0.117x11+0.138x15+0.218x21+0.3x22−0.263x3−0.31x39+0.153x50+0.00512)u10=cos⁡(−0.426x0−0.424x10+0.0999x2+0.136x21)u11=gauss⁡(1.18x6−0.738)u12=gauss⁡(−0.00296x16+1.21x3−0.88x6+0.415)u13=(0.693x15+0.45x18)(−0.584x3−0.481x6−0.22)u14=(0.543x15+0.592x18+0.028x36)(−0.0095x0−0.573x3−0.0969x39−0.763x6)u15=gauss⁡(1.26x15+0.425)u16=cos⁡(0.31x10−0.262x11+0.141x21−0.471x22)u17=tanh⁡(0.0542x15+1.79x18−0.227x3+0.341x39+0.0895)u18=gauss⁡(−1.48x30)\begin{aligned} u_0 &= \operatorname{gauss}(0.646-1.15x_{33})\\ u_1 &= \tanh(-0.124x_{21}-0.269x_3+0.184x_{30}+0.145x_{36}+0.269x_6)\\ u_2 &= \tanh(0.348x_{36}+0.378x_{39}+0.0932x_{42}+1.7x_6-0.375x_9+0.207)\\ u_3 &= \tanh(0.504x_{18}-0.000695x_{27}-0.175x_3+0.121x_{30}-0.154x_{33}+1.35x_6+0.16)\\ u_4 &= \cos(-0.233x_{10}+0.383x_{13}+0.479x_{22}-0.189x_{23}-0.203x_{24}+0.455x_{30}+0.15x_{51})\\ u_5 &= \tanh(0.0363x_{15}+0.0452x_3+0.0483x_{30}+0.647x_{33}+0.538x_{36}+0.763x_{39}-0.162x_9-0.389)\\ u_6 &= (0.235x_{17}+0.249x_5)^2\\ u_7 &= \cos(-0.294x_{22}-0.281x_{24}-0.334x_4-0.155x_{45}-0.147x_{47}+0.304x_{50}-0.194x_{51}-0.124x_{53}+0.164x_9)\\ u_8 &= x_{36}\\ u_9 &= \cos(-0.147x_{10}+0.117x_{11}+0.138x_{15}+0.218x_{21}+0.3x_{22}-0.263x_3-0.31x_{39}+0.153x_{50}+0.00512)\\ u_{10} &= \cos(-0.426x_0-0.424x_{10}+0.0999x_2+0.136x_{21})\\ u_{11} &= \operatorname{gauss}(1.18x_6-0.738)\\ u_{12} &= \operatorname{gauss}(-0.00296x_{16}+1.21x_3-0.88x_6+0.415)\\ u_{13} &= (0.693x_{15}+0.45x_{18})(-0.584x_3-0.481x_6-0.22)\\ u_{14} &= (0.543x_{15}+0.592x_{18}+0.028x_{36})(-0.0095x_0-0.573x_3-0.0969x_{39}-0.763x_6)\\ u_{15} &= \operatorname{gauss}(1.26x_{15}+0.425)\\ u_{16} &= \cos(0.31x_{10}-0.262x_{11}+0.141x_{21}-0.471x_{22})\\ u_{17} &= \tanh(0.0542x_{15}+1.79x_{18}-0.227x_3+0.341x_{39}+0.0895)\\ u_{18} &= \operatorname{gauss}(-1.48x_{30}) \end{aligned}
z=zA+zBzA=0.0271u2+0.0443u3+0.0532u5+0.00287x12+0.00352x18+0.000643x21+0.000944x3+0.00237x51+0.00441x6+0.137gauss⁡(−0.676u6)−0.067x15−1.67x27−0.0902x3−0.156x30−0.777+0.0936gauss⁡(−0.582u10)+0.159u12−0.312u13−0.152u14+0.157u4+0.477u6+0.0736u7+0.213x15+0.0653x2x5+0.368x27+0.287x3+0.495x30+0.278+0.132gauss⁡(−0.495u1)−0.182x12+0.00742x15−0.223x18−0.0408x21−0.235x24−0.0599x3−0.0561x42−0.104x45+0.000993x50−0.15x51−0.28x6−0.0606x9−0.043+0.617tanh⁡(0.0315u0+0.0158u12−0.356u13−0.417u14+0.14u15+0.0602u16+0.103u18+0.156u4+0.151u5+0.0974u7+0.126x12+0.281x15+0.235x18+0.0283x21+0.163x24+0.0787x27+0.267x3+0.217x30+0.0302x33+0.0389x42+0.0719x45+0.104x51+0.316x6+0.201x9+0.216)+0.601tanh⁡(0.0535u11−0.0808u13−0.177u14+0.0814u15−0.158u16+0.351u17+0.0655u18−0.176u1+0.356u2+0.0793u4−0.154u7−0.00114u8+0.102x12+0.108x15−0.0573x18+0.0228x21+0.131x24+0.00613x27+0.127x3+0.0533x30+0.0413x33+0.0342x36+0.0399x4(0.433x16+0.306x4)+0.0313x42+0.0579x45+0.0838x51+0.0431x6+0.117x9)+0.262tanh⁡(−0.00304x30+0.913x36+0.13x9)−0.0852+0.329\begin{aligned} z &= z_{\mathrm{A}}+z_{\mathrm{B}}\\ z_{\mathrm{A}} &= 0.0271u_2+0.0443u_3+0.0532u_5+0.00287x_{12}+0.00352x_{18}+0.000643x_{21}+0.000944x_3+0.00237x_{51}+0.00441x_6+0.137\operatorname{gauss}(-0.676u_6)\\ &\quad-0.067x_{15}-1.67x_{27}-0.0902x_3-0.156x_{30}-0.777+0.0936\operatorname{gauss}(-0.582u_{10})+0.159u_{12}-0.312u_{13}-0.152u_{14}+0.157u_4+0.477u_6+0.0736u_7\\ &\quad+0.213x_{15}+0.0653x_2x_5+0.368x_{27}+0.287x_3+0.495x_{30}+0.278+0.132\operatorname{gauss}(-0.495u_1)-0.182x_{12}+0.00742x_{15}-0.223x_{18}\\ &\quad-0.0408x_{21}-0.235x_{24}-0.0599x_3-0.0561x_{42}-0.104x_{45}+0.000993x_{50}-0.15x_{51}-0.28x_6-0.0606x_9-0.043\\ &\quad+0.617\tanh(0.0315u_0+0.0158u_{12}-0.356u_{13}-0.417u_{14}+0.14u_{15}+0.0602u_{16}+0.103u_{18}+0.156u_4+0.151u_5+0.0974u_7\\ &\qquad+0.126x_{12}+0.281x_{15}+0.235x_{18}+0.0283x_{21}+0.163x_{24}+0.0787x_{27}+0.267x_3+0.217x_{30}+0.0302x_{33}+0.0389x_{42}+0.0719x_{45}+0.104x_{51}+0.316x_6+0.201x_9+0.216)\\ &\quad+0.601\tanh(0.0535u_{11}-0.0808u_{13}-0.177u_{14}+0.0814u_{15}-0.158u_{16}+0.351u_{17}+0.0655u_{18}-0.176u_1+0.356u_2+0.0793u_4-0.154u_7\\ &\qquad-0.00114u_8+0.102x_{12}+0.108x_{15}-0.0573x_{18}+0.0228x_{21}+0.131x_{24}+0.00613x_{27}+0.127x_3+0.0533x_{30}+0.0413x_{33}+0.0342x_{36}\\ &\qquad+0.0399x_4(0.433x_{16}+0.306x_4)+0.0313x_{42}+0.0579x_{45}+0.0838x_{51}+0.0431x_6+0.117x_9)\\ &\quad+0.262\tanh(-0.00304x_{30}+0.913x_{36}+0.13x_9)-0.0852+0.329 \end{aligned}
zB=0.0153u0−0.0454u1−0.00717u4−0.00972u7−0.000117x15+0.0037x24+0.000884x42+0.00163x45+0.000955x9−0.0569gauss⁡(0.636u1−0.332u4+0.00214u8−0.284u9−0.166)−0.732tanh⁡(0.159u10−0.126u13−0.122u6−0.0183x12+0.000748x15−0.0225x18−0.00412x21−0.0237x24−0.00604x3−0.00566x42−0.0105x45−0.0151x51−0.0282x6−0.00612x9−0.00434)+0.457tanh⁡(0.385u11+0.194u1+0.131u4+0.245x12−0.00999x15+0.301x18+0.055x21+0.316x24+0.0807x3+0.0756x42+0.14x45+0.202x51+0.377x6+0.0817x9+0.0579)−0.748tanh⁡(−0.168u10+0.0545u15+0.186u16+0.294u17−0.00532u17u3−0.0886u15+0.115u7−0.0669u1+0.0669u0+0.0187x12+0.000765x15−0.0023x18−0.00412x21−0.002421x24−0.00617x3−0.00578x42−0.0107x45−0.0155x51−0.0288x6−0.00625x9+0.232)−0.568tanh⁡(−0.154u0+0.447u10−0.196u11−0.612u12−0.42u15−0.229u16−0.37u17−0.308u18−0.184u4−0.167u5−0.0874u7−0.326x12−0.18x15−0.39x18−0.0731x21−0.42x24−0.334x27−0.355x3−0.449x30+0.0208x33+0.028x36−0.1x42−0.186x45−0.269x51−0.501x6−0.109x9−0.429(0.339x16−0.207x4)2−0.425).\begin{aligned} z_{\mathrm{B}} &= 0.0153u_0-0.0454u_1-0.00717u_4-0.00972u_7-0.000117x_{15}+0.0037x_{24}+0.000884x_{42}+0.00163x_{45}+0.000955x_9\\ &\quad-0.0569\operatorname{gauss}(0.636u_1-0.332u_4+0.00214u_8-0.284u_9-0.166)-0.732\tanh(0.159u_{10}-0.126u_{13}-0.122u_6-0.0183x_{12}+0.000748x_{15}\\ &\qquad-0.0225x_{18}-0.00412x_{21}-0.0237x_{24}-0.00604x_3-0.00566x_{42}-0.0105x_{45}-0.0151x_{51}-0.0282x_6-0.00612x_9-0.00434)\\ &\quad+0.457\tanh(0.385u_{11}+0.194u_1+0.131u_4+0.245x_{12}-0.00999x_{15}+0.301x_{18}+0.055x_{21}+0.316x_{24}+0.0807x_3+0.0756x_{42}\\ &\qquad+0.14x_{45}+0.202x_{51}+0.377x_6+0.0817x_9+0.0579)-0.748\tanh(-0.168u_{10}+0.0545u_{15}+0.186u_{16}\\ &\qquad+0.294u_{17}-0.00532u_{17}u_3-0.0886u_{15}+0.115u_7-0.0669u_1+0.0669u_0+0.0187x_{12}+0.000765x_{15}-0.0023x_{18}-0.00412x_{21}\\ &\qquad-0.002421x_{24}-0.00617x_3-0.00578x_{42}-0.0107x_{45}-0.0155x_{51}-0.0288x_6-0.00625x_9+0.232)\\ &\quad-0.568\tanh(-0.154u_0+0.447u_{10}-0.196u_{11}-0.612u_{12}-0.42u_{15}-0.229u_{16}-0.37u_{17}-0.308u_{18}\\ &\qquad-0.184u_4-0.167u_5-0.0874u_7-0.326x_{12}-0.18x_{15}-0.39x_{18}-0.0731x_{21}-0.42x_{24}-0.334x_{27}-0.355x_3-0.449x_{30}\\ &\qquad+0.0208x_{33}+0.028x_{36}-0.1x_{42}-0.186x_{45}-0.269x_{51}-0.501x_6-0.109x_9-0.429(0.339x_{16}-0.207x_4)^2-0.425). \end{aligned}

The output zz approximates the score t=−log⁡10(1−ECDF)t=-\log_{10}(1-\mathrm{ECDF}) and is thresholded directly. The deployed full-precision form has 577 operations after common-subexpression elimination.

References

  1. [1]ATLAS Collaboration, “The ATLAS Experiment at the CERN Large Hadron Collider”, JINST 3 (2008) S08003, doi:10.1088/1748-0221/3/08/S08003.
  2. [2]CMS Collaboration, “The CMS Experiment at the CERN LHC”, JINST 3 (2008) S08004, doi:10.1088/1748-0221/3/08/S08004.
  3. [3]CMS Collaboration, “Performance of the CMS Level-1 trigger in proton-proton collisions at √s = 13 TeV”, JINST 15 (2020), no. 10, P10017, doi:10.1088/1748-0221/15/10/P10017.DOI
  4. [4]CMS Collaboration, “The Phase-2 Upgrade of the CMS Level-1 Trigger”, technical report, CERN, 2020. cds:2714892.
  5. [5]G. Kasieczka et al., “The LHC Olympics 2020: a community challenge for anomaly detection in high energy physics”, Rept. Prog. Phys. 84 (2021), no. 12, 124201, doi:10.1088/1361-6633/ac36b9, arXiv:2101.08320.DOI
  6. [6]T. Aarrestad et al., “The Dark Machines Anomaly Score Challenge”, SciPost Phys. 12 (2022), no. 1, 043, doi:10.21468/SciPostPhys.12.1.043, arXiv:2105.14027.DOI
  7. [7]D. P. Kingma and M. Welling, “Auto-Encoding Variational Bayes”, arXiv:1312.6114.arxiv.org/abs/1312.6114
  8. [8]O. Cerri et al., “Variational autoencoders for new physics mining at the Large Hadron Collider”, JHEP 05 (2019) 036, doi:10.1007/JHEP05(2019)036, arXiv:1811.10276.DOI
  9. [9]O. Knapp et al., “Adversarially Learned Anomaly Detection on CMS Open Data: re-discovering the top quark”, arXiv:2005.01598.arxiv.org/abs/2005.01598
  10. [10]E. Govorkova et al., “Autoencoders on FPGAs for real-time, unsupervised new physics detection at 40 MHz at the LHC”, Nature Mach. Intell. 4 (2022), no. 2, 154–161, doi:10.1038/s42256-022-00441-3, arXiv:2108.03986.DOI
  11. [11]A. Gandrakota, “Real-time Anomaly Detection at the L1 Trigger of CMS Experiment”, arXiv:2411.19506.arxiv.org/abs/2411.19506
  12. [12]M. M. Cohen et al., “GELATO: a Generic Event-Level Anomalous Trigger Option for ATLAS”. CERN CDS record, 2025. cds:2938881.
  13. [13]F. Vaselli et al., “It’s not a FAD: first demonstration of flows for unsupervised anomaly detection at 40 MHz for use at the Large Hadron Collider”, Mach. Learn. Sci. Tech. 7 (2026), no. 2, 025052, doi:10.1088/2632-2153/ae51dd, arXiv:2508.11594.DOI
  14. [14]A. A. Polet al., “Knowledge Distillation for Anomaly Detection”, 2023.
  15. [15]G. Hinton, O. Vinyals, and J. Dean, “Distilling the Knowledge in a Neural Network”, arXiv:1503.02531.arxiv.org/abs/1503.02531
  16. [16]L. Gerlach, E. Kauffmann, and A. Mallampalli, “Evaluation of Novel Fast Machine Learning Algorithms for Knowledge-Distillation-Based Anomaly Detection at CMS”, arXiv:2510.15672.arxiv.org/abs/2510.15672
  17. [17]J. Abson et al., “Knowledge Distillation of a Normalising Flow for Real-Time Anomaly Detection at LHC Level-1 Trigger”, arXiv:2609.15295.arxiv.org/abs/2609.15295
  18. [18]T. P. A. Tahseen, N. Clarke Hall, N. Konstantinidis, and P. Martínez Suárez, “Distilling Normalizing Flows for Real-Time Anomaly Detection at the LHC”, arXiv:2608.19912.arxiv.org/abs/2608.19912
  19. [19]M. Schmidt and H. Lipson, “Distilling Free-Form Natural Laws from Experimental Data”, Science 324 (2009), no. 5923, 81–85, doi:10.1126/science.1165893.DOI
  20. [20]M. Cranmer et al., “Discovering Symbolic Models from Deep Learning with Inductive Biases”, in Advances in Neural Information Processing Systems 33 (NeurIPS 2020). 2020. arXiv:2006.11287.arxiv.org/abs/2006.11287
  21. [21]H. F. Tsoi, V. Loncar, S. Dasu, and P. Harris, “Symbolic neural regression with adaptive dynamic pruning for compression”, Mach. Learn. Sci. Tech. 6 (2025), no. 1, 015021, doi:10.1088/2632-2153/adaad8, arXiv:2401.09949.DOI
  22. [22]H. F. Tsoi et al., “Symbolic Regression on FPGAs for Fast Machine Learning Inference”, EPJ Web Conf. 295 (2024) 09036, doi:10.1051/epjconf/202429509036, arXiv:2305.04099.DOI
  23. [23]T. Aarrestad et al., “Unsupervised New Physics Detection at 40 MHz: Training Dataset”, 2021. doi:10.5281/zenodo.5046428.arxiv.org/abs/2107.02157
  24. [24]T. Aarrestad et al., “Unsupervised New Physics detection at 40 MHz: LQ → bτ Signal Benchmark Dataset”, 2021. doi:10.5281/zenodo.7152599.DOI
  25. [25]T. Aarrestad et al., “Unsupervised New Physics detection at 40 MHz: A → 4ℓ Signal Benchmark Dataset”, 2021. doi:10.5281/zenodo.5046445.DOI
  26. [26]T. Aarrestad et al., “Unsupervised New Physics detection at 40 MHz: h⁰ → ττ Signal Benchmark Dataset”, 2021. doi:10.5281/zenodo.5061632.DOI
  27. [27]T. Aarrestad et al., “Unsupervised New Physics detection at 40 MHz: h± → τν Signal Benchmark Dataset”, 2021. doi:10.5281/zenodo.5061687.DOI
  28. [28]E. Govorkova et al., “LHC physics dataset for unsupervised New Physics detection at 40 MHz”, arXiv:2107.02157.arxiv.org/abs/2107.02157
  29. [29]D. P. Kingma and J. Ba, “Adam: A Method for Stochastic Optimization”, arXiv:1412.6980.arxiv.org/abs/1412.6980
  30. [30]J. Liu et al., “Dynamic Sparse Training: Find Efficient Sparse Network From Scratch With Trainable Masked Layers”, arXiv:2005.06870.arxiv.org/abs/2005.06870
  31. [31]A. Meurer et al., “SymPy: symbolic computing in Python”, PeerJ Comput. Sci. 3 (2017) e103, doi:10.7717/peerj-cs.103.DOI
  32. [32]J. Duarte et al., “Fast inference of deep neural networks in FPGAs for particle physics”, JINST 13 (2018), no. 07, P07027, doi:10.1088/1748-0221/13/07/P07027, arXiv:1804.06913.DOI
  33. [33]J.-F. Schulte et al., “hls4ml: A Flexible, Open-Source Platform for Deep Learning Acceleration on Reconfigurable Hardware”, arXiv:2512.01463.arxiv.org/abs/2512.01463

Paper details

vlnc:W_5ew9ezsa
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY-SA 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Anthropic’s Claude, OpenAI ChatGPT

View statement
Looking for related papers…
Contents