GNNs for Molecules: Drug Discovery and Material Design
Published:

The Drug Discovery Pipeline
Intuition First: Finding a drug is like searching for a key that fits a specific lock (the protein target). Drug-like chemical space is commonly estimated at around \(10^{60}\) molecules โ far too many to test physically. A GNN is trained on known keyโlock pairs to predict which untested keys are likely to fit. It learns that certain atom arrangements near certain bond types correlate with good binding, then uses those patterns to score large virtual libraries far faster than any experimental campaign could.
Industry estimates put the cost of an approved drug at over a decade of work and \$2B+ in capitalised R&D spend. GNNs are used to accelerate three stages:
- Virtual screening: filter billions of candidate molecules to thousands using property predictions
- Lead optimisation: predict ADMET (absorption, distribution, metabolism, excretion, toxicity) properties
- De novo design: generate novel molecules with desired properties
What GNNs Predict
ADMET properties:
- Solubility: how much dissolves in water (affects bioavailability)
- Lipophilicity (LogP): determines membrane permeability
- Toxicity (hERG, AMES): cardiac toxicity, mutagenicity
- Metabolic stability: how quickly the liver degrades the drug
- Blood-brain barrier penetration: reaches the brain?
Binding affinity:
- Predicted IC50, Ki, Kd for specific protein targets
- Virtual screening: rank candidates by predicted affinity
Quantum chemistry (QM9 benchmarks):
- HOMO-LUMO gap (electronic excitation energy)
- Dipole moment, polarisability
- Zero-point energy
The GNN Pipeline for Molecules
SMILES string โ RDKit graph โ Atom/bond features
โ
GNN (2-4 layers)
โ
Node embeddings
โ
Global pooling (sum/attention)
โ
Graph embedding
โ
MLP โ property prediction
Atom features: atomic number, formal charge, number of Hs, hybridisation (sp/spยฒ/spยณ), aromaticity, chirality
Bond features: bond type (single/double/triple/aromatic), is-conjugated, is-ring, stereo
Key Models for Molecular Property Prediction
MPNN (Gilmer et al., 2017): unified several earlier molecular GNNs under a single message-passing framework, and benchmarked it systematically on the twelve QM9 quantum-chemistry targets.
The framework is exactly the message-passing recipe, specialised so that bond features \(e_{uv}\) parameterise the message:
Here \(M^{(k)}\) is the message function, \(U^{(k)}\) the update function (a GRU in the original paper), and \(R\) a permutation-invariant readout. Because the message depends on \(e_{uv}\), a double bond and a single bond between the same atom types send different messages โ which is the whole point for chemistry.
AttentiveFP (Xiong et al., 2019): adds graph attention for molecular property prediction. Handles multi-task learning across different ADMET endpoints.
GROVER (Rong et al., 2020): self-supervised pre-training of a graph transformer on 10M unlabelled molecules, then fine-tuning on small labelled datasets. This mitigates โ rather than solves โ label scarcity in drug discovery.
MolBERT / ChemBERTa: treat SMILES as a token sequence and apply BERT-style pre-training. Competitive with graph-based methods on several benchmarks, which is a useful reminder that the graph inductive bias is not always decisive.
Virtual Screening at Scale
The challenge: the numbers span many orders of magnitude. A few thousand small molecules have been approved as drugs; PubChem catalogues on the order of \(10^{8}\) compounds; drug-like chemical space is estimated at around \(10^{60}\) molecules. Which of them do you test?
GNN-based screening:
- Train a GNN on known actives and inactives for the target protein
- Run inference over a large virtual library
- Select the top-\(k\) predicted actives for experimental validation
The value here is not that the GNN is right about any individual molecule โ it is that inference costs a forward pass while an assay costs reagents and weeks, so even a modestly accurate ranking changes which experiments get run.
Protein-Ligand Interaction
Beyond single-molecule property prediction: predicting how a small molecule (ligand) binds to a protein target.
Input: protein structure (graph of residues) + ligand structure (graph of atoms) + 3D binding pose
Model: heterogeneous GNN with protein nodes, ligand nodes, and protein-ligand interaction edges. Equivariant GNNs (EGNN, SE3-Transformers) respect 3D symmetry.
Output: binding affinity score (docking score)
Benchmarks
- MoleculeNet: 17 datasets covering classification and regression across ADMET endpoints
- OGB-molhiv: HIV activity (41,127 molecules)
- OGB-molpcba: 128 PCBA assays (437,929 molecules)
- QM9: 12 quantum chemistry properties (134k molecules)
- MD17: molecular dynamics trajectories for force field learning
Summary
GNNs are now a standard molecular representation-learning method in computational chemistry, sitting alongside โ rather than wholly replacing โ handcrafted fingerprints, which remain surprisingly competitive baselines on small datasets. The distinctive advantages are end-to-end learning of the representation, the ability to condition messages on bond features, and compatibility with both 2D connectivity and 3D geometry through equivariant variants. The honest summary of the benchmark literature is that GNNs win consistently where data is plentiful and structure matters (QM9, large PCBA-style assay collections), and win less clearly on small, noisy ADMET endpoints.
References
- Gilmer, J., Schรผtt, K. T., Ramsundar, B., Ramakrishnan, R., Bronskill, M., Gomes, C., & Dahl, G. E. (2017). Neural Message Passing for Quantum Chemistry. ICML 2017 (MPNN: unified framework for molecular GNNs, benchmarked on QM9 properties).
- Rong, Y., Bian, Y., Xu, T., Xie, W., Wei, Y., Huang, W., & Huang, J. (2020). Self-Supervised Graph Transformer on Large-Scale Molecular Data. NeurIPS 2020 (GROVER: large-scale pre-training of molecular GNNs on 10M unlabelled molecules for drug property prediction).
- Hu, W., Liu, B., Gomes, J., Zitnik, M., Liang, P., Pande, V., & Leskovec, J. (2020). Strategies for Pre-training Graph Neural Networks. ICLR 2020 (systematic study of GNN pre-training strategies for molecular property prediction and other biological tasks).
