Yield-Anchored Minimum Classification Error Training for Unbinned Extended Fits

Searches for rare particle decays usually work in two steps. First a classifier is trained to separate signal events from background. Its output score is then frozen and fed, as one more continuous variable, into an unbinned extended maximum likelihood fit. That fit models every recorded event's exact coordinates with continuous probability densities and treats the total event count as Poisson-distributed, so the expected signal and background yields come out as fitted parameters. The classifier is almost never trained with this downstream fit in mind. Minimum classification error (MCE) training comes from speech recognition. Instead of fitting probabilities everywhere, it smooths the 0-1 error into a sigmoid of the margin between the correct class and its nearest competitor, so learning concentrates on events near the decision boundary. Standard MCE puts that boundary where the two class scores are equal. This proposal argues that in a rare-signal fit, the boundary that matters is somewhere else.

The core idea fits in two sentences. If you work out where the extended fit's precision on the signal yield actually comes from, the answer has the shape of an MCE loss: a sigmoid in log-likelihood-ratio units whose centre is set by the expected yield ratio and whose steepness is fixed rather than tuned. Training a small classifier with this "yield-anchored" MCE loss should give tighter signal-yield uncertainties from the downstream unbinned fit than cross-entropy, class-reweighted cross-entropy, or ordinary MCE. The gain should appear exactly when the classifier is too small, or trained on too little simulation, to learn the full likelihood ratio.

Core Claim

Let $t(\mathbf{x})$ be the classifier's estimate of the log ratio $\log r(\mathbf{x})$, where $r = p_s/p_b$ is the true ratio of signal to background densities at event features $\mathbf{x}$. Let $N_s$ and $N_b$ be the expected signal and background yields. The downstream fit uses the score $y = t(\mathbf{x})$ through the extended likelihood

$$\mathcal{L}(N_s,N_b) = e^{-(N_s+N_b)} \prod_{e=1}^{N} \big[ N_s\, q_s(y_e) + N_b\, q_b(y_e) \big],$$

where $q_s, q_b$ are the score densities for signal and background. With both yields free, the variance of the fitted signal yield comes from the inverse of the information matrix, whose entries are integrals of $q_j q_k / (N_s q_s + N_b q_b)$.

A useful fact sets up the whole proposal. If $t$ equals $\log r$ exactly, the score is a sufficient statistic, so any well-calibrated classifier is already optimal. This includes a cross-entropy-trained one. Training objectives can only differ when the classifier is imperfect.

Compressing $\mathbf{x}$ to an imperfect $y$ loses information. To leading order, which we will check numerically rather than assume, the loss behaves like

$$\Delta I \;\propto\; \mathbb{E}_{s}\!\left[ \operatorname{Var}\big(\log r \mid y\big)\; \sigma\!\big(\log r - \log(N_b/N_s)\big) \right].$$

Here $\mathbb{E}_s$ is the expectation over signal events and $\sigma$ is the logistic sigmoid. In words, errors in the estimated log ratio cost precision in proportion to a sigmoid with slope one, centred where the local expected signal-to-background ratio equals one, that is where $N_s p_s = N_b p_b$.

This differs from standard MCE in three ways:

  • Where the margin sits. Standard MCE centres it at $t = 0$. The fit wants it at $t = \log(N_b/N_s)$, which in a rare search can be ten or more log-units into the tail.
  • The shape of the weight. The weight is one-sided and saturating, not the symmetric bump of the MCE derivative.
  • The slope. It is $\xi = 1$ in natural log-ratio units. The slope sensitivity that the research file lists as MCE's main practical weakness becomes a derived quantity instead of a hyperparameter.

Cross-entropy pushes in the opposite direction. Its per-signal-event gradient $1-\sigma(t)$ concentrates on low-ratio, hard-to-classify signal, which carries little yield information in a rare search.

Relation to Prior Work

The motivating gap comes from physics analyses that keep classification and fitting separate. The CLEO $B^+\to\omega K^+$ search (Observation of $B^+ \to \omega K^+$...) built a Fisher discriminant by maximizing between-class over within-class variance, froze it, and fed it with $\Delta E$ and $M$ into an unbinned fit. We keep that pipeline but derive the discriminant's training objective from the fit itself.

The CLEO $\tau\to\mu\gamma$ update (Update of the search for the neutrinoless decay $\tau \to \mu \gamma$) fit a correlated two-dimensional plane directly with no classifier. BASiL (Signal estimation in on/off measurements including event-by-event variables) weights each event by likelihoods taken from simulated reference distributions. Both show that continuous per-event information beats hard cuts. Both also rely on densities that can be modelled directly in two or so dimensions. That reliance limits them in high dimension, where a learned one-dimensional summary becomes necessary.

The method itself comes from the MCE family. The sigmoid-of-margin loss and its boundary-concentrated gradient are as described for chord recognition (Minimum Classification Error Training to Improve Isolated Chord Recognition) and telephone speech (Speaker-Independent Continuous Mandarin Speech Recognition Under Telephone Environments). The closest relative is minimum verification error, which weights misses and false alarms asymmetrically (Segment-based phonetic class detection using minimum verification error (MVE) training). MVE picks those asymmetric weights by hand and calls its tuning "far from mature." Our offset and slope instead come from the Poisson yields of the extended likelihood.

Exact 0-1 minimizers sit outside our design because they target the wrong quantity. These are TAO for oblique trees (Alternating optimization of decision trees...), direct 0-1 boosting (A Direct Boosting Approach for Semi-supervised Classification), and the globally optimal but $O(N^{DK+1})$ Deep-ICE (Deep-ICE...). We use TAO-style sparse oblique trees only as one constrained model class. The research file shows no paper combining MCE with extended likelihood fits.

We also know that training a classifier against a downstream inference quantity is not a new aspiration in general. That is why the end-to-end variance-minimization approach appears below as a competitor, not as our contribution.

Research Program

Theory. The first part makes the information-loss expansion precise. We derive the profiled variance of $\hat N_s$ for a compressed score with $N_b$ free. We find the leading term in $\operatorname{Var}(\log r\mid y)$ and state when the expansion holds: small within-level-set spread, and the asymptotic regime of the extended likelihood. On Gaussian and exponential-tail toys with known $r$, we compute the exact loss numerically and check whether the sigmoid weight predicts which regions of feature space a capacity-limited classifier should prioritize.

Loss. The second part turns the weight into a training objective. In the main variant, each event gets a weighted logistic loss with weight $\sigma(t(\mathbf{x}) - \log(N_b/N_s))$. The weight is held fixed during the gradient step and recomputed each epoch. Background events are additionally weighted by $e^{t}$, which re-expresses the signal-measure weight under the background measure.

In the "pure MCE" variant, the loss is the MCE sigmoid with misclassification measure $d(\mathbf{x}) = \log(N_b/N_s) - t(\mathbf{x})$ for signal and the mirror image for background, with $\xi=1$.

The expected yields $N_s$ and $N_b$ are themselves unknown. We therefore anchor training at the signal yield the analysis aims to exclude or discover, and we measure how sensitive the result is to misplacing that anchor by factors of 3 and 10.

Mismatch. The third part examines robustness to simulation mismatch, following the open question in the research file about miscalibrated detector response. A one-sided weight ignores the bulk of the background, so it may be less sensitive to mismodelling there. It may also be more sensitive to mismodelling in the high-ratio tail. We test which effect dominates rather than assuming either.

Baselines

Naive reference: cross-entropy. A classifier of identical architecture is trained with binary cross-entropy. Its score is then fit with the same unbinned extended likelihood, with score densities modelled by the same flexible parametric family fitted to held-out simulation. This is the default modern pipeline and the "do nothing different" point. Beating it means a statistically significant reduction in the pseudo-experiment spread of $\hat N_s$ at matched architecture, training-set size, and optimizer budget, with pull distributions that remain unbiased.

Class-reweighted cross-entropy. The loss is weighted and its logit shifted by $N_s/N_b$. This is the obvious one-line way to "tell the classifier about the yields," so it isolates whether our gain is merely a prior shift.

Ordinary MCE. The margin sits at zero and $\xi$ is tuned by grid search over the same budget we spend on everything else. This baseline tests whether the anchoring matters or whether any boundary-focused loss suffices.

Fisher discriminant plus unbinned fit. This follows the CLEO $B^+\to\omega K^+$ analysis. That analysis reports $\mathcal{B}(B^+\to\omega K^+) = (1.5^{+0.7}_{-0.6}\pm0.2)\times10^{-5}$ at $3.9\sigma$ (Observation of $B^+ \to \omega K^+$...), but that figure is not directly comparable on our benchmarks.

Direct variance minimization (strongest competitor). The classifier is trained end to end to minimize the asymptotic variance of $\hat N_s$, with score densities estimated by kernel density estimation inside each minibatch.

Reported numbers. We found no reported result on Lacuna for any classifier-plus-unbinned-extended-fit pipeline on the LHC Olympics R&D dataset. The nearest quantitative anchors are BASiL's 15–20% precision gain over hard cuts at 10% signal-to-noise (Signal estimation...) and the $\tau\to\mu\gamma$ unbinned fit's 15.2% efficiency and $\mathcal{B}<1.0\times10^{-6}$ limit (Update of the search...). Our own runs of the baselines will therefore be the reference.

Oracle. An unbinned fit on the true likelihood ratio, available on the toys, gives the information ceiling.

Ablations. These isolate the key ingredient by applying the offset alone, the one-sided weight shape alone, and the slope fixed at one versus tuned.

Why not just…?

Why not just use cross-entropy, since a calibrated classifier is already sufficient? In the infinite-capacity limit this is correct, and our theory predicts zero gain there. The proposal therefore lives or dies on the capacity sweep. Physics analyses often deliberately use small, interpretable or simulation-robust models, such as the Fisher discriminant in the CLEO analysis or sparse oblique trees. They also often train on limited simulation. If the gap closes at the model sizes analyses actually use, the idea fails and we will report that.

Why not just reweight the classes by the expected yields? Reweighting shifts the logit but keeps cross-entropy's gradient profile, which still emphasizes low-ratio signal. Our derivation says the information sits in high-ratio signal. The class-reweighted baseline tests this directly. If it matches our loss, the "anchored sigmoid shape" claim is refuted, and the contribution shrinks to an explanation of why reweighting works.

Why not just minimize the fit's variance end to end? This is the real threat. It targets the right quantity with no approximation. Its weakness is practical: it needs density estimates of the signal score inside each minibatch, and with rare signal and small batches these are noisy. Our loss is per-event and needs no density estimation. We will run both at equal compute. If end-to-end minimization matches us, we will reframe our loss as a cheap, stable approximation and measure the variance of the training run rather than claim a precision gain.

Why not just cut on an MCE-optimized boundary and count? The $\tau\to\mu\gamma$ comparison and BASiL both show that counting discards information that continuous fits keep. We include an optimized-cut count only as a lower reference.

Proposed Experiments

Toys with known densities. Gaussian and heavy-tailed toys in 2 to 20 dimensions, with known $r$, are used to verify the information-loss expansion. Expected signal-to-background ratios run from $10^{-1}$ to $10^{-4}$.

LHC Olympics R&D dataset. The second benchmark is the R&D dataset of the LHC Olympics 2020 (The LHC Olympics 2020...). We use its labelled $Z'$ signal and QCD dijet background, inject signal at controlled small fractions, and run an extended fit jointly on the classifier score and the dijet invariant mass.

Metrics. All metrics come from thousands of Poisson pseudo-experiments: the spread of $\hat N_s$, pull mean and width, median expected discovery significance, and the expected 90% upper limit.

Capacity and data sweep. Every method is run across hidden-layer widths from 2 to 256 units and simulation sizes from $10^3$ to $10^6$ events.

Decisive checks. The proposal is supported only if three things hold:

  • Yield-anchored MCE beats both cross-entropy variants by a margin that shrinks toward zero as capacity grows, as the theory predicts.
  • The optimal anchor tracks $\log(N_b/N_s)$ across the injected signal fractions.
  • It matches or beats end-to-end variance minimization at equal compute, with lower variance across training seeds.

Mismatch test. We train on nominal simulation and evaluate on samples with smeared or shifted features, mimicking detector miscalibration of the kind described for PandaX-II (Determination of responses of liquid xenon...). We then measure the bias in $\hat N_s$ for each method.

References

  1. Observation of<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msup><mml:mrow><mml:mi mathvariant="italic">B</mml:mi></mml:mrow><mml:mrow><mml:mo>+</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mo>→</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mi mathvariant="italic">ω</mml:mi><mml:mi mathvariant="italic">K</mml:mi></mml:mrow><mml:mrow><mml:mo>+</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:math>and Search for Related<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi mathvariant="italic">B</mml:mi></mml:math>Decays Modes
  2. Update of the search for the neutrinoless decay<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:mrow><mml:mover><mml:mrow><mml:mi>τ</mml:mi></mml:mrow><mml:mrow><mml:mo>→</mml:mo></mml:mrow></mml:mover></mml:mrow></mml:mrow><mml:mi>μ</mml:mi><mml:mi>γ</mml:mi></mml:math>
  3. Signal estimation in on/off measurements including event-by-event variables
  4. Minimum Classification Error Training to Improve Isolated Chord Recognition
  5. Speaker-Independent Continuous Mandarin Speech Recognition Under Telephone Environments
  6. Segment-based phonetic class detection using minimum verification error (MVE) training
  7. Alternating optimization of decision trees, with application to learning sparse oblique trees
  8. A Direct Boosting Approach for Semi-supervised Classification
  9. Deep-ICE: The first globally optimal algorithm for empirical risk minimization of two-layer maxout and ReLU networks
  10. The LHC Olympics 2020 a community challenge for anomaly detection in high energy physics
  11. Determination of responses of liquid xenon to low energy electron and nuclear recoils using a PandaX-II detector *