Sub topic 11
Monitoring when labels are late or missing
This chapter assumes you can compute classification metrics such as accuracy and ROC AUC, and that you know how to compare a reference window with a current window. It also assumes you have seen drift tests and prediction drift. Here the question is different: how do you judge model quality when the ground truth has not arrived yet?
Why labels are late or missing
Performance monitoring needs a label for each prediction. In many systems the label arrives long after the prediction, or never.
- Fixed delay. A churn model predicts 30-day cancellation, so each label is known exactly 30 days later.
- Variable delay. A fraud model waits for chargebacks. Some arrive after a week and some after three months.
- Partial labels. Only some predictions ever get a label, such as the cases that humans review.
- Biased labels. The model's own decision decides which labels exist. A loan model that rejects an applicant never learns whether that applicant would have repaid.
- No labels. The outcome is never observed, or it is too expensive to collect.
Each case needs a different tactic. The sections below cover them in order, from the most reliable approach to the weakest.
Evaluate by prediction cohort, not by label arrival date
A common mistake is to compute a metric over "all rows whose labels have arrived so far". The mix of rows changes every day. If fast outcomes differ from slow outcomes, the metric moves even when the model is unchanged.
Group predictions by the date they were made (the cohort). Report a metric for a cohort only after most of its labels should have arrived. This is the cohort's maturity. For variable delays, choose a maturity window such as the 95th percentile of historical delays.
import numpy as np
import pandas as pd
from sklearn.metrics import roc_auc_score
rng = np.random.default_rng(0)
n = 6000
days = pd.date_range("2026-01-01", periods=60, freq="D").to_numpy()
df = pd.DataFrame({
"pred_date": rng.choice(days, size=n),
"score": rng.uniform(0, 1, size=n),
})
df["label"] = (rng.uniform(size=n) < df["score"]).astype(int)
# In this simulation each label arrives 14 days after its prediction.
df["label_date"] = df["pred_date"] + pd.Timedelta(days=14)
as_of = pd.Timestamp("2026-03-01")
known = df[df["label_date"] <= as_of].copy()
known["week"] = known["pred_date"].dt.to_period("W")
for week, group in known.groupby("week"):
auc = roc_auc_score(group["label"], group["score"])
print(f"{week} n={len(group):4d} AUC={auc:.3f}")With a fixed delay, every cohort that is old enough is complete, so each weekly AUC is comparable to the others. With variable delays, add a filter such as pred_date <= as_of - maturity_window. Otherwise recent cohorts are missing their slow labels and the metric is biased.
The cost of this approach is lag. If the delay is 30 days, a regression that starts today shows up in the metric about a month later. The rest of this chapter covers what to watch during that gap.
Watch for biased labels
If labels exist only for some predictions, performance on the labeled rows may not describe performance on all rows. Check how labeled rows are chosen.
- Decision-dependent labels. Outcomes exist only for approved cases. Metrics then describe the approved population, not the whole population.
- Review-dependent labels. Humans review the cases the model flagged as uncertain. The labeled set is then hard cases only, and accuracy on it looks worse than the truth.
- Responder bias. Users who give feedback differ from users who do not.
Two mitigations are common. First, label a small random sample of all predictions, regardless of the score. Random samples are unbiased, so they give you a trustworthy estimate with a known margin of error. Second, for decision-dependent labels, route a small fraction of cases to the opposite decision (an exploration slice) so you can see outcomes the model would normally hide.
Proxy signals while you wait
When true labels are not available yet, use signals that are available now. Rank them by how directly they relate to quality.
| Signal | Available | What it tells you | Main weakness |
|---|---|---|---|
| Input drift (KS, chi-square, PSI) | Immediately | The inputs changed | Drift does not always hurt accuracy |
| Prediction and score drift | Immediately | The model's behavior changed | Cannot tell a real change from a model failure |
| Data quality checks | Immediately | Inputs are broken | Only catches pipeline faults |
| Confidence-based estimate | Immediately | Expected accuracy if calibrated | Fails when calibration breaks |
| Importance-weighted estimate | Immediately, with some old labels | Accuracy under covariate shift | Fails under concept drift |
| Early behavioral feedback | Hours to days | Clicks, overrides, complaints | Noisy and biased |
| Random labeled sample | Days to weeks | Unbiased accuracy | Small sample, costs effort |
No single proxy is trustworthy alone. Use several, and treat agreement among them as stronger evidence than any one alert.
Estimating accuracy from confidence
If a classifier is well calibrated, a prediction made with confidence 0.8 is right about 80% of the time. The mean confidence over a window then estimates the window's accuracy, with no labels needed. The Python example below compares the estimate with true accuracy in two cases. In the first the model is calibrated. In the second it is overconfident, as can happen after the data shifts.
import numpy as np
rng = np.random.default_rng(1)
def simulate(n, sharpen):
"""Return labels and model probabilities.
sharpen=1.0 gives a calibrated model. Values above 1 make it overconfident.
"""
p_true = rng.beta(2, 2, size=n)
y = (rng.uniform(size=n) < p_true).astype(int)
logit = np.log(p_true / (1 - p_true)) * sharpen
return y, 1 / (1 + np.exp(-logit))
def accuracy_and_confidence(y, p):
pred = (p >= 0.5).astype(int)
confidence = np.where(pred == 1, p, 1 - p)
return (pred == y).mean(), confidence.mean()
for name, sharpen in [("calibrated", 1.0), ("overconfident", 2.0)]:
y, p = simulate(20000, sharpen)
acc, conf = accuracy_and_confidence(y, p)
print(f"{name:14s} true accuracy={acc:.3f} mean confidence={conf:.3f}")In the calibrated case the two numbers agree closely. In the overconfident case, mean confidence is clearly higher than accuracy, so the estimate would hide a real drop. The estimate is only as good as the calibration, and calibration is often the first thing to break under drift.
A practical use is to track mean confidence as a trend. A sudden fall in confidence is a useful warning. A flat confidence line is weak reassurance.
Importance weighting under covariate shift
If only the input distribution changed (covariate shift) and the relationship between inputs and labels did not, you can reuse old labels. Reweight the labeled reference rows so they look like the current inputs, then compute the metric on the weighted rows.
- Train a domain classifier to separate reference rows from current rows, as in the multivariate drift chapter.
- For each labeled reference row, compute the weight
w = p / (1 - p), wherepis the classifier's probability that the row is from the current window. Correct for unequal window sizes by multiplying byn_reference / n_current. - Compute accuracy, or any metric, with those weights.
Rows that look like today's traffic count more. The estimate breaks down in three situations:
- Concept drift, since old labels no longer describe current outcomes.
- Regions with no overlap between the windows.
- Extreme weights, where a few rows dominate. Clip the weights and report the effective sample size.
Putting the signals together
Treat the label delay as a timeline. Different signals cover different parts of it.
Use the early signals to decide whether to investigate, and use the matured metric to confirm what you found. When the two disagree, trust the matured metric and recalibrate your proxies. For example, if drift alerts fire but later cohorts show no loss, raise the threshold for that feature.
Edge cases and rules of thumb
- Label delay changes. If the upstream process slows down, cohorts mature later and your reports shift without any model change. Monitor the delay distribution itself, such as the median and 95th percentile.
- Right censoring. A recent cohort contains only the fast outcomes. For a 90-day fraud window, last week's chargeback rate is always too low. Do not compare it with older, complete cohorts.
- Small samples. A labeled sample of 200 rows gives an accuracy estimate with a margin of roughly plus or minus 7 percentage points at 95% confidence. Report an interval, not just a number.
- Label noise. Late labels can themselves be wrong, for example from inconsistent human review. A metric drop can come from labelers, not the model.
- Proxies are alerts, not verdicts. A drop in estimated performance justifies investigation, not an automatic retrain.
Exercises
Exercise
A fraud model's chargebacks arrive between 7 and 90 days after the transaction, with a 95th percentile delay of 60 days. A dashboard shows the chargeback-based recall for transactions from the last 14 days, and recall looks much better than last quarter. Name the problem and give two fixes.
Show answer
The recent cohort is right-censored. Only the fast chargebacks have arrived, so most of its fraud is still unlabeled and counts as non-fraud, which distorts the metric. Fixes: report recall only for cohorts older than the maturity window (about 60 days), and use immediate proxies such as score drift, data quality and a randomly sampled, manually reviewed set for recent traffic. Monitoring the label delay distribution is also reasonable.
Exercise
Your calibrated classifier reports a mean confidence of 0.91 this week, equal to last month's accuracy of 0.91, but a random labeled sample of 400 cases shows accuracy of 0.84. Which assumption most likely failed, and what should you do next?
Show answer
Calibration failed, probably because of drift. Confidence is no longer a reliable estimate of accuracy, so the confidence-based estimate overstates quality. Trust the labeled sample, check it against the margin of error (about plus or minus 3.5 points at n=400), investigate which features or segments drifted, and consider recalibrating the model's probabilities, for example with a new calibration set, before deciding whether to retrain.