Unit 9 of 11 · about 5 hours · explain

Delayed labels, detection delay, feedback loops and selective labels

The Classical ML unit on shift and label delay introduced the monitoring blind spot. Here you decide what the monitor can claim while labels are late, or when the policy prevents them from ever being observed.

You'll be able to

  • Explain how outcome-dependent label delay can hide degradation in available-label accuracy.
  • Specify a replay with event time, arrival time, cohort maturity and explicit time to alarm.
  • Identify policy comparisons unsupported by selective labels, and draw the decision-observation-retraining loop.

Covers

Delayed labels, detection delay and monitoring blind spotsFeedback loops, selective labels and retraining bias
1

Read

In this order, only the parts listed

0 of 3 done

  1. Prediction and outcome streams arrive separatelyTowards Observability for Production Machine Learning Pipelines

    PVLDB 2022: Figure 1; Sections 3.3.2, Label Delays, 3.4.1, Logging and Provenance, and 3.5.1, Reacting to Feedback Delays

    Read the agenda as a set of design questions, not a validated monitoring algorithm. Skip the proposed observability architecture.

  2. Selection by an action with unobserved informationThe Selective Labels Problem: Evaluating Algorithmic Predictions in the Presence of Unobservables

    KDD 2017: Section 1, including the contraction example comparing judges with different release rates

    Stop before Section 2. Identify comparable case pools and decision-maker heterogeneity as requirements, not a recipe for recovering every missing individual outcome.

  3. Allocation changes what becomes training dataRunaway Feedback Loops in Predictive Policing

    FAT* 2018: Introduction, discovered versus reported incidents; Sections 3.1 to 3.5

    Track the simplifying assumptions and the observation loop. Do not treat the urn model as a calibrated forecast of a real population.

2

Focus on

  • Log prediction ID, event time, model and data versions, action, outcome horizon and label arrival time. A replay must expose only information available at its current clock time.
  • Report label coverage by cohort age and group, available-label accuracy and a mature-cohort estimate. A maturity cutoff does not remove bias if some outcomes never arrive.
  • Record shift onset, first input alarm and first mature-label alarm separately. Report never-detected changes as censored, not as zero delay; evaluate null replays for false alarms.
  • Selective labels are not merely slow labels. Decisions can prevent observation; allocation can also change discovery and later retraining. Draw those arrows before claiming policy value from accuracy among approved cases.
Common mistakes · 3
  • Joining labels by row order or by their arrival date instead of prediction identity and event cohort. That mixes populations and can attach an outcome to the wrong prediction.
  • Recording no mature-label alarm as no degradation. It may mean insufficient follow-up, incomplete coverage or a powerless monitor.
  • Calling more discovered incidents evidence of higher underlying incidence. Increased exposure can increase observation even when the latent rate is unchanged.
3

Try it yourself

Closed-book, before checking anything

Closed-book, replay four predictions made at time 0, all predicting success. Their true binary outcomes are [1, 1, 0, 0], with label arrival times [1, 1, 4, 4]. At time 1, available-label accuracy is 100% with 50% coverage; at time 4, mature accuracy is 50% with full coverage. A predeclared alarm for observed error above 25% first fires at time 4, four time units after the harmful cohort began. Next replace delay with selection: only the first two records are approved, using a hidden risk feature, so only their outcomes are observed. Construct two different outcome completions for rejected cases with the same observed log. Explain why waiting longer and imputing from approved cases cannot identify full-population accuracy or the value of approving everyone.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.Why is 100% available-label accuracy in the replay misleading?Answer

    Only successful outcomes have arrived. The estimate describes the selected observed half, not the full event cohort.

  2. 2.Does a mature cohort solve selective labels?Answer

    No. Maturity handles a specified delay horizon. Outcomes blocked by actions can remain unobserved forever and require a different identification argument.

  3. 3.Which assumption lets contraction compare a stricter judge with a contracted release set?Answer

    Different judges must face comparable case pools, as if randomly assigned, with differing release rates. It evaluates a bounded hybrid-policy comparison, not individual counterfactual labels for every rejected case.

You're done when

You explain the replay's optimistic early metric, distinguish delay from permanent selection, and identify the policy-value claim the observed labels cannot support.

Only when you can do this without notes.

Leads to

Notes

Resources · 3 for this unit, 23 more in the section
  • Towards Observability for Production Machine Learning PipelinesShankar and Parameswaran, PVLDB 2022 · required

    Read Figure 1 and 3.3.2 (label delays: accuracy needs a join between prediction and label streams, and running accuracy over available labels can stay 100% before falling), 3.4.1 (logging and provenance) and 3.5.1 (reacting to feedback delays). Log event time, prediction ID, model and data versions and label arrival time; report label coverage by cohort age and a mature-cohort estimate, plus shift onset, first drift alarm and first mature-label alarm. This is a research agenda, not a validated monitor.

  • The Selective Labels Problem: Evaluating Algorithmic Predictions in the Presence of UnobservablesLakkaraju et al., KDD 2017 · required

    Read Section 1 and the contraction example: outcomes are observed only for released cases, so accuracy among approved cases is not policy value. Contraction needs many decision makers with comparable case pools and different leniency, and it does not recover individual counterfactuals; Section 4 is optional depth. Simulate action-dependent labels with a hidden feature and state which policy comparisons stay unsupported.

  • Runaway Feedback Loops in Predictive PolicingEnsign et al., FAT* 2018 · support

    Read the Introduction's discovered versus reported incidents and Sections 3.1 to 3.5: allocation changes what is discovered and so the next allocation. Draw your own decision-observation-retraining loop. The urn model is a stated simplification, not a calibrated forecast.

Also in this section

  • Introduction to Data-Centric AIMIT CSAIL · primary

    Assign the 2024 lectures selectively: Jan 16 (data-centric versus model-centric), Jan 17 (label errors), Jan 19 (imbalance, outliers and shift), Jan 22 (dataset creation and curation, crowdsourced and multi-annotator labels) and Jan 23 (data-centric evaluation), with the CPU labs label_errors, dataset_curation, data_centric_evaluation and optionally outliers from https://github.com/dcai-course/dcai-lab. Skip prompt_engineering (it needs a Google login and a hosted service), growing_datasets (about 18 GB) and interpretable_features (legacy pins). Two errors in the Jan 19 notes: Tukey's lower fence is , and label shift is defined by an invariant , not only by problems where y causes x.

  • Leakage and the Reproducibility Crisis in Machine-learning-based ScienceKapoor and Narayanan, Patterns 2023 · required

    Read "A taxonomy of data leakage" and "Model info sheets for detecting and preventing leakage" in the published version: eight leaves in three groups, from no test set (L1.1) through duplicates (L1.4), illegitimate features (L2) and temporal leakage (L3.1) to nonindependence (L3.2) and test-distribution sampling bias (L3.3). L3.2 counts as leakage "unless the scientific claim is about a distribution that has the same dependence structure". The published survey covers 294 papers in 17 fields; the 2022 preprint's 329 is stale. Write the info sheet's scientific arguments for your own artifact.

  • Pervasive Label Errors in Test Sets Destabilize Machine Learning BenchmarksNorthcutt, Athalye and Mueller · required

    Read v4 Section 4.1 (failure modes of confident learning) and 5.1 to 5.2 (benchmarking on the correctable set, benchmark instability). "At least 3.3%" errors on average and 51% of flagged candidates confirmed use different denominators. Audit flagged and unflagged items, and never clean the test set in a way that favours your candidate.

  • Data Governance for the ML PipelineThe Turing Way · required

    Read three pages: Data Governance for the ML Pipeline (Data Collection, Data Management, Data Processing: opt-out removes data from future versions, not original ones), Version Control for Data (https://book.the-turing-way.org/reproducible-research/vcs/vcs-data/) and Data Cleaning steps 1 to 8 (https://book.the-turing-way.org/reproducible-research/rdm/rdm-cleaning/). Record ownership, consent, access, deletion and transformations. They do not supply fitted-state discipline or a deletion protocol; test those in the artifact.

  • Data Cards Playbook - User GuideGoogle Research · required

    Fill a bounded card from the extended template at https://github.com/PAIR-code/datacardsplaybook/blob/9c6545b1fe0e251aa7326969074bc84d5b87693e/templates/DataCardsExtendedTemplate.md (Authorship, Sensitivity of Data, Dataset Version and Maintenance, Data Fields, Access, Retention and Wipeout, Provenance, Transformations, Annotations & Labeling, Sampling Methods, Known Applications & Benchmarks), name its owner, run one adversarial review and list omitted fields. Answer the Datasheets consent and licence questions inside the same card, and keep unknown consent or third-party licences as blocking unknowns. A Data Fields table describes a schema; it does not enforce one.

  • Failing Loudly: An Empirical Study of Methods for Detecting Dataset ShiftRabanser, Günnemann and Lipton, NeurIPS 2019 · required

    Read v4 Sections 3.1 to 3.4: dimensionality reduction (including black-box predictions and domain classifiers), two-sample tests with a Bonferroni-corrected per-feature KS option, anomalous exemplars and shift malignancy. The tests check ; a representation can hide a shift, and without labels the target error is not computable. Report the drift statistic beside held-out error with uncertainty: a significant drift is neither an accuracy drop nor a retraining instruction.

  • Flexible Imputation of Missing Data - Missing-data MechanismsStef van Buuren · required

    Read 1.2 (https://stefvanbuuren.name/fimd/sec-MCAR.html) and 2.2.3 to 2.2.5: MCAR, MAR and MNAR with the numerical illustration, and ignorability, which also needs distinct parameters. "It is not possible to test MAR versus MNAR" from the observed data. Mask complete synthetic truth under all three mechanisms, compare complete-case bias, and state an MNAR sensitivity range rather than certifying MAR with an imputer's accuracy.

  • AI Models Collapse When Trained on Recursively Generated DataShumailov et al., Nature 2024 · required

    Read What is model collapse?, Definition 2.1 (early loss of tails, late collapse), Theoretical intuition through the discrete example, and the Discussion. The 2025 correction (https://www.nature.com/articles/s41586-025-08905-3) changes the setting to : only newly generated data are used. Record generator, sampling settings, real-data fraction and ancestry. Recursive replacement is not a theorem that all synthetic augmentation fails.

  • cleanlab 2.9 - find_label_issuesCleanlab · support

    Pin cleanlab==2.9.0 and call cleanlab.filter.find_label_issues(labels, pred_probs, n_jobs=1) with out-of-fold probabilities (N by K, integer labels in the same class order). It returns a boolean mask unless return_indices_ranked_by is set. Inject known label corruption and report the detector's precision and recall; on separable synthetic data with uniform noise it scores well, which is a favourable case, not a promise. Keep a human adjudication step and an immutable original label version.

  • TensorFlow Data Validation - Get StartedTensorFlow · support

    Use the pattern, not the stack: Inferring a schema over the data (then review it), Checking the data for errors, schema environments and Checking data skew and drift. Implement the same idea as a small versioned validator with types, units, ranges, identifiers and one cross-field invariant, inject failures, and block silent schema relaxation. Inference cannot know a field switched from dollars to cents.

  • Deduplicating Training Data Makes Language Models BetterLee et al., ACL 2022 · support

    For text data: 4.1 (exact substring matching), 4.2 (approximate document matching), Section 5 and 6.3 (contaminated evaluation). Distinguish exact rows, repeated substrings, near-duplicate documents and benchmark contamination; choose the removal unit and keep cluster-to-split lineage. Other modalities need their own similarity rule.

  • Do ImageNet Classifiers Generalize to ImageNet?Recht et al., ICML 2019 · support

    Read 2.1 (adaptivity versus distribution shift), 3.2 to 3.4 with Table 1 and Section 4 on data selection. A drop on a fresh test set has competing explanations; their evidence points away from adaptive overfitting for these benchmarks. No ImageNet run is expected.

  • WILDS: A Benchmark of in-the-Wild Distribution ShiftsKoh et al., ICML 2021 · support

    Read Sections 3 and 5 (shift settings, in-distribution versus out-of-distribution protocols). CivilComments (about 0.1 GB) with a TF-IDF linear model is the CPU option, a changed baseline rather than a reproduced BERT; Camelyon17 needs about 15 GB and varies strongly across seeds. Licences differ by dataset (CivilComments CC0, Amazon research use only). Never request the unlabeled bundles.

  • ML Crash Course - Production ML SystemsGoogle for Developers · support

    Use Monitoring pipelines (Write a data schema to validate raw data, Write unit tests to validate feature engineering, Check metrics for important data slices, Check for training-serving skew, Monitor model age throughout pipeline, Test the quality of live model on served data) and Deployment testing. Turn one data observation into a monitored invariant with an escalation rule and a fresh-label plan. Standardized features are exactly zero-mean only on the fitting data, and the nonzero-activation check is architecture-specific.

  • ML Crash Course - FairnessGoogle for Developers · support

    Use Types of bias, Evaluating for bias, Demographic parity and Equality of opportunity with their benefits and drawbacks, then justify the harm boundary, denominator and label legitimacy for your artifact. Skip the counterfactual fairness page as causal theory: it describes attribute-swap invariance, while the structural criterion recomputes descendants of the attribute (Kusner et al., Definition 5, https://arxiv.org/abs/1703.06856v3).

  • Applied Science Investigation - Data AuditRoadmap-Final · support

    Use Milestones B and E, the failure-injection list and Measurement requirements as stage checks: lineage from raw data to every output, at least three fixed-model data interventions with model family, selection and compute held fixed, a delayed-label replay, and a controlled shift with a retrain, repair or no-action decision. The full investigation estimates 100 to 170 hours across stages, not this audit alone.

  • Datasheets for DatasetsGebru et al., Communications of the ACM 2021 · reference

    Use v8 Sections 3.3 (collection: did individuals consent, with the exact language and a revocation mechanism) and 3.6 (distribution: licence, terms of use, third-party restrictions) as questions inside the data card, not as a second document. Documentation records consent; it does not establish it.

  • Model Cards for Model ReportingMitchell et al., FAT* 2019 · reference

    For the model-release part of the artifact: v2 Sections 4.2 (intended use), 4.3 (factors), 4.4.3 (confidence), 4.7 (quantitative analyses) and 4.9 (caveats). A model licence is not dataset permission, and a model card is neither a lineage manifest nor a fairness proof.

  • scikit-learn 1.9 - Common Pitfallsscikit-learn · reference

    Repair reference after the core: Inconsistent preprocessing and Data leakage (How to avoid data leakage, Data leakage during pre-processing). Use its examples as regression-test oracles for your pipeline. It is not a leakage taxonomy; future features, duplicate entities and split overlap come from Kapoor and Narayanan.

  • Confident Learning: Estimating Uncertainty in Dataset LabelsNorthcutt, Jiang and Chuang, JAIR 2021 · depth

    For the mechanism behind the lab: Section 2 (class-conditional noise assumptions), 3.1 to 3.2 (the confident joint, rank and prune) and 4.2 (noisy predicted probabilities). Exact-recovery results are conditional; a flag is not proof an item is wrong.

  • Detecting and Correcting for Label Shift with Black Box PredictorsLipton, Wang and Smola, ICML 2018 · depth

    Before correcting prevalence, check Section 3's assumptions: , target labels supported in the source, and an invertible confusion matrix in the convention (not a row-normalized scikit-learn matrix). Invertible is not well conditioned, and concept shift or new classes are not handled.

  • Equality of Opportunity in Supervised LearningHardt, Price and Srebro · optional

    arXiv:1610.02413v1, Section 4 opening and Section 4.1 through Lemma 4.3, pp. 5 to 6: optional constrained post-processing formulation, derived predictor and feasible false-positive/true-positive rates. Explain the objective and group-information requirement; no optimizer implementation or fairness certificate.

  • Active Learning Literature SurveyBurr Settles · required

    January 26, 2010 revision: Sections 2.3 and 3.1 for pool-based uncertainty sampling; Sections 6.1 and 6.3 for batch redundancy and variable labeling costs. Implement one simple acquisition rule and compare against random selection at matched cost. Skip the survey's other strategies and benchmark claims; uncertainty is not guaranteed information value.