Abstract
Data-driven molecular discovery leverages artificial intelligence/machine learning (AI/ML) and generative modeling to filter and design novel molecules. Discovering novel molecules requires accurate out-of-distribution (OOD) predictions, but ML models struggle to generalize OOD. Currently, no systematic benchmarks exist for molecular OOD prediction tasks. We present $\mathbf{BOOM}$, $\mathbf{b}$enchmarks for $\mathbf{o}$ut-$\mathbf{o}$f-distribution $\mathbf{m}$olecular property predictions: a chemically-informed benchmark for OOD performance on common molecular property prediction tasks. We evaluate over 150 model-task combinations to benchmark deep learning models on OOD performance. Overall, we find that no existing model achieves strong generalization across all tasks: even the top-performing model exhibited an average OOD error 3x higher than in-distribution. Current chemical foundation models do not show strong OOD extrapolation, while models with high inductive bias can perform well on OOD tasks with simple, specific properties. We perform extensive ablation experiments, highlighting how data generation, pre-training, hyperparameter optimization, model architecture, and molecular representation impact OOD performance. Developing models with strong OOD generalization is a new frontier challenge in chemical ML. This open-source benchmark is available at https://github.com/FLASK-LLNL/BOOM
Introduction
In the fields of drug discovery and materials science, the primary goal of machine learning is to identify novel molecules with extreme or unique properties. This task is inherently an out-of-distribution (OOD) problem, as the most valuable discoveries often lie in the "tails" of chemical space that are underrepresented in training data. However, most current AI models are benchmarked on "in-distribution" (ID) tasks, where test data closely mirrors the training set. This creates a false sense of security, as a model boasting high ID accuracy may fail catastrophically when asked to extrapolate. To address this, we introduce BOOM, a systematic benchmark designed to measure the "extrapolation gap" across diverse model architectures and chemical properties.
Methodology
The BOOM framework evaluates 15 different model architectures across 10 diverse tasks using datasets such as QM9, the 10k CSD Dataset, and Lipophilicity.
Defining the OOD Challenge
To rigorously test extrapolation, we avoid arbitrary data splits. Instead, we use Kernel Density Estimation (KDE) to identify low-probability regions in property space. By holding out the extreme values (the "tails") for testing, we evaluate whether models trained on the "bulk" of the distribution can accurately predict extreme physical and electronic behaviors.
Performance Metrics
Standard metrics like $R^2$ can be misleading in OOD scenarios because the sample mean of the test set is often far from the training mean. BOOM introduces a binned $R^2$ metric to specifically measure how well models correlate with ground truth in the extreme upper and lower tails of the distribution.
Results: The Extrapolation Gap
Our benchmarking reveals a sobering reality: across the board, top-performing models exhibited an average OOD error three times higher than their ID error.
As shown in the heatmaps above, while models achieve near-perfect $R^2$ scores on ID splits for properties like Heat of Formation (HoF) and ZPVE, their performance collapses on OOD splits. Electronic properties, such as the HOMO-LUMO gap and dipole moments ($\mu$), proved particularly difficult for models to extrapolate, with many models achieving near-zero correlation.
Architectural Insights and Failure Modes
The Pre-training Paradox
One of the most significant findings is that large-scale pre-training—the "foundation model" approach—does not necessarily improve OOD performance. While models like MoLFormer and ChemBERTa excel at ID tasks, their OOD extrapolation capabilities often lag behind models with higher inductive bias. In contrast, models that incorporate 3D geometry and physical symmetries (e.g., EGNN, MACE) generally showed better resilience on OOD tasks.
The "S-Curve" Failure
When models fail at OOD tasks, they do not simply produce random noise. Instead, they exhibit a characteristic "S-shaped" parity plot. While the models can often cluster OOD molecules correctly (maintaining some correlation), they "collapse" their predicted values toward the training mean, failing to reach the actual extreme values.
Conclusion
Bridging the 3x error gap in OOD prediction is a critical frontier for chemical machine learning. Our results suggest that simply increasing data scale is insufficient for true extrapolation. Future research must focus on developing architectures that internalize the underlying physics of chemistry rather than just the statistical patterns of molecular strings. The BOOM benchmark provides the necessary framework to track progress toward this goal.
Summary updated