Introduction
In computational drug discovery, Quantitative Structure-Activity Relationship (QSAR) models, often powered by Graph Convolutional Networks (GCNs), are essential for predicting molecular properties. However, for these models to be truly useful to medicinal chemists, they must be explainable. Knowing why a model predicts a certain level of toxicity or solubility allows researchers to make informed decisions during lead optimization.
Traditional Explainable AI (XAI) methods, such as Integrated Gradients or node masking, often struggle with molecular data. They tend to highlight individual, disconnected atoms rather than the cohesive functional groups that chemists recognize as the true drivers of activity. Moreover, perturbation-based methods often generate chemically impossible structures by deleting atoms, leading to unreliable attributions.
Methodology: Graph-to-Graph Networks (GGN)
To address these issues, this research introduces a Graph-to-Graph Network (GGN) trained via semi-supervised learning to act as an explainer for a primary QSAR model. The key innovation is the use of addition-based perturbations. Instead of removing atoms, the method adds known functional groups to a base molecule and measures the change in the model's prediction.
This approach ensures that the model always evaluates chemically valid structures. The resulting attribution scores are distributed across the atoms of the added group, training the GGN to recognize functional groups as single, impactful entities.
Key Results and Discussion
The GGN was evaluated against standard baselines, Integrated Gradients (IG) and DeepLIFT, on datasets for water solubility (ESOL) and acidity (pKa).
Water Solubility (logS)
The GGN achieved a 0.98 correlation with actual solubility values, performing on par with or slightly better than IG (0.96) and DeepLIFT (0.95). Crucially, it demonstrated "positional awareness," correctly identifying that the location of a hydroxyl group on a carbon chain significantly impacts solubility—a nuance often missed by simpler models.
Acidity (pKa)
The GGN's performance was particularly striking in predicting acidity. In a case study of pentanoic acid variants, the GGN was the only method to consistently identify the entire carboxyl group as the primary driver of pKa.
As illustrated in the comparison above, the GGN accurately captured the inductive effect—the negative impact on acidity caused by the proximity of a chlorine atom to the carboxyl group. In this task, the GGN maintained a 0.98 correlation with pKa values, vastly outperforming DeepLIFT, which only achieved a 0.41 correlation.
Conclusion
The GGN provides a chemically intuitive approach to molecular XAI. By prioritizing chemical validity and group-level cohesion, it offers a more reliable tool for drug discovery than traditional atom-centric methods. While it requires additional computational resources to train the explainer network, the resulting insights into structure-activity relationships are significantly more aligned with expert chemical knowledge. Future work may involve applying this method to de-novo drug design, using attribution scores to guide the rational modification of molecular structures.
Summary updated