Manuscript Offprint
arXiv:2610.27001HierDTA: Hierarchical Structure-Aware Representation Learning for Drug--Target Affinity Prediction
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Drug-target affinity (DTA) prediction plays an important role in computer-aided drug discovery, where reliable computational models can help prioritize compound-protein pairs before experimental validation. A key challenge in DTA prediction is to effectively mine multi-level molecular information from drug structures while accurately modeling the binding-site environment of target proteins. To address these issues, we introduce HierDTA, a hierarchical structure-aware framework for DTA prediction. HierDTA represents each drug as an atom-motif heterogeneous graph and introduces an augmentation module that propagates functional-motif semantics to the corresponding atoms. For proteins, kinase-domain structures are converted into residue interaction graphs. The resulting atom and residue representations are integrated using cross-attention to capture pair-specific relationships, while molecule fingerprints and pretrained ESM-2 embeddings provide complementary global information. Compared with state-of-the-art methods, HierDTA achieves superior performance on the Davis dataset across all metrics and attains the highest of 0.791 on KIBA. It also exhibits strong generalization under cold-start settings, particularly on KIBA, where MSE is reduced by 21.7% in the unseen-protein scenario. Ablation study and interpretability analysis supported the contributions of the hierarchical augmentation and interaction components. Case studies further showed that HierDTA provided early enrichment of candidate bioactive compounds. These results indicate that HierDTA is an effective framework for affinity prediction and target-specific virtual screening.
1 Introduction
Accurate prediction of drug–target affinity (DTA) plays a fundamental role in computer-aided drug discovery by estimating the binding strength between candidate compounds and biological targets. Reliable affinity prediction enables the prioritization of promising drug candidates before costly experimental validation, thereby reducing both the time and expense associated with drug development. Traditional computational approaches, including molecular docking and molecular dynamics simulations, provide physically meaningful estimates of binding affinity but remain computationally prohibitive for large-scale virtual screening. With the rapid accumulation of biochemical data, deep learning (DL) has emerged as an efficient alternative, learning complex interaction patterns directly from molecular data while achieving remarkable predictive performance.
The evolution of DL-based DTA prediction has been closely accompanied by the continuous advancement of molecular representations, progressing from sequence-based to graph-based, three-dimensional structural modeling, and multimodal representation learning. Early methods primarily represented drugs and proteins as one-dimensional (1D) sequences. Representative models such as DeepDTA [1] employed convolutional neural networks (CNNs) to encode drug SMILES strings and protein amino acid sequences, demonstrating that deep neural networks could effectively learn affinity-related features without handcrafted descriptors.
However, sequence-based methods inevitably discard structural information that is crucial for molecular recognition and binding. To better preserve molecular topology, subsequent studies introduced graph-based molecular representations. GraphDTA [2] first represented drug molecules as molecular graphs and employed graph neural networks (GNNs) for molecular feature learning. Building upon this paradigm, DGraphDTA [3] incorporated protein residue contact graphs, while MGraphDTA [4] explored multi-view graph fusion to exploit complementary structural information. Attention-based methods [5–7] further enhanced graph representations through attention mechanisms and more effective feature aggregation.
Recent advances in protein structure prediction, particularly AlphaFold [8], have shifted DTA prediction toward structure-aware modeling. Instead of representing entire proteins, emerging methods increasingly focus on protein binding regions that directly mediate molecular recognition. Representative approaches such as 3DProtDTA [9] and PocketDTA [10] construct protein graphs from binding-region structures and employ graph neural networks to capture spatial interactions among residues. Meanwhile, drug representations have also evolved beyond two-dimensional molecular topology to incorporate three-dimensional conformation.
More recently, multimodal and multiscale learning has emerged as a promising direction for improving DTA prediction by integrating complementary biochemical information from multiple modalities. Rather than relying on a single representation, recent methods jointly exploit sequence, graph, and structural information to obtain more comprehensive molecular embeddings. NHGNN-DTA [11], MMSG-DTA [12], and DMFF-DTA [13] combine heterogeneous molecular representations through hybrid or multiscale fusion strategies. Beyond feature fusion, several methods explicitly interactions within and between drugs and targets. MSGNN-DTA [14] uses mutual attention, GRA-DTA [15] applies relation-aware attention, and MT-DTA [16] combines CNN-Transformer encoders with associative learning and autoencoder-based reconstruction to capture intramolecular dependencies and intermolecular relationships. Related efforts have incorporated diffusion-based graph operations to improve multiscale structural modeling. TDGraphDTA [17] and MDCT-DTA [18] broaden the receptive field of molecular graphs and integrate drug and target features at multiple levels through Transformer-based or interlayer interaction mechanisms. RRGDTA [19] further introduces rotary encoding and information-retention modules to strengthen structural correlations while preserving local and global association information. More recent architectures have explored alternative fusion and interaction strategies. KANPM-DTA [20] combines ESMC-guided protein graphs with gated feature fusion and a Kolmogorov–Arnold Network predictor, whereas PMHGT-DTA [21] uses hierarchical graph transformers and cross-attention to characterize local and global structural patterns and atom-residue relationships. Related biomedical studies further support this direction: meta-relation-guided heterogeneous graph transformers can capture complementary local and global associations among diverse biomolecules [22], while diffusion-based augmentation can learn biologically plausible protein features under sparse supervision [23]. These advances highlight the value of preserving heterogeneous relationships and biologically meaningful structure during feature learning.
Nevertheless, existing approaches generally derive multiscale chemical features from receptive fields or latent representations. Direct information exchange between atomic topology and chemically defined functional motifs has received limited attention. In addition, although structure-based protein modeling has improved the characterization of targets, many residue graphs are constructed primarily from spatial proximity and do not explicitly distinguish the physicochemical interactions among residues.
To address these issues, we propose HierDTA, a structure-aware framework for DTA prediction. On the drug side, motif-level information is explicitly propagated to atom representations to capture hierarchical molecular features. On the protein side, physicochemical edge attributes are incorporated into residue interaction graphs to describe residue-level structural relationships. HierDTA then combines local atom-residue interactions with global drug and protein representations for affinity prediction. The main contributions of this work are summarized as follows:
-
We introduce a motif-to-atom augmentation module that explicitly propagates chemical semantics from functional motifs to their constituent atoms. This top-down information pathway enriches atom-level representations while preserving molecular topology.
-
We construct kinase-domain residue interaction graphs and develop an edge-aware graph encoder that incorporates physicochemical attributes during residue-level message passing, enabling structurally informed protein representation learning.
-
We employ cross attention between drug atoms and protein residues, offering fine-grained modeling of drug-target interactions. These components are unified within HierDTA, with attention-based visualizations revealing motif semantic propagation and key interactions. Experiments on Davis and KIBA under both warm and cold-start settings, together with case studies, demonstrate the model's effectiveness and practical applicability.
(A) Encoders

(B) Interaction
(D) Prediction
(C) Global Representation
Figure 1: Architecture of the proposed framework.(A) Encoders. Drug features are encoded from motif and atom graphs, with motif-derived context augmenting atom representations, while protein residue features are extracted from the kinase-domain structure. (B) Interaction. Atom and residue tokens are integrated through multi-head attention to capture fine-grained drug-protein interactions. (C) Global Representation. ECFP fingerprints and ESM-2 embeddings are projected and fused to obtain a global representation. (D) Prediction. Local and global interaction features are concatenated and fed into an MLP to predict binding affinity.
2.1 Drug Representation
HierDTA adopts a hierarchical molecular representation that jointly models atomic structures and functional motifs. Given a SMILES string, a molecular graph is first constructed using RDKit [24], where atoms and covalent bonds are represented as graph nodes and edges, respectively. Functional motifs are subsequently identified through a rule-based functional group decomposition algorithm [25], which detects chemically meaningful functional groups and ring structures. Based on these components, a heterogeneous molecular graph consisting of atom nodes and motif nodes is established. Formally, the molecular graph is denoted as . Here, and represent the atom and motif node sets, respectively.
, and denote atom–atom, atom–motif, motif–motif edge sets. The corresponding node and edge feature matrices are represented by , , , , and . The complete motif decomposition procedure is provided in the Supporting Information S1.
Each atom–motif edge connects an atom to every motif that contains it and is assigned a membership indicator with a value of 1. These membership relations establish the explicit correspondence between the two molecular levels and are subsequently used by the augmentation module to route motif-derived chemical context to the associated atoms. The original molecular topology is preserved through atom–atom edges, while motif–motif edges are constructed between motifs sharing common atoms or connected through inter-motif chemical bonds. Node and edge features are initialized using chemically meaningful descriptors summarized in Table 1. Atom nodes are encoded by physicochemical properties including atom type and atomic number, whereas motif nodes aggregate the information of constituent atoms and bonds. Edge features describe chemical relationships between neighboring atoms or neighboring motifs according to their structural connections.
Since graph message passing mainly captures local structural contexts, a 2048-dimensional Extended-Connectivity Fingerprint (ECFP4) [26] is further incorporated to preserve global molecular information. The hierarchical graph representation and molecular fingerprint therefore provide complementary descriptions of molecules, enabling both local chemical environments and global scaffold information to be exploited during affinity prediction.
Table 1: Feature definition of the hierarchical molecular graph for drug representation.
| Name | Size |
|---|---|
| Atom node features | 37 |
| atom type (B, Br, C, Ca, Cl, F, H, I, N, Na, O, P, S) | 13 |
| atomic number | 1 |
| explicit valence (0–6) | 7 |
| total hydrogen count (0–4) | 5 |
| atom hybridization (SP, SP2, SP3, SP3D, SP3D2) | 5 |
| is atom aromatic (1-yes, 0-no) | 1 |
| is atom in a ring (1-yes, 0-no) | 1 |
| chirality (R, S, Unknown) | 3 |
| has possible chirality (1-yes, 0-no) | 1 |
| Motif node features | 50 |
| aggregation of atom features within the motif | 37 |
| aggregation of internal bond features | 13 |
| Atom-Atom edge features | 13 |
| bond type (Single, Double, Triple, Aromatic) | 4 |
| is bond in a ring (1-yes, 0-no) | 1 |
| is bond conjugated (1-yes, 0-no) | 1 |
| bond stereochemistry (None, Any, Z, E, Cis, Trans, Unknown) | 7 |
| Atom-Motif edge features | 1 |
| atom-to-motif membership indicator | 1 |
| Motif-Motif edge features | 37 |
| aggregation of shared atom features or bonded atom features | 37 |
2.2 Protein Representation
Residue-level protein graphs were constructed from predicted 3D structures of target proteins obtained from the AlphaFold protein structure database [8]. Given that both datasets are primarily composed of kinase targets, full-length structures were further restricted to kinase-related domains before graph construction. UniProt domain annotations [27] were used to extract regions related to kinase activity, including protein kinase, histidine kinase. Thus, the structural boundaries were defined by kinase-related domain annotations. This preprocessing step not only decreased the noise in the data but also eliminated most residues with a low per-residue confidence score (pLDDT). Because low-confidence residues frequently occur in flexible or disordered regions outside well-characterized domains, the filtering procedure may also reduce the influence of uncertain structural regions. The pLDDT distribution is reported in the Supporting Information S2.
Table 2: Feature definition of the residue interaction graph for protein representation.
| Name | Size |
|---|---|
| Residue node features | 41 |
| solvent-accessible surface area (normalized) | 1 |
| phi angle () | 1 |
| psi angle () | 1 |
| one-hot encoded secondary structure | 6 |
| AAPHY7 physicochemical descriptors | 7 |
| BLOSUM62 evolutionary descriptors | 23 |
| phosphorylation status | 1 |
| mutation status | 1 |
| Residue–Residue edge features | 10 |
| covalent bond (1–yes, 0–no) | 1 |
| hydrophobic contact (1–yes, 0–no) | 1 |
| hydrogen bond, donor to acceptor (1–yes, 0–no) | 1 |
| hydrogen bond, acceptor to donor (1–yes, 0–no) | 1 |
| salt bridge, cation to anion (1–yes, 0–no) | 1 |
| salt bridge, anion to cation (1–yes, 0–no) | 1 |
| cation– interaction, aromatic ring to cation (1–yes, 0–no) | 1 |
| cation– interaction, cation to aromatic ring (1–yes, 0–no) | 1 |
| parallel – stacking (1–yes, 0–no) | 1 |
| perpendicular – stacking (1–yes, 0–no) | 1 |
The filtered protein structures are converted into residue graphs with physicochemical interaction definitions inspired by the Open Drug Discovery Toolkit (ODDT) [28]. Each residue graph is denoted as , where denotes the residue node set and denotes the residue–residue interaction edge set. An edge is established when two residues are covalently connected or satisfy the criteria for a specified noncovalent interaction. The interaction types and their corresponding criteria are summarized in Supporting Information S2.
Residue nodes are characterized by structural and biochemical descriptors, including solvent-accessible surface area (SASA), backbone torsion angles ( and ), secondary structure, AAPHY7 physicochemical descriptors, BLOSUM62 evolutionary descriptors, phosphorylation status, and mutation status, as summarized in Table 2. The residue node feature matrix is denoted as . Each edge in is associated with a 10-dimensional attribute vector, and the residue–residue edge feature matrix is denoted as . Its channels encode covalent bonds, hydrophobic contacts, hydrogen bonds, salt bridges, cation– interactions, and – stacking. Separate directional channels are retained for hydrogen bonds, salt bridges, and cation– interactions to distinguish donor–acceptor, cation–anion, and aromatic–cation roles, respectively. The node and edge feature definitions are summarized in Table 2. To complement structural information, protein sequences are further encoded by the pretrained ESM-2 protein language model [29, 30], providing global evolutionary semantics that cannot be fully captured through residue graphs.
2.3 Model Architecture
The overall architecture of HierDTA is illustrated in Figure 1. For each drug–target pair, the drug encoder first learns atom and motif representations from the molecular graph and propagates motif-derived chemical semantics to the corresponding atoms through the augmentation module. In parallel, the protein encoder applies edge-aware message passing to the kinase-domain residue graph to obtain residue representations. The resulting atom and residue embeddings are integrated by cross-attention to derive fine-grained interaction representations. A complementary global representation is constructed separately from the drug ECFP4 fingerprint and the protein ESM-2 embedding. Finally, the fine-grained and global features are concatenated and supplied to the prediction head to estimate binding affinity.
2.3.1 Drug Encoder
The drug encoder operates on the atom and motif subgraphs of while preserving their correspondence through the atom-motif membership edges . The initial atom and motif features are first projected into a shared d-dimensional latent space,
where and are independently parameterized linear transformations followed by ReLU activation. Atom–atom connectivity and motif–motif organization are then modeled by separate graph encoders [31]. The motif update is expressed as
and the intermediate output of the l-th atom-encoding layer is obtained analogously,
Here, summarizes the chemical context of functional motifs, while captures the local atomic messages encoded at layer . The two encoders have independent parameters, thereby allowing atom- and motif-level connectivity to be modeled at their respective representational scales.
To establish top-down information flow within the hierarchical molecular graph, we propose a motif-to-atom augmentation module, as illustrated in Figure 2. The module transfers the encoded motif semantics to their constituent atoms. For atom i, the representations of all motifs connected to that atom through are mean-aggregated to obtain a motif-derived semantic context,
where denotes the set of motifs containing atom . Mean aggregation permits information from overlapping functional motifs to be integrated without introducing a dependence on the number of motif memberships. We then employ a Transformer-based Local Augmentation (TLA) operation to adaptively integrate the motif-derived semantic context with the atom-derived structural message . Specifically, TLA formulates this local fusion as a transformer attention operation, in which the atom representation entering the current GAT layer serves as the query, while the two complementary messages, and , form the key-value sequence. This design enables each atom to selectively attend to motif-level semantic information and atom-level structural information according to its current representation.
For attention head k, the augmentation message is computed as
where is the dimensionality of each attention head and , , and are learnable projection weights. The outputs of all heads are concatenated,
(7) and the atom representation is updated through a residual connection,
The augmentation is inserted between successive atom-encoding layers, such that the injected motif semantics can participate in subsequent atom-level message passing. The final output therefore comprises motif-enhanced atom representations and is retained at the node level for subsequent atom-residue interaction modeling.

Figure 2: Architecture of the motif-to-atom augmentation module. Motif representations are propagated to their constituent atoms through atom–motif membership edges and aggregated to obtain motif-derived semantic messages. For each atom, TLA operation uses the incoming atom representation as the query and attends to the motif context and atom message. The resulting augmentation message is incorporated into the atom representation through a residual connection before subsequent atom-level message passing.
2.3.2 Protein Encoder
Given the residue graph and residue feature , an edge-aware graph encoder [32] is adopted to update residue representations,
The GINEConv operator incorporates the 10-dimensional edge attribute matrix directly into residue-level message passing, thereby distinguishing messages associated with different physicochemical interaction types. After layers, the protein encoder yields , served as residue tokens for atom–residue cross attention in Section 2.3.3.
2.3.3 Interaction
The interaction module captures pair-specific associations between the motif-enhanced atom representations and the residue representations . Since individual ligand atoms may interact with different protein environments, atom representations are used as queries, while residue representations serve as keys and values. The query, key, and value matrices are defined as
Multi-head cross-attention is then employed to capture atom–residue dependencies across multiple representation subspaces, yielding fine-grained interaction features
The resulting interaction features are aggregated by mean pooling to obtain the pair-level representation . The corresponding attention coefficients are retained for interpretability analysis in Section 4.4.
2.3.4 Global Representation
The interaction module characterizes associations between atom and residue nodes, whereas the global branch provides complementary information concerning the overall molecular scaffold and protein sequence. Specifically, the ECFP4 fingerprint and the ESM-2 embedding are independently projected into latent representations,
where , and FC are multilayer perceptions. The global branch is constructed to complement the fine-grained interaction representation with molecule fingerprint and protein pretrained sequence-level semantics.
2.3.5 Prediction Head
The prediction head integrates the atom–residue interaction representation with the global drug–protein representation by concatenation,
This representation is passed to a multilayer perceptron to generate the predicted affinity score,
where denotes the MLP predictor and is the predicted affinity. The model is optimized end-to-end using the mean squared error loss,
where N is the number of training samples in a batch, and and are the ground-truth and predicted affinity values for the i-th sample, respectively.
3 Experiment and Metrics
3.1 Datasets
We evaluate HierDTA on two widely used benchmark datasets for drug–target affinity prediction, namely Davis [33] and KIBA [34]. The Davis dataset contains binding affinities between 68 kinase inhibitors and 442 kinase proteins, resulting in 30,056 drug–target interaction pairs. Binding affinities are measured by the dissociation constant ( ) and transformed into the logarithmic scale ( ) to improve numerical stability during model training.
The KIBA dataset integrates multiple experimentally measured bioactivity indicators, including , , and , into a unified KIBA score. It consists of 118,083 interaction pairs involving 2,111 drugs and 228 target proteins, covering a substantially broader chemical and biological space than the Davis dataset. The larger scale and higher diversity of KIBA provide a more challenging benchmark for evaluating the robustness and generalization capability of DTA prediction models.
3.2 Evaluation Strategies
To comprehensively evaluate the generalization ability of HierDTA under both conventional and realistic drug discovery scenarios, experiments were conducted under four evaluation strategies.
• Warm setting. Drug–target interaction pairs were randomly divided into training, validation, and test sets. Under this setting, both drugs and proteins appearing in the test set may also appear in the training set, while only interaction pairs are unseen.
• Unseen drug setting. The dataset was partitioned according to unique drug identifiers, ensuring that all drugs in the test set were completely absent from the training and validation sets. This setting evaluates the model's ability to generalize to novel compounds.
• Unseen protein setting. The dataset was partitioned according to unique protein identifiers so that proteins in the test set were never observed during training. This setting assesses the capability of predicting affinities for unseen targets.
• All unseen setting. Both drug and protein identifiers were simultaneously partitioned, ensuring that neither drugs nor proteins in the test set appeared during training or validation. This represents the most challenging cold-start scenario and closely resembles practical drug discovery tasks.
3.3 Evaluation Metrics
Following previous DTA studies, four widely adopted evaluation metrics were used to assess model performance, including Mean Squared Error (MSE), Concordance Index (CI), and .
The MSE measures the average squared difference between predicted and true binding affinity values,
where and denote the ground-truth and predicted affinity values, respectively. The CI evaluates the ranking consistency between predicted and true affinities,
where
and Z denotes the normalization constant. Finally, the external predictive ability of the model is evaluated using the modified squared correlation coefficient,
wherer r is the correlation coefficient with an intercept, and is the correlation coefficient without an intercept.
3.4 Experimental Settings
The proposed model was implemented using the PyTorch framework. All experiments were conducted on an NVIDIA A100 GPU with 40 GB memory. The model was optimized using the Adam optimizer with an initial learning rate of . The maximum number of training epochs was set to 500, and early stopping was applied when the validation loss did not improve for 30 consecutive epochs. The batch size and other hyperparameters are summarized in Supporting Information S3. For a fair comparison, each experiment was repeated five times using different random seeds, and the mean and standard deviation were reported.
4 Results and Discussion
To comprehensively evaluate the effectiveness of HierDTA, we compare it with representative DTA prediction models spanning sequence-based, graph-based, and recent multimodal frameworks, including DeepDTA [1], GraphDTA [2], FusionDTA [6], MGraphDTA [4], MSGNN-DTA [14], GRA-DTA [15], DMFF-DTA [13], PMHGT-DTA [21], and KANPM-DTA [20].
4.1 Performance Comparison on Warm Settings
Table 3 summarizes the performance of HierDTA and the baseline methods on the Davis and KIBA datasets under the warm setting. On Davis, HierDTA achieves the best result for all three evaluation metrics, with an MSE of 0.174, a CI of 0.905, and an of 0.757. Compared with KANPM-DTA, HierDTA reduces the MSE by approximately 14.7% and improves the CI and by 0.8% and 5.9%, respectively. These consistent improvements indicate that the proposed architecture effectively captures affinity-relevant information. On KIBA, HierDTA achieves the highest of 0.791, exceeding the value obtained by KANPM-DTA. Its MSE and CI remain close to the best values, achieved by KANPM-DTA and PMHGT-DTA, respectively. This may be partly attributed to the incorporation of pretrained node-level features in these competing methods, which can provide additional prior information for representation learning. The differences among the leading methods may also reflect the larger scale and broader interaction coverage of the KIBA dataset. Overall, the results demonstrate that HierDTA remains competitive across datasets with distinct scales and affinity distributions. To further investigate the prediction behavior of HierDTA, Figure 3 visualizes the relationship between the predicted and true binding affinities on the Davis and KIBA test sets. Most sample points cluster near this diagonal, indicating high prediction accuracy. On the KIBA data set, scatter points concentrate more tightly along the diagonal, indicating better agreement between the model predictions and the ground-truth values.
4.2 Performance Comparison under Cold-start Settings
Standard warm splits on Davis and KIBA may lead to optimistic performance estimates because drugs or proteins in the test set can also appear in the training set through different interaction pairs. To mitigate this risk, we additionally evaluate HierDTA under more realistic scenarios, where the corresponding entities are explicitly held out from training. Table 4 and 5 compare the models under the three cold-start settings: unseen-drug, unseen-protein, and all-unseen. These settings provide a more stringent assessment of generalization than the warm setting.
On the Davis dataset, the cold-start results reveal a clear setting-dependent generalization pattern of HierDTA. Under the unseen-drug setting, HierDTA achieves the highest , although its MSE and CI are less competitive than those of the strongest baselines. This discrepancy may be partly attributed to the limited
Table 3: Performance comparison under the warm setting on the Davis and KIBA datasets. The best result for each metric is shown in bold, and the second-best result is underlined.
| Model | Davis | KIBA | ||||
|---|---|---|---|---|---|---|
| MSE↓ | CI↑ | MSE↓ | CI↑ | |||
| DeepDTA | ||||||
| GraphDTA | ||||||
| FusionDTA | ||||||
| MGraphDTA | ||||||
| MSGNN-DTA | ||||||
| DMFF-DTA | ||||||
| PMHGT-DTA | ||||||
| KANPM-DTA | ||||||
| HierDTA | ||||||


Figure 3: Scatter plots of predicted vs true binding affinities on the Davis and KIBA test sets under the warm setting. Redder points indicate larger prediction errors, while blackr points indicate smaller errors.
number of unique drugs in Davis, which restricts the diversity of drug-side patterns available during training and makes extrapolation to unseen compounds particularly challenging. In contrast, HierDTA shows a clearer advantage when generalizing to unseen proteins, achieving the best CI and while attaining the second-lowest MSE. This suggests that the architecture is particularly effective in capturing interaction patterns for previously unseen protein targets. The advantage becomes more pronounced in the all-unseen setting, where neither the drug nor the protein has been observed during training: HierDTA achieves the best CI and , with a particularly substantial gain in over all competing methods. Taken together, these results indicate that HierDTA's main strength under cold-start conditions lies in preserving ranking consistency and predictive agreement for unseen entities, especially when protein-side generalization is required and under the most stringent all-unseen scenario.
The results on the KIBA dataset further demonstrate the generalization capability of HierDTA under cold-start conditions. In the unseen-drug setting, HierDTA achieves the best performance across all three evaluation metrics, reducing MSE by approximately 0.6% and improving CI and by 1.6% and 10.7%, respectively, compared with the second-best GRA-DTA. The advantage becomes more pronounced in the unseen-protein setting, where HierDTA reduces MSE by 21.7% and improves CI and by 0.7% and 16.4%, respectively, over DMFF-DTA. These consistent improvements indicate that HierDTA generalizes effectively when either drugs or protein targets are unseen during training. Under the more challenging all-unseen setting, HierDTA improves CI and by approximately 1.2% and 31.8% over the second-best results, respectively, although its MSE remains higher than that of GRA-DTA. One possible explanation is that GRA-DTA's globally aggregated representations and low-dimensional fusion may provide stronger implicit regularization, helping to suppress large absolute prediction errors under severe distribution shifts. In contrast, HierDTA's fine-grained hierarchical and interaction-level modeling may better preserve affinity ranking and overall predictive agreement, as reflected by its superior CI and .
The cold-start generalization of HierDTA benefits from motif-to-atom augmentation for chemical representations, residue graph encoding for structure-aware protein representations, and global features that complement fine-grained interaction modeling. Its larger improvements on KIBA likely arise from the greater scale and diversity of the dataset, which facilitate the learning of more transferable drug and protein patterns.
Table 4: Performance comparison under cold-start settings on the Davis dataset. The best results for each metric are shown in bold.
| Setting | Model | MSE | CI | |
|---|---|---|---|---|
| Unseen drug | GraphDTA | |||
| FusionDTA | ||||
| MGraphDTA | ||||
| MSGNN-DTA | ||||
| GRA-DTA | ||||
| DMFF-DTA | ||||
| HierDTA | ||||
| Unseen protein | GraphDTA | |||
| FusionDTA | ||||
| MGraphDTA | ||||
| MSGNN-DTA | ||||
| GRA-DTA | ||||
| DMFF-DTA | ||||
| HierDTA | ||||
| All unseen | GraphDTA | |||
| FusionDTA | ||||
| MGraphDTA | ||||
| MSGNN-DTA | ||||
| GRA-DTA | ||||
| DMFF-DTA | ||||
| HierDTA |
Table 5: Performance comparison under cold-start settings on the KIBA dataset. The best results for each metric are shown in bold.
| Setting | Model | MSE | CI | |
|---|---|---|---|---|
| Unseen drug | GraphDTA | |||
| FusionDTA | ||||
| MGraphDTA | ||||
| MSGNN-DTA | ||||
| GRA-DTA | ||||
| DMFF-DTA | ||||
| HierDTA | ||||
| Unseen protein | GraphDTA | |||
| FusionDTA | ||||
| MGraphDTA | ||||
| MSGNN-DTA | ||||
| GRA-DTA | ||||
| DMFF-DTA | ||||
| HierDTA | ||||
| All unseen | GraphDTA | |||
| FusionDTA | ||||
| MGraphDTA | ||||
| MSGNN-DTA | ||||
| GRA-DTA | ||||
| DMFF-DTA | ||||
| HierDTA |
4.3 Ablation Study
To examine the effects of the principal architectural choices, we conducted several ablation experiments on Davis. In the drug encoder comparison, the same gnn type was used for both the atom and motif branches, while the remaining model configuration was held fixed. For the component ablation, two variants were evaluated. “No Augmentation” removes the motif-to-atom augmentation, leaving only the atom-level drug representation. “No Interaction” removes the cross-attention module, thereby eliminating explicit interaction between the drug and protein representations. These variants allow the contributions of hierarchical molecular representation and drug-protein interaction modeling to be assessed separately. The results are summarized in Table 6.
Table 6: Ablation results on the Davis dataset. The best result within each panel is shown in bold.
| Configuration | MSE | CI | |
| (A) Drug graph encoder | |||
|---|---|---|---|
| GAT | |||
| GCN | |||
| GIN | |||
| (B) Component | |||
| HierDTA | |||
| No Augmentation | |||
| No Interaction | |||
As shown in panel (A) of Table 6, GAT achieved the lowest MSE and the highest CI and among the three evaluated encoders. Relative to GCN and GIN, GAT reduced the MSE by 4.9% and 5.4%, respectively. Overall, GAT provided the most favorable balance across the evaluated metrics and was therefore adopted as the drug graph encoder in the final configuration. The component ablation in Panel (B) of Table 6 further demonstrates the contribution of hierarchical molecular representation and interaction modeling. When the motif-to-atom augmentation is removed and only atom-level representations are retained, the MSE increases from 0.174 to 0.187, while CI and decrease from 0.905 and 0.757 to 0.900 and 0.741, respectively. These consistent degradations indicate that incorporating motif-level information provides complementary structural context beyond atom-level features and improves affinity prediction. Removing the interaction module leads to a further increase in MSE to 0.196 and a decrease in to 0.743, highlighting the importance of explicitly modeling drug–target interactions. Together, these results support the complementary roles of hierarchical molecular representation and interaction modeling in HierDTA.
We further compared the attention-based TLA operation with a simple variant in which the motif context is injected into the atom messages directly as a residual term (No TLA). Figure 4 reports the comparison across the four evaluation settings generated from a single random seed. Under the warm setting, TLA attains a lower MSE and a substantially higher . The most pronounced improvements appear under the unseen-protein and all-unseen settings, where TLA improves all three metrics. These results indicate that the attention-based method in TLA supports effective information injection to atoms when the model must generalize beyond the training distribution.
TLA No TLA
(a) MSE

(b) CI
(c)
Figure 4: Comparison of the TLA and No TLA operation on the Davis dataset across the four evaluation settings: (a) MSE, (b) CI, and (c) . Lower MSE and higher CI and values are better.
4.4 Interpretability Analysis
HierDTA incorporates a cross-attention module that enables atom-residue interactions to be interpreted through attention weights. To assess whether the learned representations capture chemically and biologically relevant regions, we analyzed two experimentally resolved drug-protein complexes (PDB: 1KV2 and 1UWH), and compared the attention patterns with their binding conformations. As shown in Figure 5, the prominent features on the protein and ligand sides exhibit noticeable agreement. For 1KV2 (Figure 5(a)), residues GLU-71 and MET-109 receive relatively high attention, while highly weighted ligand atoms are concentrated in nearby molecular substructures (shown in the red dashed boxes). A similar pattern is observed for 1UWH (Figure 5(b)), where CYS-531 and ILE-591 are associated with ligand regions showing elevated atom attention. However, some model predictions do not fully agree with the experimentally resolved interactions. This is reasonable because the attention weights are learned from the DTA prediction objective without explicit supervision from atom-residue contact annotations. Thus, the attention maps should be used only as a qualitative reference for interpreting potentially interaction-relevant regions.
Figure 6 further illustrates how motif information is incorporated at different depths of the drug encoder, using ligand B96 in the 1KV2 complex as an example. The visualized weights indicate the contribution of motif-level information to each atom during augmentation. In the first TLA operation, motif weights remain relatively low across the ligand, indicating a limited contribution of motif features at this stage. In the second operation, the motif contribution becomes more localized, with particularly large weights assigned to the terminal heterocyclic group and the branched substituent. The distribution suggests that the augmentation operations are not redundant. Instead, as the augmentation proceeds, motif information becomes increasingly selective and localized to specific atoms within important functional groups.
(a) PDB:1KV2

(b) PDB:1UWH

Figure 5: Interpretability analysis of drug-protein complexes. (a) 1KV2 complex: The left panel shows the experimentally resolved 3D binding conformation, with key residues assigned high attention weights by HierDTA labeled. The right panel shows the atom-level attention heatmap over the ligand (darker colors indicate higher weights). (b) 1UWH complex: All subpanels have the same meanings as those in (a).

Figure 6: Motif attention weights from the first and second TLA operations for 1KV2 ligand. Values closer to one indicate greater reliance on the motif-derived context, whereas values closer to zero indicate greater reliance on the atom structural message.
5 Case Study
To further evaluate the practical utility of HierDTA in drug screening scenarios, we conducted two case studies. Case study 1 evaluates the predicted affinity ranking and docking scores of DrugBank compounds for EGFR, whereas case study 2 evaluates early active-compound enrichment for EGFR and VEGFR2 relative to MSGNN-DTA [14].
Case study 1: EGFR–DrugBank screening. EGFR (UniProt ID: P00533), a clinically important kinase target [35], was screened against 3136 DrugBank [36] small molecules excluded from the KIBA dataset. Compounds were ranked in descending order of their HierDTA-predicted KIBA scores. Duplicate representations of the same parent compound were consolidated before reporting. The ten highest-ranked unique compounds are summarized in Table 7. Five established EGFR inhibitors (dacomitinib, canertinib, afatinib, poziotinib, and gefitinib) were recovered among the top candidates. Molecular docking was carried out with CB-Dock2 [37] to assess the binding plausibility of these candidates. The Vina scores of the ten compounds ranged from -10.2 to -7.9 kcal/mol. Dacomitinib, the highest-ranked compound, also showed the most favorable docking score (-10.2 kcal/mol), although the HierDTA ranking and docking ranking were not fully consistent for the remaining compounds. This is reasonable because the two methods evaluate binding from different perspectives: HierDTA predicts affinity from learned drug and protein representations, whereas CB-Dock2 scores a generated 3D binding pose using an empirical scoring function. We further examined two top-ranked candidates, genistein and emodin, whose EGFR binding affinities were not available in our dataset, together with dacomitinib as a reference. Both candidates can be accommodated in the ATP-binding pocket. Their relatively rigid and planar scaffolds are compatible with hydrophobic packing, while their carbonyl and hydroxyl groups provide possible hydrogen-bonding sites with surrounding residues. The docking poses of genistein, emodin, and dacomitinib in the EGFR ATP-binding pocket are shown in the Supporting Information S5. These features provide a structural rationale for their high predicted rankings, but the docking results should be viewed as supporting computational evidence rather than experimental validation. Potential false-positive predictions may arise from several sources, including biases in the training data, approximations in the protein–ligand conformations used for modeling, the omission of solvent effects, binding dynamics, and the cellular environment. The candidates identified here should be considered priorities for further experimental testing rather than confirmed EGFR binders or inhibitors.
Table 7: Top-10 unique DrugBank compounds ranked by HierDTA for EGFR (PDB ID: 3POZ). Boldface denotes established EGFR inhibitors.
| Rank | Compound | Predicted KIBA | Vina Score (kcal/mol) |
|---|---|---|---|
| 1 | Dacomitinib | 13.912 | -10.2 |
| 2 | Canertinib | 13.801 | -9.2 |
| 3 | JAK3-inhibitor-I | 13.792 | -7.9 |
| 4 | Afatinib | 13.786 | -8.9 |
| 5 | Poziotinib | 13.755 | -9.5 |
| 6 | Gefitinib | 13.696 | -8.6 |
| 7 | Prunetin | 13.401 | -8.2 |
| 8 | Genistein | 13.342 | -8.3 |
| 9 | Emodin | 13.309 | -8.8 |
| 10 | Staurosporine | 13.269 | -9.6 |
Case study 2: early enrichment of EGFR and VEGFR2 active compounds. We next assessed whether experimentally active compounds were enriched at the top of EGFR and VEGFR2 rankings. Quantitative records were obtained from ChEMBL [38], and replicate measurements for each compound-target pair were summarized by the median. Compounds with median nM were designated active, whereas those with median nM were designated inactive; intermediate cases were excluded. For each target, we constructed a balanced evaluation set containing 50 active and 50 inactive compounds collected from ChEMBL, which are external to the KIBA dataset. HierDTA and MSGNN-DTA [14] independently ranked the same target-specific set according to their predicted KIBA scores. The top- hit rate was defined as the proportion of active compounds among the first ranked candidates. As shown in Figure 7, HierDTA achieved stronger early enrichment than MSGNN-DTA on both the EGFR and VEGFR2 sets, indicating that active compounds were more frequently prioritized near the top of the ranking. This experiment is intended to assess retrospective ranking performance under the evaluation set. Although a higher top-k hit rate reflects better early enrichment, it does not eliminate false-positive predictions in practical screening. The results should therefore be interpreted as evidence of relative ranking ability rather than direct validation of compound activity.
(a) EGFR

(b) VEGFR2
Figure 7: Top-k active compound hit rates of HierDTA and MSGNN-DTA on the external ChEMBL evaluation sets for (a) EGFR and (b) VEGFR2.
6 Conclusions
In this study, we proposed HierDTA, a hierarchical structure-aware framework for drug-target affinity prediction that integrates multi-level drug representation, protein residue graph learning, and drug-target interaction modeling. The core idea is to propagate functional-motif semantics to atom-level representations, encode residue interaction graphs with edge-aware message passing, and integrate both through cross-attention. Experiments on the Davis and KIBA datasets demonstrated that HierDTA consistently achieves competitive performance against state-of-the-art methods under both warm and cold-start settings. Under the warm setting, HierDTA achieved the best overall performance on Davis (MSE: 0.174, CI: 0.905, : 0.757) and the highest of 0.791 on KIBA. Moreover, HierDTA maintained strong performance under the more challenging cold-start settings, demonstrating its generalization capability to more realistic scenarios. Ablation studies supported the contributions of the augmentation and interaction components. Case studies on EGFR and VEGFR2 further demonstrated that HierDTA can provide effective early enrichment of candidate bioactive compounds, suggesting its potential utility for virtual screening.
However, several limitations remain. First, the functional motifs used in this work are identified using predefined rules. Although such motifs provide chemically interpretable structural priors, they may not capture biological functional unit and previously unseen chemical scaffolds. Second, although the cold-start settings provide more challenging evaluations than warm split, similarity-based overlap may still remain between training and test sets. Future work will explore data-driven motif discovery and consider scaffold-or similarity-based entity splits under evaluation settings.
7 Acknowledgments
This work was supported by the Noncommunicable Chronic Diseases-National Science and Technology Major Project (2024ZD0533500).
8 Data and Software Availability
The data and source codes are available on github.
9 Supporting Information
Rule-based motif decomposition and representative examples, details of protein structure preprocessing and residue-graph construction, hyperparameter settings, comparison of protein encoders, and molecular docking poses of candidate compounds with EGFR.
10 Author Contributions
Huangchao Xu conceived and conducted the experiments, Huangchao Xu and Baohua Zhang wrote and reviewed the manuscript, Qian Liu, Zhong Jin and Yi Du supervised the study and provided technical support.
References
(1) Öztürk, H.; Özgür, A.; Ozkirimli, E. Bioinformatics 2018, 34, i821–i829.
(2) Nguyen, T.; Le, H.; Quinn, T. P.; Nguyen, T.; Le, T. D.; Venkatesh, S. Bioinformatics 2020, 37, 1140–1147.
(3) Jiang, M.; Li, Z.; Zhang, S.; Wang, S.; Wang, X.; Yuan, Q.; Wei, Z. RSC Adv. 2020, 10, 20701–20712.
(4) Yang, Z.; Zhong, W.; Zhao, L.; Yu-Chian Chen, C. Chem. Sci. 2022, 13, 816–833.
(5) Zhao, Q.; Duan, G.; Yang, M.; Cheng, Z.; Li, Y.; Wang, J. IEEE/ACM Trans. Comput. Biol. Bioinformatics 2022, 20, 852–863.
(6) Yuan, W.; Chen, G.; Chen, C. Y.-C. Briefings in Bioinformatics 2022, 23, bbab506.
(7) Wu, H.; Liu, J.; Jiang, T.; Zou, Q.; Qi, S.; Cui, Z.; Tiwari, P.; Ding, Y. Neural Networks 2024, 169, 623–636.
(8) Jumper, J.; Evans, R.; Pritzel, A.; Green, T.; Figurnov, M.; Ronneberger, O.; Tunyasuvunakool, K.; Bates, R.; Zídek, A.; Potapenko, A., et al. nature 2021, 596, 583–589.
(9) Voitsitskyi, T.; Stratiichuk, R.; Koleiev, I.; Popryho, L.; Ostrovsky, Z.; Henitsoi, P.; Khropachov, I.; Vozniak, V.; Zhytar, R.; Nechepurenko, D.; Yesylevskyy, S.; Nafiev, A.; Starosyla, S. RSC Adv. 2023, 13, 10261–10272.
(10) Zhao, L.; Wang, H.; Shi, S. Bioinformatics 2024, 40, btae594.
(11) He, H.; Chen, G.; Chen, C. Y.-C. Bioinformatics 2023, 39, btad355.
(12) Xu, J.; Ci, L.; Zhu, B.; Zhang, G.; Jiang, L.; Ye-Lehmann, S.; Long, W. Journal of Chemical Information and Modeling 2025, 65, 981–996.
(13) He, H.; Chen, G.; Tang, Z.; Chen, C. Y.-C. NPJ Digital Medicine 2025, 8, 67.
(14) Wang, S.; Song, X.; Zhang, Y.; Zhang, K.; Liu, Y.; Ren, C.; Pang, S. International Journal of Molecular Sciences 2023, 24, DOI: 10.3390/ijms24098326.
(15) Tang, X.; Lei, X.; Zhang, Y. International Journal of Molecular Sciences 2024, 25, DOI: 10.3390/ijms25105126.
(16) Zhu, Z.; Yao, Z.; Qi, G.; Mazur, N.; Yang, P.; Cong, B. CAAI Transactions on Intelligence Technology 2023, 8, 1558–1577.
(17) Zhu, Z.; Yao, Z.; Zheng, X.; Qi, G.; Li, Y.; Mazur, N.; Gao, X.; Gong, Y.; Cong, B. Computers in Biology and Medicine 2023, 167, 107621.
(18) Zhu, Z.; Zheng, X.; Qi, G.; Gong, Y.; Li, Y.; Mazur, N.; Cong, B.; Gao, X. Expert Systems with Applications 2024, 255, 124647.
(19) Zhu, Z.; Ding, Y.; Qi, G.; Cong, B.; Li, Y.; Bai, L.; Gao, X. Engineering Applications of Artificial Intelligence 2025, 147, 110239.
(20) Rakib, M. Y. K.; Alamin, M. H.; Li, J.; Mamun, S. S.; Gobena, K. A.; Ren, S. Briefings in Bioinformatics 2026, 27, bbag112.
(21) Zhang, Z.; Liu, Y.; Qu, J.; Jiao, Z. Journal of Chemical Information and Modeling 2025, 66, 310–322.
(22) Guo, Y.; Zhu, H.; Cao, J.; Chen, R.; Zhou, D. Knowledge-Based Systems 2026, 342, 115929.
(23) Liu, Q.; Xia, Y.; Guo, Y.; Li, W. Expert Systems with Applications 2026, 298, 129925.
(24) Landrum, G. et al. Release 2013, 1, 4.
(25) Han, S.; Fu, H.; Wu, Y.; Zhao, G.; Song, Z.; Huang, F.; Zhang, Z.; Liu, S.; Zhang, W. Briefings in Bioinformatics 2023, 24, bbad305.
(26) Rogers, D.; Hahn, M. Journal of chemical information and modeling 2010, 50, 742–754.
(27) Consortium, U. Nucleic acids research 2019, 47, D506–D515.
(28) Wójcikowski, M.; Zielenkiewicz, P.; Siedlecki, P. Journal of cheminformatics 2015, 7, 26.
(29) Rives, A.; Meier, J.; Sercu, T.; Goyal, S.; Lin, Z.; Liu, J.; Guo, D.; Ott, M.; Zitnick, C. L.; Ma, J., et al. Proceedings of the national academy of sciences 2021, 118, e2016239118.
(30) Lin, Z.; Akin, H.; Rao, R.; Hie, B.; Zhu, Z.; Lu, W.; Smetanin, N.; Verkuil, R.; Kabeli, O.; Shmueli, Y., et al. Science 2023, 379, 1123–1130.
(31) Brody, S.; Alon, U.; Yahav, E. arXiv preprint arXiv:2105.14491 2021.
(32) Xu, K.; Hu, W.; Leskovec, J.; Jegelka, S. arXiv preprint arXiv:1810.00826 2018.
(33) Davis, M. I.; Hunt, J. P.; Herrgard, S.; Ciceri, P.; Wodicka, L. M.; Pallares, G.; Hocker, M.; Treiber, D. K.; Zarrinkar, P. P. Nature biotechnology 2011, 29, 1046–1051.
(34) Tang, J.; Szwajda, A.; Shakyawar, S.; Xu, T.; Hintsanen, P.; Wennerberg, K.; Aittokallio, T. Journal of chemical information and modeling 2014, 54, 735–743.
(35) Sigismund, S.; Avanzato, D.; Lanzetti, L. Molecular oncology 2018, 12, 3–20.
(36) Knox, C.; Wilson, M.; Klinger, C. M.; Franklin, M.; Oler, E.; Wilson, A.; Pon, A.; Cox, J.; Chin, N. E.; Strawbridge, S. A., et al. Nucleic acids research 2024, 52, D1265–D1275.
(37) Liu, Y.; Yang, X.; Gan, J.; Chen, S.; Xiao, Z.-X.; Cao, Y. Nucleic acids research 2022, 50, W159–W164.
(38) Zdrazil, B.; Felix, E.; Hunter, F.; Manners, E. J.; Blackshaw, J.; Corbett, S.; De Veij, M.; Ioannidis, H.; Lopez, D. M.; Mosquera, J. F., et al. Nucleic acids research 2024, 52, D1180–D1192.
11 For Table of Contents use only

Figure 8: Table of Contents