Knowing the parts, missing the whole

Let’s start with a question ML has asked for years: can models recombine what they know?
Most of these tests use synthetic tasks, where “correct” is defined by a grammar we wrote.

B. Lake, M. Baroni, ICML (2018); N. Kim, T. Linzen, EMNLP (2020); J. Johnson et al., CVPR (2017).
Is there a domain that is compositional by nature, with ground truth given by physics?
Molecules are a natural testbed for compositional generalisation, with physically exact labels.

S. W. Benson, J. H. Buss, J. Chem. Phys. 29, 546 (1958).
So what does an ML model actually learn about a molecule?
The architecture is built from local parts, so compositional generalisation looks like it should come for free.

J. Behler, M. Parrinello, Phys. Rev. Lett. 98, 146401 (2007); I. Batatia et al., NeurIPS (2022).
But why learn energies at all, instead of computing them?
MLIPs amortise quantum chemistry. Their value depends entirely on how far they transfer.

J. Behler, Chem. Rev. 121, 10037 (2021).
If labels are this expensive, why not pay once, at scale, for all of chemistry?
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).
So how is out-of-distribution performance tested for these models today?
Missing: a controlled shift in composition, where every part is seen and only the whole is new.

S. Chmiela et al., Sci. Adv. 3, e1603015 (2017); X. Fu et al., TMLR (2023); Z. Wu et al., Chem. Sci. 9, 513 (2018).
What would such a test look like for a potential?
Do MLIPs generalise compositionally, or do they memorise the molecules they were trained on?

G. W. Bemis, M. A. Murcko, J. Med. Chem. 39, 2887 (1996); Z. Wu et al., Chem. Sci. 9, 513 (2018).
To answer this cleanly, we built a benchmark for it.
Open data and code: huggingface.co/datasets/AmirMasoud/GMD

A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
Which compositional operations do we test?


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

A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
Which models did we put through this?
SchNet, DimeNet++, GemNet, PaiNN, NequIP, MACE, eSCN, EquiFormerV2: invariant to fully equivariant, 2017 to 2024
MACE-MP-0 Small, Medium and Large and UMA-Small, fine-tuned per task; MACE-MP-0 Medium zero-shot
Energy and force MAE against DFT, on known molecules (ID) and new molecules (OOD)
OOD/ID error ratio per model, averaged over tasks
A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
So what happens on new molecules?

A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.
Where inside a 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.
Is length generalisation any easier than composition?
Repeating a known part costs some accuracy. Composing 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.
Could more data, bigger models or pre-training close the gap?
Foundation models pre-trained on millions of structures do not consistently beat MACE trained from scratch on GMD
Larger MACE-MP-0 helps on some tasks; the OOD gap remains
Augmented training sets do not close the gap on fusion
GFN2-xTB labels instead of DFT give the same pattern
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.
So what does this mean for how we build and evaluate MLIPs?
GMD gives a cheap, exact testbed for any such idea.
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/GMD-26
Questions?

Image: local-environment coverage
[If the paper has it: nearest-training-neighbour distance of each OOD atomic environment, for each task.]
env_coverage.png
A. M. Nourollah, I. Khalid, S. Leoni, S. Schockaert, NeurIPS (2026), Evaluations & Datasets Track; arXiv:2605.08988.

Knowing the parts, missing the whole