TL;DR
This paper argues for using ROC-based cost functions in deep learning for virtual screening, especially when dealing with imbalanced datasets and the need for high-confidence predictions. They introduce novel training techniques and a new cost function (LlogAUC) that directly optimize for early enrichment, outperforming standard methods on benchmark drug discovery datasets.
What Problem Does This Paper Address?
Computer-aided drug discovery relies heavily on virtual screening to sift through vast chemical libraries for potential drug candidates. Deep learning models are powerful tools for this, but training them faces significant challenges:
- Class Imbalance: Datasets are heavily skewed, with far more inactive (negative) compounds than active (positive) ones. Standard cost functions like cross-entropy struggle with this, as the minority class has little influence.
- High Decision Thresholds: Due to the cost of experimental validation, virtual screening must be highly selective, meaning only the top-scoring compounds are considered. This translates to a need for good performance at high decision thresholds.
- Benchmarking: Common evaluation metrics for virtual screening are ROC-based (like AUC), making it logical to optimize these directly during training.
- Positive/Unlabeled (PU) Learning: In some scenarios, we have positive examples and a large set of unlabeled compounds, which can be framed as a PU learning problem, where ROC optimization has shown equivalence.
The paper aims to bridge the gap between standard deep learning training practices and the specific needs of virtual screening by proposing and evaluating ROC-based cost functions and training strategies.
Methods
The authors propose several novel methods to improve ROC-based cost function optimization for deep learning in virtual screening:
- ROC-based Cost Functions: Instead of cross-entropy, they focus on optimizing metrics related to the Receiver Operating Characteristic (ROC) curve, such as AUC and logAUC. These are inherently more robust to class imbalance and can be tailored to specific performance regions.
- LlogAUC Cost Function: A new cost function designed to directly optimize the logAUC metric, which prioritizes performance at high decision thresholds (early enrichment). This is achieved by modifying the ROC curve integration to focus on the left-most part and using a smooth approximation of the step function.
- Out-of-Batch Predictions (LAUC-prev): To address the computational cost of ROC-based functions (which often sum over pairs), they introduce a technique where current mini-batch predictions are used for weight updates, while previous predictions for all samples are treated as constants. This stabilizes training and improves performance.
- Coherent Mini-Batch Arrangement: Training mini-batches are constructed by pairing positive and negative samples, which is memory-efficient and facilitates parallelization.
- Lookup Table and Stop-Gradient: To accelerate the computation of ROC-based metrics and prevent degenerate solutions caused by approximations, they use a lookup table for rank estimation and a stop-gradient operator.
Datasets
The paper evaluates their methods on nine large Quantitative Structure-Activity Relationship (QSAR) benchmark datasets from PubChem. These datasets are characterized by:
- Realistic Class Imbalance: They mimic the large numbers of diverse compounds and significant class imbalances found in practical drug development.
- Single Screening Efforts: Each dataset is derived from a single screening effort, avoiding biases that can arise from combining multiple sources.
- Validated Actives: The labels for active compounds are confirmed via validating screens.
These datasets are described as representing realistic and diverse drug discovery campaigns on major drug target families.
Key Insights and Ideas
- ROC Optimization is Key for Virtual Screening: The paper strongly advocates for moving beyond standard cross-entropy loss when class imbalance and high-threshold performance are critical, as is the case in virtual screening.
- logAUC for Early Enrichment: The development of
LlogAUCdirectly addresses the need to identify promising candidates early in the screening process, which is crucial given the cost of experimental validation. - Out-of-Batch Predictions Stabilize Training: The
LAUC-prevmethod is a clever way to leverage more data for loss computation without increasing computational complexity quadratically, leading to more stable and effective training. - Approximations are Necessary but Tricky: While approximations are needed to make ROC optimization feasible with gradient descent, they can lead to degenerate solutions. The paper demonstrates how to mitigate this with techniques like stop-gradients.
- Benchmarking Alignment: Directly optimizing for metrics like AUC and logAUC, which are commonly used for evaluation, naturally leads to better performance on those metrics.
Key Results
- Outperformance of Baseline: The proposed ROC-based cost functions (
LAUC,LAUC-prev,LleftAUC, andLlogAUC) significantly outperform the standard cross-entropy baseline on most of the nine benchmark datasets across various ROC-based quality metrics. LlogAUCExcels for Early Enrichment:LlogAUCconsistently shows strong performance for metrics that prioritize high decision thresholds (e.g., AUC for FPR in [0.001; 0.1] and logAUC for FPR in [0.001; 1]), outperforming other ROC-based methods in many cases. For instance, it significantly outperforms cross-entropy on 7 out of 9 datasets for the logAUC metric.LAUC-prevBenefits from Out-of-Batch Samples: TheLAUC-prevmethod, utilizing out-of-batch predictions, shows advantages over the standardLAUCon several datasets, indicating the benefit of this training strategy.- Robustness to Imbalance: The ROC-based cost functions are shown to be robust to class imbalance, performing well without the need for explicit oversampling techniques often required for cross-entropy.
Limitations and Future Work
- Hyperparameter Tuning: While ROC-based cost functions have advantages, they introduce additional hyperparameters (e.g.,
γ,pin the Yan et al. approximation) that require tuning, although the paper notes that a wide range of values often works well. - Computational Cost: Despite optimizations, ROC-based cost functions can still be more computationally intensive than simple cross-entropy, especially for very large datasets. The paper's methods aim to mitigate this but don't eliminate it entirely.
- Generalizability: While the benchmark datasets are described as realistic, the authors acknowledge that these AUC losses are not claimed to be perfect for all situations. They encourage further exploration of loss functions tailored to specific project goals and applications.
- Future Work: The paper implicitly suggests that further research into novel ROC-based cost functions and optimization techniques for specific aspects of virtual screening (e.g., different types of imbalance, specific performance windows) would be beneficial. The authors encourage moving beyond the "default" use of cross-entropy.
Summary updated