MolBasis
baselinemae-liftnull-modelqspr-validation5 min read

Baseline models and the lift over the train mean

A baseline predicts the training mean for every molecule. The lift is the fraction by which a model cuts baseline MAE. The arithmetic and what it depends on.

Updated November 28, 2026

A baseline model predicts the same value, the mean of the training set, for every held-out molecule. Its mean absolute error is what a user would achieve with no model at all. The lift is the fraction by which a real model reduces that error, 1 minus the model MAE over the baseline MAE. The MolBasis protocol reports this lift on the held-out molecules of its scaffold-blind split and requires at least 30 percent for the A.IMPROVE label. The lift is easy to compute and easy to misread, because it depends on the spread of the held-out set as much as on the model.

Why a baseline is the first thing to compute

Any figure without a reference point is uninterpretable. An MAE of 0.6 log units in aqueous solubility sounds respectable until the reader learns that guessing the mean gives 0.7 on the same molecules. An MAE of 0.6 in log P on a set of alkanes that all sit within 0.3 of each other would be worse than guessing. The baseline converts an absolute error into a statement about what the model adds.

The train-mean baseline is the weakest reasonable competitor. It is still the right first baseline because it is what the user has without the model, and because it is unambiguous. Stronger baselines are worth adding where they exist, and that is covered below.

The arithmetic on five molecules

Suppose the training mean of the property is 3.0. Five held-out molecules have measured values 2.0, 3.5, 5.0, 1.0 and 4.5. The baseline predicts 3.0 for all of them. Its absolute errors are 1.0, 0.5, 2.0, 2.0 and 1.5, summing to 7.0, so the baseline MAE is 7.0 / 5 = 1.40.

The model predicts 2.4, 3.0, 4.2, 1.8 and 4.0. Its absolute errors are 0.4, 0.5, 0.8, 0.8 and 0.5, summing to 3.0, so its MAE is 0.60. The lift is 1 − 0.60 / 1.40 = 1 − 0.4286 = 0.571, a 57 percent reduction. The model clears the 30 percent gate with room to spare.

Now change one number. If the fifth held-out molecule had been predicted at 1.0 instead of 4.0, its error becomes 3.5, the model MAE rises to 6.0 / 5 = 1.20, and the lift falls to 1 − 1.20 / 1.40 = 0.14. One molecule in five moved the lift from 57 percent to 14 percent. Small held-out sets make the lift as fragile as every other figure, as the guide on small test sets shows.

import numpy as np
from sklearn.dummy import DummyRegressor
base = DummyRegressor(strategy="mean").fit(X_train, y_train)
mae_base = np.mean(np.abs(y_test - base.predict(X_test)))
mae_model = np.mean(np.abs(y_test - model.predict(X_test)))
lift = 1 - mae_model / mae_base
print(round(mae_base, 3), round(mae_model, 3), round(lift, 3))

What the lift depends on besides the model

The baseline MAE is roughly proportional to the spread of the held-out values. For values that scatter normally around the training mean with standard deviation s, the mean absolute deviation is about 0.8 s. A held-out set with a standard deviation of 2 log units has a baseline MAE near 1.6. A held-out set with a standard deviation of 0.5 has a baseline MAE near 0.4.

Take a model with a held-out MAE of 0.5 on both. On the wide set the lift is 1 − 0.5 / 1.6 = 0.69. On the narrow set it is 1 − 0.5 / 0.4 = −0.25, worse than guessing. Same model, same error, opposite verdicts. The lift measures the model relative to the difficulty of the set it was given. Lifts across kernels for different properties, or across held-out sets of different spread, are not directly comparable. The guide on what a 30 percent lift means develops this point for the MolBasis gate.

The baseline also shifts if the held-out mean differs from the training mean. A scaffold-blind split can hold out a family of large, insoluble molecules whose values sit far from the training centre. The baseline then does badly, and even a crude model that captures the shift earns a large lift. This is a real property of the split, not an error, but it should be visible, and the reason the guide on the scaffold split asks for the held-out molecule count on every figure.

Stronger baselines worth reporting

Three baselines go beyond the mean. The training median, which is more stable than the mean when the data have a heavy tail. A nearest-neighbour baseline, which predicts each held-out molecule from the most similar training molecule by fingerprint, and which exposes leakage when it does nearly as well as the model, as the guide on random splits and leakage explains. And a single obvious descriptor fitted by one coefficient. For log P the Wildman and Crippen atom-contribution estimate available in RDKit is a natural one. For melting point, molecular weight alone is a fair floor.

A model that beats the mean but not the obvious descriptor has added nothing a formulator could not already compute. Reporting the obvious baseline is a courtesy to the reader and a check on oneself.

The lift on a MolBasis kernel page

Each kernel page states its held-out MAE lift against the train-mean baseline, next to Pearson r and the calibration slope, and gives the number of held-out molecules. The methodology defines the gate at a 30 percent reduction. Kernels are labelled A.IMPROVE or B.UNDERFIT as recorded, and the guide on what the two labels mean explains the distinction. The figures themselves are reported from the research record and not recomputed in these guides.

Key points

  • The train-mean baseline predicts the training mean for every held-out molecule. Lift equals 1 minus model MAE over baseline MAE.
  • Five molecules, baseline MAE 1.40, model MAE 0.60, lift 57 percent. One bad prediction drops it to 14 percent.
  • Baseline MAE scales with the spread of the held-out set, about 0.8 times its standard deviation. Lifts across sets of different spread are not comparable.
  • Use the training mean, never the held-out mean. Add a median, a nearest-neighbour and an obvious-descriptor baseline when you can.
  • The MolBasis gate asks for 30 percent lift on the scaffold-blind held-out set. It is a minimum, not a mark of accuracy.

Questions people ask

What is the train-mean baseline?
It is the simplest model there is. It predicts the mean property value of the training molecules for every held-out molecule, whatever its structure. Its mean absolute error on the held-out set is the number any real model must beat, and the fraction by which a model beats it is the lift.
How is MAE lift calculated?
Lift equals 1 minus the model MAE divided by the baseline MAE, both measured on the same held-out molecules. If the baseline MAE is 1.4 and the model MAE is 0.6, the lift is 1 minus 0.6 over 1.4, about 0.57 or 57 percent. A lift of zero means the model is no better than the mean. A negative lift means it is worse.
Why use the training mean and not the held-out mean?
The held-out mean uses the held-out property values, which the model is not allowed to know. A baseline built from them would be leaked information and would be too hard to beat. The training mean is what a user without a model would actually guess for a new compound.
Is a 30 percent lift good?
It depends on the property and the spread of the held-out set. The MolBasis gate uses 30 percent as the threshold for the A.IMPROVE label, meaning the typical error shrank by almost a third against guessing the mean. It is a minimum worth stating, not a mark of accuracy.

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.