Similarity-Quantized Relative Difference Learning for Improved Molecular Activity Prediction

Karina Zadorozhny, Kangway V. Chuang, Bharath Sathappan, Ewan Wallace, Vishnu Sresht, Colin A Grambow

TL;DR

This paper introduces Similarity-Quantized Relative Learning (SQRL), a novel framework that reframes molecular activity prediction by learning the difference in properties between structurally similar molecules, rather than predicting absolute values. SQRL significantly improves prediction accuracy and generalization, especially in low-data scenarios common in drug discovery, by focusing on informative molecular pairs.

What Problem Does This Paper Address?

Predicting the activity of small molecules is a cornerstone of drug discovery. However, this task is hampered by limited and often noisy experimental data. While deep learning models have shown promise in learning from molecular structures, most focus on predicting absolute property values. This approach overlooks a crucial insight from medicinal chemists: understanding how small structural changes affect a molecule's activity relative to similar compounds. This paper addresses the challenge of building robust predictive models in data-scarce environments by leveraging this "relative difference" information.

Methods

The core innovation is the Similarity-Quantized Relative Learning (SQRL) framework. Instead of predicting a molecule's absolute property ($y_i$), SQRL trains models to predict the difference in properties between pairs of molecules ($\Delta y_{ij} = y_i - y_j$). The "similarity-quantized" aspect comes from a crucial refinement: SQRL doesn't consider all possible pairs. It specifically selects pairs of molecules that are structurally similar, defined by a similarity threshold ($\alpha$). This focuses the learning on pairs where relative changes in structure are most likely to correspond to meaningful changes in activity.

The process involves:

  1. Dataset Matching: Constructing a new dataset of (molecular pair, property difference) tuples, where pairs are selected based on a chosen similarity metric (e.g., Tanimoto similarity) and a distance threshold $\alpha$.
  2. Relative Representation Learning: Using a representation function ($g$) to encode molecules into vectors, and a prediction function ($f$) that learns to predict the property difference based on the difference between these encoded vectors: $f(g(x_i) - g(x_j))$.
  3. Optimization: Minimizing the mean squared error between the predicted and actual property differences.
  4. Inference: For a new molecule, SQRL predicts its property by averaging the properties of its nearest neighbors in the training set, adjusted by the learned relative difference function.

Datasets

The authors evaluated SQRL on:

  • MoleculeACE dataset: A public dataset comprising 30 ChEMBL targets with potency measurements. This dataset includes a subset specifically designed to highlight "activity cliffs" – molecules with high structural similarity but large activity differences.
  • Proprietary Industry Data: Five internal drug discovery projects were used to assess the real-world applicability of SQRL.

Key Insights and Ideas

  • Focusing on Differences is Powerful: Learning relative property differences between similar molecules is more effective than predicting absolute values, especially when data is limited.
  • Similarity Thresholding is Key: Not all similar pairs are equally informative. Selecting pairs within a specific similarity threshold ($\alpha$) significantly boosts performance, outperforming indiscriminate pairing. This suggests that local structural information is paramount.
  • Local Structure Matters Most: The performance gains are most pronounced when test points are close to training points, indicating that SQRL excels at capturing fine-grained structural variations that impact activity.
  • Broad Applicability: SQRL consistently improves performance across a wide range of modern neural network architectures (GNNs, Transformers), demonstrating its versatility.

Key Results

SQRL consistently improved predictive performance across various models and datasets.

  • Spearman's ρ (correlation): SQRL led to significant improvements in Spearman's rank correlation for most deep learning architectures (GNNs and Transformers) compared to standard absolute prediction methods. For example, GNNs saw improvements of up to 0.28 points, and transformer models like COATI and Uni-Mol showed gains of 0.57 and 0.43 points respectively.
  • MoleculeACE-Cliff: SQRL showed particularly strong improvements on the "activity cliff" subset, highlighting its ability to capture subtle structural differences that lead to large activity changes.
  • MAE (Mean Absolute Error): Table 3 shows that SQRL generally leads to lower MAE values for deep learning models, indicating more accurate predictions. For instance, AttentiveFP achieved an MAE of 0.58 with SQRL compared to 0.80 for standard prediction on the MoleculeACE dataset.
  • Baselines: Traditional models like XGBoost, RF, and KNN showed little to no improvement with SQRL, suggesting that their simple feature representations might not fully leverage the pairwise difference information.

Limitations and Future Work

  • Dependence on Similarity Metrics: SQRL's effectiveness relies on the availability of meaningful similarity metrics. Future work could explore refining SQRL for applications where similarity measures are less well-defined or harder to establish.
  • Baseline Model Limitations: The lack of improvement for traditional models suggests that their feature representations might need enhancement (e.g., by concatenating full molecular fingerprints with difference representations) to fully benefit from SQRL.
  • Hyperparameter Tuning: While optimized hyperparameters were used, further tuning of the similarity threshold ($\alpha$) and distance metrics could potentially yield even better results.
  • Generalizability: While tested on proprietary data, further validation across a broader range of real-world drug discovery tasks would be beneficial.

Summary updated

BibTeX
@inproceedings{zadorozhny2024similarity,
  author = {Karina Zadorozhny and Kangway V. Chuang and Bharath Sathappan and Ewan Wallace and Vishnu Sresht and Colin A Grambow},
  title = {{Similarity-Quantized Relative Difference Learning for Improved Molecular Activity Prediction}},
  booktitle = {AIDrugX @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=GCvCSPbspW},
}
Figure