TL;DR
Conventional random dataset splits mask the poor performance of drug-target affinity prediction models on novel, structurally distinct molecules. This paper introduces Similarity Aware Evaluation (SAE), an optimization-based data-splitting framework that allows researchers to precisely control the similarity distribution of test sets, exposing hidden generalization gaps and guiding more robust model development.
What Problem Does This Paper Address?
Predicting Drug-Target Binding Affinity (DTA) is a cornerstone of virtual screening in early-stage drug discovery. To evaluate these machine learning models, researchers traditionally rely on a canonical randomized split to separate data into training and test sets. This approach assumes that data points are Independent and Identically Distributed (I.I.D.).
However, chemical space is highly clustered, and real-world drug discovery explicitly demands the discovery of novel therapeutic molecules, not just minor variations of known ones. The authors reveal a critical flaw in current benchmarking: randomized splits create test sets overwhelmingly dominated by molecules highly similar to the training set. This distribution creates an illusion of high accuracy, hiding the fact that model performance severely degrades when encountering structurally distinct, low-similarity compounds.
Methods
To expose and fix this blind spot, the authors propose Similarity Aware Evaluation (SAE). They frame dataset splitting as a combinatorial optimization problem designed to match any user-specified target similarity distribution across predefined bins. Because combinatorial optimization is computationally intractable for large datasets, they introduce three key innovations to make the problem continuous and differentiable:
- Continuous Relaxation: Each sample is assigned a continuous weight $w_i \in [0, 1]$, representing its probability of being assigned to the test set.
- Differentiable Approximations: The non-differentiable
maxfunction (used to find a sample's highest similarity to any training instance) is approximated using a smoothLogSumExpformulation. Similarly, the discrete bin-counting operation is replaced with a continuous score based on a Gaussian-bell curve and a softmax function. - Lagrangian Optimization & Regularization: The resulting constrained optimization problem is solved efficiently via gradient descent using Lagrangian multipliers. An entropy-based regularization term is added to penalize fractional weights, forcing the final continuous probabilities to cleanly converge to a binary split (0 or 1).
Datasets
The framework was validated using real-world biochemical datasets extracted from BindingDB and ChEMBL:
- BindingDB Datasets: Used to evaluate IC50 values for targets EGFR (4,361 samples) and BACE1 (4,636 samples), alongside Ki values for Carbonic anhydrase I (5,307 samples) and Carbonic anhydrase II (5,487 samples).
- External Validation Set: For a realistic "mimic split" experiment, internal data was sourced from ChEMBL, while external test data was gathered from PubChem, US Patents, and diverse scientific literature.
Key Insights and Ideas
- The Performance Illusion: In a standard random split of the EGFR dataset, roughly 88% of the test samples share high similarity (>2/3) with the training set. A state-of-the-art model might boast an impressive overall $R^2$ of 0.65, but diving deeper reveals its $R^2$ plummets to -0.6385 on the few low-similarity samples present.
- Customizable Benchmarking: Unlike rigid splitting techniques (e.g., scaffold splits), SAE gives practitioners complete control. Researchers can design a perfectly uniform test set across similarity tiers or force the split to mirror the exact distribution of an independent external dataset.
Key Results
The authors evaluated five representative deep learning architectures (FusionDTA, ChemBERTa, MolCLR, PharmHGT, and SAM-DTA) using the SAE framework.
- Achieving Balance: SAE successfully restructured the EGFR test set from its highly skewed baseline into a perfectly uniform distribution (~33% low, ~34% mid, and ~33% high similarity).
- Exposing the Gradient: As shown in the evaluation plots, every single model exhibited a stark, step-wise degradation in Mean Absolute Error (MAE) and $R^2$ as the structural similarity to the training set decreased.
- Superior Hyperparameter Tuning: By utilizing a "mimic split"—where the internal validation set was optimized to match the distribution of a true external dataset—SAE allowed researchers to select optimal hyperparameters. This led to significantly better generalization on external benchmarks compared to models tuned via random or scaffold splits.
Limitations and Future Work
The primary bottleneck of SAE is its computational complexity. Calculating the continuous relaxation requires computing a full pairwise similarity matrix, leading to a time and space complexity of $O(N^2)$ per iteration. While highly manageable for standard academic datasets (taking roughly 270 seconds for ~4,300 samples on a single NVIDIA 3090 GPU), it becomes restrictive for massive proprietary corporate libraries containing millions of compounds.
To address this, the authors note that more than 95% of pairwise molecular similarities are close to zero. They suggest that future implementations can leverage sparse matrix representations and low-bit quantization to scale SAE efficiently to millions of compounds.
Summary updated