Papers
Topics
Authors
Recent
Search
2000 character limit reached

Per-Event Likelihood-Ratio Estimator

Updated 10 July 2026
  • Per-Event Likelihood-Ratio Estimator is a method that computes a local density ratio for each observation, forming the basis of optimal hypothesis testing and sequential inference.
  • It integrates various techniques, including count-based, neural classifier-based, and regularized approaches to address challenges such as rare events and intractable likelihoods.
  • This estimator is applied across fields like NLP, forensic genetics, and simulation-based inference, enabling efficient aggregation of evidence and adaptive decision-making.

A per-event likelihood-ratio estimator is an estimator of the likelihood ratio associated with a single observation, feature, or time step. In its simplest form, for two simple hypotheses H0H_0 and H1H_1 with densities p0(x)p_0(x) and p1(x)p_1(x), it targets r(x)=p1(x)/p0(x)r(x)=p_1(x)/p_0(x) and often also its log form (x)=logr(x)\ell(x)=\log r(x). The same idea appears in several closely related settings: discrete event ranking with empirical counts, neural classifier-based ratio learning, amortized simulation-based inference through likelihood-to-evidence ratios, online non-parametric density-ratio estimation, and sequential decision-making through per-round likelihood-ratio contributions (Rizvi et al., 2023, Hermans et al., 2019, Emmenegger et al., 2023).

1. Formal object and statistical role

For two simple hypotheses, the per-event likelihood ratio is

r(x)=p1(x)p0(x),(x)=logr(x).r(x)=\frac{p_1(x)}{p_0(x)}, \qquad \ell(x)=\log r(x).

This quantity is fundamental because, by the Neyman–Pearson lemma, the uniformly most powerful test for H0H_0 versus H1H_1 uses the statistic T=i(xi)T=\sum_i \ell(x_i) for independent events. The same additive structure makes per-event log-likelihood ratios natural components of profile likelihoods, confidence intervals, and composite scores assembled from multiple features (Rizvi et al., 2023).

The definition generalizes beyond fixed hypotheses. In simulation-based inference with intractable likelihoods, one often defines the likelihood-to-evidence ratio

H1H_10

so that the per-event likelihood ratio between two parameter values satisfies

H1H_11

This formulation is central when the simulator can generate H1H_12 but H1H_13 cannot be evaluated analytically (Hermans et al., 2019).

In sequential decision-making, an “event” may be a single round H1H_14 with context or action H1H_15 and outcome H1H_16. The per-event contribution is then

H1H_17

or, in the weighted formulation,

H1H_18

Cumulative products of these per-event quantities generate anytime-valid confidence sequences through likelihood-ratio processes (Emmenegger et al., 2023).

The term “per-event” therefore does not refer to a single implementation pattern. It refers to a granularity: one estimates a ratio contribution locally, then combines those local contributions across events by multiplication of ratios or addition of log-ratios. This common structure links hypothesis testing, reweighting, ranking, MCMC acceptance ratios, and sequential confidence construction.

2. Count-based estimators and rare-event conservatism

In discrete settings with observed counts, the most direct estimator replaces class-conditional probabilities by empirical frequencies. If H1H_19 is the count of event p0(x)p_0(x)0 in class p0(x)p_0(x)1 and p0(x)p_0(x)2, then

p0(x)p_0(x)3

In the named-entity context-prediction task of “Conservative Likelihood Ratio Estimator for Infrequent Data Slightly above a Frequency Threshold,” the event is a word bigram immediately to the left of a named entity, the numerator context is “left-of-NE,” and the denominator context is the unconditional corpus distribution. The resulting maximum-likelihood estimator is

p0(x)p_0(x)4

with log form

p0(x)p_0(x)5

The paper emphasizes that low counts make this ratio unstable and heavy-tailed, so rare events tend to be over-ranked (Kikuchi et al., 2022).

A simple baseline imposes a numerator frequency threshold p0(x)p_0(x)6: p0(x)p_0(x)7 In that ranking task, zero means “no contribution” rather than a neutral p0(x)p_0(x)8. This pruning improves efficiency and removes some extreme rare-event estimates, but it leaves discontinuous behavior and still overestimates just above the threshold (Kikuchi et al., 2022).

The conservative alternative proposed in the same work derives a closed-form p0(x)p_0(x)9-regularized least-squares importance-fitting estimator on discrete one-hot bases: p1(x)p_1(x)0 For p1(x)p_1(x)1,

p1(x)p_1(x)2

and

p1(x)p_1(x)3

The correction is largest near the threshold and vanishes as p1(x)p_1(x)4 grows. The estimator is nondecreasing in numerator count, nonincreasing in denominator count, and converges to the MLE as counts become large (Kikuchi et al., 2022).

The same paper reports a concrete large-sparse NLP experiment on the WSJ 1987 corpus with 12,000 sampled articles, split into 10,000 train, 1,000 validation, and 1,000 evaluation articles. Validation over p1(x)p_1(x)5 selected p1(x)p_1(x)6. In rank–recall evaluation, p1(x)p_1(x)7-regularized estimation was best overall, thresholding improved over the naive baseline, and the p1(x)p_1(x)8 conservative estimator slightly outperformed simple thresholding while retaining essentially the same efficiency. Measured averages over 10 runs showed substantial memory and time reductions for thresholding and p1(x)p_1(x)9 relative to the baseline and r(x)=p1(x)/p0(x)r(x)=p_1(x)/p_0(x)0 estimators (Kikuchi et al., 2022).

Rare-event conservatism also appears in forensic genetics. For a rare haplotype match, the likelihood ratio for event r(x)=p1(x)/p0(x)r(x)=p_1(x)/p_0(x)1 is

r(x)=p1(x)/p0(x)r(x)=p_1(x)/p_0(x)2

with r(x)=p1(x)/p0(x)r(x)=p_1(x)/p_0(x)3 and, in a panmictic model without structure, r(x)=p1(x)/p0(x)r(x)=p_1(x)/p_0(x)4, so r(x)=p1(x)/p0(x)r(x)=p_1(x)/p_0(x)5. “Impact of model choice on LR assessment in case of rare haplotype match” reviews plug-in estimators, conservative upper confidence bounds such as the rule of three, a discrete Laplace model, and the nonparametric generalized-Good method. Its central methodological point is that different data reductions and population models define different legitimate likelihood ratios, so it is more sensible to speak of “an LR” rather than “the LR,” and to quantify estimation error explicitly (Cereda, 2015).

3. Classifier-based neural estimators

A broad modern approach estimates per-event likelihood ratios through probabilistic classifiers. If a classifier is trained to distinguish samples from r(x)=p1(x)/p0(x)r(x)=p_1(x)/p_0(x)6 and r(x)=p1(x)/p0(x)r(x)=p_1(x)/p_0(x)7 with class priors r(x)=p1(x)/p0(x)r(x)=p_1(x)/p_0(x)8 and r(x)=p1(x)/p0(x)r(x)=p_1(x)/p_0(x)9, the Bayes-optimal score is

(x)=logr(x)\ell(x)=\log r(x)0

From this,

(x)=logr(x)\ell(x)=\log r(x)1

With equal priors, (x)=logr(x)\ell(x)=\log r(x)2 and (x)=logr(x)\ell(x)=\log r(x)3. “Learning Likelihood Ratios with Neural Network Classifiers” stresses that any strictly monotonic function of (x)=logr(x)\ell(x)=\log r(x)4 preserves ranking and optimal decision boundaries, but recovering the numerical likelihood ratio requires calibrated outputs and correct prior adjustment (Rizvi et al., 2023).

That paper develops a general loss-functional view. For a learnable function (x)=logr(x)\ell(x)=\log r(x)5 and rescaling functions (x)=logr(x)\ell(x)=\log r(x)6,

(x)=logr(x)\ell(x)=\log r(x)7

and the extremum satisfies

(x)=logr(x)\ell(x)=\log r(x)8

This produces several concrete loss families. BCE and MSE yield the odds mapping (x)=logr(x)\ell(x)=\log r(x)9; MLC and SQR target r(x)=p1(x)p0(x),(x)=logr(x).r(x)=\frac{p_1(x)}{p_0(x)}, \qquad \ell(x)=\log r(x).0 directly. The paper studies BCE, MSE, MLC, SQR, and generalized r(x)=p1(x)p0(x),(x)=logr(x).r(x)=\frac{p_1(x)}{p_0(x)}, \qquad \ell(x)=\log r(x).1-MSE and r(x)=p1(x)p0(x),(x)=logr(x).r(x)=\frac{p_1(x)}{p_0(x)}, \qquad \ell(x)=\log r(x).2-SQR families, together with output parameterizations on r(x)=p1(x)p0(x),(x)=logr(x).r(x)=\frac{p_1(x)}{p_0(x)}, \qquad \ell(x)=\log r(x).3 or r(x)=p1(x)p0(x),(x)=logr(x).r(x)=\frac{p_1(x)}{p_0(x)}, \qquad \ell(x)=\log r(x).4 such as sigmoid, Gaussian CDF, arctan-to-r(x)=p1(x)p0(x),(x)=logr(x).r(x)=\frac{p_1(x)}{p_0(x)}, \qquad \ell(x)=\log r(x).5, ReLU, r(x)=p1(x)p0(x),(x)=logr(x).r(x)=\frac{p_1(x)}{p_0(x)}, \qquad \ell(x)=\log r(x).6, and r(x)=p1(x)p0(x),(x)=logr(x).r(x)=\frac{p_1(x)}{p_0(x)}, \qquad \ell(x)=\log r(x).7 (Rizvi et al., 2023).

The empirical findings are highly specific. For BCE and MSE, sigmoid is best or close in most cases. For MLC and SQR, r(x)=p1(x)p0(x),(x)=logr(x).r(x)=\frac{p_1(x)}{p_0(x)}, \qquad \ell(x)=\log r(x).8 is dramatically better than ReLU or r(x)=p1(x)p0(x),(x)=logr(x).r(x)=\frac{p_1(x)}{p_0(x)}, \qquad \ell(x)=\log r(x).9. In univariate Gaussian experiments, BCE and MSE outperformed MLC and SQR under naive parameterizations, while with optimized implementations the standard losses became similar and the generalized families often achieved the smallest MAE. In multivariate Gaussian cases, MLC with H0H_00 was best among the four standard losses in the more complex problems, and H0H_01-SQR often reduced MAE by H0H_02–H0H_03 relative to MLC+H0H_04, except in the Hyperbola case where gains were limited. In the high-energy physics jet study, BCE and MSE again preferred sigmoid, MLC and SQR preferred H0H_05, and gains from generalized families were minor because the MAE landscape was comparatively flat (Rizvi et al., 2023).

The implementation details are also part of the method. The paper uses Keras/TensorFlow, Adam, three hidden layers of widths H0H_06–H0H_07–H0H_08, ReLU activations, dropout H0H_09 after each hidden layer, early stopping with patience H1H_10, up to H1H_11 epochs, batch size H1H_12 of the training set, and ensembles of H1H_13 independent trainings per configuration. It recommends BCE or MSE with a sigmoid output when the ratio is recovered via odds, and MLC with H1H_14 when directly regressing the likelihood ratio. Calibration through isotonic regression or Platt scaling is identified as particularly important when BCE or MSE outputs are converted to ratios (Rizvi et al., 2023).

4. Amortized estimators for likelihood-free inference

When the likelihood H1H_15 is intractable but simulation is available, the per-event object often estimated is not directly H1H_16, but the likelihood-to-evidence ratio

H1H_17

where H1H_18. The key identity

H1H_19

allows a single amortized estimator to support many pairwise likelihood-ratio computations (Hermans et al., 2019).

“Likelihood-free MCMC with Amortized Approximate Ratio Estimators” learns T=i(xi)T=\sum_i \ell(x_i)0 by binary classification between dependent pairs T=i(xi)T=\sum_i \ell(x_i)1 and independent pairs T=i(xi)T=\sum_i \ell(x_i)2. The Bayes-optimal classifier score is

T=i(xi)T=\sum_i \ell(x_i)3

and therefore

T=i(xi)T=\sum_i \ell(x_i)4

If the network outputs logits T=i(xi)T=\sum_i \ell(x_i)5, then T=i(xi)T=\sum_i \ell(x_i)6 and T=i(xi)T=\sum_i \ell(x_i)7. The training objective is binary cross-entropy over mixed batches of joint and product-of-marginals samples, typically implemented by constructing negative examples through shuffling or the “two batches trick” (Hermans et al., 2019).

The principal advantage is amortization. One network is trained once over the prior support of T=i(xi)T=\sum_i \ell(x_i)8 and the observation space of T=i(xi)T=\sum_i \ell(x_i)9, then reused for posterior scanning, per-event likelihood-ratio evaluation, and MCMC acceptance probabilities. For a fixed observed event H1H_100, the Metropolis–Hastings acceptance rule becomes

H1H_101

The paper recommends log-domain computation, direct use of logits as H1H_102, and proposal tuning toward acceptance rates around H1H_103–H1H_104 (Hermans et al., 2019).

The same estimator supports event-level hypothesis testing and dataset-level aggregation. For a single event,

H1H_105

and for multiple i.i.d. observations H1H_106,

H1H_107

The paper further describes diagnostics and robustness procedures: a ROC/AUC diagnostic based on the identity H1H_108, simulation-based calibration, posterior predictive checks, effective sample size, H1H_109-hat, trace plots, autocorrelation, and ensembling with averaged logits for stability (Hermans et al., 2019).

This formulation is closely related to, but distinct from, classifier-based two-sample likelihood-ratio estimation. Here the classifier is conditioned on H1H_110 and trained against the product of marginals rather than against a fixed alternative class. The paper argues that this avoids the support-mismatch issues that arise with fixed-reference classifiers, provided the simulator covers the prior support adequately (Hermans et al., 2019).

5. Online and sequential formulations

In sequential decision-making, per-event likelihood-ratio estimation is used not only to score observations but also to build time-uniform uncertainty sets. “Likelihood Ratio Confidence Sets for Sequential Decision Making” considers a sequence of contexts or actions H1H_111 and outcomes H1H_112, with likelihood family H1H_113 and estimator sequence H1H_114 chosen before observing H1H_115. The per-event contribution is

H1H_116

or, with adaptive weights H1H_117,

H1H_118

The cumulative product

H1H_119

defines the confidence set

H1H_120

Under measurability conditions on H1H_121 and H1H_122, the reciprocal process is a nonnegative supermartingale, and Ville’s inequality yields anytime-valid coverage H1H_123 (Emmenegger et al., 2023).

The size of these sets depends on the estimator sequence. The paper therefore links per-event LR estimation to online convex optimization, especially Follow-the-Regularized-Leader: H1H_124 For GLMs with bounded covariates and strongly convex, smooth log-partition function H1H_125, nonasymptotic regret bounds imply corresponding controls on likelihood-ratio set size through Bregman divergences. An adaptive reweighting scheme is introduced to counteract large early bias, with

H1H_126

and a computable upper bound

H1H_127

The intended effect is to downweight early, poorly learned directions while allowing H1H_128 as estimation bias decreases (Emmenegger et al., 2023).

A different online perspective appears in “Online non-parametric likelihood-ratio estimation by Pearson-divergence functional minimization.” There the observed stream consists of i.i.d. pairs H1H_129, and the target is the relative density ratio

H1H_130

For H1H_131, this is H1H_132; to obtain H1H_133, one swaps H1H_134 and H1H_135 or inverts the estimate when positivity permits. The method works in an RKHS and performs stochastic functional gradient descent on the Pearson-divergence objective using per-step loss

H1H_136

The functional update is

H1H_137

with schedules

H1H_138

The dictionary grows by adding H1H_139 and H1H_140 at every step, yielding H1H_141 per-iteration cost, H1H_142 cumulative kernel evaluations up to time H1H_143, and H1H_144 memory. The paper provides high-probability convergence guarantees in both H1H_145 and RKHS norm under bounded-kernel and smoothness assumptions (Concha et al., 2023).

These two online lines address different problems. The sequential-decision framework presumes a specified parametric likelihood and uses per-round LR contributions for coverage and control; the OLRE framework estimates density ratios non-parametrically from streaming samples. Their commonality lies in a genuinely per-event update: each new observation modifies the ratio estimator or ratio process through a single local contribution rather than batch recomputation.

6. High-dimensional spectral methods, applications, and caveats

High-dimensional per-event likelihood-ratio estimation is difficult when direct density estimation in the ambient space is poor. “High-Dimensional Density Ratio Estimation with Extensions to Approximate Likelihood Computation” addresses this by expanding the ratio in eigenfunctions of a kernel integral operator associated with the denominator distribution H1H_146. If H1H_147, the expansion is

H1H_148

where H1H_149 are orthonormal in H1H_150 for H1H_151 with density H1H_152. Truncating at H1H_153 terms gives

H1H_154

with H1H_155 obtained by Nyström extension and H1H_156 estimated by empirical averages over samples from H1H_157. The underlying squared-loss objective is LSIF-like, and the method exploits approximate orthogonality so that coefficients reduce to expectations of basis functions under the numerator distribution (Izbicki et al., 2014).

This basis construction adapts to the geometry of the denominator data and is intended to remain effective when observations lie near lower-dimensional manifolds embedded in high ambient dimension. The paper also extends the idea from density ratios to approximate likelihood computation. Defining

H1H_158

with H1H_159 often chosen as the marginal under a prior, it uses a tensor-product expansion over basis functions in H1H_160 and H1H_161: H1H_162 This produces per-event approximate likelihoods usable in downstream Bayesian or maximum-likelihood inference without explicit dimension reduction (Izbicki et al., 2014).

The application range of per-event likelihood-ratio estimators is correspondingly broad. In NLP, they can rank bigrams as predictors of named-entity left contexts (Kikuchi et al., 2022). In scientific inference, they provide optimal or near-optimal test statistics, event reweighting, and confidence-interval ingredients (Rizvi et al., 2023). In likelihood-free physics-style workflows, they support MCMC, importance sampling, SMC, nested sampling, Hamiltonian Monte Carlo through H1H_163, and nuisance-parameter marginalization (Hermans et al., 2019). In sequential learning, they generate anytime-valid confidence sequences for generalized linear bandits, survival analysis, additive-noise models, and RKHS bandits (Emmenegger et al., 2023). In forensics, they quantify evidential weight for rare haplotype matches, but the estimated LR depends strongly on the chosen population model and data reduction (Cereda, 2015).

Several caveats recur across these literatures. First, ranking quality and numeric calibration are distinct: any monotone surrogate preserves rankings, but using a score as a numerical LR requires correct calibration and, in classifier-based methods, correct treatment of training priors (Rizvi et al., 2023). Second, support overlap matters. If the numerator has support outside the denominator, the true ratio may be infinite or undefined; both simulation-based and non-parametric papers explicitly warn about this (Hermans et al., 2019, Concha et al., 2023). Third, rare events are structurally difficult: naive empirical ratios often overestimate them, thresholding can be too discontinuous, and model misspecification may dominate the error budget (Kikuchi et al., 2022, Cereda, 2015). Fourth, different modeling choices may define different legitimate likelihood ratios rather than different estimates of a single uniquely meaningful quantity; the forensic literature makes this point explicitly, and it has a plausible implication for other domains whenever evidence reduction or denominator choice is non-unique (Cereda, 2015).

A common practical pattern nevertheless emerges. One estimates a local ratio or log-ratio for each event, aggregates across events additively or multiplicatively, prunes or regularizes low-information regions, calibrates when numerical ratios are needed, and validates the estimator with task-appropriate diagnostics such as MAE, ROC/AUC-based checks, rank–recall, simulation-based calibration, posterior predictive checks, or time-uniform coverage. Within that pattern, the per-event likelihood-ratio estimator is less a single algorithm than a unifying statistical primitive that supports inference, decision-making, and evidence quantification across discrete, parametric, neural, amortized, online, and high-dimensional settings.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Per-Event Likelihood-Ratio Estimator.