MolBasis
external-validationheld-outblind-testqspr-validation5 min read

External validation, what counts and what does not

External validation uses molecules whose values were unavailable at every step of building the model. A held-out split of the same dataset is internal.

Updated November 28, 2026

External validation means scoring a model on molecules whose property values were unavailable, or deliberately unused, at every step of building it. Not just the coefficient fit, but the data cleaning, the descriptor definitions, the exponent search, the outlier decisions and the metric thresholds. A held-out split of the same dataset, however carefully drawn, is internal to that dataset. The MolBasis site states that it has no external validation set and reports held-out figures on scaffold-blind splits instead. This guide draws the line between the two and lists what crosses it by accident.

The steps a value must have stayed out of

Build a list of every decision made on the way to a model, then ask of each whether the candidate validation molecules could have influenced it. The decisions include assembling the dataset, removing or merging duplicates, converting units, dropping molecules that looked wrong, choosing which descriptors to compute and how to define them, choosing the exponent grid and the penalty, running the search, fitting the coefficients, and deciding that the result was good enough to publish.

A validation set is external when the answer is no for every line. In practice the first lines are the ones that fail. A chemist who assembled both the training set and the test set from the same literature review has already looked at the test values when deciding what counts as a bad measurement. A descriptor whose threshold was tuned until the full-data correlation improved has absorbed the test values through the model form. Tropsha and co-workers made this list the core of their 2003 argument for external validation, and Golbraikh and Tropsha had shown a year earlier that internal cross-validation alone did not predict external performance.

Three things that are not external validation

The first is a held-out split of the same dataset. It is necessary, and when it respects scaffolds and is evaluated once it gives an honest internal estimate. The guide on in-sample versus held-out explains what it protects against. It does not protect against choices made on the full dataset before the split, and it cannot detect that the dataset itself is unrepresentative of the molecules a user will bring.

The second is another public dataset without an overlap check. Public property compilations copy from each other and from the same primary literature. Two solvation databanks or two solubility sets can share a large fraction of their molecules. Scoring a model trained on one against the other mixes internal and external molecules in unknown proportion. Match by the first block of the InChIKey, report the overlap, and give the figures on the non-overlapping molecules on their own. If a set overlaps the training data by 40 percent, a figure on the whole set is 40 percent internal.

from rdkit import Chem
def keys(smiles_list):
    return {Chem.MolToInchiKey(Chem.MolFromSmiles(s))[:14] for s in smiles_list}
train_keys, ext_keys = keys(train_smiles), keys(ext_smiles)
overlap = train_keys & ext_keys
print(len(overlap), len(ext_keys), round(len(overlap) / len(ext_keys), 2))
ext_clean = [s for s in ext_smiles
             if Chem.MolToInchiKey(Chem.MolFromSmiles(s))[:14] not in train_keys]

The third is a test set that was evaluated many times during development. A set that is scored after every change becomes part of the selection loop, and the final figure on it carries the same optimism as an inner cross-validation score. The guide on nested cross-validation quantifies that optimism.

What does count, in increasing strength

A different dataset with the overlap removed counts, with the caveat that measurement conventions differ between sources and part of the error is the mismatch. A later batch of measurements from the same laboratory counts, and is the closest to real use. The guide on scaffold-blind versus time split compares this with a scaffold split.

A blind challenge is the strongest form. The Llinas solubility challenge of 2008 released structures whose solubilities had been measured in one laboratory but not published, collected predictions, and only then released the values. No participant could have used the test values at any step. The guide on the Llinas solubility challenge describes what the field learned, including how modest the best results were when nobody could peek.

Where MolBasis stands

The MolBasis methodology reports, for each kernel, Pearson r, MAE lift and calibration slope on 25 percent of Bemis-Murcko scaffolds held out before fitting, with one seed. That is an internal estimate on the kernel's own dataset. The site says plainly that it has no external validation set, that it makes no comparison with another method on the same molecules, that the coefficients are not published, and that kernel figures are reported from the research record rather than recomputed.

A separate blind benchmark for log P, log S and melting point holds per-molecule predictions, and its statistics are the only ones that have been recomputed. The page at /kernels#blind-benchmark describes it. The guides do not call any kernel validated, and a reader who needs external validation for a kernel will have to produce it, which requires the coefficients, as the guide on why coefficients matter for reproduction explains.

What a reviewer should ask

Five questions settle most cases. Where did the validation molecules come from, and who compiled them. Were any of their values visible when the dataset was cleaned or the descriptors defined. How many of them share an InChIKey block or a scaffold with a training molecule. How many times was the set scored before the reported figure. And what is the applicability domain, so that external molecules outside it are reported separately rather than averaged in, a point developed in the guide on applicability domain for short equations.

A model that answers all five honestly and reports an internal held-out figure is in a better position than one that claims external validation on a set that fails the third question.

Key points

  • External means unavailable or unused at every step, including cleaning, descriptor definition and outlier removal, not only the fit.
  • A held-out split of the same dataset is internal. It is necessary and it is not external validation.
  • Another public dataset counts only after removing InChIKey overlap and reporting the overlap fraction.
  • A set scored repeatedly during development has become part of the selection loop.
  • MolBasis reports internal scaffold-blind figures and states that it has no external validation set.

Questions people ask

What is the difference between a held-out set and an external validation set?
A held-out set is cut from the same dataset before fitting and is internal to that dataset. An external set comes from a different source, measured or compiled independently, and its values were unavailable or unused during every step, including data cleaning and descriptor choice. Both are useful, and only the second tests the model beyond its own data.
Does testing on another public dataset count as external validation?
Only after removing the molecules that also appear in the training data, matched by InChIKey, and reporting the overlap. Public property datasets share many molecules, so a second dataset is often partly internal. Report the figures on the non-overlapping molecules separately.
Does MolBasis have an external validation set?
No, and the site says so. Each kernel reports a figure on a scaffold-blind held-out split of its own dataset, which is an internal estimate. A separate blind benchmark with per-molecule predictions exists for three properties and is the only place where statistics were recomputed rather than reported.

Further reading

In practice: The methodology page describes the checks applied to every kernel, scaffold-blind split included, and the limits of those checks. Every kernel page quotes the held-out figure first and the in-sample figure second.

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.