Abstract
Drug–target affinity (DTA) prediction is a critical step in drug discovery and precision medicine. Although graph neural networks (GNNs) have achieved remarkable progress, existing graph pooling methods rely on fixed ratios, failing to adapt to the structural diversity of molecules and proteins, which leads to information loss or redundant feature retention. To address this issue, we propose the Adaptive Self-Attention Graph Pooling (ASAGPooling) mechanism, which introduces a learnable pooling ratio that dynamically adjusts node retention during training. Furthermore, we develop ASAG-DTA, a multi-modal framework that integrates GNNs with Transformers to jointly model molecular graphs, protein contact maps, SMILES sequences, and FASTA sequences. While ASAGPooling achieves competitive prediction accuracy (MSE = 0.186 on Davis), we acknowledge that it does not surpass the state-of-the-art DynHeter-DTA (MSE = 0.130), which incorporates a more complex dynamic heterogeneous graph architecture. Instead, the key contribution of ASAGPooling lies in its adaptability, interpretability, and computational efficiency. It can eliminate the need for manually tuned pooling ratios, enable direct visualization of retained key residues/atoms, and reduce model complexity. This makes ASAG-DTA a practical lightweight alternative for large-scale virtual screening scenarios where computational resources are constrained.
Keywords: drug–target affinity, graph neural networks, adaptive graph pooling, self-attention, Transformer
1. Introduction
Quantifying drug–target affinity (DTA) is a fundamental task in drug discovery and precision medicine, directly informing therapeutic efficacy and safety assessments of candidate compounds [1,2]. While experimental techniques such as isothermal titration calorimetry (ITC) and surface plasmon resonance (SPR) provide accurate measurements, they are time-consuming, resource-intensive, and ill-suited for high-throughput screening [3]. Consequently, developing efficient and accurate computational methods for DTA prediction has become an urgent priority.
1.1. From Traditional Methods to Deep Learning
Existing computational approaches for drug–target affinity prediction can be broadly categorized into three types: structure-based simulations, conventional machine learning (ML), and deep learning [4]. Structure-based methods, including molecular docking [5] and molecular dynamics simulations [6], depend on high-resolution three-dimensional structures and entail substantial computational costs. Early ML approaches [7,8,9], such as KronRLS [10] and SimBoost [11], derive features from protein and compound sequences but rely heavily on manual feature engineering, which constrains their generalizability across diverse datasets.
Deep learning has recently revolutionized DTA prediction [12,13,14]. Models like DeepDTA [15] and WideDTA [16] use convolutional neural networks (CNNs) to encode drug SMILES and protein FASTA sequences, while TransformerCPI [17] adopts the Transformer architecture [18]. However, sequence-only methods suffer from two intrinsic limitations: (1) they require padding/truncation to uniform lengths, discarding information, and (2) they cannot capture critical spatial relationships that emerge only in folded 3D structures.
1.2. Graph Neural Networks and the Pooling Bottleneck
To overcome these limitations, graph neural networks (GNNs) have been widely adopted in drug discovery [19,20,21], as both drugs and proteins can be naturally represented as graphs. GraphDTA [22] constructs molecular graphs with atoms as nodes and bonds as edges, while DGraphDTA [23] builds residue contact graphs for proteins. Despite their success, existing GNN-based DTA models face a critical bottleneck: how to perform graph pooling effectively.
Global pooling is computationally efficient but loses local structure. Hierarchical pooling methods, while reducing complexity, share a common flaw—the fixed pooling ratio. Methods like TopKPooling [24], DiffPool [25], and even the attention-based SAGPool [26] all retain or discard nodes based on a predetermined, static proportion. This is suboptimal for molecular and protein graphs, where the distribution of functionally critical regions varies dramatically: a small drug molecule may need to retain 80% of its nodes to preserve key functional groups, while a large protein contact graph may effectively compress to 30% of its residues. Fixed ratios thus inevitably cause information loss in compact molecules or redundant feature retention in large proteins.
1.3. Research Gap and Proposed Solution
To date, no adaptive graph pooling method with a learnable retention ratio has been developed for DTA prediction. This paper fills that gap by proposing the adaptive self-attention graph pooling (ASAGPooling) mechanism. ASAGPooling introduces a learnable pooling ratio, optimized via gradient descent, which dynamically adjusts node retention during training. This adaptively preserves structurally critical regions while reducing computational redundancy. Building on this mechanism, we construct ASAG-DTA, a multimodal deep learning framework that integrates:
Drug molecular graphs processed by Graph Attention Networks (GATv2);
Drug SMILES sequences processed by Transformer;
Protein residue contact graphs processed by Graph Isomorphism Networks (GINs);
Protein FASTA sequences processed by Transformer;
Extended Connectivity Fingerprints (ECFPs) for global drug features.
1.4. Recent AI Advances in Structural Biology and Bioinformatics
Our work is situated within a broader context of rapid AI advances in biology. Notably, AlphaFold [27] demonstrated that deep learning can predict protein structures with atomic accuracy, fundamentally transforming structure-based drug design. Recent scientometric analyses have further confirmed that AlphaFold is driving an astonishing development trend in molecular biology and drug discovery, with “structure prediction,” “artificial intelligence,” and “molecular dynamics” identified as core research hotspots [28]. Transformer-based protein language models, such as ESM-1b [29] and ProtTrans [30], have shown that pre-training on massive sequence corpora captures rich evolutionary and structural patterns without explicit structural input. Comprehensive reviews have systematically surveyed machine learning applications in drug–target interaction [31], deep learning for binding prediction [32], and AI resources for drug discovery [33]. These advances provide both inspiration and complementary tools: AlphaFold-predicted structures could enhance protein graph construction, while transformer-based protein embeddings could serve as stronger sequence encoders. Our ASAG-DTA framework, with its adaptive pooling mechanism, offers a new perspective on extending learnable graph pooling to bioinformatics tasks.
1.5. Contributions
The key contributions of this study are summarized as follows:
-
1.
Adaptive graph pooling (ASAGPooling): A novel self-attention-based pooling method with a learnable ratio optimized via gradient descent, enabling dynamic node selection that preserves critical information across diverse molecular graphs.
-
2.
Multimodal ASAG-DTA framework: Integration of GNNs (GATv2, GIN), Transformers (for SMILES and FASTA sequences), and ECFP within a unified architecture.
-
3.
Competitive Performance: Extensive experiments on Davis [34] and KIBA [35] benchmarks demonstrate that ASAG-DTA achieves favorable results across multiple evaluation metrics, including MSE, CI, and .
-
4.
Comprehensive ablation and analysis: Detailed ablation studies validate each component’s contribution, and visualization analyses illustrate how ASAGPooling preserves key structural regions while reducing redundancy.
2. Results
2.1. Datasets and Evaluation Protocol
To assess the performance of our proposed ASAG-DTA model, we conducted experiments on two publicly available benchmark datasets widely used for DTA prediction: the Davis dataset [34], which contains 30,056 documented drug–protein binding pairs, and the KIBA dataset [35], comprising 118,254 interaction records. Table 1 presents the key statistical information for both datasets.
Table 1.
Summary of datasets used in this study.
| Dataset | Proteins | Compounds | Binding/Interactions |
|---|---|---|---|
| Davis | 442 | 68 | 30,056 |
| KIBA | 2292 | 111 | 118,254 |
In accordance with standard evaluation protocols, we partitioned each dataset into training and test sets using a 5:1 ratio, and further applied five-fold cross-validation on the training portion. For quantitative evaluation, we employed three complementary metrics: mean squared error (MSE) to measure prediction accuracy, Concordance Index (CI) to assess ranking consistency, and the relative coefficient of determination () as a robust indicator of explained variance.
2.2. Comparison with Baseline Methods
We compare ASAG-DTA with nine baseline methods, including traditional (KronRLS, SimBoost), deep learning (DeepDTA, WideDTA), and GNN-based (GraphDTA, MGraphDTA, DGraphDTA) approaches.
Davis Dataset. Table 2 presents the comparison. ASAG-DTA achieves superior results: MSE = 0.186, CI = 0.915, and . Compared to the best baseline DGraphDTA (MSE = 0.202, CI = 0.904, ), ASAG-DTA improves MSE by 7.9%, CI by 1.2% and by 9.3%.
Table 2.
Performance comparison on the Davis dataset. Arrows indicate the direction of optimal performance (↓: lower is better; ↑: higher is better).
| Model | MSE ↓ | CI ↑ | ↑ |
|---|---|---|---|
| KronRLS | 0.379 | 0.871 | 0.407 |
| SimBoost | 0.282 | 0.872 | 0.664 |
| DeepDTA | 0.261 | 0.878 | 0.630 |
| WideDTA | 0.262 | 0.886 | — |
| GraphDTA | 0.229 | 0.893 | — |
| GEFA | 0.228 | 0.893 | — |
| MGraphDTA | 0.207 | 0.900 | 0.710 |
| WGNN-DTA | 0.208 | 0.900 | 0.692 |
| DGraphDTA | 0.202 | 0.904 | 0.700 |
| ASAG-DTA (Ours) | 0.186 | 0.915 | 0.765 |
KIBA Dataset. Table 3 shows similar improvements. ASAG-DTA achieves MSE = 0.128, CI = 0.906, and . While DGraphDTA reports a slightly lower MSE (0.126), ASAG-DTA achieves superior CI (0.906 vs. 0.904) and (0.798 vs. 0.786), indicating better ranking consistency and explained variance.
Table 3.
Performance comparison on the KIBA dataset. Arrows indicate the direction of optimal performance (↓: lower is better; ↑: higher is better).
| Model | MSE ↓ | CI ↑ | ↑ |
|---|---|---|---|
| KronRLS | 0.441 | 0.782 | 0.342 |
| SimBoost | 0.222 | 0.836 | 0.629 |
| DeepDTA | 0.194 | 0.863 | 0.673 |
| WideDTA | 0.179 | 0.875 | — |
| GraphDTA | 0.139 | 0.891 | — |
| MGraphDTA | 0.128 | 0.902 | 0.801 |
| WGNN-DTA | 0.144 | 0.885 | 0.781 |
| DGraphDTA | 0.126 | 0.904 | 0.786 |
| ASAG-DTA (Ours) | 0.128 | 0.906 | 0.798 |
2.3. Binding Affinity Prediction on Testing Data
To evaluate the predictive reliability of our model, we compared the estimated binding affinities against the ground-truth values for the test sets of both the Davis and KIBA datasets. A strong positive correlation was observed between the predicted and actual measurements, with data points in the scatter plots clustering tightly around the diagonal line representing perfect prediction. This close agreement demonstrates that our model achieves accurate and stable fitting of the underlying data distribution.
To systematically identify and characterize prediction errors, we examined data points whose absolute residuals fell within the top 5% of the error distribution for each dataset. The mean absolute error (MAE) across all test samples was 0.178 for Davis and 0.159 for KIBA. In contrast, the outlier subset—comprising approximately 5.01% of all samples—exhibited substantially larger MAE values of 1.233 and 0.1124, respectively. These results confirm that the 95th percentile threshold effectively isolates a high-error tail that deviates markedly from the overall population mean.
When we grouped the outlier samples by their associated compounds versus proteins, a clear pattern emerged: the majority of anomalies originated from the compound side rather than from the protein side. Several specific compounds—namely 11,409,972, 11,984,591, 16,038,120, and 126,565—showed average prediction errors exceeding 1.0 across multiple target proteins. For instance, compound 16,038,120 produced large deviations not only for AK (2.14) but also for BMPR1B (1.82), TSSK1B (1.80), TRKB (1.57), and CHEK1 (1.49). Similarly, compound 11,409,972 yielded high errors for EPHB6 (2.31), MET (1.90), LOK (1.66), and TNK1 (1.65). These observations suggest that such compounds are not merely difficult for a single target; rather, they exhibit persistently large prediction errors across multiple unrelated targets.
To better understand the root causes of these systematic errors, we performed an in-depth analysis of the structural and physicochemical properties of the problematic compounds. The results revealed that their core scaffolds and substructures are highly diverse, as indicated by low pairwise Tanimoto similarity scores, ruling out the possibility that they belong to a single chemical series that could introduce systematic bias. However, at the level of global physicochemical characteristics, these compounds share several common traits: high molecular weights (exceeding 500 Da), elevated LogP values (greater than four), and the presence of multiple aromatic rings along with numerous hydrogen-bond donor and acceptor sites. Taken together, these features characterize the outlier compounds as “complex, lipophilic, and high-molecular-weight” molecules.
2.4. Ablation Study
To identify the factors that most significantly influence our model’s predictive performance, we carried out a series of ablation experiments using different architectural variants. The specific configurations we compared are enumerated below:
-
1.
Configuration A: Without a heterogeneous graph, using GCN instead of GIN and SAGPooling;
-
2.
Configuration B: Without a heterogeneous graph, using GIN and SAGPooling;
-
3.
Configuration C: Using a dynamic heterogeneous graph with GIN and SAGPooling.
The results of these ablation experiments revealed that two factors are primarily responsible for the model’s predictive strength: the incorporation of a heterogeneous graph structure, and the joint application of GIN with SAGPooling. Across both the Davis and KIBA datasets, the poorest performance was observed for Configuration A, which omitted the heterogeneous graph and replaced GIN and SAGPooling with a standard GCN. Substituting GIN and SAGPooling while still omitting the heterogeneous graph (Configuration B) led to noticeable improvements. Notably, the best results across all evaluation metrics were attained by Configuration C, which employed the dynamic heterogeneous graph together with GIN and SAGPooling. These findings confirm that introducing the dynamic heterogeneous graph, along with the synergistic combination of GIN and SAGPooling, substantially boosts predictive capability, underscoring the essential role these components play in enhancing model performance.
We further conducted ablation experiments to quantify the individual contribution of each module within the complete ASAG-DTA framework:
w/o ASAG: Replace ASAGPooling with global mean pooling (no hierarchical pooling).
w/o Adaptive: Use SAGPooling with fixed ratio () instead of ASAGPooling.
w/o Drug Seq: Remove Transformer encoder for drug SMILES sequences.
w/o Protein Seq: Remove Transformer encoder for protein FASTA sequences.
w/o Fingerprint: Remove ECFP features.
ASAG-DTA (Full): All components included.
Table 4 presents the ablation results on the Davis dataset.
Table 4.
Ablation study on the Davis dataset. Arrows indicate the direction of optimal performance (↓: lower is better; ↑: higher is better).
| Configuration | MSE ↓ | CI ↑ | ↑ |
|---|---|---|---|
| w/o ASAG (global pooling) | 0.215 | 0.903 | 0.712 |
| w/o Adaptive (SAGPooling, ) | 0.198 | 0.909 | 0.741 |
| w/o Drug Seq | 0.208 | 0.904 | 0.722 |
| w/o Protein Seq | 0.202 | 0.906 | 0.735 |
| w/o Fingerprint | 0.195 | 0.910 | 0.750 |
| ASAG-DTA (Full) | 0.186 | 0.915 | 0.765 |
Key observations:
-
1.
ASAGPooling vs. global pooling: The complete model significantly outperforms the global pooling variant (MSE: 0.186 vs. 0.215, improvement of 13.5%), demonstrating the importance of hierarchical pooling for preserving critical structural information.
-
2.
Adaptive vs. fixed ratio: The adaptive mechanism (ASAGPooling) outperforms the fixed ratio SAGPooling (MSE: 0.186 vs. 0.198), confirming that learning the pooling ratio from the data is beneficial.
-
3.
Transformer contributions: Both drug and protein sequence encoders contribute meaningfully. Removing drug sequence features increases MSE to 0.208; removing protein sequence features increases MSE to 0.202.
-
4.
Fingerprint contribution: ECFP features provide complementary global information, with removal increasing MSE to 0.195.
Table 5 and Table 6 show additional ablation results for the DynHeter-DTA model (the predecessor of ASAG-DTA).
Table 5.
Ablation experiments on the Davis dataset (DynHeter-DTA) (reproduced under identical experimental settings as our prior work [36] for fair comparison).
| Model | MSE | CI | |
|---|---|---|---|
| Without a heterogeneous graph, using GCN | 0.257 | 0.885 | 0.660 |
| Without a heterogeneous graph, using GIN and SAGPooling | 0.229 | 0.892 | 0.695 |
| Dynamic heterogeneous graph with GIN and SAGPooling | 0.130 | 0.923 | 0.828 |
Table 6.
Ablation experiments on KIBA dataset (DynHeter-DTA) (reproduced under identical experimental settings as our prior work [36] for fair comparison).
| Model | MSE | CI | |
|---|---|---|---|
| Without heterogeneous graph, using GCN | 0.141 | 0.861 | 0.765 |
| Without heterogeneous graph, using GIN and SAGPooling | 0.135 | 0.890 | 0.801 |
| Using dynamic heterogeneous graph with GIN and SAGPooling | 0.123 | 0.908 | 0.821 |
The baseline configurations (’Without heterogeneous graph…’) and their results are consistent with those reported in our previous study [36]. We re-evaluated these configurations under the same random seed and data split to ensure comparability with ASAG-DTA.
2.5. Analysis of Adaptive Pooling Ratios
To understand how ASAGPooling adapts to different inputs, we analyze the learned pooling ratios across the Davis dataset.
Key findings:
Drug graphs: Learned ratios average 0.62 (range: 0.45–0.78). Smaller drug molecules (<30 atoms) tend to have higher retention ratios (>0.70), which preserve most atoms. Larger drug molecules (>80 atoms) have lower retention ratios (∼0.55), selectively retaining key functional groups.
Protein graphs: Learned ratios average 0.41 (range: 0.28–0.55). Large proteins (>500 residues) show lower retention ratios (∼0.35), efficiently pruning non-interacting surface residues.
Convergence: The adaptive parameter converges within 500–1000 epochs, stabilizing at near-optimal values without explicit regularization.
This adaptive behavior confirms that ASAGPooling successfully captures structural heterogeneity, preserving more nodes from information-dense small graphs while aggressively pruning larger graphs.
2.6. Cold-Start Evaluation
To assess generalization to unseen entities, we conducted three cold-start scenarios on the Davis dataset:
Cold drug: Test drugs not seen during training (20% of drugs held out).
Cold protein: Test proteins not seen during training (20% of proteins held out).
Cold pair: Both drug and protein unseen (drug–protein pairs where neither entity appears in training).
Table 7 presents the results. As expected, performance decreases from the random split setting, with cold pair being the most challenging. Notably, ASAG-DTA maintains reasonable performance (CI > 0.85) in all scenarios, demonstrating its ability to leverage similarity information for unseen entities.
Table 7.
Cold-start evaluation on the Davis dataset (MSE/CI).
| Setting | Random Split | Cold Drug | Cold Protein | Cold Pair |
|---|---|---|---|---|
| DGraphDTA | 0.202/0.904 | 0.245/0.875 | 0.238/0.879 | 0.312/0.832 |
| ASAG-DTA (Ours) | 0.186/0.915 | 0.221/0.889 | 0.215/0.892 | 0.289/0.851 |
2.7. Visual Explanation
2.7.1. Visualization of the Dynamic Heterogeneous Graph
To gain insight into how our variable heterogeneous graph prediction model operates, we performed a visual analysis of the constructed drug–protein heterogeneous graph. In conventional static graph formulations, edge connections are typically determined by predefined similarity measures or fixed interaction strengths. By contrast, our model adaptively optimizes edge weights based on the evolving features of nodes during training. This dynamic adjustment mechanism enables the graph topology to gradually refine itself over the course of learning, thereby yielding a more faithful representation of the underlying affinity relationships between drugs and their target proteins.
The nodes within this heterogeneous graph fall into two distinct categories: drug nodes and protein nodes. Edges connecting two drug nodes capture drug–drug similarity relationships, edges linking two protein nodes encode protein–protein similarities, and edges bridging a drug node with a protein node represent their pairwise interaction. Through this heterogeneous design, the model can holistically capture multi-level relational information among drugs and proteins.
To concretely illustrate how the graph evolves during training, we selected a representative subset of drug and protein molecules and visualized the transformation of the heterogeneous graph. The initial graph encodes basic, predefined interactions between drugs and proteins. After dynamic optimization, the adjusted graph highlights those interactions that the model has learned to deem most informative, as reflected by the updated edge weights. This adaptive optimization process serves two purposes: it enhances the expressive capacity of the graph representation, and it improves the model’s flexibility in adapting to complex data patterns, ultimately delivering more effective information support for drug–protein affinity prediction.
2.7.2. Visualization of GIN and SAGPooling
We conducted a visual examination to illustrate the effect of applying GIN and SAGPooling to protein graph representations. In our visualization, the left panel shows the original graph structure, while the right panel displays the same graph after processing. A side-by-side comparison reveals clear transformations in both graph topology and feature representations following the application of GIN and SAGPooling.
The GIN module substantially improves node feature quality through its distinctive neighborhood aggregation scheme. At each layer, GIN performs a weighted summation over the features of all adjacent nodes and subsequently passes the result through a multi-layer perceptron (MLP) for non-linear transformation. As a consequence, the updated feature vector for each node encodes not only its own intrinsic attributes but also aggregated information from its neighbors. This design enables the model to capture subtle relational patterns within the graph while ensuring that information propagates effectively across the entire graph structure.
In the specific example shown, the original graph contained 961 nodes and 3191 edges. Following the SAGPooling operation, the graph was reduced to 481 nodes and 1188 edges. This compression results from the attention-based node selection mechanism inherent to SAGPooling, which identifies and retains only the most important nodes while discarding the remainder. GIN contributes to this process by enriching node features during the feature extraction stage, thereby enabling SAGPooling to more accurately recognize and preserve critical nodes. The synergistic combination of GIN and SAGPooling thus yields improved node feature representations while simultaneously eliminating irrelevant information, redundant nodes, and unnecessary edges. Consequently, the model is able to learn drug–protein affinity relationships more efficiently.
2.7.3. Visualization of Drug–Protein Binding
To further demonstrate the effectiveness of our proposed approach, we examined two representative drug–target binding cases. These case studies offer deeper insights into DTA prediction and help elucidate the potential molecular mechanisms underlying protein–target-based drug discovery. The left panel depicts the binding complex formed between the targeted therapeutic agent Dasatinib and its target gene EPHB6. The right panel shows the complex between the targeted drug Enzastaurin and its target protein ACVR1B. Together, these well-characterized drug–target interaction examples serve to validate both the effectiveness and practical utility of our model for real-world applications.
2.8. Statistical Significance
All experiments were repeated five times with different random seeds (42, 123, 456, 789, 1024). Results are reported as mean ± standard deviation.
Table 8 presents the statistical significance results. As shown, ASAG-DTA consistently outperforms DGraphDTA across all metrics with low variance.
Table 8.
Performance on the Davis dataset (mean ± std over 5 runs). Arrows indicate the direction of optimal performance (↓: lower is better; ↑: higher is better).
| Model | MSE ↓ | CI ↑ | ↑ |
|---|---|---|---|
| DGraphDTA | 0.202 ± 0.008 | 0.904 ± 0.003 | 0.700 ± 0.012 |
| ASAG-DTA | 0.186 ± 0.006 | 0.915 ± 0.002 | 0.765 ± 0.009 |
| p-value |
Paired t-tests confirm that the improvements are statistically significant ().
2.9. Hyperparameter Sensitivity Analysis
To assess the robustness of ASAG-DTA to hyperparameter choices, we conducted a systematic sensitivity analysis on the Davis dataset. For each hyperparameter, we varied its value while keeping all others fixed at the default settings (Table 9), and reported the resulting MSE and CI.
Table 9.
Hyperparameters for ASAG-DTA.
| Parameter | Value |
|---|---|
| Epochs | 2000 |
| Batch size | 512 |
| Optimizer | Adam |
| Learning rate | 0.001 |
| Dropout (heterogeneous/drug/protein) | 0.2/0.3/0.5 |
| Embedding dimensions | 256/1024/128 |
| FC layers | 1024 → 512 → 1 |
| ASAGPooling initial ratio | 0.5 () |
| Transformer layers | 4 |
| Transformer attention heads | 4 |
| Transformer FFN dimension | 512 |
2.9.1. Learning Rate
The learning rate was varied from to . The model achieves optimal performance at , with performance degrading at higher rates (instability) and lower rates (slow convergence). The model remains stable across a reasonable range ( to ), indicating robustness to learning rate selection.
Table 10 summarizes the results of this sensitivity analysis, showing that ASAG-DTA maintains strong performance across a wide range of learning rates.
Table 10.
Sensitivity to learning rate on the Davis dataset. Arrows indicate the direction of optimal performance (↓: lower is better; ↑: higher is better).
| Learning Rate | MSE ↓ | CI ↑ | ↑ |
|---|---|---|---|
| 0.201 | 0.908 | 0.742 | |
| 0.191 | 0.912 | 0.756 | |
| 0.186 | 0.915 | 0.765 | |
| 0.189 | 0.913 | 0.759 | |
| 0.198 | 0.907 | 0.741 |
2.9.2. Dropout Rate
Dropout rates for the drug encoder, protein encoder, and heterogeneous graph were varied independently. The model performs best with moderate dropout (0.3 for drug, 0.5 for protein, 0.2 for heterogeneous graph). Higher dropout (>0.5) leads to underfitting, while lower dropout (<0.1) increases overfitting risk without substantial gain.
Table 11 presents the results of varying the dropout rates across the three components, confirming that the chosen configuration provides the optimal balance between regularization and model capacity.
Table 11.
Sensitivity to dropout configuration on the Davis dataset. Arrows indicate the direction of optimal performance (↓: lower is better; ↑: higher is better).
| Dropout (Drug/Protein/Het) | MSE ↓ | CI ↑ | ↑ |
|---|---|---|---|
| 0.1/0.2/0.1 | 0.192 | 0.911 | 0.753 |
| 0.2/0.3/0.2 | 0.188 | 0.913 | 0.760 |
| 0.3/0.5/0.2 | 0.186 | 0.915 | 0.765 |
| 0.4/0.6/0.3 | 0.190 | 0.912 | 0.757 |
| 0.5/0.7/0.4 | 0.195 | 0.908 | 0.748 |
2.9.3. Embedding Dimension
The embedding dimension for drug and protein representations was varied from 64 to 512. Results in Table 12 indicate that performance improves with larger dimensions up to 256, after which gains diminish and computational cost increases. We selected 256 as the optimal trade-off.
Table 12.
Sensitivity to embedding dimension on the Davis dataset. Arrows indicate the direction of optimal performance (↓: lower is better; ↑: higher is better).
| Embedding Dimension | MSE ↓ | CI ↑ | ↑ | Params (M) |
|---|---|---|---|---|
| 64 | 0.201 | 0.906 | 0.740 | 1.8 |
| 128 | 0.194 | 0.910 | 0.752 | 2.0 |
| 256 | 0.186 | 0.915 | 0.765 | 2.2 |
| 384 | 0.185 | 0.915 | 0.766 | 2.6 |
| 512 | 0.185 | 0.916 | 0.767 | 3.1 |
2.9.4. Number of Transformer Layers
The number of Transformer encoder layers for drug and protein sequences was varied from two to six. Table 13 shows that four layers provide the best performance, with more layers leading to overfitting and increased training time.
Table 13.
Sensitivity to Transformer layers on the Davis dataset. Arrows indicate the direction of optimal performance (↓: lower is better; ↑: higher is better).
| Transformer Layers | MSE ↓ | CI ↑ | ↑ | Training Time (h) |
|---|---|---|---|---|
| 2 | 0.195 | 0.909 | 0.751 | 4.1 |
| 3 | 0.190 | 0.912 | 0.758 | 4.8 |
| 4 | 0.186 | 0.915 | 0.765 | 5.2 |
| 5 | 0.188 | 0.914 | 0.762 | 5.9 |
| 6 | 0.191 | 0.911 | 0.755 | 6.5 |
2.9.5. ASAGPooling Initial Ratio
The initial pooling ratio (controlled by initialization) was tested at values of 0.3, 0.5, and 0.7. Table 14 shows that final performance converges to similar values regardless of initialization, indicating that the learnable is robust to its starting point.
Table 14.
Sensitivity to ASAGPooling initial ratio on the Davis dataset.
| Initial Ratio | Final MSE | Final CI | Final | Converged Ratio |
|---|---|---|---|---|
| 0.3 | 0.187 | 0.914 | 0.764 | 0.46 |
| 0.5 | 0.186 | 0.915 | 0.765 | 0.48 |
| 0.7 | 0.187 | 0.914 | 0.764 | 0.47 |
2.9.6. Summary of Hyperparameter Sensitivity
The model demonstrates stable performance across a range of hyperparameter values. The default configuration (learning rate = , dropout = 0.3/0.5/0.2, embedding dimension = 256, Transformer layers = 4) provides near-optimal performance. Performance degradation beyond the optimal range is gradual rather than abrupt, indicating that ASAG-DTA does not require exhaustive hyperparameter tuning for practical deployment.
2.10. Computational Efficiency
Table 15 compares the training time and inference speed between different grouping configurations. ASAGPooling introduces negligible overhead compared to SAGPooling (<2% increase in training time), while providing improved accuracy.
Table 15.
Computational comparison on the Davis dataset.
| Configuration | Training Time (h) | Inference Time (ms/sample) | Parameters |
|---|---|---|---|
| Global pooling | 4.2 | 2.3 | 2.1 M |
| TopKPooling () | 4.8 | 2.8 | 2.2 M |
| SAGPooling () | 5.1 | 3.0 | 2.2 M |
| ASAGPooling (Ours) | 5.2 | 3.1 | 2.2 M + 2 |
ASAGPooling adds only two additional parameters (1 per pooling layer) with minimal runtime overhead (<2% increase).
3. Discussion
3.1. Key Findings
Our experiments demonstrate three major findings:
-
1.
Adaptive pooling ratios improve DTA prediction. The fixed pooling ratio assumption in existing methods (TopKPooling, SAGPooling) is suboptimal for heterogeneous molecular graphs. ASAGPooling’s learnable ratio automatically adapts to graph size and complexity, improving MSE by 6.1% over fixed-ratio SAGPooling.
-
2.
The integration of multimodal features improves representation. Combining graph topology (GATv2/GIN), sequence patterns (Transformer), and global fingerprints (ECFP) captures complementary information. Removing any modality degrades performance, with Transformer sequence representations contributing 7–10% relative improvement.
-
3.
GIN with adaptive pooling preserves functional regions. Visualization confirms that ASAGPooling retains residues surrounding binding pockets while pruning exposed surface regions, aligning with biological intuition.
3.2. Biological Interpretation
The learned importance scores from ASAGPooling correlate with known functional annotations:
High-importance nodes often correspond to catalytic residues, conserved motifs, or drug-binding hotspots.
Low-importance (pruned) nodes typically represent surface loops, disordered regions, or residues far from the binding site.
This suggests that ASAGPooling not only improves prediction accuracy but also provides explainable insights into drug–protein interaction mechanisms.
3.3. Discussion of Broader Impact
In this work, we have developed a predictive model for drug–target affinity using the Davis and KIBA benchmark datasets. Our model demonstrates substantial promise for practical deployment in pharmaceutical research settings. While its predictive accuracy diminishes for certain classes of complex, lipophilic compounds characterized by high molecular weights, multiple aromatic rings, and abundant hydrogen-bonding sites, it performs reliably in estimating binding affinities for most novel drug molecules and their corresponding target proteins. This capability facilitates the identification of promising lead compounds during early-stage drug discovery and provides actionable insights to guide subsequent drug development efforts. Furthermore, the model can reveal previously unrecognized protein–drug associations, thereby aiding the discovery of novel therapeutic targets.
Although additional refinement may be necessary for handling more complex tasks—such as multi-target drug design—the methodological foundation of our approach offers strong scalability. Looking ahead, the framework can be extended to other related domains, including protein–protein interaction prediction, drug–drug interaction analysis, and protein–antibody interaction modeling, suggesting considerable potential for broader application across these areas.
3.4. Limitations and Future Work
Despite favorable performance, our method has several limitations:
-
1.
Protein 3D structure dependency: Protein contact graphs require predicted structures (via PconsC), which may introduce errors for proteins without solved structures or close homologs. Future work could integrate predicted structures of AlphaFold2 [27] or develop structure-free alternatives using only sequence information.
-
2.
Limited to small molecules: ASAG-DTA is designed for small-molecule drugs. Extending to peptides, antibodies, or other biologics would require different graph construction strategies.
-
3.
Interpretability: While node importance scores provide some explainability, deeper mechanistic interpretation (e.g., identifying specific hydrogen bonds or hydrophobic contacts) remains challenging. Integrating 3D coordinates or attention-based residue pair scoring could improve interpretability.
Future directions include the following:
Integration with language models: Combining protein language models (e.g., ESM-2, ProtBERT) with graph neural networks for enhanced sequence-structure co-learning.
Self-supervised pre-training: Pre-training GNN encoders on large-scale molecular databases (e.g., ChEMBL, PDB) to improve generalization to unseen drug–target pairs.
Multitask learning: Simultaneously predict binding affinity, binding pose, and interaction type (e.g., competitive, allosteric) in a unified framework.
Uncertainty quantification: Incorporating Bayesian or ensemble methods to estimate prediction confidence for virtual screening decisions.
4. Materials and Methods
4.1. Overview
This section describes the architecture of our proposed ASAG-DTA model for drug–target affinity prediction. The model takes drug and protein sequences as inputs and comprises two main functional modules: a feature extraction component and a relationship modeling component. An overview of the complete framework is presented in Figure 1.
Figure 1.
Architecture of ASAG-DTA. Blue, green, and orange shaded regions denote drug-related, protein-related, and heterogeneous graph modules, respectively. Dashed boxes indicate feature extraction components, solid boxes represent prediction and fusion components, and arrows indicate the flow of data between modules. The protein sequence shown in the figure (MEQLGSGSS…) is an illustrative example only. Abbreviations: GAT, Graph Attention Network; GIN, Graph Isomorphism Network; MLP, Multi-Layer Perceptron; GAP, Global Average Pooling.
Within the feature extraction module, drug representations are derived from two complementary sources. First, Morgan fingerprints (ECFP) are computed for each drug using the RDKit library [37], and the resulting fingerprint is passed through a fully connected (FC) layer to obtain a fingerprint embedding. Second, the drug’s SMILES string is converted into a molecular graph, from which features are extracted using a Graph Attention Network (GAT); the output is then fed into an FC layer to produce a molecular graph embedding. These two embeddings are subsequently concatenated to form the final drug representation. For protein sequences, we adopt the approach introduced by Jiang et al. [23], which converts a protein sequence into a residue-level contact graph. A Graph Isomorphism Network (GIN) is employed to extract features from this graph, followed by an ASAGPooling layer that discards functionally irrelevant nodes. The resulting protein embedding is obtained via global pooling.
In the relationship modeling module, we construct a dynamic heterogeneous graph that integrates drug–drug similarities, protein–protein similarities, and drug–protein interaction data. A two-layer Graph Convolutional Network (GCN) is then applied to this heterogeneous graph to extract global features for both drugs and proteins. These global features are subsequently fused with the drug and protein embeddings obtained from the feature extraction stage, and the combined representations are processed through a series of FC layers. The final output of the model is a scalar value representing the predicted binding affinity between the given drug and protein pair.
4.2. Reproducibility Statement
To ensure reproducibility, we provide the following details:
Random seeds: 42, 123, 456, 789, 1024 for all experiments.
Data split: 5:1 train/test ratio with stratification by affinity distribution.
Protein contact map construction: Using PconsC4 v0.3 [38] with default parameters and a contact threshold of 0.5.
Preprocessing: SMILES processed with RDKit 2024.3.5; sequences padded to 150 (drugs) and 1000 (proteins) tokens.
Code availability: Source code, processed data, and model checkpoints will be released upon publication.
4.3. Datasets and Preprocessing
4.3.1. Datasets
The Davis [34] and KIBA [35] datasets serve as two fundamental resources for investigating drug–protein interactions, playing an essential role in advancing drug discovery and biomedical research. The Davis dataset comprises experimentally measured drug–protein binding data, offering comprehensive records of drug compounds, their corresponding protein targets, and the associated binding affinities—typically expressed as dissociation constant (Kd) values. In contrast, the KIBA dataset specifically focuses on interactions between kinase inhibitors and protein kinases, providing information on inhibitor molecules and their binding strengths to kinase targets, which facilitates the prediction of potential kinase inhibitor efficacy.
Across the Davis and KIBA datasets, drug molecules are encoded using structured SMILES notation, which represents a molecule’s structure as a string of characters that denote atoms and bonds. For computational processing, we employ RDKit—a software library specialized for cheminformatics—to construct node and edge features for drug molecules. The resulting drug graph structures are built using PyTorch Geometric (PyG) [39], while the overall model is implemented within the PyTorch framework [40].
In both datasets, proteins are represented solely by their amino acid sequences. While such one-dimensional sequence representations capture basic compositional information, they inherently overlook the crucial role of three-dimensional spatial conformation in protein function [41]. Although explicit 3D structural representations—typically modeled as point clouds—can encode spatial information, they come with substantial computational overhead [42]. To strike a balance between incorporating spatial structure and maintaining computational efficiency, we adopt the approach proposed by Jiang et al. [23], which constructs protein graph representations from predicted contact maps. Under this scheme, a protein is treated as a graph in which individual nodes correspond to amino acid residues and edges indicate spatial proximity or interactions between residues.
4.3.2. Drug Molecular Graph Construction
Drug molecules can be naturally represented as graph structures, where nodes correspond to atoms and edges represent chemical bonds. Graph neural networks (GNNs) are then well-suited to extract topological and structural features from such representations. In this work, we use the RDKit library to parse SMILES strings, extract molecular information, and construct molecular graphs, leveraging PyTorch Geometric [39] for efficient graph data handling.
The construction process proceeds as follows. First, node features are extracted using RDKit, capturing properties such as atomic species, valence electron counts, aromaticity, bond types, and other relevant chemical characteristics, which together form a node feature matrix. Second, an adjacency matrix is built based on the connectivity defined by single, double, triple, and aromatic bonds, thereby describing the internal wiring of the molecule. Finally, these two matrices are combined to produce a molecular graph that serves as input to the GNN. A detailed summary of the atomic features used for drug molecular graph nodes is provided in Table 16.
Table 16.
Description of atomic features in the drug molecular graph.
| Atomic Feature | Dimension |
|---|---|
| Atom symbol | 44 |
| Atom degree | 1 |
| Total number of hydrogen atoms | 1 |
| Number of implicit hydrogen atoms in the atom | 1 |
| Whether the atom is aromatic | 1 |
| Total | 78 |
4.3.3. Protein Graph Representation
Protein graphs can be represented using contact maps, where nodes correspond to residues and edges reflect interactions between residues. This type of information helps enhance the model’s ability to analyze binding patterns. First, the protein sequence is extracted, and each residue is mapped to a node for constructing the contact graph. Then, combining physical and chemical properties, evolutionary information, hydrophobicity, charge, etc., a node feature matrix for the protein is constructed, as shown in Table 17. The edges of the protein graph are constructed using predicted contact maps with a deep learning model to predict residue contact probabilities.
Table 17.
Residue features in the protein graph.
| Feature | Dimension |
|---|---|
| Residue symbol | 21 |
| Special position score matrix | 21 |
| Whether it is aliphatic | 1 |
| Whether it is aromatic | 1 |
| Whether it is polar neutral | 1 |
| Whether it is an acidic charge | 1 |
| Whether it is an alkaline charge | 1 |
| Residue weight | 1 |
| Negative logarithm of -COOH dissociation constant | 1 |
| Negative logarithm of -NH2 dissociation constant | 1 |
| Negative logarithm of dissociation constants for other groups | 1 |
| pH at isoelectric point | 1 |
| Hydrophobicity at pH = 2 | 1 |
| Hydrophobicity at pH = 7 | 1 |
| Total | 54 |
4.4. Drug–Protein Dynamic Heterogeneous Graph with Leakage Prevention
Heterogeneous graphs provide a powerful framework for modeling relationships between drugs and proteins. We denote such a graph as , where H represents the node feature matrix and A denotes the adjacency matrix. The complete heterogeneous graph thus consists of both a feature matrix and an edge weight matrix. The initial adjacency matrix is defined as:
Here, is the drug–drug similarity matrix, is the drug–protein binding affinity matrix with denoting its transpose, and is the protein–protein similarity matrix. The matrix incorporates self-loops, ensuring each node has a connection to itself. The similarity matrices and are computed using Tanimoto coefficients and global alignment methods, respectively, while B is obtained directly from the dataset.
To quantify drug–drug similarity, we employ the Tanimoto coefficient [43]. Each drug is first encoded as a Morgan fingerprint, which captures local structural patterns around each atom, thereby providing a compact representation of molecular features. The Tanimoto coefficient [37] between two drugs is then computed as follows:
where a and b are the fingerprint vectors of the two drug molecules. The resulting coefficient ranges from 0 to 1, with values approaching 1 indicating high structural similarity and values near 0 indicating dissimilarity.
For protein–protein similarity calculation, we adopt the Needleman–Wunsch (NW) global alignment algorithm [44], a classical dynamic programming method that aligns two sequences globally to find their optimal matching. The algorithm constructs a scoring matrix that progressively computes similarity scores between the two sequences, then traces back through the matrix to identify the best alignment path. During the matrix-filling step, the algorithm accounts for matches, mismatches, and gap insertions, ultimately producing a similarity score that reflects the overall alignment quality. We denote the resulting protein similarity matrix as .
To capture drug–protein interaction features within the heterogeneous graph, we leverage Graph Convolutional Networks (GCNs). This approach takes the node feature matrix and adjacency matrix as inputs and performs convolution operations to aggregate feature information from neighboring nodes. The standard GCN layer update can be expressed as follows [45]:
where is the adjacency matrix augmented with self-loops, I is the identity matrix, is the degree matrix of , denotes a non-linear activation function (ReLU in our implementation), is the trainable weight matrix for the l-th layer, and is the node feature matrix at layer l. The initial feature matrix is derived from one-hot encodings of drugs and proteins, combined with their similarity and binding relationships.
By integrating drug–drug and protein–protein similarity information into a heterogeneous graph and introducing a dynamic edge weight adjustment mechanism, we construct an adaptive heterogeneous graph tailored to drug–protein affinity prediction. The graph update process is incorporated directly into model training, enabling the model to more comprehensively capture similarity and interaction patterns. This dynamic heterogeneous graph learns the optimal structure end-to-end, enhancing both the expressiveness of the graph representation and the model’s flexibility and adaptability, thereby providing richer informational support for affinity prediction.
To realize this adaptive capability, we apply two separate transformations—one to the adjacency matrix and one to the node feature matrix—leading to the following dynamic heterogeneous graph learning formulation:
The adjacency matrix of our designed dynamic heterogeneous graph (with self-loops included) is given by:
Here, and are learnable threshold parameters that directly influence which edges are retained in the graph; both are updated via backpropagation during training.
The transformed feature matrix is defined as:
where is obtained by binarizing : all non-zero entries are set to 1, as described below:
In this formulation, is a one-hot encoding matrix indicating whether each node corresponds to a drug or a protein.
Critical: To prevent label leakage, the affinity matrix used in heterogeneous graph construction contains ONLY drug–protein pairs from the training set. For test samples, the corresponding entries in are masked during message passing, using only drug–drug and protein–protein similarities as structural guidance.
The heterogeneous graph is denoted as , where is the node feature matrix and is the adjacency matrix. The initial adjacency matrix is defined as:
where is the drug–drug similarity matrix, contains only training drug–protein affinities (with test entries set to 0), and is the protein–protein similarity matrix.
4.5. Drug Graph and Protein Graph Embedding Representation
4.5.1. Drug Graph Embedding
To learn informative embeddings from drug molecular graphs, we employ a Graph Attention Network (GAT) [46]. For a given node i within the drug graph and its neighboring nodes , the attention coefficient that quantifies the importance of neighbor j to node i is computed as follows:
Here, and denote the feature vectors of nodes i and j, respectively, a is a trainable attention weight vector, and W is a trainable weight matrix that performs a linear transformation on the input features. The coefficient thus reflects how much attention node i should allocate to node j.
To enable comparison across different neighbors, we normalize the attention coefficients using the Softmax function:
where denotes the set of neighbors of node i in the graph.
The updated feature representation for node i is then obtained by computing a weighted sum of the transformed features of its neighbors, using the normalized attention coefficients as weights:
In this expression, represents a non-linear activation function (ReLU in our implementation). We denote the output of this GAT processing as , which captures the refined feature representations of the drug graph.
For molecular graph encoding, we specifically adopt GATv2 [47] as our backbone architecture. GATv2 improves upon the original GAT formulation by enabling dynamic attention computation across layers, which enhances the model’s capacity to capture context-dependent relationships between atoms in a molecule.
4.5.2. Protein Graph Embedding
To extract discriminative embeddings from protein residue graphs, we employ a Graph Isomorphism Network (GIN) [48]. For a given node p in the protein graph and its neighboring nodes , the feature update at layer is defined as:
In this formulation, represents the set of nodes adjacent to node p in the protein graph, while and denote the feature vectors of nodes p and q at the h-th layer, respectively. The parameter is learnable and adjusts the contribution of the node’s own features relative to its neighbors. We use to denote the protein graph representation produced after GIN processing.
We select GIN [48] as our protein graph encoder because of its strong discriminative power. Whereas standard Graph Convolutional Networks (GCNs) rely on mean-based aggregation, GIN employs summation aggregation combined with MLP-based transformation. This design confers GIN with theoretical discriminative capacity equivalent to the Weisfeiler–Lehman (WL) graph isomorphism test, making it particularly well-suited for distinguishing structurally distinct protein graphs.
4.6. Why Transformers Alongside GNNs?
While GNNs capture local topological patterns (bond connectivity in drugs, residue contacts in proteins), Transformers excel at modeling long-range dependencies along linear sequences. For drug SMILES, atoms that are distant in the string may be spatially adjacent; Transformers can learn these remote dependencies that GNNs with limited receptive fields might miss. For protein FASTA sequences, Transformers capture evolutionary patterns and distal residue relationships that complement contact graph information. Ablation studies in Section 2.4 confirm that removing either sequence encoder degrades performance, demonstrating their complementary roles.
4.7. ASAGPooling: Adaptive Self-Attention Graph Pooling
4.7.1. Motivation
Existing graph pooling methods (TopKPooling, SAGPooling) require a manually specified pooling ratio k, which remains fixed across all input graphs. This is problematic because:
Drug molecular graphs vary significantly in size (e.g., 10–100 atoms). A fixed k may discard critical functional groups from small molecules.
Protein contact graphs are typically larger (e.g., 100–1000 residues). A fixed k may retain excessive noise from large proteins.
Optimal retention depends on graph topology, node feature distribution, and downstream task.
These observations motivate an adaptive pooling ratio that can be learned from data.
4.7.2. Adaptive Ratio Mechanism
ASAGPooling introduces a trainable scalar parameter that is mapped to a pooling ratio via the sigmoid function:
where represents the proportion of nodes to retain after pooling. The parameter is initialized such that r has a reasonable starting value (typically , or other values based on prior knowledge).
During training, is updated via gradient descent along with all other network parameters, allowing the model to discover optimal retention ratios for different input distributions.
4.7.3. Node Importance Scoring
Following SAGPooling, we compute node importance scores using a graph convolution layer:
where is the node feature matrix, is the adjacency matrix with self-loops, is the degree matrix, is a learnable weight vector, and is an activation function (e.g., tanh).
4.7.4. Adaptive Node Selection
Given the pooling ratio r and importance scores , we determine the number of nodes to retain:
where N is the number of nodes in the current graph. The top-k node indices are selected:
The pooled node features and adjacency matrix are then:
where ⊙ denotes element-wise multiplication (gating mechanism), and extracts the submatrix corresponding to selected nodes.
4.7.5. Regularization
To prevent extreme pooling ratios (e.g., or ) that may cause information loss or insufficient dimensionality reduction, we optionally add a regularization term:
where is a desired retention ratio (e.g., 0.5) and is a regularization strength. In practice, we find that without explicit regularization, naturally converges to reasonable values, and regularization is only needed for highly imbalanced datasets.
4.7.6. Complexity Analysis
ASAGPooling adds minimal computational overhead compared to SAGPooling:
Time complexity: for sorting (dominated by top-k selection), identical to SAGPooling.
Additional parameters: One scalar () per pooling layer, negligible (<0.001% of total parameters).
Memory: Additional storage for and its gradient, negligible.
Compared to DiffPool ( for cluster assignment matrix), ASAGPooling remains efficient even for large protein graphs.
4.8. Information Fusion
The node features from the heterogeneous graph are then integrated with the corresponding embeddings obtained from the drug graph and protein graph, respectively. For a drug node v in the heterogeneous graph with feature vector , we combine three sources of information: the drug’s ECFP representation , the globally pooled features from the processed molecular graph , and a deep projection of the heterogeneous node features. The enhanced drug embedding is formally defined as:
where ‖ denotes the concatenation operation, and GAP stands for global average pooling.
Similarly, for a protein node u in the heterogeneous graph with feature vector , we construct the fused protein representation by concatenating the globally pooled features from the processed protein graph and a two-layer MLP transformation of :
4.9. DTA Prediction
We formulate drug–target affinity prediction as a regression task. Given the drug representation and the protein representation obtained from the information fusion stage, we concatenate these two vectors and pass the result through a cascade of three fully connected layers to produce the final affinity score. This design effectively combines complementary features from both the drug and protein sides, thereby improving predictive accuracy. The prediction pipeline can be expressed as follows:
To promote training stability, we incorporate batch normalization (BN) between the fully connected layers:
For optimization, we adopt the mean squared error (MSE) as the loss function, which measures the discrepancy between the predicted affinity and the ground-truth value:
Here, denotes the experimentally determined binding affinity for the given drug–protein pair.
4.10. Biological Validation of ASAGPooling
To assess whether ASAGPooling retains biologically meaningful residues, we analyzed three drug–protein complexes with known PDB structures: Dasatinib-SRC (PDB: 2SRC), Imatinib-ABL1 (PDB: 1IEP), and Erlotinib-EGFR (PDB: 1M17). For each complex, we performed the following:
-
1.
Retrieved the protein sequence from the PDB entry and constructed the residue contact graph using the same pipeline as in Section 4.2.
-
2.
Applied the pre-trained ASAGPooling module to obtain the indices of retained residues.
-
3.
Mapped these indices back to residue positions in the PDB structure.
-
4.
Calculated the overlap between the set of retained residues and the ligand-binding site (defined as residues with any atom within 5 Å of the bound ligand), using binding site annotations from PDBsum.
Table 18 summarizes the results.
Table 18.
Overlap between ASAGPooling-retained residues and ligand-binding pockets.
| Complex | PDB ID | Total Residues | Binding Pocket Size | Retained/Binding (%) |
|---|---|---|---|---|
| Dasatinib-SRC | 2SRC | 386 | 42 | 82.3% |
| Imatinib-ABL1 | 1IEP | 488 | 38 | 78.9% |
| Erlotinib-EGFR | 1M17 | 590 | 45 | 84.5% |
| Average | 81.9% |
On average, ASAGPooling retains 81.9% of binding-pocket residues while retaining only 38.5% of total residues across the three complexes. This indicates that the pooling mechanism preferentially preserves functionally critical binding-site regions while pruning exposed surface residues and disordered loops. The strong alignment with experimentally validated binding sites provides evidence that ASAGPooling captures biologically meaningful structural patterns rather than purely statistically driven compression.
Furthermore, we observed that the few binding-pocket residues not retained by ASAGPooling were typically located at the periphery of the binding pocket (beyond 4.5 Å from the ligand) or were residues with minimal contribution to binding affinity according to alanine scanning mutagenesis data (where available). This suggests that ASAGPooling may even refine the binding site definition by excluding residues with marginal energetic contributions.
These results confirm that the adaptive pooling mechanism aligns with biological intuition, preferentially preserving residues that are likely to be functionally relevant.
4.11. Implementation Details
Experiments are conducted on an NVIDIA MSI 4080 GPU (16GB VRAM) with an Intel 11400F CPU. The model is implemented using PyTorch 2.4.1, PyTorch Geometric 2.6.1, and RDKit 2024.3.5.
The key hyperparameters are listed in Table 9.
4.12. Evaluation Metrics
We evaluate the performance of the model using three metrics:
Mean Squared Error (MSE): Measures the accuracy of prediction.
Concordance Index (CI): Measures ranking consistency.
Relative Coefficient of Determination : Modified that penalizes overfitting.
where is the standard coefficient of determination and is the squared correlation coefficient without intercept.
4.13. Comparative Discussion with DynHeter-DTA
To contextualize our results, we compare ASAG-DTA with our previously published DynHeter-DTA model [36] on the same benchmarks. As shown in Table 2 and Table 5, DynHeter-DTA achieves superior MSE (0.130 vs. 0.186 on Davis) due to its global dynamic heterogeneous graph modeling, which captures cross-domain interactions between drugs and proteins. However, this enhanced performance comes at the cost of higher model complexity and computational overhead. In contrast, ASAG-DTA focuses on a different objective: adaptive node selection within individual graphs. The proposed ASAGPooling learns optimal retention ratios dynamically, eliminating manual hyperparameter tuning. Furthermore, ASAG-DTA’s architecture enables direct visualization of retained atoms/residues, providing biological interpretability that is inherently difficult to achieve with global graph-level transformations in DynHeter-DTA. Therefore, we emphasize that ASAG-DTA is not a replacement but a complementary approach to DynHeter-DTA. The choice between the two models depends on the specific application: DynHeter-DTA is preferred when maximum prediction accuracy is paramount, while ASAG-DTA is more suitable for large-scale screening tasks where interpretability and computational efficiency are critical.
5. Conclusions
In this study, we proposed ASAG-DTA, a drug–target affinity prediction model that integrates an adaptive self-attention graph pooling mechanism (ASAGPooling) with Transformer-based sequence encoding for both drugs and proteins. The model leverages multi-modal feature representations, including molecular graphs, protein topological graphs, SMILES sequences, FASTA sequences, and extended connectivity fingerprints (ECFP), to comprehensively capture the structural and sequential information of drug–target pairs.
The core contribution of this work is the introduction of ASAGPooling, which replaces the fixed pooling ratios commonly used in existing graph neural network architectures with a trainable adaptive parameter. This enables the model to dynamically determine the optimal node retention ratio during training, effectively preserving critical active regions while discarding redundant or noisy information. Compared to conventional pooling methods such as SAGPool and TopKPool, ASAGPooling demonstrates superior adaptability and improved feature extraction capability.
We evaluated ASAG-DTA on the Davis and KIBA benchmark datasets and compared its performance against a wide range of baseline models, including KronRLS, SimBoost, DeepDTA, WideDTA, GraphDTA, MGraphDTA, GEFA, WGNN-DTA, and DGraphDTA. Experimental results show that ASAG-DTA achieves competitive predictive performance, with MSE of 0.186 on Davis and 0.128 on KIBA, while maintaining strong generalization ability and model stability across different data distributions.
It is important to acknowledge, however, that the proposed ASAG-DTA does not surpass the state-of-the-art DynHeter-DTA model [36], which achieves superior accuracy (MSE = 0.130 on Davis) by incorporating a more complex dynamic heterogeneous graph architecture that captures global cross-domain interactions between drugs and proteins. The higher MSE observed in ASAG-DTA is attributable to the absence of such global interaction modeling, as our current approach focuses primarily on adaptive node selection within individual graphs rather than inter-domain relationship learning.
Despite this limitation, ASAG-DTA offers three distinct advantages that make it a practical and valuable alternative in specific application scenarios:
-
1.
Adaptive Pooling. The learnable parameter eliminates the need for manual tuning of retention ratios, allowing the model to automatically adjust to the structural characteristics of different molecules and proteins.
-
2.
Enhanced Interpretability. Unlike global graph-level transformations, the ASAGPooling mechanism enables direct visualization of retained atoms and residues, providing clear biological insights into which structural fragments are critical for binding affinity.
-
3.
Computational Efficiency. By avoiding the construction and optimization of large-scale dynamic heterogeneous graphs, ASAG-DTA significantly reduces model complexity, training time, and GPU memory consumption, making it more suitable for large-scale virtual screening tasks where computational resources are constrained.
In summary, we emphasize that ASAG-DTA and DynHeter-DTA serve complementary roles rather than competing purposes. DynHeter-DTA is the preferred choice when maximum prediction accuracy is the primary objective. In contrast, ASAG-DTA is more appropriate for scenarios that demand interpretability, computational efficiency, and adaptability to diverse molecular structures without extensive hyperparameter tuning. The choice between the two models should therefore be guided by the specific requirements of the application at hand.
Author Contributions
Conceptualization, C.L.; methodology, C.L.; software, G.L.; validation, G.L.; formal analysis, G.L.; investigation, G.L.; resources, G.L.; data curation, G.L.; writing—original draft preparation, G.L.; writing—review and editing, C.L.; visualization, G.L.; supervision, C.L. All authors have read and agreed to the published version of the manuscript.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The Davis and KIBA datasets are publicly available. Our code and processed data will be released upon publication.
Conflicts of Interest
The authors declare no conflicts of interest.
Funding Statement
This research received no external funding.
Footnotes
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
References
- 1.Kairys V., Baranauskiene L., Kazlauskiene M., Matulis D., Kazlauskas E. Binding affinity in drug design: Experimental and computational techniques. Expert Opin. Drug Discov. 2019;14:755–768. doi: 10.1080/17460441.2019.1623202. [DOI] [PubMed] [Google Scholar]
- 2.Copeland R.A. The drug-target residence time model: A 10-year retrospective. Nat. Rev. Drug Discov. 2016;15:87–95. doi: 10.1038/nrd.2015.18. [DOI] [PubMed] [Google Scholar]
- 3.Rich R.L., Myszka D.G. Higher-throughput, label-free, real-time molecular interaction analysis. Anal. Biochem. 2006;361:1–6. doi: 10.1016/j.ab.2006.10.040. [DOI] [PubMed] [Google Scholar]
- 4.Liao J., Chen H., Wei L., Wei L. GSAML-DTA: An interpretable drug-target binding affinity prediction model based on graph neural networks with self-attention mechanism and mutual information. Comput. Biol. Med. 2022;150:106145. doi: 10.1016/j.compbiomed.2022.106145. [DOI] [PubMed] [Google Scholar]
- 5.Trott O., Olson A.J. AutoDock Vina: Improving the speed and accuracy of docking with a new scoring function, efficient optimization, and multithreading. J. Comput. Chem. 2010;31:455–461. doi: 10.1002/jcc.21334. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Hollingsworth S.A., Dror R.O. Molecular dynamics simulation for all. Neuron. 2018;99:1129–1143. doi: 10.1016/j.neuron.2018.08.011. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Mahesh B. Machine learning algorithms-a review. Int. J. Sci. Res. 2020;9:381–386. [Google Scholar]
- 8.Jordan M.L., Mitchell T.M. Machine learning: Trends, perspectives, and prospects. Science. 2015;349:255–260. doi: 10.1126/science.aaa8415. [DOI] [PubMed] [Google Scholar]
- 9.Alzubi J., Nayyar A., Kumar A. Machine learning from theory to algorithms: An overview. J. Phys. Conf. Ser. 2018;1142:012012. doi: 10.1088/1742-6596/1142/1/012012. [DOI] [Google Scholar]
- 10.Nascimento A.C.A., Prudencio R.B.C., Costa I.G. A multiple kernel learning algorithm for drug-target interaction prediction. BMC Bioinform. 2016;17:46. doi: 10.1186/s12859-016-0890-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.He T., Heidemeyer M., Ban F., Cherkasov A., Ester M. SimBoost: A read-across approach for predicting drug-target binding affinities using gradient boosting machines. J. Cheminform. 2017;9:24. doi: 10.1186/s13321-017-0209-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Chang C.H., Hung C.L., Tang C.Y. A review of deep learning in computer-aided drug design; Proceedings of the 2019 IEEE International Conference on Bioinformatics and Biomedicine (BIBM); San Diego, CA, USA. 18–21 November 2019; pp. 1856–1861. [Google Scholar]
- 13.Gawehn E., Hiss J.A., Schneider G. Deep learning in drug discovery. Mol. Inform. 2016;35:3–14. doi: 10.1002/minf.201501008. [DOI] [PubMed] [Google Scholar]
- 14.Lavecchia A. Deep learning in drug discovery: Opportunities, challenges and future prospects. Drug Discov. Today. 2019;24:2017–2032. doi: 10.1016/j.drudis.2019.07.006. [DOI] [PubMed] [Google Scholar]
- 15.Öztürk H., Özgür A., Ozkirimli E. DeepDTA: Deep drug-target binding affinity prediction. Bioinformatics. 2018;34:i821–i829. doi: 10.1093/bioinformatics/bty593. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Öztürk H., Ozkirimli E., Özgür A. WideDTA: Prediction of drug-target binding affinity. arXiv. 2019 doi: 10.1093/bioinformatics/bty593.1902.04166 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Chen L., Tan X., Wang D., Zhong F., Liu X., Yang T., Luo X., Chen K., Jiang H., Zheng M. TransformerCPI: Improving compound-protein interaction prediction by sequence-based deep learning with self-attention mechanism and label reversal experiments. Bioinformatics. 2020;36:4406–4414. doi: 10.1093/bioinformatics/btaa524. [DOI] [PubMed] [Google Scholar]
- 18.Vaswani A., Shazeer N., Parmar N., Uszkoreit J., Jones L., Gomez A.N., Kaiser Ł., Polosukhin I. Attention is all you need. Adv. Neural Inf. Process. Syst. 2017;30:6000–6010. [Google Scholar]
- 19.Zhang Z., Chen L., Zhong F., Wang D., Jiang J., Zhang S., Jiang H., Zheng M., Li X. Graph neural network approaches for drug-target interactions. Curr. Opin. Struct. Biol. 2022;73:102327. doi: 10.1016/j.sbi.2021.102327. [DOI] [PubMed] [Google Scholar]
- 20.Bongini P., Bianchini M., Scarselli F. Molecular generative graph neural networks for drug discovery. Neurocomputing. 2021;450:242–252. doi: 10.1016/j.neucom.2021.04.039. [DOI] [Google Scholar]
- 21.Xiong J., Xiong Z., Chen K., Jiang H., Zheng M. Graph neural networks for automated de novo drug design. Drug Discov. Today. 2021;26:1382–1393. doi: 10.1016/j.drudis.2021.02.011. [DOI] [PubMed] [Google Scholar]
- 22.Nguyen T., Le H., Quinn T.P., Nguyen T., Le T.D., Venkatesh S. GraphDTA: Predicting drug-target binding affinity with graph neural networks. Bioinformatics. 2021;37:1140–1147. doi: 10.1093/bioinformatics/btaa921. [DOI] [PubMed] [Google Scholar]
- 23.Jiang M., Li Z., Zhang S., Wang S., Wang X., Yuan Q., Wei Z. Drug-target affinity prediction using graph neural network and contact maps. RSC Adv. 2020;10:20701–20712. doi: 10.1039/d0ra02297g. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Gao H., Ji S. Graph U-Nets; Proceedings of the 36th International Conference on Machine Learning; Long Beach, CA, USA. 9–15 June 2019; pp. 2083–2092. [Google Scholar]
- 25.Ying Z., You J., Morris C., Ren X., Hamilton W., Leskovec J. Hierarchical graph representation learning with differentiable pooling. Adv. Neural Inf. Process. Syst. 2018;31:4800–4810. [Google Scholar]
- 26.Lee J., Lee I., Kang J. Self-attention graph pooling; Proceedings of the 36th International Conference on Machine Learning; Long Beach, CA, USA. 9–15 June 2019; pp. 3734–3743. [Google Scholar]
- 27.Jumper J., Evans R., Pritzel A., Green T., Figurnov M., Ronneberger O., Tunyasuvunakool K., Bates R., Žídek A., Potapenko A., et al. Highly accurate protein structure prediction with AlphaFold. Nature. 2021;596:583–589. doi: 10.1038/s41586-021-03819-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Guo S.-B., Meng Y., Lin L., Zhou Z.-Z., Li H.-L., Tian X.-P., Huang W.-J. Artificial intelligence alphafold model for molecular biology and drug discovery: A machine-learning-driven informatics investigation. Mol. Cancer. 2024;23:223. doi: 10.1186/s12943-024-02140-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Rives A., Meier J., Sercu T., Goyal S., Lin Z., Liu J., Guo D., Ott M., Zitnick C.L., Ma J., et al. Biological structure and function emerge from scaling unsupervised learning to 250 million protein sequences. Proc. Natl. Acad. Sci. USA. 2021;118:e2016239118. doi: 10.1073/pnas.2016239118. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Elnaggar A., Heinzinger M., Dallago C., Rehawi G., Wang Y., Jones L., Gibbs T., Feher T., Angerer C., Steinegger M., et al. ProtTrans: Toward understanding the language of life through self-supervised learning. IEEE Trans. Pattern Anal. Mach. Intell. 2021;44:7112–7127. doi: 10.1109/TPAMI.2021.3095381. [DOI] [PubMed] [Google Scholar]
- 31.Ahmad B., Ouahada K., Hamam H. Machine learning for drug-target interaction prediction: A comprehensive review of models, challenges, and computational strategies. Comput. Struct. Biotechnol. J. 2026;31:316–345. doi: 10.1016/j.csbj.2025.12.033. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Debnath K., Rana P., Ghosh P. A survey on deep learning for drug-target binding. Brief. Bioinform. 2025;26:bbaf491. doi: 10.1093/bib/bbaf491. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Chen W., Liu X., Zhang S., Chen S. Artificial intelligence for drug discovery: Resources, methods, and applications. Mol. Ther. Nucleic Acids. 2024;31:691–702. doi: 10.1016/j.omtn.2023.02.019. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Davis M.I., Hunt J.P., Herrgard S., Ciceri P., Wodicka L.M., Pallares G., Hocker M., Treiber D.K., Zarrinkar P.P. Comprehensive analysis of kinase inhibitor selectivity. Nat. Biotechnol. 2011;29:1046–1051. doi: 10.1038/nbt.1990. [DOI] [PubMed] [Google Scholar]
- 35.Tang J., Szwajda A., Shakyawar S., Xu T., Hintsanen P., Wennerberg K., Aittokallio T. Making sense of large-scale kinase inhibitor bioactivity data sets: A comparative and integrative analysis. J. Chem. Inf. Model. 2014;54:735–743. doi: 10.1021/ci400709d. [DOI] [PubMed] [Google Scholar]
- 36.Li C., Li G. DynHeter-DTA: Dynamic Heterogeneous Graph Representation for Drug-Target Binding Affinity Prediction. Int. J. Mol. Sci. 2025;26:1223. doi: 10.3390/ijms26031223. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Zhong S., Guan X. Count-based Morgan fingerprint: A more efficient and interpretable molecular representation in developing machine learning-based predictive regression models for water contaminants’ activities and properties. Environ. Sci. Technol. 2023;57:18193–18202. doi: 10.1021/acs.est.3c02198. [DOI] [PubMed] [Google Scholar]
- 38.Skwark M.J., Raimondi D., Michel M., Elofsson A. Improved contact predictions using the recognition of protein-like contact patterns. PLoS Comput. Biol. 2014;10:e1003889. doi: 10.1371/journal.pcbi.1003889. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Fey M., Lenssen J.E. Fast graph representation learning with PyTorch Geometric. arXiv. 20191903.02428 [Google Scholar]
- 40.Paszke A., Gross S., Massa F., Lerer A., Bradbury J., Chanan G., Killeen T., Lin Z., Gimelshein N., Antiga L., et al. Pytorch: An imperative style, high-performance deep learning library. NeurIPS. 2019;32:8024–8035. [Google Scholar]
- 41.He H., Chen G., Chen C.Y.-C. NHGNN-DTA: A node-adaptive hybrid graph neural network for interpretable drug-target binding affinity prediction. Bioinformatics. 2023;39:btd355. doi: 10.1093/bioinformatics/btad355. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Zhang Y., Hu Y., Han N., Yang A., Liu X., Cai H. A survey of drug-target interaction and affinity prediction methods via graph neural networks. Comput. Biol. Med. 2023;163:107136. doi: 10.1016/j.compbiomed.2023.107136. [DOI] [PubMed] [Google Scholar]
- 43.Rácz A., Bajusz D., Héberger K. Life beyond the Tanimoto coefficient: Similarity measures for interaction fingerprints. J. Cheminform. 2018;10:48. doi: 10.1186/s13321-018-0302-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.El-Din Rashed A.E., Amer H.M., El-Seddek M., Moustafa HE D. Sequence alignment using machine learning-based needleman-wunsch algorithm. IEEE Access. 2021;9:109522–109535. [Google Scholar]
- 45.Zhang S., Tong H., Xu J., Maciejewski R. Graph convolutional networks: A comprehensive review. Comput. Soc. Netw. 2019;6:11. doi: 10.1186/s40649-019-0069-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Veličković P., Cucurull G., Casanova A., Romero A., Lio P., Bengio Y. Graph attention networks. arXiv. 20171710.10903 [Google Scholar]
- 47.Brody S., Alon U., Yahav E. How attentive are graph attention networks?; Proceedings of the International Conference on Learning Representations; Virtual. 25–29 April 2022. [Google Scholar]
- 48.Xu K., Hu W., Leskovec J., Jegelka S. How powerful are graph neural networks?; Proceedings of the International Conference on Learning Representations; New Orleans, LA, USA. 6–9 May 2019. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
The Davis and KIBA datasets are publicly available. Our code and processed data will be released upon publication.

