From Local to Global: How Graph Neural Networks Extrapolate Molecular Properties
A graph neural network builds a molecular property from local messages, yet many properties are global. We ask when such a network extrapolates beyond the range of its training labels, on a property whose law is exact: molecular weight (MW), a sum of atomic masses. Models never see masses or atom counts, are trained on molecules up to 450 Da and tested on heavier ones, so every test label lies outside the training range. Tree ensembles, a tabular foundation model and pretrained encoders fail. What decides success is whether the readout can add per-atom contributions: GINE∗, a sum readout with no normalisation before it, recovers the law to 0.08 Da, but extrapolation varies between seeds and in-range validation cannot tell. On eight targets, validation on heavier molecules never chooses BatchNorm, the native setting, nor a mean readout; with 10,000 molecules the sign of the BatchNorm effect depends on the target. Training on differences between pairs of molecules is the larger lever: with 1,000 molecules it beats single-molecule training at any size up to 20,000, its seeds agree, and it makes two message-passing networks and a graph transformer extrapolate. Pairs hold the law to 2.3–4 times the training maximum. Beyond that, cutting a molecule into in-range pieces with conjugate caps and summing their predictions holds MW to 5,000 Da on new ladders from 3,000 molecules; tree ensembles gain from the same pieces but stay two orders of magnitude behind.
Authors
- Guillaume Godin (ORCID: https://orcid.org/0000-0001-9828-386X)
Publication Details
- Journal
- ChemRxiv
- Published
- 2026-11-30
- DOI
- https://doi.org/10.26434/chemrxiv.15012992/v1
- Primary Topic
- Computational Drug Discovery Methods
- Type
- preprint