EnSol: an environment-aware graph neural network for molecular solubility prediction
Authors: Thao Nguyen, Saman Shafaei, Zhengyi Zhang, Huimin Zhao, Heng Ji
Organizations: Siebel School of Computing and Data Science, University of Illinois Urbana-Champaign, Urbana, IL, 61801, USA. · Carl R. Woese Institute for Genomic Biology, University of Illinois Urbana-Champaign, Urbana, IL, 61801, USA. · NSF Molecule Maker Lab Institute, University of Illinois Urbana-Champaign, Urbana, IL, 61801, USA. · Department of Chemical and Biomolecular Engineering, University of Illinois Urbana-Champaign, Urbana, IL, 61801, USA. · DOE Center for Advanced Bioenergy and Bioproducts Innovation, University of Illinois Urbana-Champaign, Urbana, IL, 61801, USA.
Molecular solubility directly affects key aspects of molecular development such as reaction feasibility, formulation performance, separation efficiency, and solvent selection. However, experimental measurement across solutes, solvents, and temperatures remains costly and sparsely sampled. Existing computational models often rely on fixed-solvent assumptions, deterministic formulations, or simplified representations of solute-solvent interactions, limiting their ability to capture complex molecular interactions, continuous temperature effects, and experimental uncertainty. Here, we introduce EnSol, an environment-aware probabilistic framework for molecular solubility prediction. EnSol represents the solute and solvent as molecular graphs and learns separate representations for each before bringing them together through cross-attention to capture solute-solvent interactions. Temperature is incorporated directly into the solvent environment through feature-wise modulation, and a mixture density network predicts full solubility distributions to capture both temperature-dependent behavior and experimental uncertainty. On the independent SolProp and Leeds benchmark datasets, EnSol achieved Spearman correlations of 0.876 and 0.601, respectively, outperforming state-of-the-art solubility prediction models across both benchmarks. Beyond computational benchmarking, experimental validation across chemically diverse solute-solvent pairs showed that EnSol maintained strong predictive performance and supported reliable solvent ranking, achieving a Spearman correlation of 0.715. These results show that EnSol can support reliable solubility prediction and solvent selection across diverse chemical systems while accounting for predictive uncertainty.
Figures & tables
Figure 2: Predictive accuracy and ranking performance across two independent benchmark datasets SolProp and Leeds. Model performance is compared on two external test sets, SolProp and Leeds. Values above bars are mean values. EnSol error bars are standard deviation across three random seeds (n = 3) and FASTSOLV and the Vermeire model are pretrained and deterministic. a) Spearman rank correlation b) RMSE values.
Figure 3: Transfer learning and generalization of EnSol. Fine-tuning from a BigSolDB-pretrained checkpoint compared with training the identical architecture from random initialization, across three random seeds (n = 3) of the two deduplicated AqSolDB set (n = 1,000 and n= 9,748) probe the effect of target dataset size and ESOL (n = 1,082) is an independent aqueous dataset shown for comparison. Values above bars are means. a) Spearman rank correlation b) RMSE values.
Figure 4: Component-wise ablation of the EnSol architecture on the SolProp benchmark. Each variant modifies exactly one design choice relative to full EnSol, holding training splits, optimization settings, and evaluation protocol fixed. K = 5 components, the Gaussian mixture is increased from three to five components; No cross-attention, the solute–solvent cross-attention layer is removed; MSE head, the mixture-density head is replaced by a deterministic regression head trained with mean-squared error; Concat. temperature, FiLM temperature conditioning is replaced by a normalized temperature scalar concatenated onto the solute–solvent embedding; MPNN encoder, the AttentiveFP graph encoder is replaced by a message-passing neural network. Performance is shown as a) Spearman rank correlation. b) RMSE values.
Figure 5: Experimental validation set design and model performance. a) Structural diversity of the 10 solutes used for experimental validation, spanning a range of functional groups, sizes, and scaffolds. b) The validation set spans 10 solutes and 10 solvents, all evaluated at 298.15 K, filled circles mark the solute–solvent pairs included in the set and crossed-out circles mark pairs that were not due to the measurements below the 1 mg mL -1 detection limit of the visual assay. c) Model performance is compared on the experimental validation set. Values above bars are mean values. EnSol error bars are standard deviation across three random seeds (n = 3) and FASTSOLV and the Vermeire model are pretrained and deterministic across Spearman rank correlation d) Model performance is compared on the experimental validation set. Values above bars are mean values. EnSol error bars are standard deviation across three random seeds (n = 3) and FASTSOLV and the Vermeire model are pretrained and deterministic across RMSE values.
High-fidelity solubility prediction is fundamental to pharmaceutical development and environmental partitioning, where accurate modeling must couple molecular structure with thermodynamic behavior across diverse chemical environments. However, recent advancements have been dominated by deep learning architectures that often sacrifice physical interpretability for predictive power. We challenge this trend by showing that state-of-the-art performance does not require such non-transparent architectures. To address this, we introduce DISSOLVR, a transparent framework for molecular solubility prediction. In addition, we perform a comprehensive literature review and a benchmarking study against various methods. We show that DISSOLVR approaches the aleatoric limit of experimental uncertainty and achieves OOD generalization through structural invariance, derived by mapping molecules to physically-grounded descriptors. Then, we present an LLM-assisted post-hoc explanation pipeline that bridges the gap between symbolic model artifacts and chemically grounded narratives. Finally, a comparative benchmark of a survey involving 22 expert chemists reveals that expert evaluators provide deep insights.
Vansh Ramani, Har Ashish Arora, Dhairya Kuchhal +2
Aqueous solubility is a key property in early-stage drug discovery, but most predictive models merge physicochemical descriptors and molecular graph information into a single representation, obscuring whether a prediction is driven by global chemistry, molecular structure, or both. We present an additive deep-learning framework that keeps these two sources of information separate throughout training: physicochemical descriptors are encoded by a multilayer perceptron (the chemical branch) and molecular graph topology by a graph neural network (the structural branch), with the two outputs combined only at the prediction stage through an additive model with an optional multiplicative interaction. This design provides a direct decomposition of chemical and structural components that can be examined separately after training. Furthermore, pretraining on the larger AqSolDB dataset and fine-tuning on the smaller BigSolDB2 dataset substantially improve accuracy and reduce run-to-run variations, indicating generalizability of the learned features from the data-rich settings. We further interpret the fitted model using best linear projections of the branch outputs, molecule-level embedding summaries across solubility classes, and atom-level GNNExplainer masks aggregated over functional groups. These analyses show that the chemical branch aligns with familiar physicochemical descriptors, while the structural branch captures graph-topological and functional-group patterns associated with solubility. Across both datasets, the framework attains competitive predictive performance while making the distinct roles of chemical and structural information more transparent.
Solubility depends on intermolecular interactions between solutes and solvents, and is central to drug discovery, chemical and materials process engineering. Its prediction requires out-of-distribution (OOD) generalization to unseen solutes, solvents, and solvent mixtures, where supervised methods suffer from data scarcity, and existing self-supervised methods do not explicitly learn chemically meaningful relations. Learning chemically meaningful relational information without labels can alleviate data scarcity and improve OOD generalization, but remains challenging. We introduce Prior Relational Information for Self-supervised Modeling (PRISM) and apply it to solubility OOD generalization. PRISM is a label-free pretraining framework that converts expert-defined chemical priors into relational teachers. For solubility prediction, it trains four encoders to preserve the population-level relational information from priors capturing hydrophobic, electrostatic, polarizability, and substructural effects, using Kullback-Leibler (KL) divergence to match distance-based neighborhood distributions during pretraining. Across scaffold, solute, and solvent OOD settings, PRISM matches or surpasses supervised and self-supervised baselines. Under mixed-solvent OOD, freezing the four PRISM encoders and training a lightweight fusion-and-composition head outperforms strong baselines and substantially reduces run-to-run variation. Ablations and control studies confirm that gains stem from chemically meaningful relational structures baked into the encoders by PRISM. We expect this strategy of turning relational priors into self-supervision signals to extend beyond solubility prediction to domains where chemically or biologically meaningful relational priors are available.
Xinyi Chen, Jiahuan Pang, Titus Chima +2
Global College, Shanghai Jiao Tong University, Shanghai, China. · Digital Innovation Research Center, Duke Kunshan University, Kunshan, Jiangsu, China. · Zu Chongzhi Center, Duke Kunshan University, Kunshan, Jiangsu, China. +1