Certify Before Recalibrating: Exact Support Tests for Label-Shift EM in Rare Web Streams

Pin Ni, Angela Altmeier, Christian FischarXiv 2026 · DOI

TL;DR

A machine learning model can be great at ranking risky items while completely botching how many events will actually occur—a problem when you need to staff a review queue before delayed ground-truth labels arrive. Standard label-shift recalibration (via Expectation Maximization, or EM) often quietly collapses to zero on rare events. This paper introduces a fast, single-pass mathematical check to test whether today's predictions actually support a minimum event rate before running EM, and shows why anchoring to recent historical rates often beats unlabeled recalibration in the wild.

What Problem Does This Paper Address?

Imagine running a risk-monitoring system on a live web stream—say, flagging corporate dissolutions. You have two distinct jobs: ranking records so reviewers see the likeliest cases first, and quantifying the total number of events to plan your team's workload. Because ground-truth labels take weeks or months to arrive, you can't immediately check if your model's base rate has drifted.

To adjust predicted probabilities using only today's unlabeled data, practitioners often turn to label-shift Expectation Maximization (EM), which iteratively updates the assumed event rate while holding the model's learned patterns fixed. However, when events are rare (under 1%) and real-world distributions shift, EM can catastrophically fail. Even while your model still ranks cases usefully, EM can spiral down toward a predicted rate of zero—underestimating the true workload by four orders of magnitude—or wildly overshoot it.

Figure 1: Monthly event rates in the LEI registry [26]. Per-record EM underestimates the event rate by four orders of magnitude in three months. In March its likelihood has an interior optimum, yet EM predicts nearly eight times the observed rate.

Methods

Instead of running EM blindly and hoping it converges somewhere sensible, the authors separate certifying likelihood support from recalibrating the level:

  • Single-Pass Binary Floor Test: Leveraging the classical strict concavity of the binary log-likelihood, the authors evaluate its derivative $C(t)$ at a chosen minimum operational workload floor $t$. One pass through the batch of scores tells you—without running EM—whether the likelihood's peak lies above, at, or below $t$. Setting $t=0$ yields an exact boundary test: EM collapses to zero from any starting point if and only if the average odds of today's predicted scores do not exceed the training (source) odds ($\mu \le 1$).
  • Finite-Tolerance Stopping: Because code stops at a numerical tolerance $\eta$ rather than running forever, the authors derive closed-form bounds on the tiny, non-zero number EM actually spits out right before halting during a collapse.
  • Multiclass Escape Step: If a model predicts multiple mutually exclusive outcomes and an optimum assigns zero prevalence to one class, EM gets stuck there. Using Karush–Kuhn–Tucker (KKT) optimality conditions, the authors construct an explicit step to test and bring back an excluded class if it improves the likelihood.
  • Delayed-Label Anchoring: As a pragmatic alternative to unlabeled EM, they calibrate score shapes via Venn–Abers isotonic regression on past data, then rescale each record's odds to match an anchor: the simple average of the last three observed period rates.

Datasets

The authors evaluate their methods across three rare-event web streams (where observed event rates are mostly below 1%):

  • Legal Entity Identifier (LEI) Registry: A newly constructed panel of 130.7 million entity-months tracking first published corporate status changes (e.g., dissolutions, mergers, identifier successions) from 2022 to August 2026. Its holdout rate (~0.05%) is roughly eight times rarer than existing quantification benchmarks like LeQua 2022.
  • SEC Form D Filings: 72 quarterly archives (2008–2025) tracking repeat exempt-offering filings across 339,577 issuers.
  • Kickstarter: A crawl of 201,434 crowdfunding campaigns tracking weekly campaign cancellations.

Key Insights and Ideas

  • Every severe collapse was mathematically destined for zero: Across 60 predictor-period pairs, all 17 EM estimates that fell at least 99% below the true rate had $\mu < 1$. They weren't numerical glitches; the likelihood genuinely peaked at zero.
Mean EM predictions relative to observed rates plotted against the EM-map slope at zero.
  • Passing the likelihood test doesn't guarantee real-world accuracy: The test only certifies what the likelihood supports, which assumes only label prevalence shifted. When underlying feature-to-outcome relationships also drift, an interior EM optimum can still miss badly—one registry month passed the floor test yet overestimated events by 688%.
  • Extreme tail sensitivity: In rare-event streams, whether EM collapses or survives hinges on a tiny fraction of rows. Dropping just the top 0.01% highest-scoring registry records flipped two months from interior optima ($\mu > 1$) into total zero-collapses ($\mu < 1$).
  • Boring past averages beat clever unlabeled adaptation: A "gated" strategy—using EM when it passes a floor test and falling back to the 3-month historical anchor when it fails—avoided collapses, but always using the historical anchor still yielded lower error across all three streams.

Key Results

  • Prevalence Estimation: Over 30 per-record replay periods, always anchoring achieved a mean absolute relative error of 24.24% (Registry), 7.45% (Form D), and 29.77% (Kickstarter), outperforming both raw EM (181.49%, 17.74%, 832.71%) and the gated EM rule (123.12%, 17.75%, 832.72%). Simple mean predicted probabilities (PCC) also beat EM on every stream.
  • Single-Use Holdout: On a 15-day LEI registry holdout (3.13M rows, 1,507 events) where a LightGBM per-record hazard model and a stratified aggregate rate table shared the same 3-month anchor, LightGBM improved ranking PR-AUC 4.93-fold (0.003865 vs. 0.000785) and achieved better mean log loss (0.003835 vs. 0.004168). However, the simpler rate table narrowly won on the Brier score point estimate (0.0004815 vs. 0.0004822).

Limitations and Future Work

The authors claim no new concavity theorems, noting that their test builds directly on classical mixture properties. The gated decision rule and specific operational floors were evaluated post hoc rather than prospectively. Furthermore, the single 15-day holdout wasn't completely untouched—files from its first four days were parsed for counts before the evaluation design was finalized (though post hoc checks on the remaining 11 days confirmed the findings), and a single window cannot prove how often the model's advantage recurs. Finally, cluster resampling across jurisdictions left population-level signs of $\mu - 1$ statistically unresolved in the registry, and all real-world streams studied were strictly binary, leaving empirical validation of the multiclass escape step on live streams for future work.

Summary updated

BibTeX
@misc{ni2026certify,
  author = {Pin Ni and Angela Altmeier and Christian Fisch},
  title = {{Certify Before Recalibrating: Exact Support Tests for Label-Shift EM in Rare Web Streams}},
  year = {2026},
  eprint = {2611.40223},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.40223},
}
Figure