Temporal Data Partitioning for Realistic Machine Learning Evaluation

This direction is merged into another direction: chronological data partitioning. Its last version stays readable and citable here.

Version 1 of 1363 papers398 conceptsfrozen 2026-10-04

In standard machine learning, we are taught to shuffle our data. By randomly assigning samples to training and testing sets, we ensure that both sets come from the same distribution, satisfying the "Independent and Identically Distributed" (i.i.d.) assumption.

However, in the real world, time only moves forward. A model deployed today cannot see the data of tomorrow. When we shuffle datasets that have a temporal component—such as medical records, stock prices, or scientific discoveries—we inadvertently allow the model to "cheat" by learning from the future to predict the past. This phenomenon, known as temporal data leakage, leads to inflated performance metrics that vanish the moment the model is deployed.

To solve this, researchers are moving toward temporal data partitioning: a rigorous evaluation strategy that enforces a strict chronological boundary between training and testing.

The Shuffling Trap and Concept Drift

The core intuition behind temporal partitioning is that the world is non-stationary. In Rethinking clinical prediction, Bret Nestor and colleagues demonstrate that hospital practices and Electronic Health Record (EHR) systems evolve over time. If you randomly shuffle a decade of medical data, the model learns the specific "quirks" of a hospital's 2024 software to predict a 2024 patient. But a model trained in 2023 would not have that luxury. This "concept drift" can cause performance to drop by as much as 0.3 AUC when models are tested on subsequent years rather than random splits.

Similarly, in the natural world, Lukás Picek and the creators of the FungiTastic dataset argue that species distributions and environmental conditions shift. Randomly shuffling 20 years of fungal observations masks the model's inability to generalize to future climate shifts.

Mechanisms of Temporal Splitting

Researchers employ several specific mechanisms to ensure models respect the arrow of time:

  • Chronological Cutoffs: The simplest method involves picking a specific date. Everything before is training; everything after is testing. Yangruibo Ding uses this in PRIMEVUL to ensure vulnerability detection models are tested on "future" code they haven't seen during training.
  • Walk-Forward Validation: In finance, where data is highly volatile, Thomas Dierckx utilizes an expanding window approach. The model is trained on a window of time, tested on the next day, and then the window expands to include that day for the next round of training. This prevents "look-ahead bias," where a model might accidentally use tomorrow's closing price to predict today's volatility.
  • Temporal Seed-Times: For complex relational data, Joshua David Robinson introduces a "seed-time" approach in RelBench. This ensures that for any given prediction, the model only has access to the state of the entire database as it existed at that exact historical moment.

Preventing Subject and Temporal Shortcuts

A major benefit of temporal partitioning is that it forces models to learn actual underlying patterns rather than "shortcuts." Xiang Zhang highlights that in medical time series, models often perform "subject recognition"—identifying a specific patient's unique signal—rather than diagnosing a disease. By using causal temporal data splitting, researchers ensure that a model sees the early stages of a patient's history in training but must predict their future state in testing, preventing the model from simply recognizing the patient's "identity" from overlapping time windows.

In the realm of Large Language Models (LLMs), Felix Drinkall developed TimeMachineGPT. By strictly isolating training corpora based on publication timestamps, they ensure the model has a "clean slate" historical worldview. This allows researchers to test if an AI can actually forecast future language evolution or events without having already "read" the answers in its training data.

Why It Matters for Science and Industry

The shift toward temporal partitioning is a move toward "sober" AI evaluation. In TabReD, Ivan Rubachev shows that many tabular deep learning "advances" disappear when faced with realistic temporal drift. In drug discovery, Emma Svensson uses temporal splits to identify when a model's uncertainty should increase as it moves further away from its training era.

Even in structural biology, Sheng Xu uses FoldBench to evaluate models like AlphaFold 3 on proteins discovered after the model's training cutoff. This reveals whether the model has truly learned the physics of folding or has simply memorized the shapes of known proteins.

By prioritizing the chronological order of data, these researchers are building a foundation for machine learning that doesn't just work in the lab, but survives the inevitable passage of time in the real world.

Papers in this version

Showing 60 of 363 papers.

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_temporal_data_partitioning_for_realistic_e627c4d2,
  title = {Temporal Data Partitioning for Realistic Machine Learning Evaluation},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/temporal-data-partitioning-for-realistic-machine-learning-evaluation/rdr_e627c4d24019415b98144df9d17413fb},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_temporal_data_partitioning_for_realistic_e627c4d2_v1,
  title = {Temporal Data Partitioning for Realistic Machine Learning Evaluation},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/temporal-data-partitioning-for-realistic-machine-learning-evaluation/rdr_e627c4d24019415b98144df9d17413fb/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}