Abstract
Large molecular representation models pre-trained on massive unlabeled data have shown great success in predicting molecular properties. However, these models may tend to overfit the fine-tuning data, resulting in over-confident predictions on test data that fall outside of the training distribution. To address this issue, uncertainty quantification (UQ) methods can be used to improve the models' calibration of predictions. Although many UQ approaches exist, not all of them lead to improved performance. While some studies have included UQ to improve molecular pre-trained models, the process of selecting suitable backbone and UQ methods for reliable molecular uncertainty estimation remains underexplored. To address this gap, we present MUBen, which evaluates different UQ methods for state-of-the-art backbone molecular representation models to investigate their capabilities. By fine-tuning various backbones using different molecular descriptors as inputs with UQ methods from different categories, we assess the influence of architectural decisions and training strategies on property prediction and uncertainty estimation. Our study offers insights for selecting UQ for backbone models, which can facilitate research on uncertainty-critical applications in fields such as materials science and drug discovery.
Introduction
Deep learning has revolutionized molecular property prediction, yet in high-stakes fields like drug discovery, predictive accuracy alone is insufficient. Reliable models must also provide well-calibrated uncertainty estimates to signal when predictions might be untrustworthy. Large-scale molecular models, often based on Transformer architectures, achieve state-of-the-art performance but frequently suffer from overconfidence, particularly when faced with out-of-distribution (OOD) data.
The MUBen benchmark addresses this by systematically evaluating Uncertainty Quantification (UQ) methods across various pre-trained molecular representation models. By providing a unified evaluation protocol, MUBen helps researchers identify which combinations of backbone architectures and UQ techniques yield the most reliable results for scientific discovery.
Methodology
The MUBen framework evaluates the intersection of backbone molecular representation models and UQ methods across diverse datasets.
Backbone Models and Descriptors
The benchmark includes models that process molecular information through different modalities:
- ChemBERTa: Treats molecules as text strings (SMILES).
- GROVER: Views molecules as 2D graphs.
- Uni-Mol: Incorporates 3D spatial conformations.
- DNN: A baseline utilizing traditional hand-crafted RDKit features.
Uncertainty Quantification Methods
UQ methods are categorized into four primary groups:
- Deterministic: Standard outputs and Focal Loss.
- Bayesian Neural Networks (BNNs): Methods such as Bayes by Backprop (BBP), SGLD, MC Dropout, and SWAG.
- Post-hoc Calibration: Temperature Scaling for smoothing overconfident predictions.
- Ensembles: Deep Ensembles, which average predictions from multiple independently trained models.
Evaluation Protocol
MUBen utilizes the MoleculeNet collection, covering both classification (e.g., BBBP, Tox21) and regression (e.g., ESOL, QM9) tasks. To simulate real-world discovery challenges, the benchmark employs scaffold splitting, ensuring the test set contains molecular structures fundamentally different from the training set.
Results and Discussion
The evaluation reveals several critical insights into the relationship between model expressiveness and uncertainty calibration.
The Expressiveness Paradox
A key finding is that more powerful models, such as Uni-Mol, are often the most prone to overconfidence. While they achieve superior raw accuracy by capturing complex 3D features, their default calibration is frequently subpar compared to simpler models.
Performance of UQ Methods
- Deep Ensembles: Consistently achieved the highest rankings across nearly all categories, providing the most accurate and honest uncertainty estimates, albeit at a higher computational cost.
- MC Dropout: Identified as a cost-effective alternative for classification, offering significant calibration improvements without the overhead of full ensembles.
- Temperature Scaling: Proved highly effective as a post-hoc "quick fix" for classification calibration, though it does not enhance underlying predictive accuracy.
- Bayesian Methods: In regression tasks, methods like SGLD tend to predict larger variances for unknown molecules, providing a "safe" margin essential for high-stakes laboratory settings.
Conclusion
MUBen demonstrates that for large-scale molecular models, fine-tuning the entire backbone with robust UQ methods is essential for reliable performance. While Uni-Mol leads in raw accuracy, the choice of UQ method—such as Deep Ensembles or MC Dropout—is critical to mitigating overconfidence. Future work will explore more efficient ensemble techniques and broader UQ method integration to further enhance the reliability of molecular property predictions in drug discovery and materials science.
Summary updated