GMD: testing known parts in new molecules


G. Socrates, Infrared and Raman Characteristic Group Frequencies, 3rd ed., Wiley (2001); S. W. Benson, J. H. Buss, J. Chem. Phys. 29, 546 (1958).
This is called compositionality. Do machine learning models know what is compositionality?
Chemists do this every day. For ML it is still an open problem.

B. Lake, M. Baroni, ICML (2018); N. Kim, T. Linzen, EMNLP (2020); J. Johnson et al., CVPR (2017).
Before asking whether models can do this for molecules, we need to know where learning breaks down. First, how does a machine learn at all?
You already do this: fit a curve to two or three experimental points, then predict other amounts of reactant without running more experiments.

C. M. Bishop, Pattern Recognition and Machine Learning, Springer (2006), ch. 1.
Can we rely on what the model has learned, or are we missing something?
A small training error says little about data the model has never seen.

C. M. Bishop, Pattern Recognition and Machine Learning, Springer (2006), §1.1, §3.2.
Let’s see how different our interpretation of a molecule is from a computer’s.
.xyz file holdsThe model never sees a label like “carbonyl”: only elements and distances.

J. Behler, M. Parrinello, Phys. Rev. Lett. 98, 146401 (2007); I. Batatia et al., NeurIPS (2022).
Then does machine learning models read molecules the way a chemist does?
If every part of a new molecule is familiar, does the model find the whole familiar?

B. Lake, M. Baroni, ICML (2018).
A model is at best as accurate as the method that produced its data.

S. Chmiela et al., Sci. Adv. 3, e1603015 (2017); C. Bannwarth, S. Ehlert, S. Grimme, J. Chem. Theory Comput. 15, 1652 (2019); D. S. Levine et al., arXiv (2025).
If these methods already give us energies and forces, why not just keep using them?
Every step down the ladder makes the same trade: accuracy for time and computer resources.

M. J. S. Dewar, W. Thiel, J. Am. Chem. Soc. 99, 4899 (1977); W. Thiel, WIREs Comput. Mol. Sci. 4, 145 (2014).
Machine learning makes a similar trade, by fitting to data. So what kind of method is it?
Is machine learning a numerical, a semi-empirical, or an empirical method?

J. Behler, Chem. Rev. 121, 10037 (2021).
If labels are this expensive, why not pay once, at scale, for all of chemistry? Is that possible to cover all the chemical space?
The assumption: they learn chemistry itself. Or do they stay grounded in what they have seen?

I. Batatia et al., arXiv:2401.00096 (2023); D. S. Levine et al., arXiv (2025); A. Mazitov et al., arXiv (2025).
Even with 100M+ calculations, do these datasets cover all or enough of the chemical space?
High-energy geometries: one kind of out-of-distribution.

J. Behler, Chem. Rev. 121, 10037 (2021); X. Fu et al., Trans. Mach. Learn. Res. (2023).
Now think of a reaction. Which point on the path does MD visit least?
Rare events the data barely covers: a second kind of out-of-distribution.

H. Eyring, J. Chem. Phys. 3, 107 (1935).
Steep walls, rare events… what else counts as out-of-distribution?
Out-of-distribution: anything the training data does not represent, where the model has to go beyond its data rather than fill in between it.

S. Chmiela et al., Sci. Adv. 3, e1603015 (2017); X. Fu et al., Trans. Mach. Learn. Res. (2023).
Which of these do we actually test when we evaluate ML potentials today?

Standard evaluations rarely test new combinations of known parts.
S. Chmiela et al., Sci. Adv. 3, e1603015 (2017); X. Fu et al., TMLR (2023); Z. Wu et al., Chem. Sci. 9, 513 (2018).
Shouldn’t these models handle new combinations anyway? After all, they are built from local parts.
So compositional generalisation should come for free. Does it?

S. W. Benson, J. H. Buss, J. Chem. Phys. 29, 546 (1958); J. Behler, M. Parrinello, Phys. Rev. Lett. 98, 146401 (2007).
Every group is in training; only the molecule is new.

G. W. Bemis, M. A. Murcko, J. Med. Chem. 39, 2887 (1996); A. M. Nourollah et al., NeurIPS (2026); arXiv:2605.08988.
To run this test properly, we need a dataset built for it. That is GMD.
Models are usually tested on new shapes of known molecules. GMD tests them on new molecules.

A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.


A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
How big is each task?
| Task | Training set | Test set (new molecules) |
|---|---|---|
| Chain extension | C2–C6 alkanes: ethane to hexane | C7–C13 alkanes: heptane to tridecane |
| Fusion | C4–C10 alcohols and aldehydes, C7–C11 diols; complex polyols and polycarbonyls | C4–C10 carboxylic acids |
| Duplication | C5–C10 carboxylic acids | C5–C10 dicarboxylic acids |
| Combination | C2–C9 diamines; C2–C9 dicarboxylic acids | C2–C9 amino acids |
| Fission | C5–C10 carboxylic acids | C5–C10 alcohols; C5–C10 aldehydes |
Fission reuses the training set of Duplication; only its test set is new · 140 molecules · about 280,000 DFT-labelled configurations
A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
But if a model fails, is it because it never saw enough, or because it cannot compose?

Chain extension gets the missing coverage; fusion gets a worked example of composition.
A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
| Model | Year | Type |
|---|---|---|
| SchNet | 2017 | invariant, distances only |
| DimeNet++ | 2020 | invariant, adds angles |
| GemNet | 2021 | invariant, adds dihedrals |
| PaiNN | 2021 | equivariant, vector features |
| NequIP | 2022 | equivariant, tensor features |
| MACE | 2022 | equivariant, many-body messages |
| eSCN | 2023 | equivariant, efficient convolutions |
| MACE-MP-0 S / M / L | 2023 | foundation model, fine-tuned |
| EquiFormerV2 | 2024 | equivariant transformer |
| UMA-Small | 2025 | foundation model, fine-tuned |
A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
How do we compare them fairly?

A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
Where inside the molecule does the error appear?
Known: –OH and C=O. Not composed: –COOH.

A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
Combining parts fails badly. How does the simplest task, a longer chain, compare?
Repeating a known part costs some accuracy. Combining parts in a new way costs far more.

A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
So is the problem coverage, or composition? The augmented variants answer that.
Augmented chain extension
Much easier for every model except SchNet: OOD/ID close to ×1, and DimeNet++ recovers
Coverage was part of the missing piece
Augmented fusion
The amide example does not help: errors on carboxylic acids stay as large as before
Composition is the missing piece
Consistent with models treating each group as a standalone token, not learning how groups combine.
A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
And if we run fusion backwards, can a model split a group it only saw whole?
Consistent with –COOH being learned as one unit, not built up from its parts.

A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
Could bigger models, pre-training or a different level of theory close the gap?
Pre-training
Pre-trained foundation models do not consistently beat models trained from scratch
Scale
Larger MACE-MP-0 helps on some tasks; the gap stays
Labels
GFN2-xTB labels instead of DFT give the same pattern
Coverage
Helps chain extension, not fusion
Fine-tuning fixes the molecules the model was shown, not the ones it was not.
A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
Before trusting a model on a new molecule, ask: has it seen this combination, or only these parts?
A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
What GMD covers
Small H/C/N/O molecules in vacuum, one DFT level (PBE/def2-TZVP+D3BJ)
Why that is enough
Every part of each test molecule is in training: failure under this minimal shift is a strong result
What it does not cover
Aromatic, charged, inorganic or transition-metal chemistry; condensed phases
Natural extensions
Richer fragment vocabularies: peptides for proteins, monomers for polymers
A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
Amir Masoud Nourollah
Paper: arXiv:2605.08988 (NeurIPS 2026)
Data: huggingface.co/datasets/AmirMasoud/GMD
Code: github.com/Nourollah/GOAL
Questions?

