Scaffold-blind versus time split for testing on new chemistry
A scaffold split hides whole ring systems from the fit, a time split hides everything measured after a date. Each simulates a different kind of new molecule.
Updated November 28, 2026
A scaffold-blind split tests a model on ring systems it never saw. A time split tests it on molecules measured after everything it was trained on. Both are attempts to estimate the error on new chemistry rather than on near-copies of the training set, and each simulates a different kind of newness. When a dataset has dates, the time split is closer to real use. When it does not, as with most public property compilations, the scaffold split is the strongest group-based option left.
Why a random split is not enough
Property datasets are full of near-duplicates. Homologous series, salts of one acid, a parent molecule and its methyl ester, stereoisomers with one measured value each. A random split puts one member of each pair in training and the other in test, and the model is rewarded for remembering rather than predicting. The test figure comes out close to the in-sample figure, and a reader mistakes memory for skill. The guide on random splits and leakage shows how large that inflation can be.
Both splits discussed here are group splits. They define a group that stands for chemical closeness and keep each group on one side.
The scaffold split in practice
Bemis and Murcko defined a molecular framework in 1996 as the ring systems of a molecule plus the linker atoms between them, with all side chains removed. Two molecules share a scaffold when their frameworks are identical. A scaffold split lists the scaffolds in a dataset, assigns a share of them to the held-out set, and keeps every molecule of a held-out scaffold out of training. The guide on the scaffold split with Bemis-Murcko scaffolds walks through the procedure step by step.
from rdkit import Chem
from rdkit.Chem.Scaffolds import MurckoScaffold
for smi in ["Cc1ccccc1", "CCc1ccccc1", "CCCCCC", "c1ccc2ccccc2c1"]:
mol = Chem.MolFromSmiles(smi)
print(smi, repr(MurckoScaffold.MurckoScaffoldSmiles(mol=mol)))Toluene and ethylbenzene both return the benzene scaffold and land on the same side. Naphthalene returns its own scaffold. Hexane returns an empty string, and so does every other acyclic molecule in the dataset, which brings out the first weakness. All acyclic molecules form one giant scaffold group, and whichever side it lands on, the split for those molecules is close to a random one or to no test at all.
The second weakness is the count. MolBasis sets aside 25 percent of the unique scaffolds before fitting, with one seed. That is a share of scaffolds, not of molecules. If a few scaffolds hold most of the molecules, the held-out set can be far smaller or far larger than a quarter of the data, and the kernel pages state the number of held-out molecules for that reason. The guide on the one-seed, one-split problem covers what a single draw does to the figure.
The third weakness is that a scaffold is a coarse notion of similarity. Two molecules with different scaffolds can be very alike, such as a benzene and a pyridine analogue, and two molecules with the same scaffold can be very different in property, such as benzene and hexachlorobenzene. The split is blind to scaffolds, not to chemistry.
The time split in practice
Sheridan's 2013 paper compared several ways of estimating prospective error on medicinal-chemistry datasets and found that splitting by date gave figures closest to what a model later achieved on new compounds. The reason is that projects drift. Chemists explore one series, then move to another, and a model trained on the first is asked about the second. A time split reproduces that order.
The requirements are strict. Every molecule needs a date, and the date must reflect when the measurement entered the record rather than when a compilation was assembled. Public property sets rarely qualify. The ESOL set of Delaney, FreeSolv, the Bradley melting-point set and the Sangster logP compilation are drawn from literature spanning decades and carry no usable time stamp per molecule. A time split is simply unavailable for them, which is why the MolBasis methodology page uses a scaffold split.
The time split has its own weakness. It reflects the drift of one project or one literature, and a different project would drift differently. A model that passes a time split on one company's data has been tested on that company's future, not on yours.
Choosing and reporting
When dates exist and the question is prospective use within the same programme, the time split is the better estimate. When dates do not exist, or the question is transfer to unrelated chemistry, use a scaffold split and say how many molecules it held out. In either case report the number of held-out molecules, the seed or the number of repeats, and the figure a constant baseline achieves on the same held-out set.
Both splits leave a gap that no internal split can close. A held-out scaffold is still drawn from the same compilation, with the same sources, the same measurement conventions and the same selection of molecules that someone chose to measure. Only an external set from a different source tests the model beyond that, and MolBasis states that it has none. The guide on external validation and what counts draws the line between a hard internal test and a true external one.
Key points
- Random splits let near-duplicates sit on both sides and inflate every metric.
- A scaffold split holds out whole Bemis-Murcko frameworks, but acyclic molecules share one empty scaffold.
- A time split simulates prospective use and needs per-molecule dates that public compilations lack.
- A 25 percent share of scaffolds is not 25 percent of molecules, so state the held-out count.
- Neither split replaces an external validation set from an independent source.
Questions people ask
- What is a scaffold-blind split?
- A split in which molecules are grouped by their Bemis-Murcko scaffold, the ring systems and the linkers between them with side chains removed, and whole groups are assigned to the held-out set. No scaffold appears on both sides, so the model is tested on ring systems it never saw.
- What is a time split?
- A split in which molecules measured or registered before a date form the training set and those after it form the test set. Sheridan showed in 2013 that it reproduces the error a model sees in prospective use better than a random split does.
- Which split is harder to pass?
- It depends on the dataset. A time split can be harder when a project drifted into new chemistry, and a scaffold split can be harder when the dataset holds many unrelated ring systems. Both are harder than a random split, which lets near-duplicates sit on both sides.
- Why does MolBasis use a scaffold split rather than a time split?
- Public property compilations such as ESOL, FreeSolv and the Bradley melting-point set carry no measurement dates, so a time split is not possible. A scaffold split is the strongest group-based split available for such data.
Further reading
In practice: This site makes no comparison with another method on the same molecules, because no controlled comparison exists. The guides compare methods on their principles, not on numbers.
See the kernels themselves
Every kernel is shown with its held-out result, the number of molecules it rests on and what it cannot be trusted for.