AST-GAT-BiLSTM: A structure-aware deep learning framework for smart contract vulnerability detection
Smart contracts (SCs) execute application logic on blockchains, and defects in their code can compromise decentralized applications and the assets they manage. Vulnerability detection requires representations that capture both contextual patterns in source-token sequences and the syntactic relationships between code elements. We present AST-GAT-BiLSTM, a deep learning framework that combines bidirectional long short-term memory (Bi-LSTM) representations with graph attention network (GAT) representations of abstract syntax trees (ASTs). The semantic branch models token context, while the graph branch learns from syntactic structure; their representations are combined through weighted fusion for vulnerability prediction. The evaluation uses data associated with CBGRU and Tianchi and considers reentrancy and timestamp dependence. Comparisons are reported separately for these two vulnerability types. An AST alone does not establish control-flow or data-flow relations, and classification metrics do not demonstrate computational efficiency. The conclusions are therefore limited to the evaluated tasks and data rather than unseen vulnerability classes or large-scale deployment.
Authors
- Shuxi Chen (ORCID: https://orcid.org/0009-0007-3370-8960)
- Haifei Zhang (ORCID: https://orcid.org/0000-0003-4488-1631)
- Hailei Yuan
- Yuanzhi Zhang
Institutions
- Chinese University of Hong Kong (HK)
- Nantong University (CN)
- Nanjing University of Information Science and Technology (CN)
- Mokwon University (KR)
- Nantong Science and Technology Bureau (CN)
- Nantong Institute of Technology (CN)
Publication Details
- Journal
- Array
- Published
- 2026-10-15
- DOI
- https://doi.org/10.1016/j.array.2026.101368
- Primary Topic
- Blockchain Technology Applications and Security
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Government of Jiangsu Province
- Science and Technology Project of Nantong City