PLAIN/TEXT — ISSUE 57/456 COMPUTER SCIENCE · FOUNDATION / MACHINE LEARNING · ~4 MIN READING DATE: 2026-11-27 ARCHIVE: https://plaintext.click/newsletter/ SUBJECT: When an AI test accidentally contains the answers When an AI test accidentally contains the answers ================================================= / START HERE An exam cannot measure independent learning if the answer sheet was included in the practice material. A prediction model is a computer rule learned from examples. Data leakage happens when information unavailable at prediction time influences how that rule is built or tested. A high test score can then measure an accidental shortcut rather than useful performance on new cases. / WHY NOW AI accuracy can look excellent and still collapse after release. Before assuming the model needs to be larger, check whether the test reproduced what the system would actually know at the moment of use. / THE IDEA Training data is used to choose model settings. Validation data helps choose between designs. Test data is reserved for estimating performance after those choices. Repeatedly changing a model in response to its test results gradually turns that test into another training influence. Leakage can also happen within an individual example. Predicting tomorrow’s parcel delay using a field filled in after delivery gives the model information from the future. Splitting rows randomly will not repair that causal mistake. / THE FORMAL IDEA allowed inputs = information available before the decision - This is a timing rule rather than a numerical equation. - A feature is an input value given to the model. For each feature, record when it becomes available, not just whether it exists somewhere in the database today. / RUN THE TINY EXAMPLE Change one thing. Predict what happens. Goal: predict late delivery at dispatch. Input A: journey distance, known at dispatch → allowed. Input B: refund issued after a late arrival → unavailable; exclude it. Change the decision time to after delivery: B becomes available, but the original prediction task has disappeared. Moving the decision time changes what information is legitimate. The model can no longer claim to forecast a future event if its strongest clue exists only after that event happened. / SO WHAT? A meaningful evaluation should separate related records and respect time where necessary. Several photos of the same object split across training and testing can make recognition look easier than identifying unfamiliar objects. A smaller honest test can reveal more than a giant collection with overlapping answers. / ONE CAVEAT Not every correlation is leakage, and some real tasks legitimately use recent history. The boundary depends on the exact decision and deployment setting; write those down before designing the split. / KEEP THIS A useful prediction test permits only evidence the deployed system would have at the time it must act. / SOURCE TRAIL [1] Google — Training, validation and test sets https://developers.google.com/machine-learning/crash-course/overfitting/dividing-datasets [2] scikit-learn — Data leakage and unavailable information https://scikit-learn.org/stable/common_pitfalls.html#data-leakage NEXT: Why astronauts float while gravity still pulls --- HARD IDEAS. PLAIN TEXT. You are receiving this because you asked for one clear computer-science or physics idea each day. Unsubscribe: https://plaintext.click/unsubscribe View in browser: https://plaintext.click/newsletter/2026/11/2026-11-27-data-leakage.html From: Plain/Text / Brickston Consulting · 30 N Gould St Ste N, Sheridan, WY 82801 US · knowledge@plaintext.click