Event-Level Misspecification Adjustment for Unbinned Likelihood Fits on Pretrained Jet Embeddings

Particle physicists measure rare processes by fitting a probability model to every recorded collision event, one event at a time. This is an unbinned extended maximum likelihood fit. It is "unbinned" because it scores each event's exact coordinates instead of histogram bins, and "extended" because it also treats the total event count as a Poisson random variable, so signal and background yields come out of the fit directly. These fits are statistically efficient, but they depend on knowing the event density. For high-dimensional detector data, that density is learned from simulation, and simulation never matches the real detector exactly.

When the simulated density is slightly wrong, an event-level fit is wrong with great confidence. It multiplies thousands of small mismatches into a biased yield and an interval that is too narrow. We propose a fit built on a pretrained jet encoder whose layers are mixed ELMo-style into a small learned event summary. The fit adds a handful of shared adjustment parameters, under a sparsity prior, that let the whole event sample shift away from simulation only when the data demand it. We then test the fit where it matters: real CMS collision data with simulated signal injected at known strength, so bias and interval coverage can be measured against an actual reality gap.

Core Claim

A misspecification-robust unbinned extended fit is tractable if the adjustment lives in a low-dimensional learned summary shared by all events, rather than in per-event corrections. On real-data background, such a fit should give signal-yield pulls with near-unit width and nominal coverage. The matched fit without adjustments should not. The fit should also lose little sensitivity compared with the standard practice of fitting a one-dimensional classifier score.

The second clause matters. The obvious version of this intersection, "fit an unbinned likelihood over the rich latent space of a pretrained transformer", is not clearly better than what physicists already do. When simulation is correct, a good classifier score is close to the optimal statistic for a signal fraction, so extra latent dimensions add little. We therefore do not claim that more dimensions buy sensitivity. We claim they buy room to absorb and diagnose mismatch in directions where signal and background differ less than real and simulated data do. A one-dimensional score cannot do this, because any distortion of it is confounded with signal.

Where This Sits

Three lines of work each supply one piece and leave the joint problem open.

Pretrained jet encoders supply the representation. Particle Transformer for Jet Tagging injects pairwise kinematic quantities into attention and pretrains on 100 million simulated jets. Accelerating Resonance Searches via Signature-Oriented Pre-training (Sophon) scales this to 188 classes and mass-decorrelates its outputs. Both stay inside simulation and use the network as a classifier; Sophon's authors explicitly note that calibrating on real detector data is unresolved.

The layer-mixing step comes from the language side. Following the learned weighted sum over all encoder layers in Multilingual Named Entity Recognition Using Pretrained Embeddings, Attention Mechanism and NCRF, we mix frozen encoder layers into the downstream summary. We reuse its point that a frozen encoder plus a light structured head is cheap to train. Our structured head is a likelihood, not a sequence decoder.

Aspen Open Jets supplies the real data and the motivation. It releases about 178 million real CMS 2016 jets and shows that pretraining on real data helps simulated tasks. It evaluates only generative fidelity, and it warns that pretraining can "ossify" representations. That warning constrains us: we keep the encoder frozen and simulation-trained, so the signal hypothesis is not washed out by background-only real data.

The robustness mechanism comes from Misspecification-robust Sequential Neural Likelihood (RSNL). It shows that neural likelihoods trained on a wrong simulator give confident, wrong posteriors. Its fix shifts summary statistics by adjustment parameters under a Laplace shrinkage prior. RSNL works on aggregate summaries of a whole dataset, has no Poisson count term, and notes that the cost grows with summary dimension. We move the same idea to the event level and keep the number of adjustment parameters fixed at the summary dimension, independent of the number of events. Benchmarking Simulation-Based Inference motivates the evaluation gap: its tasks are all well-specified, so they cannot reveal the failure we target.

Classical fits show what the fit must deliver: yields, limits and intervals with honest coverage. Examples are the CLEO search in Update of the search for the neutrinoless decay tau -> mu gamma, with two kinematic variables, and the detector-response fit in Determination of responses of liquid xenon to low energy electron and nuclear recoils using a PandaX-II detector, with hand-built polynomial responses.

Method

Event summary. A frozen Particle Transformer, pretrained on JetClass, produces per-layer jet embeddings. A learned softmax mixture over layers, followed by a small projection, maps each jet to a summary $z_i \in \mathbb{R}^d$ with $d$ between 2 and 8. The projection is trained on simulation to separate signal from background while being mass-decorrelated, as in Sophon. Jet mass $m_i$ is kept as an explicit observable.

Densities. Conditional normalizing flows learn the signal density $q_s(z, m)$ and background density $q_b(z, m)$ from simulation. A normalizing flow is an invertible network whose density can be evaluated exactly.

Fit. For $N$ observed events, the fit maximizes

$$ \mathcal{L}(\nu_s,\nu_b,\gamma,\sigma) = \frac{e^{-(\nu_s+\nu_b)}}{N!}\prod_{i=1}^{N}\Big[\nu_s\, q_s(\tilde z_i, m_i) + \nu_b\, q_b(\tilde z_i, m_i)\Big]\, \prod_{k=1}^{d} e^{-\sigma_k}\;\cdot\;\pi(\gamma,\sigma), $$

with the symbols defined as follows. $\nu_s$ and $\nu_b$ are the expected signal and background counts. $\tilde z_{ik} = (z_{ik}-\gamma_k)e^{-\sigma_k}$ is a shared shift-and-scale of each summary coordinate. The factor $e^{-\sigma_k}$ is its Jacobian, so densities stay normalized. $\pi$ is a Laplace prior whose scale is set by the spread of $z$ in a held-out real control sample, as in RSNL. The prior keeps $\gamma$ and $\sigma$ near zero unless the data pull them away.

The fit has $2d$ nuisance parameters, at most 16, and they can be profiled with ordinary minimizers. The estimated $\gamma$ and $\sigma$ also serve as a diagnostic: they show which summary directions simulation gets wrong.

Identifiability. A shift in $z$ could mimic signal. To pin down the adjustment, the fit includes a signal-depleted mass sideband that shares $\gamma$ and $\sigma$ with the signal region. This is the standard physics control-region approach. We measure how much residual confounding remains, as described in the experiments below.

Layer mixing as an analysis variable. We test one hypothesis about the ELMo-style mixture. Deeper layers encode more simulator-specific detail, so a mixture tilted toward them should need larger adjustments on real data. We compare the learned mixture against single-layer summaries and record both the sensitivity and the size of the adjustment.

Baselines

The naive reference point is a cut-and-count analysis on the encoder's signal score: choose a threshold on simulation, count surviving events, and apply Poisson statistics. This is the "just use the tagger" pipeline. Update of the search for the neutrinoless decay tau -> mu gamma reports that its unbinned fit reached 15.2% signal efficiency and a limit of $1.0\times10^{-6}$, compared with a less sensitive cut-based limit. We expect a similar gap here, and it serves as a sanity check rather than the target.

The strongest competitor is the current standard practice: an unbinned extended fit on the one-dimensional score of the same frozen Particle Transformer plus jet mass, with conventional template nuisance parameters for jet energy scale and resolution. We give it the same simulation, the same encoder, the same sideband, and an equal tuning budget for its nuisance model.

On simulated JetClass, the encoder's reported strength is 86.1% accuracy against 84.4% for ParticleNet, in Particle Transformer for Jet Tagging. Sophon reports reaching $5\sigma$ with about 2.4 times fewer signal events than high-level features, in Accelerating Resonance Searches via Signature-Oriented Pre-training. We found no reported result on Lacuna for signal-yield bias or interval coverage of any of these methods on real collision data. Our method beats this baseline if it keeps 68% and 95% coverage within a few percent of nominal under every injected mismatch where the baseline under-covers, while its expected limit is no more than about 10% worse in the well-specified case.

Three ablations isolate the key ingredient. The first is the same $d$-dimensional fit with $\gamma$ and $\sigma$ fixed to zero, which tests whether the adjustment does the work. The second is the adjustment applied to the one-dimensional score only ($d=1$), which tests whether extra dimensions are needed for robustness. The third is the adjustment without the sideband, which tests identifiability.

A last comparison is RSNL itself, run on per-dataset summary vectors of the same $z$. It shows what is lost by aggregating events and dropping the Poisson count.

Why not just…?

Why not just fit the one-dimensional classifier score with standard systematic templates? This is the real threat. If the dominant real-versus-simulation differences are captured by a few known detector effects, template nuisances on the score will cover them, and our method adds complexity for nothing. The $d=1$ ablation and the main baseline settle this directly. The method earns its place only if mismatches not represented in the templates bias the one-dimensional fit while the multi-dimensional adjusted fit absorbs them. The test uses unmodeled mismatches of two kinds: the actual real-versus-simulation gap on Aspen Open Jets, and deliberate perturbations such as constituent smearing and altered background composition. If the one-dimensional fit holds coverage everywhere, we report that as the result.

Why not just apply RSNL to summary statistics of the event sample? RSNL calibrates well on aggregate summaries, but its own authors note that cost grows with summary dimension. Aggregating events also discards the per-event density information that makes unbinned fits efficient, and RSNL has no count term for yields. Running RSNL as a baseline on summaries of the same $z$ measures the efficiency cost directly. We expect wider intervals at equal coverage.

Why not just pretrain or fine-tune the encoder on real data and skip the adjustment? Aspen Open Jets shows that real-data pretraining improves transfer. It reports no calibrated parameter inference, and it warns of ossification. Real data contain essentially no labeled signal, and the signal density must still come from simulation. So adaptation narrows the gap but cannot certify that a residual gap is harmless. We run the main fit both with the JetClass-pretrained encoder and with an Aspen-pretrained variant, without adjustments. If real-data pretraining alone restores coverage, the adjustment is unnecessary, and the proposal reduces to recommending that encoder.

Proposed Experiments

Signal injection on real background. This is the decisive test. Background comes from Aspen Open Jets real CMS jets in a mass window. Signal consists of simulated JetClass top or $H\to b\bar b$ jets injected at yields from zero up to several times the expected limit. For each configuration we run hundreds of pseudo-experiments. We report the mean and width of the signal-yield pull, the coverage of the 68% and 95% intervals, and the expected upper limit. This uses real detector effects on the background, the component that dominates the yield. The injected signal still carries simulation error, which we acknowledge, and we probe it by smearing the signal separately.

Null test. We fit real data with no injection, across sliding mass windows, and check that the fitted signal stays consistent with zero. This is the spurious-signal test.

Controlled mismatch grid on simulation. Fits trained on nominal JetClass are applied to JetClass with graded perturbations. This maps where each method's coverage breaks and whether the fitted $\gamma$ and $\sigma$ point at the perturbed direction, much as RSNL's adjustments separated mean errors from variance errors.

Layer-mixing study. We compare the learned mixture with single-layer summaries on two quantities: sensitivity, and the size of the fitted adjustment on real data.

Decisive outcome. The result that matters is coverage under a real reality gap. The proposal succeeds if adjusted multi-dimensional fits hold nominal coverage on real-background injection where the one-dimensional and unadjusted fits do not, at a small sensitivity cost. It fails, and we will say so, if the one-dimensional template fit or real-data pretraining already holds coverage.