Probability-Budgeted Neuron Refinement for Certifying Rare Misclassification Rates

Neural network classifiers now sit inside rare-event physics searches. In the EXO-200 search for neutrinoless double-beta decay, for example, a network that labels detector images as signal-like or background-like improved sensitivity by about 25% (EXO-200). Such a classifier is only checked by simulation and calibration sources. Nobody bounds how often realistic detector noise pushes a background event across the decision boundary. That rate matters, because each leaked event adds to a background count whose Poisson fluctuation, of order $\sqrt{N}$, sets the experiment's reach. Formal verification tools answer a different question: is there any input in a region that flips the output? Under a noise distribution, a counterexample of probability $10^{-20}$ is irrelevant. Plain Monte Carlo has the opposite problem. It cannot see probabilities near $10^{-6}$ without millions of samples, and it gives no guarantee that some failure pocket was not missed.

We propose to turn selective neuron refinement into a tool that bounds probabilities rather than worst cases. Selective neuron refinement is the family of verifier techniques that handle only a few critical neurons exactly and approximate the rest cheaply. Our verifier splits the input space into cells and tries to prove each cell safe. The probability mass of the cells it cannot prove gives a sound upper bound on the misclassification rate. It decides which neurons to treat exactly, and which input cells to split, by how much input probability mass each choice would certify per unit of compute, not by how much it tightens a worst-case margin. It also stops refining as soon as the remaining gap between the upper and lower bounds is small next to the Poisson fluctuation the experiment already lives with. In two sentences: we certify an upper bound on the rate at which noise makes a classifier fail, by spending exact reasoning only on the neurons and input regions that carry probability mass. We stop once the bound is tighter than the experiment's own counting noise.

Core Claim

The claim is that ranking refinement work by certified probability mass, combined with a stopping rule set by the experiment's counting statistics, yields sound upper bounds on rare failure probabilities that are tight to within that statistical tolerance. It should do so at a fraction of the compute of margin-driven refinement, and without the missed-mode risk of sampling alone.

The mechanism is simple to state. Assume the input noise is Gaussian, possibly correlated. A whitening matrix turns it into a standard Gaussian, and that matrix can be folded into the network as a first linear layer. In the whitened space, the Gaussian mass of any axis-aligned box is an exact product of one-dimensional normal probabilities. The mass outside a ball of radius $R$ is an exact chi-square tail.

The verifier keeps a set of unresolved boxes. Each box is either proved safe by a bound-propagation pass with selectively refined neurons, or left unresolved. We define the certified upper bound $\bar p$ as the total Gaussian mass of unresolved boxes plus the tail mass outside the ball, so $\bar p$ is sound by construction. Importance sampling inside the unresolved boxes then gives an estimate $\hat p$ and a lower confidence bound $\underline p$.

The refinement budget comes from the physics. Let $N_b$ be the number of background events in the exposure. Let $\kappa$ be a tolerance fraction chosen by the analyst, for example 0.1. We refine until

$$N_b(\bar p - \underline p) \le \kappa \sqrt{N_b\,\bar p}.$$

The left side is the number of leaked background events the bound leaves undetermined. The right side is a fraction of the Poisson standard deviation of the leaked count itself. The $\sqrt{\cdot}$ form comes directly from the $\sigma=\sqrt{N}$ counting variance. Refining past this point cannot change any confidence limit the experiment reports.

Relation to Prior Work

Three lines of verification work supply the refinement machinery we reuse. RefineZono applies exact reasoning to uncertain, high-influence neurons in early layers (Boosting Robustness Certification). The Solution-Aware Scoring work runs a fast linear relaxation, reads off which individual neuron relaxations cause the output bound to be loose, and gives binary variables only to the top-$K$ of them in a partial mixed-integer program (Solution-aware vs global ReLU selection). MN-BaB ranks branching choices by their dual multipliers and their compute cost (MN-BaB). All three measure progress by a worst-case margin over a single region. Each would happily spend its whole budget on a cell that carries $10^{-15}$ of the input mass. We keep their per-instance scores but multiply them by the mass of the cell they act on. We also let the method choose between upgrading a neuron and splitting the input cell. Spurious-region refinement in DeepSRGR (Yang et al.) and on-demand tightening in SafeDeep (SafeDeep) motivate refining only after a cheap pass fails, and we adopt that two-stage structure. BNN-DP refines only the neurons driving predictive variance in Bayesian networks (BNN-DP). It is the closest precedent for refinement guided by a probabilistic quantity. Its randomness, however, lies in the weights, and it certifies output intervals rather than failure mass.

Two papers already sit at the intersection, and they define what is not new here. The rare-event simulation paper (Rare-event Simulation for NN and RF Predictors) solves full sequential mixed-integer programs to find "dominating points", the most likely failure inputs under a Gaussian. It then builds a Gaussian-mixture importance sampler around them, tested on the MAGIC gamma-telescope data. Its output is a confidence interval whose validity depends on finding all dominating points. It gives no sound bound, and the full mixed-integer step limits it to small models. The probabilistic robustness paper (Robustness of Neural Networks: A Probabilistic and Practical Approach) runs one static abstract-interpretation pass to flag candidate violating regions, then importance-samples them. It leaves empirical validation open. Our work differs from both in three ways. The bound is sound because box masses are computed exactly rather than sampled. The abstraction is refined adaptively by a mass-weighted score. Refinement is told when to stop by an exposure-derived tolerance.

On the physics side, the EXO-200 classifier and the RESuM surrogate (RESuM) motivate the problem. Both are networks whose rare-tail behavior is validated only empirically. The cosmic-ray and decay-search papers, such as the Telescope Array hotspot analysis (Abbasi et al.), show why tolerance should be set by counting statistics. When results are dominated by $\sqrt{N}$ fluctuations, extra precision in one component buys nothing.

Research Program

The first piece is the sound probabilistic verifier. Inputs are a ReLU classifier, a Gaussian noise model around a nominal event or an event class, and a failure property, such as a background-class event receiving a signal score above the analysis cut. We fold the whitening layer into the network and truncate at radius $R$, counting the tail mass as unresolved. The verifier starts with a single box and runs a fast bound-propagation pass in the style of $\alpha,\beta$-CROWN.

For each unresolved box, the verifier computes two candidate actions. One upgrades the top Solution-Aware-scored neurons to exact binary variables in a partial mixed-integer program. The other splits the box along the input dimension with the largest gradient-weighted width. For each action it estimates the expected certified mass gain divided by the cost of the action. It executes the best action across all boxes, using a priority queue keyed on that ratio.

The second piece is the two-sided estimate. Inside the unresolved boxes, we importance-sample from the input Gaussian restricted to their union. Restriction to boxes is easy to sample exactly. We optionally add mixture components at counterexamples the solver finds, reusing the dominating-point idea. Together these give $\hat p$ and $\underline p$. Because sampling happens only within certified-unresolved mass, the estimator's relative variance is governed by the ratio $\hat p/\bar p$. Refinement drives that ratio toward one.

The third piece is analysis. We will characterize when the mass-weighted score provably needs no more refinement steps than the margin-weighted score to reach a given $\bar p$. We will also measure how the required number of binary variables scales with network width at fixed tolerance. The Solution-Aware Scoring paper's observation that a few neurons carry most of the looseness predicts this should grow slowly.

Baselines

The naive reference point is crude Monte Carlo with a Clopper–Pearson upper bound on the failure rate. With zero observed failures in $n$ samples, the 95% upper bound is about $3/n$. This is the only sound-in-probability alternative a physicist would run without any solver. We give it the same wall-clock budget as our method on the same hardware. We beat it if our $\bar p$ is smaller at equal compute, and by orders of magnitude once the true rate is below $10^{-5}$.

The strongest existing method for the estimation task is dominating-point importance sampling from the rare-event simulation paper (Rare-event Simulation). On MAGIC, that paper reports that the relative-error ratio of naive uniform importance sampling to its method grew from 2 to 5–6 as rarity increased, and that it gave tight 95% confidence intervals. We will reimplement it with the same network, noise model and compute. Its full mixed-integer step will use the same Gurobi license and thread count we use. We count our method as beating it if three things hold. Our certified $\bar p$ must be within the stopping tolerance of its point estimate. We must reach that at equal or lower total compute. And on models with planted, hidden failure pockets, its interval must miss the true rate while our bound does not. That paper reports no sound upper bounds on MAGIC, so for $\bar p$ itself there is no reported result found on Lacuna.

The strongest existing verifier is Solution-Aware partial MILP after an $\alpha,\beta$-CROWN pass (Liao et al.). We wrap it in input-box splitting and compute unresolved mass exactly, but keep its own margin-based ordering. On worst-case benchmarks it reports reducing undecided instances from 50% (for $\alpha,\beta$-CROWN after 2,000 s on hard MNIST cases) to 8–15%, and from 20% to 11% on the 2-million-parameter CIFAR-10 CNN-B-Adv model. This wrapped verifier is the key ablation, because it isolates our one new ingredient: mass weighting plus the exposure-derived stopping rule. Both arms get identical solvers, time limits and $K$ budgets, and are tuned on the same held-out instances. We count it as beaten if we reach the tolerance target with clearly less compute, measured as median time to target across instances. A second ablation keeps mass weighting but removes the stopping rule and refines to a fixed time limit. It measures how much compute the physics tolerance saves.

Why not just…?

Why not just run dominating-point importance sampling and report its confidence interval? This is the real threat. If the only goal is a well-calibrated estimate on a small network, it may match us. Its weakness is structural. The interval is valid only if every dominating point was found, and the full mixed-integer search that finds them is what blocks scaling beyond MAGIC-sized predictors. We test this directly. We plant a second, slightly less likely failure pocket in a trained network by fine-tuning on a synthetic region. We then check whether the sampler's 95% interval covers the true rate, which we compute by brute force on low-dimensional cases. If its coverage stays at nominal levels, and it scales as well as our method, our contribution narrows to the soundness guarantee, and we will say so.

Why not just use an off-the-shelf verifier with input splitting and add up the masses? That is our main ablation, and it is not a straw man. Margin-driven ordering may already split mostly where the mass is, because high-mass cells near the nominal input are often the hardest. If the ablation reaches the tolerance target at similar cost, the mass-weighted score is unnecessary, and the useful finding reduces to the stopping rule. The Global-versus-Solution-Aware gap in the Solution-Aware Scoring paper, up to six times fewer binary variables, suggests that what you score matters a great deal. That gap, however, was measured on worst-case margins, not probability mass.

Why not just run more Monte Carlo on a GPU? The rare-event simulation paper shows crude sampling has near-total relative variance when the probability is far below the inverse sample count. RESuM documents roughly 52,700 CPU hours for brute-force simulation on its detector design task. Even a cheap network forward pass needs about $3\times10^{7}$ samples, with zero failures observed, to certify $10^{-7}$ at 95%, and the cost scales as $1/p$. The crude Monte Carlo baseline above quantifies this at equal compute. At moderate rarities near $10^{-4}$, it may well be competitive, and we will report the crossover point.

Proposed Experiments

The primary testbed is the MAGIC Gamma Telescope data: 10 features, 19,020 events. We train ReLU classifiers of increasing depth and width, from the small network of the rare-event simulation paper up to several thousand ReLUs. The noise model is a correlated Gaussian on the shape features fitted to their calibration spread. The failure event is a hadron event scoring above the gamma cut. We report $\bar p$, $\underline p$ and $\hat p$ against the stated exposure tolerance, along with compute to target and the number of binary variables used. Exact ground truth is available for small networks through exhaustive partitioning.

For scaling, we put Gaussian input noise around test points of the MNIST and CIFAR-10 networks used by Liao et al. and MN-BaB, including CNN-B-Adv and ResNet8-A. We target misclassification rates between $10^{-4}$ and $10^{-9}$. These networks have published worst-case results that anchor solver settings.

As a physics-shaped case, we train a small convolutional classifier on simulated detector images styled after the EXO-200 single-site versus multi-site task, with noise modeled as baseline shifts and calibration drift. We make no claim about the real EXO-200 data, which the file does not show as available. For each exposure we convert $\bar p$ into a certified leaked-background count.

The decisive checks are the following. First, the planted-pocket coverage test separates sound bounding from sampling. Second, the margin-versus-mass ablation at equal compute shows whether the central ingredient matters. Third, a sweep over $\kappa$ and $N_b$ should show compute falling roughly as the stopping rule predicts when the tolerance loosens. If the mass-weighted method neither saves compute over the ablation nor improves coverage over dominating-point sampling, the proposal's core claim fails.