Certified Sensitivity Under Coherent Detector Miscalibration

When a physics experiment searches for a rare signal, the final answer is a count: how many events pass a neural-network selection, and how many of those would be background anyway. If the detector's calibration is slightly off, for example if hundreds of calorimeter channels each carry a small gain error, every event shifts in the same way at once. The signal efficiency and the background rate both move, and the discovery significance moves with them. Today these errors are handled by profiling a few named nuisance parameters, which are knobs in the likelihood fit for known systematic effects. That approach cannot tell an analyst whether some combination of hundreds of small channel errors, all inside the calibration uncertainty, could quietly cut the sensitivity in half. We propose to answer that question with a guarantee.

The idea is to treat the detector calibration as a parameter of the model. We add a gain layer in front of the network, so that miscalibration becomes a shift of that layer's weights. We then apply randomized smoothing in that parameter space: we average the selection over random calibration draws, and we use the same draw for every event. Because one perturbation is shared across the whole dataset, the standard Gaussian smoothing argument bounds dataset-level counts directly, not per-event labels. Those count bounds then give a certified lower bound on the median discovery significance. The bound holds for every calibration error inside a stated ellipsoid, including the adversarial worst one.

Core Claim

Parameter-space smoothing so far certifies one model against changes to its own weights: watermark retention under fine-tuning in Certified Neural Network Watermarks with Randomized Smoothing, backdoor resistance in CRFL and FRS, and group fairness in FAIRSMOOTH. None of these papers turns the weight perturbation into a physical object. In each, an $\ell_2$ radius in weight space has no meaning outside the network.

Our claim is that per-channel calibration errors can be rewritten exactly as weights of an explicit gain layer. Once that is done, the parameter-space radius becomes the experiment's calibration uncertainty ellipsoid. The shared-noise structure of parameter smoothing then matches the coherent structure of real systematics, which affect all events identically within a run. The watermark paper already shows that an aggregate statistic, trigger-set accuracy, can be certified under a shared weight perturbation. We reuse that idea for selection efficiencies and push it through the counting statistics of a search.

Let $x_i$ be the detector readout of event $i$ over $K$ channels, and let $\Sigma$ be the $K \times K$ calibration covariance. A gain error $\delta \in \mathbb{R}^K$, measured in whitened units, rescales channel $k$ by $\exp((\Sigma^{1/2}\delta)_k)$. Let $f$ be the trained classifier and $t$ the selection threshold. The smoothed efficiency of a sample $S$, either signal or background, is

$$\bar\varepsilon_S(\delta) = \mathbb{E}_{u \sim \mathcal{N}(0,\sigma^2 I)} \Big[ \tfrac{1}{|S|} \textstyle\sum_{i \in S} \mathbf{1}\{ f(e^{\Sigma^{1/2}(\delta+u)} \odot x_i) > t \} \Big].$$

This is a $[0,1]$-valued Gaussian smoothing of a function of the shared variable $\delta + u$. The standard argument, of the same kind FAIRSMOOTH uses to get noise-only Lipschitz constants, therefore gives the following for every $\|\delta\| \le R$:

$$\big| \Phi^{-1}(\bar\varepsilon_S(\delta)) - \Phi^{-1}(\bar\varepsilon_S(0)) \big| \le R/\sigma,$$

where $\Phi$ is the standard normal cumulative distribution. In practice $\bar\varepsilon_S(0)$ is replaced by a Clopper–Pearson interval from $M$ Monte Carlo draws.

The expected signal and background counts are $s = N_s \bar\varepsilon_{sig}$ and $b = N_b \bar\varepsilon_{bkg}$, where $N_s$ and $N_b$ are the produced signal and background yields. The median Asimov significance is $Z_A = \sqrt{2((s+b)\ln(1+s/b) - s)}$. It increases in $s$ and decreases in $b$. Plugging in the lower signal bound and the upper background bound therefore gives a certified $Z_A$ floor over the entire calibration ellipsoid.

The research question is not whether such a bound exists; it is cheap and does not depend on the network. The question is whether it can be made tight enough to matter while the classifier keeps its discrimination power.

Research Program

The work has three parts. The first is construction. We add explicit gain layers to classifiers for three settings. The first is the 8-feature $t\bar t$ analysis on CMS Open Data, where jet energy scale acts as a single global gain. The second is the multi-channel calorimeter and tracking images of the CMS 2012 dijet sample, with per-tower gains for ECAL and HCAL giving $K$ in the hundreds. The third is the high-level jet, track, secondary-vertex and particle-flow features of the CMS H(bb) dataset, with per-feature-family gains. For the H(bb) data we subsample signal to create a rare-signal counting regime, with $s/b$ near $10^{-2}$.

The second part is training. The bound's width is fixed by $R/\sigma$, so tightness requires the classifier to keep its performance under gain noise several times larger than the real calibration uncertainty. We train with shared gain noise drawn per minibatch. We also combine this with the INFERNO loss, which trains the network to minimize the expected variance of the fitted signal strength. We study how the smoothed $Z_A$ at $\delta = 0$ trades off against the certified floor as $\sigma/R$ grows.

The third part is analysis of where the bound is loose. The probit bound is loose in the tails. For a background efficiency of $10^{-3}$ and $R/\sigma = 0.5$, the certified upper bound is about $4.7\times10^{-3}$. Rare-event selections therefore need $\sigma \gtrsim 4R$. We will measure whether networks survive that noise level. We will also test whether certifying only the coherent part of the shift is enough, in particular when the error is a low-rank global scale combined with a small per-channel residual.

Computational overhead is the main practical limitation of parameter smoothing, since it requires many forward passes. Here it matters little. Final candidate samples in rare searches are small and analyzed offline, so $M = 10^4$ shared draws over the selected events is affordable.

Baselines

The naive reference point is the standard practice: a binary cross-entropy classifier with jet energy scale or gains profiled as nuisance parameters using $\pm1\sigma$ templates. On the $t\bar t$ benchmark, the INFERNO paper reports a signal-strength uncertainty of "10-11%" for this setup on Asimov data, and "9%" for INFERNO itself, along with a reduction of the signal–nuisance correlation from -0.42 to -0.10. We reproduce both numbers before adding anything. On the dijet images, the comparable discrimination reference is ResNet-15 with an ROC AUC of 0.8076, from End-to-End Jet Classification of Quarks and Gluons with the CMS Open Data. For the H(bb) dataset, no reported result was found on Lacuna.

The strongest competing certification method is deterministic bound propagation under weight perturbation. This follows Towards Certificated Model Robustness Against Weight Perturbations and Automatic Perturbation Analysis for Scalable Certified Robustness and Beyond, applied to the same gain layer with the same ellipsoid. It certifies the unsmoothed network and needs no sampling, so it is the method our approach must beat on tightness. For these benchmarks, no reported result was found on Lacuna for either method.

The strongest empirical competitor is training with random gain augmentation and then evaluating the worst efficiency found by projected gradient search over $\delta$ inside the ellipsoid. It gives no guarantee, but it shows how much sensitivity is truly at risk.

The ablation that isolates our key ingredient replaces shared noise with independent per-event gain noise, which is ordinary input-space smoothing. Aggregate counts are then bounded by summing per-event certificates and treating every uncertified event as a possible flip.

All methods use the same simulated samples, the same architecture, the same nuisance ellipsoid and an equal hyperparameter search budget. We count the method as beating the baselines in two cases. The first is a certified $Z_A$ floor at least as high as the bound-propagation floor, at no more than the INFERNO-level loss of nominal $Z_A$. The second, in high-$K$ settings, is a certified floor that stays below the adversarially found worst case while exceeding the floor from summed per-event certificates.

Why not just…?

Why not just profile the nuisance parameters, or scan them on a grid? In the one-dimensional jet energy scale case this works and is exact. We use it there as ground truth to check that our bound is valid and to measure how loose it is. Grid scans scale exponentially with $K$, though. Profiling with linear template morphing also captures only the directions someone chose to model. The INFERNO results show that even one profiled nuisance leaves substantial signal–nuisance correlation under BCE training. A random scan over hundreds of gains is the tempting cheap fix, and it is the threat we take most seriously. Unveiling the Basin-Like Loss Landscape in Large Language Models shows that networks can look stable under random weight perturbations yet fail along targeted directions. Our experiments compare random-scan worst cases against gradient-search worst cases. If the two agree on the dijet and H(bb) tasks, the case for certification there weakens, and we will report that.

Why not just augment training with varied calibrations? Augmentation is part of our training recipe; it does not replace the certificate. It improves average behavior but makes no statement about the worst case inside the ellipsoid. We report augmentation alone, scored by gradient-search attack, against the same model with the certificate added.

Why not just use input-space randomized smoothing? Per-event input smoothing draws noise that is independent across events. This is the wrong model for a calibration error shared by a whole run. It certifies whether each event's label flips, but the quantity a search needs is an aggregate count. Summing per-event certificates is a valid aggregate bound, but we expect it to be much looser, because any event near the threshold counts as a full possible flip. Our shared-versus-independent ablation tests this directly. If the summed per-event bound comes within about 20% of ours, the parameter-space framing adds little and we will say so. The uncertainty-aware abstention of Integrating uncertainty quantification into randomized smoothing based robustness guarantees could tighten either variant, and we leave it as an extension.

Proposed Experiments

The first decisive check is validity. Across all three benchmarks, no gain vector found by gradient search inside the ellipsoid may push the smoothed signal efficiency below, or the background efficiency above, the certified interval at 99% Monte Carlo confidence. On the $t\bar t$ benchmark we additionally require the bound to contain the exact grid-scan curve.

The second check is usefulness. We plot nominal $Z_A$ and certified $Z_A$ against $\sigma/R$ and report the largest ellipsoid for which the certified floor stays within 80% of the nominal value. We also report how this compares to the floor from deterministic bound propagation.

The third check is tail behavior. In the rare-signal H(bb) regime, with background efficiencies of $10^{-3}$ or lower, we measure whether any trained network keeps a useful certified floor at $\sigma \ge 4R$. A negative result here is informative: it would mean the probit bound is too loose for realistic rare searches, and that tail-adapted smoothing distributions are the real open problem.

Finally, we compare the certified floor against the actual change in significance under held-out simulated miscalibrations that were never used in training. This connects the guarantee to the sim-to-real calibration failures that EXO-200 handled only post hoc in its profile fit.