Research study

Quantifying Hidden Temporal Leakage in Machine Learning

An empirical evaluation of how record availability affects historical feature construction and offline model scores.

Two timestamps, one prediction.

A transaction may happen on Monday and reach the feature pipeline on Thursday. A Tuesday prediction would have to proceed without that record.

The study compared event-time-only, fixed-lag, and dual-clock feature construction across 36 simulated datasets spanning finance, healthcare, and retail. The dual-clock rule checks both when the event happened and when its record became available.

What could the model know?

This example follows one transaction. It happens on Monday at noon, and its record reaches the feature pipeline on Thursday at noon.

  1. Sun
  2. MonEvent occurs
  3. Tue
  4. Wed
  5. ThuRecord arrives
  6. Fri

Tuesday prediction

The transaction has happened. Its record is still unavailable to the pipeline.

Event-time-only rule
Included in hindsight
Dual-clock rule
Waits for the record

Compare evaluation scores

The same event-time-only logistic regression models were scored on two versions of the same holdout. The deployment-equivalent version uses only records available at prediction time.

Logistic regression means across 12 simulations per domain
DomainOfflineDeployableGap
Finance0.67540.6668+0.0086
Healthcare0.68300.6635+0.0195
Retail0.64960.6438+0.0058

Source: Table 4 of the research manuscript. These results come from simulations with controlled reporting delays.

What we found

Across the simulated domains and model families, event-time-only construction inflated average offline AUROC by about 0.011. A fixed reporting lag also changed the feature data: it excluded some usable recent records and admitted some older records that arrived late.

Limitations

The benchmark used simulated finance, healthcare, and retail event streams with controlled reporting delays. The size of the effect in deployment depends on how records arrive and how reliably the pipeline captures availability timestamps.

What to take into your own evaluation

Track when each record becomes usable by the feature pipeline. Use that availability cutoff alongside event time when rebuilding historical features. In the simulations, a fixed global lag excluded usable recent records and still let some late records through.

Reproduce this study

The ZIP contains the Python runner, pinned dependencies, the study protocol, and the recorded CSV outputs. The runner generates the simulated event data from a fixed seed.

Download benchmark ZIP
  1. Extract the ZIP and open the folder in a Python 3.12 or later environment.
  2. Install the dependencies and run the 12-replication benchmark.
  3. Compare your AUROC and summary CSVs in reproduced/ with the originals in results/.
python -m pip install -r requirements.txt
python code/run_benchmark.py --replications 12 --seed 20261106 --output-dir reproduced

Work with us

Let’s explore
an idea.

Have a research question, a collaboration in mind, or a prototype to discuss? Tell us what you’re working on.

All fields are required except organization.

We’ll use these details to review and respond to your inquiry.