cs.LGOct 8, 2026

Critical Mass: Structure-Disjoint Splits Drift With the Libraries They Are Built On

Authors: Tomo Oga, Devesh Shah, Cailum M. K. Stienstra, Gabriel Asher, Antonio H. de O. Fonseca, Niall O'Connor, Michael Widrich

Organizations: Matterworks, Inc. Somerville, MA 02143, USA

Abstract

Molecular machine learning evaluates out-of-distribution performance with structure disjoint splits, a construction rule fixed once at the scale its library happened to have: threshold a pairwise distance, then assign whole connected components to folds. For predicting structures from mass spectra, the field has converged on single-linkage clustering under the myopic Maximum Common Edge Subgraph (MCES) distance at a threshold of 10. This convention was set on 29,000 molecules but public libraries now hold 227,690 molecules. MCES is NP-hard per pair over a quadratically growing set, and so the criterion has never been evaluated at that scale. We propose an optimized version of this criterion, allowing for computationally feasible application on the public libraries: Admissible bounds and a union-find skip reduce 2.6×10102.6 \times 10^{10} molecular pairs to only 1.15×1071.15 \times 10^{7} integer programs, a 2,259×2{,}259\times saving, while provably producing the lossless partition. We find that at this scale the graph percolates. A single component holds 95.5%95.5\% of the library, capping any test set at 4.5%4.5\%. What remains is not merely smaller, but systematically different: a held-out compound outweighs a training compound 88.1% of the time, because a fixed absolute budget is a tighter relative tolerance on a larger molecule. Large library benchmarks using this splitting rule naively therefore conflate structural novelty with extrapolation to larger, more complex chemistry.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. When Molecular Similarity Works: Property Cliffs Reveal Hidden Errors

    May 17, 2026Di Hu, Kun Li, Haojie Rao +6Molecular Property Prediction

  2. FRIGID: Scaling Diffusion-Based Molecular Generation from Mass Spectra at Training and Inference Time

    Apr 17, 2026Montgomery Bohde, Hongxuan Liu, Mrunali Manjrekar +4Inference-Time ScalingMolecular Generation

  3. When should we trust the annotation? Selective prediction for molecular structure retrieval from mass spectra

    Mar 11, 2026Mira Jürgens, Gaetan De Waele, Morteza Rakhshaninejad +1Selective PredictionMass Spectrometry