<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Anomalous jet identification via sequence modeling</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>08/01/2021</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10335601</idno>
					<idno type="doi">10.1088/1748-0221/16/08/P08012</idno>
					<title level='j'>Journal of Instrumentation</title>
<idno>1748-0221</idno>
<biblScope unit="volume">16</biblScope>
<biblScope unit="issue">08</biblScope>					

					<author>A. Kahn</author><author>J. Gonski</author><author>I. Ochoa</author><author>D. Williams</author><author>G. Brooijmans</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[This paper presents a novel method of searching for boosted hadronically decaying objects by treating them as anomalous elements of a contaminated dataset. A Variational Recurrent Neural Network (VRNN) is used to model jets as sequences of constituent four-vectors. After applying a pre-processing method which boosts each jet to the same reference mass, energy, and orientation, the VRNN provides each jet an Anomaly Score that distinguishes between the structure of signal and background jets. The model is trained in an entirely unsupervised setting and without high level variables, making the score more robust against mass and ? ) correlations when compared to methods based primarily on jet substructure. Performance is evaluated on the jet level, as well as in an analysis context by searching for a heavy resonance with a final state of two boosted jets. The Anomaly Score shows consistent performance along a wide range of signal contamination amounts, for both two and three-pronged jet substructure hypotheses. Analysis results demonstrate that the use of Anomaly Score as a classifier enhances signal sensitivity while retaining a smoothly falling background jet mass distribution. The model's discriminatory performance resulting from an unsupervised training scenario opens up the possibility to train directly on data without a pre-defined signal hypothesis.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Many of the open questions in physics, such as the nature of dark matter or the origin of the universe's matter-antimatter asymmetry, could potentially be addressed by the ATLAS and CMS experiments at the CERN Large Hadron Collider (LHC). Since the discovery of the Higgs boson in 2012 <ref type="bibr">[1,</ref><ref type="bibr">2]</ref>, no signals of new beyond the Standard Model (BSM) physics have been found. However, sophisticated analysis tools utilizing novel machine learning models hold promise to increase the sensitivity to rare signals.</p><p>While many machine learning applications at the LHC focus on classifying established signatures, such as top quarks or Higgs bosons, there are a number of emerging techniques aimed at the discovery of new particles. Many of these techniques use classifier models to search for particular model hypotheses, by training and evaluating a model using Monte Carlo simulation of the BSM signal. While these models show promising performance, they are developed to identify a specific model hypothesis, and often have little to no sensitivity to other models. In addition, they are subject to inaccuracies between simulated samples and data, such as those which occur in the non-perturbative regime of Quantum Chromodynamics (QCD) processes.</p><p>One way to circumvent these issues is to develop a model that trains directly on data, without requiring the need for simulated inputs. Distinguishing new physics from Standard Model background at the LHC without a signal hypothesis is a novel and promising e ort <ref type="bibr">[3]</ref><ref type="bibr">[4]</ref><ref type="bibr">[5]</ref><ref type="bibr">[6]</ref><ref type="bibr">[7]</ref>. This paper demonstrates a way to identify BSM signals that present as anomalous substructure in jets using unsupervised, data-driven anomaly detection.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2021">JINST 16 P08012</head><p>Anomaly detection refers to a process in which anomalous elements are identified within a dataset that is mostly homogenous, but contaminated with outliers. In a machine learning context, this can be done with a model that learns an underlying distribution of data points, as characterized by high-level features of the data. Such a model can then identify out-of-distribution data solely on how poorly they are represented by the learned underlying distribution. Several candidate architectures have been developed for this purpose, and are described in the following subsections. The examination of their features is instructive in choosing an architecture for the task of anomalous jet identification.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1">Autoencoders</head><p>A popular candidate architecture for anomaly detection is the autoencoder (AE) <ref type="bibr">[8]</ref>, which has been previously studied in a particle physics context <ref type="bibr">[3,</ref><ref type="bibr">4]</ref>. Autoencoders are an example of a generative model in which a network is trained to reconstruct a given input. Figure <ref type="figure">1</ref> shows an example of a standard AE architecture.</p><p>A key feature of autoencoders is a latent layer in the center of the architecture which is often of a lower dimensionality than the input, directly restricting the network's ability to perfectly reconstruct its input. In such a case, the network achieves its training goal best when it can represent high-level features of the input as vectors, or 2&gt;34B, in its latent space. The accuracy with which each code represents the input can be verified by decoding it, and comparing its result with the original input. In this way, the AE is considered to act as two neural networks being trained in parallel: an 4=2&gt;34A network 5 which acts as the map from data to the latent space, z = 5 (x), and a 342&gt;34A network 6 which then attempts to reconstruct the original input from its encoded representation, y = 6(z). The loss function of the AE can be any function of the form L(x, y) = 6( 5 (x)), which is minimal when y = x. A common choice is the Mean Squared Error (MSE) between the input and output of the autoencoder:</p><p>In the context of anomaly detection, elements which represent a small portion of a dataset will contribute less during the training process. As a result, they will be less represented by the learned codes when compared to elements belonging to the majority of the data. One can therefore expect the reconstruction of anomalous elements to be worse, placing them in the tails of the loss function's distribution after training. This principle has been explored in anomalous jet tagging, for instance by representing the jets as images <ref type="bibr">[4]</ref>, or as lists of constituents <ref type="bibr">[3]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.2">Variational Autoencoders</head><p>Variational Autoencoders (VAEs) are built on the idea of standard AEs, with the extension that they are designed to perform Bayesian inference. This assumes that observed data x is generated by some hidden random variable z whose posterior distribution ?(z|x) is intractable. The goal of a VAE is to learn an approximate posterior distribution, @(z|x), through training.</p><p>The architecture of a VAE, as shown in figure <ref type="figure">2</ref>, is very close to that of a standard AE. The main di erence is a latent space that can accommodate an encoder which maps data to a distribution in the latent space rather than a single vector. A common choice for the form of the latent space is a multivariate Gaussian of diagonal covariance. In this case, the encoder can map a given input to two independent layers, each with the same dimensionality as the latent space. One of these layers represents the means of the encoded Gaussian distribution while the other represents the respective standard deviations for each dimension. Decoding then requires sampling from this resulting distribution. This can be easily performed in the case of a Gaussian approximate posterior by use of the reparameterization trick. Instead of sampling the distribution directly, a particular value of z can be represented in the following way:</p><p>where n is sampled from a unit isotropic normal distribution n &#8672; N (0, 1) <ref type="bibr">[9]</ref>. The VAE loss function includes both a reconstruction error term as well as an additional Kullback-Leibler (KL)-Divergence term from a chosen prior distribution ?(z) to the approximate posterior distribution @(z|x):</p><p>For the prior, it is common to choose a unit isotropic Gaussian centered at the origin, as the KL-Divergence from a Gaussian prior to a Gaussian approximate posterior takes on a closed form solution <ref type="bibr">[10]</ref>.</p><p>Variational Autoencoders provide a number of improvements over standard Autoencoders, both as generative models <ref type="bibr">[9]</ref> and as anomaly detection tools <ref type="bibr">[11]</ref>. The inclusion of a KL-Divergence term in the loss function motivates the architecture to more appropriately model unique classes of data. It also acts as another discriminatory metric, as anomalous elements are expected to have both a large reconstruction error and a large KL-Divergence when compared to nominal elements.</p><p>While VAEs have shown promise in the task of jet-level anomaly detection, they have a number of drawbacks. Most notably, VAEs are a fixed-length architecture, and cannot accommodate a variable number of inputs. When modeling jets via their constituent four-vectors, it becomes necessary to only process at most # constituents, and zero-pad the input layer when processing a jet with a number of constituents less than #. In classifier models, this is common and benign, as the loss function depends only on the output of the network and the ground truth that it is trying to reproduce. However, in a VAE, the input layer's neuron values are a part of its loss function (due to the MSE loss between the input and output layers). Therefore, the zero padded elements directly correlate with the value of the loss function. This introduces a direct correlation between the VAE loss and the number of constituents in the input jet, which can be di cult to remove.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2021">JINST 16 P08012</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Variational Recurrent Neural Network</head><p>A recurrent architecture naturally circumvents this drawback since it is designed to accommodate inputs of varying length. In a Recurrent Neural Network (RNN), data is input as a sequence of features. Each feature has the same fixed dimensionality, yet the sequence itself can vary in length.</p><p>The RNN is comprised of a chain of small fixed architectures, or cells, which expect as inputs the fixed-length feature at each element, or time-step, in the sequence. While processing the sequence, the RNN updates a hidden state at each time-step, which is carried over and accessed by the cell during the following time-step. The hidden state stores a long-term representation of information within the sequence, and is the key feature allowing RNNs to process sequential data of varying length. The RNN cell then acts as an encoder-decoder architecture which inputs the current timestep's feature and hidden state, and outputs an updated hidden state, along with an output feature if desired. In the interest of performing anomaly detection using a recurrent architecture, the model in this study has been chosen to be one which combines the recurrent property of RNNs with the VAE's ability to perform variational inference. The Variational Recurrent Neural Network (VRNN) used in this study is a sequence modeling architecture which replaces the encoder-decoder step of a traditional RNN with a VAE. An illustration of one VRNN cell can be seen in figure <ref type="figure">3</ref>. In this model, the VAE's input at each time-step is given as the vector G(C), which is then encoded and decoded into an output vector H(C) which can be compared to G(C) via the reconstruction loss. The q G and q I layers represent feature-extracting 2021 JINST 16 P08012 layers, which are interpreted as learned representations of the features of the input G(C) and the encoded latent space distribution I(C), respectively. After each time-step, the hidden state is updated via a recurrence relation, in which the current hidden state &#8984;(C 1) and the current set of extracted features q G and q I produce an updated hidden state &#8984;(C) via the following equation <ref type="bibr">[12]</ref>:</p><p>(2.1)</p><p>Performing this particular step is the primary function of traditional RNN architectures <ref type="bibr">[13,</ref><ref type="bibr">14]</ref>.</p><p>The VAE present in each cell of the VRNN notably di ers from conventional VAEs in the following ways:</p><p>1. The encoder and decoder are conditioned on the current time-step's hidden state. This is represented by the concatenation operation between the hidden state &#8984;(C 1) and the feature-extraction layers q G and q I .</p><p>2. The prior from which the KL-Divergence is computed is no longer a unit Gaussian at the origin, but rather a multivariate Gaussian whose means and variances in each dimension are determined from the current time-step's hidden state.</p><p>The inclusion of a learned, time-dependent prior distribution is an important component of the VRNN architecture. Without this feature, the decoder network would only be able to access information about the current time-step from the hidden state, and the loss function would motivate the posterior distributions for each time-step to be identical. As a result, this allows the VRNN the flexibility to model complex structured sequences with high variability, as is expected from a jet represented by a sequence of constituent four-vectors. In more detail, each time-step's latent space prior distribution parameters `C and f C are functions of the current time-step's hidden state <ref type="bibr">[12]</ref>:</p><p>Similarly, the latent space approximate posterior is defined by parameters `and f which are functions of the input's extracted features q G and the hidden state &#8984; C 1 :</p><p>The generated output is then decoded from features extracted from the latent space distribution q I = 5 (I), while also being conditioned on the hidden state:</p><p>A loss for each time-step L(C) can then be computed by incorporating both the reconstruction error between the input constituent G(C) and generated output constituent H(C), as well as the KL-Divergence between the approximate posterior I and the learned prior I C . A constant _ is also included which weights the KL-Divergence term's contribution to the loss:</p><p>(2.5)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2021">JINST 16 P08012</head><p>An overall loss L over the sequence is then computed by averaging the individual time-step losses over the length of the sequence #:</p><p>This loss function performs the same role as the VAE's loss function, acting both as an appropriate means of optimizing the architecture as well as a discriminatory quantity between nominal and anomalous elements of the dataset.</p><p>A Variational Recurrent Neural Network cell. The x(t) and y(t) layers represent respectively the input constituent and reconstructed constituents' four-momentum components p T , , and . The phi x and phi z layers are feature-extracting layers which encode a representation of the features in the input layer x(t) and latent space z respectively. h(t 1) represents the current time-step's hidden state, which is updated each iteration via a transition function between h(t 1, phi x , and phi z carried out by a Gated Recurrent Unit (GRU). At each timestep, the prior distribution defined by &#181; t and t is determined from the current hidden state</p><p>In Black Box 2, our model shows no significant excesses. Furthermore, the behavior of the Event Score consistently a ects the distributions of both Black Box 2 and the Background dataset. It is important to note that the model was trained independently on each dataset, and the resulting Event Scores are from entirely unique sets of network weights.</p><p>Figure <ref type="figure">6</ref> shows our results for Black Box 3. Our model is specifically sensitive to boosted final states, and as a result, we are insensitive to the signal present in this Black Box.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="0.3">Lessons Learned</head><p>This challenge presented a highly accessible avenue for development of our model. We are particularly surprised by the e ect of our pre-processing method on the performance of the 3 The details of the VRNN architecture used in this study are as follows: the number of neurons in each intermediate layer, including the hidden state and feature extracting layers, but not including the latent space and its `and f layers, is 16. The latent space is chosen to be two-dimensional. Since constituent four-vectors of jets are being modeled, the input G(C) and output H(C) layers are three dimensional, corresponding to the ? ) , [,and q of each constituent. ReLU <ref type="bibr">[15]</ref> activations are used in each layer of the network, except for f and f C , which have softmax <ref type="bibr">[15]</ref> activations, and I and H(C), which have linear activations.</p><p>The constituents of an input jet are processed sequentially, one per time-step. Each time-step contributes a loss based on the VAE loss function:</p><p>where _ is a factor which weights the KL-Divergence contribution relative to the MSE reconstruction loss.</p><p>Since harder constituents contribute more information toward the identification of jet substructure, _ is defined to be a function of constituent ? ) fraction such that lower ? ) constituents obtain a lower weight in the loss function. Furthermore, since a constituent's ? ) fraction depends directly on the number of constituents in the jet, a unique ? ) fraction distribution is generated for all possible constituent multiplicities by averaging the ? ) fractions of each constituent across the entire dataset. In more detail, the dataset-averaged ? ) fraction, ? ) # (C) of the C C&#8984; constituent in a jet, 9 # , with # C constituents is expressed as:</p><p>where &#8673; # is the number of jets in the dataset which have # constituents. The loss is therefore computed for each constituent as:</p><p>where "(&#8674; is the mean-squared-error between G(C) and H(C), &#8673; ! is the KL-Divergence from the current time-step's prior distribution and the encoded posterior, and ? ) # (C) is the dataset-averaged ? ) fraction of the constituent at time-step C. The final loss is computed by averaging the individual time-step losses over the entire jet:</p><p>The hyperparameters involved in this implementation, namely the dimensionality of intermediate layers, and the additional weight coe cient of 0.1 in the loss function were determined via a hyperparameter optimization scan.</p><p>After the network is trained, an Anomaly Score can be determined for each jet. The KL-Divergence term has been shown to provide better discrimination between anomalous and standard jets than either the reconstruction error or the loss term as a whole. Therefore, the Anomaly Score is defined in terms of the KL-Divergence of each constituent, averaged over the whole jet, and restricted to the range of (0, 1) via exponentiation:</p><p>(2.11)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Data samples and pre-processing</head><p>The performance of the VRNN is investigated by studying its ability to discriminate signal from background in a contaminated dataset of background d&#218;et events with varying amounts of signal.</p><p>The signal events are a process of the form of / 0 ! -. ! whereand . are two heavy resonances each decaying to hadrons forming a boosted jet . Two types of signal events are generated. One type is comprised of events where the X and Y both decay to two quarks, resulting in boosted jets with two-pronged substructure. The other type di ers in that the X and Y both decay to three quarks, resulting in boosted jets with three-pronged substructure. The masses of the particles in the signal hypothesis are 3.5 TeV, 500 GeV, and 100 GeV for / 0 , -, and . respectively.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2021">JINST 16 P08012</head><p>A total of 99457 signal events were generated for each substructure hypothesis, along with 995,453 background events. The events were generated using P 8 and the detector response was simulated using D 3.4.1 with no pile-up or multiple parton interactions included, and events were selected using a single large-radius ('=1.0) jet trigger with a ? ) threshold of 1.2 TeV. The dataset was provided as part of the LHC Olympics challenge for the ML4Jets2020 Workshop <ref type="bibr">[16]</ref>.</p><p>The data were provided as a list of hadrons for each event. The hadrons were then clustered into jets using the anti-: C jet-clustering algorithm with a radius parameter of 1.0 <ref type="bibr">[17]</ref> as implemented by F J 3.3.3 <ref type="bibr">[18]</ref>. In this study, only the highest ? ) (leading) and second-highest ? ) (subleading) jets are considered in each event. To test the model's performance with varying amounts of signal contamination, contaminated datasets were produced with 12 di erent signal event fractions, 10 of which were generated in the range of 0.01% to 10.0% along a logarithmic scale, with two higher signal event fractions of 25% and 50%. For contamination levels up to and including 10%, contaminated datasets were created using the same set of background events while only the amount of signal was varied to match the desired contamination. For the two highest contamination levels, contaminated datasets were created using the same 99457 signal events while the number of background events was limited. Independent datasets were generated for both two-prong and three-prong signal substructure hypotheses at each level of contamination. The events contained in contaminated datasets are unlabeled, such that it is unknowable from which set they were sourced.</p><p>Since the goal is to identify jets mainly due to their substructure, it is important that the model's Anomaly Score does not correlate with other jet features, namely mass and ? ) . A common practice to avoid such a correlation in neural network jet modeling architectures is the use of adversarial de-correlation networks <ref type="bibr">[19]</ref>. Applying such adversarial architectures to a VRNN is a complex task which is outside of the scope of this study <ref type="bibr">[20]</ref>. Instead, the de-correlation is achieved through a pre-processing procedure, which can be divided into two steps: one which directly removes mass and ? ) information from the input jets, and another which orders constituents in a way that improves the VRNN's discriminatory performance.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Jet alignment</head><p>The pre-processing method is developed to produce jets which are superficially identical, with the only di erences appearing in the arrangement and energy distribution of their constituents due do varying substructure. This procedure is inspired by a study based on jet images, where a preprocessing method which boosts each jet to the same reference frame allows for a model trained on the pre-processed jets to be robust against variations in mass and ? ) <ref type="bibr">[21]</ref>. The process can be briefly summarized in three steps:</p><p>&#8226; Rescale each jet to the same mass,</p><p>&#8226; Boost each jet to the same energy,</p><p>&#8226; Rotate each jet to the same orientation in [, q.</p><p>Algorithm 1 describes in detail the implementation of the rescaling, boosting, and rotating processes, referred to as alignment in this study.</p><p>To evaluate the e cacy of this procedure, the model is trained and evaluated on a dataset of background jets both before and after alignment, and the resulting correlation between Anomaly 2021 JINST 16 P08012</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Sequence ordering</head><p>After the alignment step has been performed, the e ect of sequence ordering on the input constituents has additionally been investigated. In fixed architecture models, such as VAEs or image-based Convolutional Neural Networks (CNNs), the ordering of constituents in the list of training inputs is seldom important. However, in recurrent architectures such as the VRNN, choosing a sequence ordering method that highlights important sequence features can boost performance.</p><p>The objective of this study is to build a model which can di erentiate between isotropic jets resulting from soft QCD interactions, and jets with multiple cores resulting from the hadronic decay of boosted objects. Therefore, it is favorable to use a sequence ordering which makes the existence of multiple hard cores of a jet distinctly apparent. This is achieved by ordering the constituents in : C -distance order. More specifically, the = C&#8984; constituent in the list is determined to be the constituent with the highest : C -distance relative to the previous constituent, with the first constituent in the list being the highest ? ) constituent after alignment:</p><p>The e ect on performance due to this choice of constituent ordering can be easily illustrated in the case of a two-prong jet. In such a case, the sequence will start with a constituent in one of the two cores of the jet, and be subsequently followed by a constituent belonging to the other core and so on. This results in an easily predictable pattern which the VRNN is better able to identify, particularly compared to a background jet. The resulting performance di erence between ? ) -sorted and : C -sorted inputs is shown in figure <ref type="figure">5</ref>. Using a 10% contaminated dataset as a training set, and then comparing Anomaly Score distributions determined from leading jets of background-only and two-prong signal-only datasets, the discrimination between signal and background jets is notably better when the VRNN input sequence allows for detection of multi-prong substructure early on. It is also important to note that the signal jets are assigned a lower Anomaly Score than the background jets. This can be attributed to the same reason signal and background jets are distinguishable after applying : C -sorted sequencing: jets with multi-prong substructure are more easily modeled by the VRNN, and therefore result in an overall lower loss value when compared to background jets.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Results</head><p>One way in which the VRNN's performance is studied is by assessing signal acceptance and background rejection at the jet level by using only the leading jet of each event. In addition, the Anomaly Score can be applied to both the X and Y jets in an event and used to discriminate between signal and background in an event-level analysis context. Results of the VRNN's performance are provided for both approaches below.</p><p>Training is performed using the P T deep learning library <ref type="bibr">[22]</ref>. The network is updated using the Adam optimizer with a learning rate parameter of 10 5 <ref type="bibr">[23]</ref>. No regularization via weight decay is applied, however gradient clipping is implemented with a clip value of 10.1 Since the training scenario is entirely unsupervised, the resulting Anomaly Score distributions from each 1A code package demonstrating the model used in this study can be found at: <ref type="url">https://github.com/akahn1213/vrnn</ref>. training dataset may vary. To arrive at a consistent score distribution, a transformation is applied on the resulting Anomaly Score which aims to satisfy two conditions:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2021">JINST 16 P08012</head><p>&#8226; The mean of the resulting distribution is at an Anomaly Score value of 0.5.</p><p>&#8226; Anomaly Scores closer to a value of 1 correspond to more signal-like jets. Note that this reverses the previously observed feature displayed in figure <ref type="figure">5</ref> where more signal-like jets are assigned a lower Anomaly Score.</p><p>The transformation can be summarized as</p><p>where d 0 is the transformed Anomaly Score, and d is the mean of the un-transformed Anomaly Score distribution of the training set.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Jet level performance</head><p>In the jet-level assessment, the model is trained on the leading jet of each event for 500 epochs.</p><p>To evaluate the trend in performance during training, a computation of the Receiver Operating Characteristic's Area Under the Curve (ROC AUC) is performed after each epoch by examining events in the contaminated training set or comparing events in the background-only validation set to those in the signal-only set. Figure <ref type="figure">6</ref> shows the results of this training scenario in the case of 1% contamination. The VRNN quickly reaches its optimal performance, and retains a stable performance throughout the training period.</p><p>To evaluate the model's performance, the weights corresponding to a training period of 100 epochs were chosen in the following studies. Figure <ref type="figure">7</ref> shows the distributions of the Anomaly Score for leading jets in the background sample and both the two-prong and three-prong signal samples after training over a contaminated training set with 10% signal contamination and applying the transformation in Equation (4.1).  Figure <ref type="figure">8</ref> shows the mass distributions of the leading jet in signal, background-only, and signalcontaminated datasets, before and after a jet-level selection requiring the Anomaly Score to exceed a value of 0.65, corresponding to a rejection factor of about 6 for background jets. This value is chosen in the interest of displaying the discriminating power of the Anomaly Score while retaining enough background statistics to observe the background shape sculpting. The visibility of the resonances at 100 GeV and 500 GeV is enhanced after the selection. Sculpting in the background distribution is observed, which is an e ect of mass correlation mainly introduced by the : C -ordered sequencing, as there is a correlation between the number of hard cores in a jet and its mass. However, the observed</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2021">JINST 16 P08012</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2021">JINST 16 P08012</head><p>sculpting is mainly a suppression of low mass events, and does not result in the generation of peaks in the mass distribution. Both the signal enhancement and background sculpting are similarly observed on three-pronged signatures in figure <ref type="figure">9</ref>, also shown for a 10% contaminated dataset and an Anomaly Score selection of greater than 0.65.  As the Anomaly Score in this context distinguishes multi-pronged substructure from homogenous jets, it is useful to compare it to a commonly used high-level variable sensitive to two-pronged signals. The energy correlation function ratio &#8673; 2 <ref type="bibr">[24]</ref> is selected and used as a benchmark to contextualize the Anomaly Score in both signal discrimination and jet mass correlation. The &#8673; 2 variable is such that values closer to zero correlate with two-prong jet substructure.</p><p>Figure <ref type="figure">10</ref> shows a comparison of the shapes of the contaminated jet mass distributions with a two-prong signal hypothesis when subject to a selection on Anomaly Score or &#8673; 2 . The Anomaly Score is again selected to exceed a value of 0.65, and the &#8673; 2 selection is chosen to be less than 1.4 to provide an equivalent background rejection factor of about 6. The shape of the jet mass</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2021">JINST 16 P08012</head><p>distribution is more significantly sculpted after the &#8673; 2 selection than the Anomaly Score selection, as can be seen most prominently in the 200 to 400 GeV range of jet mass. This indicates that there is a more significant correlation of &#8673; 2 with jet mass while the Anomaly Score selection retains more of the smoothly falling characteristics of the background jet mass distribution. Such a result can be attributed largely to the alignment method used during pre-processing, as well as to the Anomaly Score being determined only from jet constituent four-vector information, without any high-level information being input into the model. Another important study involves the model's performance over a range of signal contamination levels. Figure <ref type="figure">11</ref> shows the ROC AUC values of both two and three-pronged signal hypotheses after training on each of the contaminated datasets described in section 3. At each level of contamination, the VRNN is trained on the leading jets of both the respective two-prong and three-prong contaminated datasets for 100 epochs.</p><p>The resulting trained network is then used to assign an Anomaly Score to each leading jet in the dataset. AUC values for each level of contamination are determined from a ROC curve built from 1000 randomly selected jets from both the background and signal sets after training. Error bars are computed by repeating this process 100 times and determining the standard deviation of the resulting distribution of AUC values. Notably, the performance is consistent along all contaminations, and able to distinguish both two and three-pronged signals without any prior substructure hypothesis. The Anomaly Score can therefore be interpreted as a quantity which is capable of adequately and consistently parametrizing multiple distinct substructure scenarios. This feature is valuable in model-independent searches, or those without a pre-defined signal substructure hypothesis.</p><p>The ability of the Anomaly Score to be consistently performant along a large range of contaminations is unexpected in the context of anomaly detection, where the dilution of the training set with a high number of signal elements is expected to result in lower performance. The consistent performance observed can be attributed to the choice of : C -ordered sequencing and the representation of jets as variable-length sequences of constituents. Since the choice of : C -ordered sequencing highlights the presence of multiple hard cores within a jet, the VRNN's Anomaly Score is predisposed to correlate with signal jets due to their anomalous substructure regardless of the level of contamination.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Event level performance</head><p>A natural benchmark of the Anomaly Score's ability to distinguish anomalous jets is to apply the score in an analysis-like context. In this study, the goal is to reconstruct the / 0 particle in the invariant mass spectrum " of the two boosted jets corresponding to the decays of X and Y as described in section 3. To do this, the network is trained on both the leading and sub-leading jets, with one set of network weights saved for each amount of contamination.</p><p>Since the model produces one Anomaly Score per jet, the Anomaly Scores for the leading and sub-leading jet must be combined to arrive at an overall Event Score. In this study, the Event Score is chosen to be the highest of the two Anomaly Scores between the leading and sub-leading jets, resulting in an event-level discriminant which uses the most anomalous jet in the event to discriminate. The ability of the Event Score to distinguish signal from background is illustrated in figure <ref type="figure">12</ref>, showing the correlations between the d&#218;et invariant mass and the Event Score in a dataset with 10% signal contamination. The significant feature of the 3500 GeV / 0 occupies a region of high Event Score, validating this quantity as a discriminant of anomalous events from background.</p><p>The goal of this search is to observe an excess of signal events in the d&#218;et invariant mass distribution at a mass corresponding to the / 0 particle. This is commonly referred to as a "bump hunt" search, in which the signal is expected to appear as a bump upon an otherwise smoothly falling background distribution.2 2This model was also demonstrated in a similar context in the LHC Olympics Anomaly Detection challenge as part of the ML4Jets2020 workshop <ref type="bibr">[25]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2021">JINST 16 P08012</head><p>Figure <ref type="figure">12</ref>. D&#218;et invariant mass vs. Event Score. The presence of the resonant 3500 GeV / 0 particle is visible due to events which have a high value of the Event Score.</p><p>Figure <ref type="figure">13</ref> shows the d&#218;et mass distributions of the signal, background, and contaminated datasets, before and after applying a selection on the Event Score at a value of 0.65 (the same value as was used in the jet-level performance assessment) providing a background rejection factor of about 33. Also plotted is the local significance I in each bin of the corresponding histogram, where a total uncertainty of 15% on the number of background events is assumed. The local significance is computed using the B E Z function from R S <ref type="bibr">[26]</ref>. The selection on the Event Score increases the significance of the excess from 0.5f to 4f at a signal contamination of 1.0%, while still retaining the smoothly falling behavior of the background. No selections other than the Event Score requirement have been applied in these scenarios besides the initial trigger requirement of ? ) &gt; 1.2 TeV on the leading jet. In figure <ref type="figure">14</ref>, a similar result is seen in the case of the three-pronged signal, where the Event Score requirement results in an increase of local significance of the signal peak from 0.5f to 1.5f at a signal contamination of 1% under the same conditions. These results display the capability of the Anomaly Score as an analysis variable, as it can distinguish signal events with multiple substructure hypotheses while being robust against ambiguities in signal jet mass and ? ) .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Conclusion</head><p>A novel approach for unsupervised signal identification in the context of new physics searches is presented. The technique utilizes a Variational Recurrent Neural Network trained on contaminated datasets to distinguish jets resulting from boosted hadronically decaying objects from those resulting from soft QCD processes. A pre-processing procedure (Jet Alignment) is developed, in which each input jet is boosted to the same reference mass, energy, and orientation, coupled with a sequence ordering which makes the presence of signal-like substructure more apparent. The resulting training produces an Anomaly Score per jet that is sensitive to multiple substructure hypotheses. In a jetlevel study that only uses the leading jet in each event, the model enhances signal with less jet mass 2021 JINST 16 P08012  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2021">JINST 16 P08012</head><p>correlation than the substructure-based variable &#8673; 2 . In addition, the resulting Anomaly Score is equally performant across varying levels of contamination, allowing for a consistent characterization of substructure regardless of the amount of signal present in the dataset. When applied to an eventlevel context, a selection on the maximum of the two leading jet Anomaly Scores increases the significance of both two-and three-prong signals, while mostly retaining the smoothly falling shape of the background's mass distribution.</p><p>The Variational Recurrent Neural Network used in this study is a powerful tool capable of learning underlying features of physics objects presented as sequential data. Its applications to new physics searches are numerous, with one of the most attractive features being the potential for training directly on data without a pre-defined signal substructure hypothesis. It is also a general tool for modeling sequential data of any type, making it compatible with common high energy physics tasks such as event-level searches or object-level classification.</p><p>Since the overall structure of the model contains both elements of Variational Autoencoders and Recurrent Neural Networks, more complicated architectural iterations can be employed as natural extensions of the VRNN. Examples of possible additions include adversarial mass de-correlation networks, and conditional architectures which can supplement the VRNN's input by a fixed length vector of high-level features. Other potential studies include further investigation of the ordering of the input constituent sequence, which may be tuned to accommodate better defined model hypotheses, or a study of multi-class identification in which two or more types of anomalies are identified within the same dataset.</p></div></body>
		</text>
</TEI>
