BOOM: Benchmarking Out-Of-distribution Molecular Property Predictions of Machine Learning Models

Evan R Antoniuk, Shehtab Zaman, Tal Ben-Nun, Peggy Li, James Diffenderfer, Busra Sahin, Obadiah Hersh Smolenski, Everett Grethel, Tim Hsu, Anna Hiszpanski, Kenneth Chiu, Bhavya Kailkhura, Brian Van Essen

TL;DR

BOOM is the first systematic benchmark designed to evaluate how machine learning models predict molecular properties out-of-distribution (OOD) in the property space. Across 15 deep learning and baseline architectures and 10 quantum-chemical tasks, the authors find that no existing model reliably extrapolates: even top-performing models suffer a $3\times$ error increase OOD, and standard foundation model pretraining fails to improve generalization.

What Problem Does This Paper Address?

Real-world molecular discovery is inherently an extrapolation problem: the goal is to discover molecules that break existing performance boundaries (e.g., higher heat capacity, lower band gaps, or extreme binding affinities). However, popular benchmarks like MoleculeNet evaluate models on random, scaffold, or temporal splits—mostly testing in-distribution (ID) performance or input-space shifts.

As a result, current state-of-the-art models often exploit "shortcut" features to achieve near-perfect ID benchmark scores, masking a critical failure: they fail to extrapolate to molecules with properties beyond the training regime.

Methods

The authors introduce a chemically grounded benchmark methodology centered on target-space extrapolation:

  • Target-conditioned OOD splits: Instead of arbitrary thresholding, BOOM applies Kernel Density Estimation (KDE) over property values. Molecules residing in the lowest-density tails ($10\%$ for QM9, 1,000 samples for the 10k dataset) are held out as the OOD test set ($0 < P(y_{\text{test}}) \le P(y_{\text{train}})$).
  • Evaluation metrics: Alongside Root Mean Square Error (RMSE), the authors introduce binned $R^2$—the average $R^2$ evaluated specifically on the upper and lower tails of the distribution. This prevents the artificially inflated $R^2$ values that occur when evaluating widely separated test clusters against a global sample mean.
  • Model evaluation: Evaluated 15 models spanning classical ML (Random Forest, MLP with RDKit descriptors), 2D graph neural networks (Chemprop, TGNN), 3D equivariant/invariant GNNs (EGNN, IGNN, MACE, GotenNet), hybrid 3D transformers (Graphormer-3D, Geoformer, Equivariant Transformer), and SMILES sequence models (ChemBERTa, MoLFormer, Regression Transformer, ModernBERT).

Datasets

BOOM spans 10 quantum chemical property tasks across two primary datasets:

  1. The 10k Dataset (10,206 synthesized small organic molecules from the Cambridge Structural Database): Density and solid heat of formation (HoF).
  2. QM9 (134k small organic molecules): 8 properties including isotropic polarizability ($\alpha$), heat capacity ($C_v$), HOMO/LUMO energies, HOMO-LUMO gap, dipole moment ($\mu$), electronic spatial extent ($\langle R^2 \rangle$), and zero-point vibrational energy (ZPVE).
  3. Lipophilicity (MoleculeNet): Included as an experimental reference dataset (4,200 drug-like molecules).

Key Insights and Ideas

  • High ID performance does not guarantee OOD extrapolation: A Gaussian process regression and distance correlation analysis show that while poor ID performance guarantees poor OOD performance, near-perfect ID accuracy often corresponds to high variance and failure OOD.
  • The "S-Curve" failure mode: Poorly generalizing models overwhelmingly exhibit an S-shaped parity curve on OOD data. They successfully identify that a molecule has an extreme property (clustering them together), but cannot project numerical predictions beyond the training boundary.
  • Language model pretraining does not fix OOD extrapolation: Masked Language Modeling (MLM in ChemBERTa/MoLFormer) and Permutation Language Modeling (PLM in Regression Transformer) improved ID RMSE by 12–35%, yet produced virtually no improvement in OOD RMSE and caused binned OOD $R^2$ to drop by 39–53%.
  • Supervised pretraining transfer requires high correlation: Pretraining Chemprop on one QM9 property improved OOD performance on another only when the two properties exhibited a Pearson correlation $r > 0.35$. Uncorrelated pretraining caused negative transfer.
  • Inductive bias matters: 3D geometric architectures (particularly GotenNet and MACE) consistently beat SMILES-based transformers on OOD tasks ($p = 1.85 \times 10^{-9}$).
  • Electronic structure properties remain unsolved: All models struggled catastrophically on HOMO, LUMO, gap, and $\mu$, suggesting that without explicit electronic structure features in the representation, models cannot extrapolate quantum chemical behavior.

Key Results

  • Overall Rankings: GotenNet won 7 out of 10 OOD tasks; MACE claimed 2 of 10. Geoformer achieved the best ID performance (lowest RMSE on 3 tasks).
  • Extrapolation Degradation: Even GotenNet saw substantial degradation from ID to OOD (e.g., HOMO RMSE degraded from $0.0052$ to $0.0126$ Hartree).
  • Data Augmentation: In an ablation, adding just $4\%$ ($2,000$ to $5,000$ molecules) of extreme-tail samples to the training data dramatically restored extrapolation accuracy across 7 of 8 QM9 tasks.
  • ModernBERT Surprise: Among sequence models, ModernBERT significantly outpaced older transformers on non-electronic properties, reducing OOD RMSE on HoF by $>58\%$ and $C_v$ by $>78\%$ over MoLFormer.

Limitations and Future Work

  • Small Molecule Focus: Benchmarks currently draw from small organic molecules in QM9 and the 10k dataset; whether these trends directly mirror macrocycles, polymers, or solid-state materials remains an open question.
  • Computational Cost of 3D Data: While 3D geometric models performed best, high-accuracy 3D conformers from DFT are often unavailable in real-world high-throughput screening.
  • Future Directions: Incorporating explicit electronic density representations, exploring test-time compute/in-context learning with LLMs, and combining active learning generative loops to intelligently sample property-tail domains.

Summary updated

BibTeX
@inproceedings{antoniuk2025boom,
  author = {Evan R Antoniuk and Shehtab Zaman and Tal Ben-Nun and Peggy Li and James Diffenderfer and Busra Sahin and Obadiah Hersh Smolenski and Everett Grethel and Tim Hsu and Anna Hiszpanski and Kenneth Chiu and Bhavya Kailkhura and Brian Van Essen},
  title = {{BOOM: Benchmarking Out-Of-distribution Molecular Property Predictions of Machine Learning Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=QoBxQrvFRd},
}

Loading related content...

Figure