TY - JOUR
T1 - KG-HiAttention
T2 - synergizing AI-based knowledge graphs and deep learning for explainable software vulnerability analysis
AU - Pinto-Santos, Francisco
AU - Zato, Carolina
AU - Quintián, Héctor
AU - Li, Tian Cheng
AU - Chamoso, Pablo
N1 - Publisher Copyright:
Copyright © 2026 Pinto-Santos, Zato, Quintián, Li and Chamoso.
PY - 2026/5/21
Y1 - 2026/5/21
N2 - Software vulnerability analysis is critical for maintaining secure and reliable systems, yet traditional Deep Learning (DL) models often act as “black boxes, ” lacking transparency and failing to leverage the explicit structural semantics of code. In this paper, we propose KG-HiAttention, a novel neuro-symbolic framework that synergizes sub-symbolic deep learning with symbolic AI-based Knowledge Graphs (KGs). We construct a CPG-inspired lightweight program graph for each software function, approximating control-flow (CFG) and data-flow (DFG) dependencies through line-level edges. This symbolic structure is processed by a Graph Attention Network (GAT) and fused with semantic embeddings from a pre-trained CodeT5 encoder through multimodal fusion (concatenation and MLP classifier). Experiments on the real-world BigVul dataset show that KG-HiAttention achieves competitive performance (AUC-ROC 0.763 ± 0.009, five seeds), statistically equivalent to a strong Hybrid Ensemble baseline, while improving specificity from 0.321 (baseline) to 0.458 and providing graph-based explainability that the baseline cannot offer.
AB - Software vulnerability analysis is critical for maintaining secure and reliable systems, yet traditional Deep Learning (DL) models often act as “black boxes, ” lacking transparency and failing to leverage the explicit structural semantics of code. In this paper, we propose KG-HiAttention, a novel neuro-symbolic framework that synergizes sub-symbolic deep learning with symbolic AI-based Knowledge Graphs (KGs). We construct a CPG-inspired lightweight program graph for each software function, approximating control-flow (CFG) and data-flow (DFG) dependencies through line-level edges. This symbolic structure is processed by a Graph Attention Network (GAT) and fused with semantic embeddings from a pre-trained CodeT5 encoder through multimodal fusion (concatenation and MLP classifier). Experiments on the real-world BigVul dataset show that KG-HiAttention achieves competitive performance (AUC-ROC 0.763 ± 0.009, five seeds), statistically equivalent to a strong Hybrid Ensemble baseline, while improving specificity from 0.321 (baseline) to 0.458 and providing graph-based explainability that the baseline cannot offer.
KW - AI-based knowledge graphs
KW - CodeT5
KW - code property graph
KW - explainable AI (XAI)
KW - graph attention networks
KW - neuro-symbolic AI
KW - software vulnerability analysis
UR - https://www.scopus.com/pages/publications/105043267658
U2 - 10.3389/frai.2026.1794125
DO - 10.3389/frai.2026.1794125
M3 - 文章
AN - SCOPUS:105043267658
SN - 2624-8212
VL - 9
JO - Frontiers in Artificial Intelligence
JF - Frontiers in Artificial Intelligence
M1 - 1794125
ER -