Multi-fidelity prediction of molecular optical peaks with deep learning

Kevin P. Greenman, William H. Green, Rafael Gómez‐Bombarelli

Abstract

Optical properties are central to molecular design for many applications, including solar cells and biomedical imaging. A variety of ab initio and statistical methods have been developed for their prediction, each with a trade-off between accuracy, generality, and cost. Existing theoretical methods such as time-dependent density functional theory (TD-DFT) are generalizable across chemical space because of their robust physics-based foundations but still exhibit random and systematic errors with respect to experiment despite their high computational cost. Statistical methods can achieve high accuracy at a lower cost, but data sparsity and unoptimized molecule and solvent representations often limit their ability to generalize. Here, we utilize directed message passing neural networks (D-MPNNs) to represent both dye molecules and solvents for predictions of molecular absorption peaks in solution. Additionally, we demonstrate a multi-fidelity approach based on an auxiliary model trained on over 28,000 TD-DFT calculations that further improves accuracy and generalizability, as shown through rigorous splitting strategies. Combining several openly-available experimental datasets, we benchmark these methods against a state-of-the-art regression tree algorithm and compare the D-MPNN solvent representation to several alternatives. Finally, we explore the interpretability of the learned representations using dimensionality reduction and evaluate the use of ensemble variance as an estimator of the epistemic uncertainty in our predictions of molecular peak absorption in solution. The prediction methods proposed herein can be integrated with active learning, generative modeling, and experimental workflows to enable the more rapid design of molecules with targeted optical properties.

Introduction

The design of novel dye molecules for applications like solar energy harvesting, bio-imaging, and advanced displays hinges on the ability to accurately predict their absorption maximum ($\lambda_{max}$). Historically, researchers have relied on two main approaches, both of which have significant drawbacks. Physics-based simulations, such as time-dependent density functional theory (TD-DFT), offer broad generalizability but are computationally intensive and often deviate from experimental results due to systematic errors. Conversely, traditional machine learning (ML) models are extremely fast but often "brittle," failing to generalize to novel chemical scaffolds or accurately account for complex solvent effects. This study introduces a multi-fidelity deep learning framework designed to bridge this gap, combining the speed of ML with the physical intuition of computational chemistry.

Methodology: Learned Representations and Multi-Fidelity Learning

The core of the proposed framework is the use of Directed Message Passing Neural Networks (D-MPNNs), implemented via the Chemprop library. Unlike traditional methods that rely on fixed molecular fingerprints, D-MPNNs automatically learn optimized mathematical representations for both the dye molecules and the solvents directly from their chemical structures (SMILES).

Chemprop architecture for dye and solvent representation learning.

To further enhance performance, the authors implemented a multi-fidelity learning strategy. An auxiliary model was first trained on a large dataset of approximately 28,000 "low-fidelity" TD-DFT calculations. While these simulations are not perfectly accurate, they provide a robust physical baseline. The predictions from this auxiliary model were then used as additional input features for a "high-fidelity" model trained on experimental data. This approach allows the model to leverage the broad chemical knowledge contained in the simulation data to improve its predictions on the more limited experimental dataset.

Data and Validation

The researchers compiled and cleaned several major open-source experimental datasets, including Deep4Chem, ChemFluor, DyeAgg, CDEx, and DSSCDB, resulting in over 28,000 measurements across 15,157 unique dyes and 364 solvents.

A critical aspect of this work is the use of scaffold splitting for validation. Unlike random splitting, which can lead to overly optimistic performance metrics by including similar molecules in both training and test sets, scaffold splitting ensures that the test set contains molecular architectures entirely unseen by the model. This provides a more realistic assessment of the model's ability to discover truly novel chemistry.

Key Insights and Results

The study revealed several important findings:

  • The Generalization Gap: Performance on random splits (MAE < 10 nm) was found to be misleading. On scaffold splits, the error increased significantly, highlighting the difficulty of generalizing to new chemical families.
  • Multi-Fidelity Advantage: The multi-fidelity model achieved a Mean Absolute Error (MAE) of 18.3 nm on unseen scaffolds in the Deep4Chem dataset, outperforming both the TD-DFT baseline (MAE ~24.9 nm) and previous graph convolutional network (GCN) models.
  • Flexible Solvent Modeling: Learning solvent representations directly from structure proved as effective as using physical constants (like polarity), offering greater flexibility for novel or rare solvents.
  • Uncertainty Quantification: Using an ensemble of models allowed for the estimation of epistemic uncertainty. The variance between ensemble members correlated well with actual prediction error (Spearman rank correlation of 0.52), a crucial feature for active learning workflows.

Conclusion

By integrating physics-informed simulations with advanced deep learning architectures, this work provides a powerful tool for the rapid design of molecules with targeted optical properties. The combination of D-MPNN representations and multi-fidelity learning significantly improves accuracy and generalizability, paving the way for more efficient discovery in materials science and chemical biology. Future work will expand these methods to predict entire absorption and emission spectra.

Summary updated

BibTeX
@inproceedings{greenman2022multi,
  author = {Kevin P. Greenman and William H. Green and Rafael Gómez‐Bombarelli},
  title = {{Multi-fidelity prediction of molecular optical peaks with deep learning}},
  booktitle = {Chemical},
  year = {2022},
  doi = {10.1039/d1sc05677h},
}
Figure