Lost in the Funnel: Selection-Induced Miscalibration in Ranking and Decision Systems

Aditya Somani, Rahul Ragesh, Vikas Joshi, Amit Singh
34 minread4.75scoreNo. 211-19 Personalization issue
Contents · 7 sections1A score that is calibrated at the exit need not stay calibrated where it is used2Where the error comes from: inherited bias, a changed mix, or selection itself3Why an ad scored 0.8 is no longer worth 0.8 after filtering4Recalibrate at the boundary where the score actually decides5A live test in two regions6A public replay of the same mechanism7What this means for multi-stage scoring systems
Rel 5Nov 4Prac 5Evid 5Time 5

The score is calibrated at the model exit, then overstates high values before the auction: Microsoft Ads recalibrates where the score actually decides

In an ads stack, a query–ad pair first gets a relevance score, then passes filters and rules, and only then enters the auction. Calibration is straightforward: among candidates scored 0.6, about six in ten should truly be relevant. Researchers at Microsoft Ads in Bangalore stress that the target is not a click, but judged relevance. A label of 1 means the ad is not defective, and it is assigned to the query–ad pair, so calibration can be measured even when the ad is never shown.

The catch is that the score used for quality thresholds and the auction is no longer the full population at the model exit, but the subset that survives filtering. The model did not change. Expected calibration error (ECE) at the exit was only 156 and 185 basis points, where one basis point is 0.01 percentage points, yet under Control it rose to 784 and 809 basis points before the auction, about four to five times as large.

In a 20-day live test that randomized 5% of search requests in each of two regions, they applied a selection-policy-aware post-hoc recalibration just before the auction. Pre-auction ECE fell by 60% and 71%, and impression-stage ECE fell by 63% and 80%, which means decision-time miscalibration was substantially reduced. Ad coverage dropped, click-through rate rose, and revenue per mille did not change significantly. The method is called FAR (Funnel-Aware Recalibration). It is not a new calibrator. It fits an existing isotonic map on the survivors at the boundary where the score actually drives decisions. The upstream model and the filtering and auction rules stay frozen. The map still has to be refit periodically when the selection policy changes.

A score that is calibrated at the exit need not stay calibrated where it is used

The paper writes calibration as: given a score (S), the conditional expectation of the binary outcome (Y) equals (S). Ranking can order candidates, but it does not guarantee that the absolute magnitude is still safe for bidding, thresholds, or mixing with other signals.

Their production target is judged relevance, not a click after presentation. Clicks depend on position and whether the ad was seen, and a missing click does not imply irrelevance. With relevance labels available before impression, calibration can be measured at every funnel layer, including candidates dropped before they are shown.

Serving components change the population a score is applied to. A score calibrated at the model exit therefore need not remain calibrated at the decision point. The authors ask where the error appears, and how to split it into quantities that can be measured.

Figure 1. Serving-stack schematic: an upstream relevance model produces the score (S), candidates pass through filtering, and FAR applies the map (g(S)) before the auction and impression stages.
Figure 1. Serving-stack schematic: an upstream relevance model produces the score (S), candidates pass through filtering, and FAR applies the map (g(S)) before the auction and impression stages.

Where the error comes from: inherited bias, a changed mix, or selection itself

Let (A) indicate whether a candidate survives a component, let the residual be (R=Y-S), and cut the score into fixed bins. The signed bias on survivors then splits into three terms.

The first is inherited error (E): bias already present in the input population before the boundary acts, which can be fixed upstream. The second is composition shift (C): survivors occupy score bins in different proportions than the input. Selection creates no new per-bin error; it only reweights errors that already existed. This term vanishes if every input bin is already calibrated, or if selection leaves the bin mix unchanged.

The third term is the paper’s key quantity, residual shift (W). It arises inside a bin: the survivors’ mean residual (Y-S) differs systematically from the input bin’s mean residual. If the selector uses information that still predicts relevance beyond the score, this term can appear even when the input is perfectly calibrated. When the input is already miscalibrated and the bins are coarse, score-only selection can also induce (W). With the existing score and serving rules held fixed, it can be removed by a selection-policy-aware correction fit on the survivors the current policy actually delivers. If the upstream model is retrained to include the selector’s signals, and the score equals the true conditional expectation given that shared information, calibration can also survive without this post-hoc step.

Hoot saysA coarse bin can look calibrated on average, yet score-only selection can leave a within-bin shiftClose ✕
A bin that looks right on average is not calibrated at every score. Opposite residuals can cancel inside a coarse bin; keeping only one side by score breaks that cancellation.

Coarse input bin (illustrative)

Who is in the bin
100 scored 0.6 and 100 scored 0.8
Residuals
+0.1 at 0.6, −0.1 at 0.8
Bin mean residual
The 200 candidates average to 0
How it looks
The bin looks calibrated on average

Opposite residuals cancel inside the same coarse bin.

After keeping high scores only (illustrative)

How they are kept
Score-only: keep the 100 scored 0.8
Survivor residual
Only the −0.1 side remains
Residual shift
−0.1 minus 0, which is −0.1
Which means
A calibrated bin average is not calibration at each score

Selection used only the score, yet the bin’s hidden miscalibration still becomes a within-bin shift.

Illustrative: in one coarse bin, half the candidates are scored 0.6 with residual +0.1, and half are scored 0.8 with residual −0.1, so the mean residual of 200 candidates is 0. After only the 100 scored 0.8 are kept, the survivors’ mean residual is −0.1, and the residual shift is −0.1.

SourceIllustrative arithmetic: 0.7−0.6=+0.1, 0.7−0.8=−0.1, (+0.1−0.1)/2=0; after selection the mean residual is −0.1, and the residual shift is −0.1−0=−0.1. Paper §3: when the input is miscalibrated and bins are coarse, score-only selection can also induce residual shift.

These three terms explain signed bias, not expected calibration error. Opposite errors can cancel, so a small aggregate gap does not mean every bin is calibrated.

A calibrated input remains calibrated on survivors if and only if, given the score, the residual and survival no longer move together. That holds when selection depends only on the score and independent randomness, such as a threshold or a top-(k) cut, or when the score equals the true conditional expectation given that shared information, and selection depends only on this information and independent randomness. Transfer fails when the selector uses signals that predict the outcome beyond the score. If the input is already miscalibrated, even score-only selection can still move aggregate bias through composition shift.

Diagnosis should use the same score definition and bins at consecutive boundaries. Input and survivor samples must represent the same transition; otherwise temporal drift or labeling changes can masquerade as selection.

Why an ad scored 0.8 is no longer worth 0.8 after filtering

Follow one query–ad pair through the stack. The upstream model scores it 0.8, and calibration at the exit is still good: among nearby candidates scored 0.8, about eight in ten are truly relevant. It then enters filtering, which applies thresholds, models, and policy, and may use signals beyond the score.

After it passes, it still carries the original 0.8 into the pre-auction stage, but the peers around it have changed. Control logs show that, at the filtering boundary in the two regions, inherited error is only (+0.1) and (-0.8) percentage points, and composition shift is only (+0.2) and (-0.1) percentage points, so those terms are negligible.

Residual shift is (-7.5) and (-7.0) percentage points and almost accounts for the pre-auction signed gaps of (-7.3) and (-7.8) percentage points, which means selection created the bias inside the bin. A bootstrap test gives (p\leq 0.001) for (W\neq 0).

Filtering boundary (Control)Inherited error (E)Composition shift (C)Residual shift (W)Output gap
Region 1(+0.1) pp(+0.2) pp(-7.5) pp(-7.3) pp
Region 2(-0.8) pp(-0.1) pp(-7.0) pp(-7.8) pp

The model did not suddenly mis-score 0.8. Inside the same score bin, the survivors’ mean residual was systematically lower. The score still says 0.8, but it no longer matches this population’s relevance rate. With the model and rules held fixed, refitting the exit score upstream cannot reach this residual shift created by selection. On the reliability plots, Control sits 6 to 24 percentage points below the diagonal at the top of the score range, which looks like high scores being overstated.

Recalibrate at the boundary where the score actually decides

FAR is deliberately modest: it does not change the model, or the filtering and auction rules. It only fits an existing post-hoc map (g(S)) on survivors at the decision boundary. Because those survivors already reflect the current selection policy, the paper treats a fit on this population as a way to absorb composition shift, residual shift, and whatever inherited error remains among survivors, with no need to finish an attribution first. The map used here is monotone isotonic regression. Later experiments show that error falls, which is not by itself a mechanistic guarantee when relevance is not monotone in the original score.

The recipe has three steps. First, declare the decision boundary: calibrate on the candidates that reach the point where probabilities drive decisions. In this funnel that point is pre-auction, where scores set quality thresholds and enter auction ranking. Next, learn the map on labeled survivors delivered by the current policy, keep the outcome definition consistent, and hold out a separate evaluation sample. Finally, compare residuals and expected calibration error on held-out survivors at that boundary, and check later boundaries separately with the same score and bins.

A correction at one boundary becomes the next boundary’s input, which helps drive inherited error and composition shift toward zero there. Later selection can still create a new residual shift, so downstream calibration has to be checked again. The authors require the map to be refit and monitored periodically. Prior work has warned that recalibrating only on winning impressions can change the next round of winners. This paper places the correction just before the auction, and accordingly writes periodic refitting into its operating principles: refit when the selected population changes.

A live test in two regions

The platform is a large-scale commercial sponsored-ads system. For 20 days, 5% of search requests were randomized in each of two regions: Control kept the upstream score, and Treatment replaced it with (g(S)) only at the pre-auction boundary, with every other setting unchanged. An isotonic map was fit on about 500,000 labeled pre-auction candidates from the previous week, with the two regions pooled. For evaluation, 25,000 candidates were sampled in each region at the upstream, pre-auction, and impression boundaries. Metrics used 50 equal-mass bins, and two-sided (p)-values came from 1,000 candidate-level bootstrap resamples, so the comparison is tied to the same binning and resampling scheme.

Signed gap shows the direction of bias and can be split into the three terms above, but opposite bin errors may cancel. Expected calibration error averages absolute bin errors and bounds the gap from above.

Figure 2. Reliability curves with 50 equal-mass bins: gray Control overstates relevance at high scores, and blue FAR tracks the diagonal more closely. Columns are the two regions; rows are the pre-auction and impression populations.
Figure 2. Reliability curves with 50 equal-mass bins: gray Control overstates relevance at high scores, and blue FAR tracks the diagonal more closely. Columns are the two regions; rows are the pre-auction and impression populations.

FAR cut pre-auction expected calibration error in Region 1 from 784 basis points to 314, a 60% drop, and in Region 2 from 809 to 234, a 71% drop. That means a single monotone map was enough to reduce miscalibration at the decision point.

Impression-stage error fell as well: from 633 basis points to 233 in Region 1, a 63% drop, and from 711 to 143 in Region 2, an 80% drop, which means the impression layer moved toward the diagonal too. These figures all come from the same monotone map, with no retraining of the upstream model and no change to filtering or auction rules.

The abstract describes a 60% to 80% cut in decision-time error, covering both the pre-auction and impression layers. The introduction separately reports a 60% to 71% cut at decision time, matching the pre-auction reductions of 470 and 575 basis points, because the abstract groups the two layers together.

Online metrics moved with the scores. Ad coverage fell by 3.1% and 9.2%, which the authors attribute mainly to removing defective ads that Control’s overstated scores had let through.

Click-through rate rose by 1.0% and 2.0%, and the quick-back rate, a proxy for dissatisfaction, fell by 1.2% and 2.4%. Revenue per mille changed by (+0.2\%) and (-0.1\%), neither significantly, which means users saw fewer, more relevant ads, with no significant change in revenue per mille.

A public replay of the same mechanism

Production funnel logs are proprietary, and public logs usually keep only served impressions, so the selection between calibration and decision cannot be observed directly. The authors therefore adapt two public datasets into a controllable selection setting. KuaiRand-1K has 6.7 million impressions, with the score predicting click and the selector watching long view; Criteo Attribution has 16.5 million, with the score still predicting click and the selector watching conversion.

The data are split 60%/20%/20% into train, calibration, and test sets, so fitting, calibration, and evaluation stay separate. Gradient-boosted trees fit the score and the selector, and the score is isotonic-calibrated and then frozen. In both regimes the selector sees all features. In the shared-information regime, the score also sees all features. In the information-gap regime, the score sees only static inputs: history, recency, and cost are withheld from the score but still given to the selector, as a proxy for later-stage signals.

On the test split, 20 draws generate survivor sets. Survival probabilities are controlled by the selector’s rank and a strength (\beta), with 10% retained on average. When (\beta=0), survival ignores the selector; Hard keeps the top 10% on the selector exactly, which is the infinite-strength limit. Survivors are then split in half, one half to fit isotonic FAR and the other to evaluate, with tests clustered by user.

Figure 3. In the public replay, the signed-gap change from input to survivors varies with selection strength (\beta), at 10% expected retention. The gap vanishes at (\beta=0) and grows with strength; gray traces are random controls. KuaiRand is on the left and Criteo on the right.
Figure 3. In the public replay, the signed-gap change from input to survivors varies with selection strength (\beta), at 10% expected retention. The gap vanishes at (\beta=0) and grows with strength; gray traces are random controls. KuaiRand is on the left and Criteo on the right.

Score-only selection can preserve calibration. The figure also shows that the signed gap vanishes when survival ignores the selector completely. Under shared information, small but significant gaps remain, because a fitted score only approximates the true conditional expectation, and the selector still has leftover outcome information. Once an information gap opens, Criteo gaps grow about tenfold, a scale comparable to the within-bin shifts of (-7.5) and (-7.0) percentage points at production filtering.

At strength 8 with 10% retained, selection moved the signed gap in every run. Survivor-fit FAR removed that gap: the post-correction absolute value was at most 4 basis points, with (p>0.44), which means the signed bias was corrected.

The sharpest case is Criteo’s information gap. When the selector favors high ranks, expected calibration error falls from 685 basis points to 70, a 90% drop; when it favors low ranks, it falls from 768 to 53, a 93% drop. That is a large recalibration gain in Criteo’s information-gap setting; it does not mean a larger information gap always makes FAR more necessary, because neither the sign of the gap nor the need for FAR can be guessed in advance from direction alone, and both depend on the local covariance in the retained slice. On KuaiRand, the two directions even move the same way. The authors plan to release the adapted datasets and their generation pipeline for later reuse.

What this means for multi-stage scoring systems

Calibration belongs to a score and to the population that score is applied to. Selection can throw off a score that was already calibrated at the exit. The authors distill five working principles. Calibrate where scores are used, not only at model output, and split signed bias at every boundary into inherited error, composition shift, and residual shift. Fix inherited error with an upstream refit, and, with the existing score and rules held fixed, remove selection bias on the selected population. Refit when that population changes, and do not trust aggregates alone, because opposite errors can cancel.

The same failure can appear in recommendation cascades, retrieve-and-rerank stacks, and moderation pipelines. Jointly calibrating several boundaries and adapting the correction online are the next steps named in the paper. If offline evaluation reports calibration only at the model exit, it can understate error at decision time when selection has already thrown the score off, as it did in this production funnel.

How did this read for you?

One tap, no sign-in; tap again to undo. Only anonymous counts are kept, never who you are.

Discussion

Add experiment details, reproduction notes or a different take. Requires a GitHub sign-in.

Loading the discussion…