---
title: 'NPLM: New Physics Learning Machine'
url: https://www.emergentmind.com/topics/new-physics-learning-machine-nplm
type: topic
---

# NPLM: New Physics Learning Machine

The **New Physics Learning Machine (NPLM)** is a machine-learning-based goodness-of-fit methodology that implements the Neyman–Pearson likelihood-ratio strategy in a signal-agnostic setting, primarily for collider searches in high-energy physics. It treats goodness of fit as an asymmetric two-sample problem: the observed dataset is compared with a large reference sample drawn from an expected distribution, and the alternative hypothesis is not fixed analytically but learned from data as a flexible deformation of the reference density. In this form, NPLM is simultaneously a hypothesis test, a density-ratio estimator, and a diagnostic for locating discrepant regions of phase space [1806.02350] [2305.14137].

## 1. Origins and problem setting

NPLM was introduced for **model-independent new physics searches** in situations where one has a trusted reference model, typically the Standard Model or a background-only prediction, and wishes to test whether observed data are compatible with it without assuming a specific signal model in advance. The original proposal used neural networks as flexible function approximators to learn departures from a reference distribution, and later work reformulated the method explicitly as a goodness-of-fit procedure based on Neyman–Pearson testing and extended it to scalable kernel implementations [1806.02350] [2204.02317].

The central problem is background-dominated anomaly detection. New physical effects, if present, are expected to be similar to the reference model in most of phase space, while departures may be localized in small regions, spread as small distortions over large regions, or combine shape and rate effects. NPLM addresses this by asking only whether the data and the reference look like they come from the same distribution. In this sense it is *model-independent* in the physics sense: the alternative is not derived from a specific theory, but chosen for flexibility and technical convenience [1809.11150] [2408.12296].

The method was developed for **agnostic searches for new physics at collider experiments**, including Beyond-the-Standard-Model searches in LHC data, dimuon benchmarks, and detector-performance monitoring. Later work broadened the scope to quasi-online anomaly-aware summary statistics, resonant anomaly detection, and generative-model validation, while retaining the same statistical core [2305.14137] [2407.01249] [2511.09118].

## 2. Neyman–Pearson formulation and test statistic

The defining step in NPLM is to write the alternative hypothesis as a deformation of the reference density,
$$
n(x\mid H_1)=e^{f(x)}\,n(x\mid R),
$$
where \(f(x)\) belongs to a rich parametrized function class and is trained from data. Here \(n(x\mid H)=N(H)p(x\mid H)\) denotes the event density normalized to the expected number of events. This parameterization guarantees positivity and embeds the null hypothesis as the special case \(f=0\) [2305.14137] [2111.13633].

The statistical construction uses the **extended likelihood**
$$
\mathcal{L}(S_1,H)=\frac{e^{-N(H)}}{N_1!}\prod_x n(x\mid H),
$$
which accounts for both shape information and Poisson fluctuations in the total event count. Maximizing the likelihood under the learned alternative yields a likelihood-ratio-style test statistic. In Monte Carlo form, one widely used expression is
$$
t_{\rm lr}=-2\left[\sum_{x\in R}\left(e^{f(x)}-1\right)-\sum_{x\in D}f(x)\right],
$$
and large values indicate that the learned alternative describes the data better than the reference [2305.14137].

A closely related formulation writes the observed statistic as
$$
t_{\hat w}(S_1) =-2\left[\frac{N(0)}{N_0}\sum_{x\in S_0}\left(1-e^{f_{\hat w}(x)}\right)+\sum_{x\in S_1}f_{\hat w}(x)\right],
$$
with \(S_0\) the reference sample and \(S_1\) the data sample. In both forms, the learned function approximates the log-density ratio
$$
f(x)\approx \log\frac{n(x\mid 1)}{n(x\mid 0)},
$$
so the test statistic is an empirical implementation of a maximum-likelihood ratio test with a data-driven alternative [2204.02317].

The final goodness-of-fit judgment is based on the \(p\)-value,
$$
p[t]=\int_t^\infty dt'\, p(t'\mid R),
$$
estimated empirically from toy datasets generated under the reference hypothesis. This calibration is essential because the same data are used both to learn the alternative and to evaluate the test statistic [2305.14137].

## 3. Learning machinery, density-ratio estimation, and regularization

The original NPLM implementation used a neural network \(f(x;\mathbf w)\) as a universal approximator of the log-density ratio. The training loss was chosen so that minimizing it corresponds to maximizing the likelihood under the alternative. Two equivalent losses appear in the literature: a weighted logistic loss,
$$
\ell(y,f(x))=(1-y)\log\!\left[1+e^{f(x)}\right]+y\log\!\left[1+e^{-f(x)}\right],
$$
and a maximum-likelihood loss,
$$
\ell(y,f(x))=(1-y)\left(e^{f(x)}-1\right)-y\,f(x).
$$
In the large-sample limit, the minimizer is the desired log-density ratio [2305.14137].

A later reformulation replaced neural networks with **kernel methods**, specifically the scalable **Falkon** algorithm with Nyström approximation. In that setting,
$$
f_w(x)=\sum_{i=1}^{M} w_i\,k_\sigma(x,\tilde x_i),
$$
with Gaussian kernel
$$
k_\sigma(x,x')=\exp\!\left(-\frac{\|x-x'\|^2}{2\sigma^2}\right).
$$
This preserves the original logic of the method while making training dramatically faster and more resource-efficient. Reported average training times per run were **DIMUON:** Falkon \(44.9 \pm 3.4\) s vs NN \(4.23 \pm 0.73\) h, **SUSY:** Falkon \(18.2 \pm 1.2\) s vs NN \(73.1 \pm 10\) h, and **HIGGS:** Falkon \(22.7 \pm 0.4\) s vs NN \(112 \pm 9\) h; the targeted regime was described as roughly \(\mathcal{O}(n\sqrt{n}\log n)\) in time and \(\mathcal{O}(n)\) in memory [2204.02317].

Model-independence is enforced through the treatment of hyperparameters. In the kernel implementation, the main hyperparameters are the number of Nyström centers \(M\), the kernel width \(\sigma\), and the regularization strength \(\lambda\). The literature states that \(M\) should be large enough for good approximation accuracy, roughly at least of order \(\sqrt N\), \(\lambda\) should be as small as possible while keeping training stable, and \(\sigma\) is the most influential parameter because it sets the scale of structure the classifier can resolve. Hyperparameters are tuned **only on reference data** to avoid bias toward a particular anomaly [2204.02317] [2408.12296].

A frequent misconception is that NPLM is merely a classifier-based two-sample test under another name. The comparison studies argue otherwise. NPLM evaluates the learned statistic **on the same data used for training** rather than relying on a train-test split, and its test statistic is a likelihood-ratio statistic rather than accuracy or AUC. These features are reported to matter operationally: train-test splitting removes useful information and reduces sensitivity, while likelihood-ratio weighting gives more importance to points in regions where the learned model is confident that the data and reference differ. In the benchmarks studied, this makes NPLM more sensitive to small departures of the data from the expected distribution and not biased toward detecting specific types of anomalies [2305.14137].

## 4. Calibration, nuisance profiling, and multiple testing

Because NPLM uses the observed data to learn the alternative, null calibration is performed by retraining on many toy datasets drawn from the reference model. For a fixed hyperparameter setting, the procedure is: train the NPLM classifier on reference and data, compute the observed statistic, estimate the null distribution by toy experiments that retrain from scratch, and convert the result to a \(p\)-value and then to a significance through
$$
Z=\Phi^{-1}(1-p).
$$
One finite-sample corrected empirical \(p\)-value used in the literature is
$$
\hat p_{\rm obs}= \frac{1}{N_{\rm toys}^{(H_0)}+1} \left[\sum_{i=1}^{N_{\rm toys}^{(H_0)}} \mathbb 1(t_i-t_{\rm obs})+1\right].
$$
This retraining-based calibration controls both the use of the data twice and the implicit look-elsewhere effect associated with the learned function class [2408.12296] [1809.11150].

Systematic uncertainties can be incorporated by treating the reference prediction as nuisance-parameter dependent. In that formulation, the alternative becomes
$$
n(x\mid H_1)=e^{f(x;\mathbf w)}\,n(x\mid R_{\boldsymbol\nu}),
$$
and the profile-likelihood-ratio statistic is decomposed as
$$
t=\tau-\Delta.
$$
Here \(\tau\) contains the neural-network deformation and nuisance dependence, while \(\Delta\) subtracts the nuisance-only response of the reference model. Auxiliary neural networks are trained to learn nuisance-induced density ratios, and the subtraction is used to restore the correct null behavior. The method works well when the reference sample sufficiently covers the relevant phase space, but can produce outliers if nuisance shifts push the data into regions not populated by the reference sample [2111.13633].

A distinct robustness problem arises from hyperparameter dependence, especially the kernel width \(\sigma\). Because different \(\sigma\) values are optimal for different anomaly morphologies, multiple-testing strategies have been studied in which several NPLM tests are run and then combined. The methods explored include **min-\(p\)**, **prod-\(p\)**, **avg-\(p\)**, and **smax-\(t\)**. The reported conclusion is that combining tests characterised by distinct choices of hyperparameters achieves performances comparable to the best available test while providing a more uniform response to various types of anomalies. Among the tested rules, **min-\(p\)** is described as the most consistently robust, whereas **smax-\(t\)** is argued to be intrinsically biased because the NPLM test statistic tends to increase for smaller \(\sigma\) [2408.12296].

## 5. Batched, aggregated, and streaming variants

NPLM has also been adapted to **large size samples under computational and storage resource constraints**. In the batched formulation, the dataset is split into \(N_{\rm b}\) batches and an independent NPLM model is trained on each batch. The simplest combination is the sum of the per-batch likelihood-ratio statistics, denoted \(t_{\rm SUM}\). A more effective construction instead aggregates the learned log-density ratios themselves under the assumption that the expected rate of new physical processes is **time invariant** [2407.01249].

The aggregated log-ratio is defined by averaging the learned density deformations across batches and then taking the logarithm,
$$
F^{N_{\rm b}}(x)=\log\left[\frac{1}{N_{\rm b}}\sum_{i=1}^{N_{\rm b}} e^{f_i(x)}\right],
$$
which yields a global hypothesis shared over the batches. The resulting test statistic, \(t_{\rm AGGR}\), preserves the Neyman–Pearson spirit of NPLM while making the method scalable to large streams or large static datasets. The reported empirical finding is that this method outperforms the simple sum of the independent tests run over the batches, and can recover, or even surpass, the sensitivity of the single test run over the full data [2407.01249].

Two constrained variants were proposed for reduced-storage settings. **NPLM-ONE** uses all batches for training but only one stored batch for the final test. **NPLM-SAT** stores only the trained models and uses a saturated binned likelihood-ratio test built from the aggregated model evaluated on the reference points. These variants were framed as anomaly-aware summary statistics suitable for quasi-online data streaming scenarios. In the reported experiments, performance of the saturated construction was comparable to the full aggregated test when the signal lies in dense regions of the reference support, but it degraded for tail-localized signals because the reference sample had too few points where the anomaly lives [2407.01249].

## 6. Empirical behavior, applications, and limitations

Across comparison studies, NPLM is described as especially effective for **small deviations**, localized anomalies, and searches that must remain agnostic to the anomaly shape. The key mechanism is the likelihood-ratio weighting: points with large \(|f(x)|\), corresponding to classifier outputs close to \(0\) or \(1\), contribute more strongly than points near indecision. This suppresses the effect of large background-like regions and enhances localized discrepancies. The reported outcome is a more uniform response across benchmark problems than classifier-based methods or binning-based tests that may be strong for one class of deviations and blind to another [2305.14137].

Collider applications remain the primary domain. The literature reports toy problems, a five-dimensional dimuon benchmark, the LHC Olympics dijet anomaly benchmark, a 24-dimensional CMS L1 trigger-like dataset, and resonant anomaly-detection studies. In the resonant setting, NPLM-based methods are reported to outperform BDT-based approaches in detection performance, particularly in low signal injection scenarios, while significantly reducing epistemic variance due to hyperparameter choices. When accurate background modelling is available, an end-to-end NPLM test is preferred; when it is unavailable, NPLM has been used as the anomaly selector in conjunction with a hyper-test over multiple thresholds [2501.01778].

Outside discovery searches, NPLM has been repurposed as a validation method for high-dimensional generative models. In that context it is used as a two-sample goodness-of-fit test between generated data and a reference sample, with benchmarks including mixtures of Gaussians of dimensions \(4,8,20,30\) and the 16-observable FlashSim jet generator. The reported findings were that the method tracks model quality, becomes more sensitive as sample size increases, and can diagnose sub-optimally modeled regions through the learned log-density ratio and event-wise anomaly scores [2511.09118] [2508.02275].

The method also has clear limitations. It requires a sufficiently large and accurate reference sample; if the reference sample is too small, specifically when \(N_0/N(0)<1\), the null distribution of the test statistic can deviate from the expected \(\chi^2\) behavior. Hyperparameter tuning remains heuristic, null calibration is computationally expensive because each toy requires retraining, and high-dimensional performance remains constrained by sparsity and the curse of dimensionality. In the batched and streaming work, performance depended on the quality and size of the reference sample, on the choice of input features, and on zero-padding artifacts in variable-size event representations; systematic uncertainties were not handled in that work [2204.02317] [2407.01249].

A final point of clarification concerns scope. A 2025 satirical paper about searching arXiv abstracts for “New Physics” keywords was explicitly framed as parody and was **not** a technical NPLM implementation, even though it mimicked the logic of signal-versus-background language and hypothesis testing. That paper is relevant chiefly as a caution against conflating the general rhetoric of machine-learning-based anomaly detection with the specific likelihood-ratio construction that defines NPLM [2503.22790].

Source: https://www.emergentmind.com/topics/new-physics-learning-machine-nplm