ARCHIVES
An Enhanced Deep Learning Framework for Smart Contract Vulnerability Detection in Ethereum Blockchain
Published Online: July-August 2026
Pages: 180-192
Cite this article
↗ https://www.doi.org/10.59256/ijire.20260704020Abstract
Transformer-based detectors for Solidity smart contracts almost universally encode a contract within a single 512-token window, then attribute performance differences to the choice of pre-trained encoder. We show this attribution is misplaced. On DIVE-25 (22,330 deployed contracts, eight DASP categories, multi-label at 2.46 labels per contract) the median contract occupies 2,994 sub-word tokens and only 5.48% fit a single window. We segment each contract at top-level declaration boundaries, pack the segments greedily into at most 24 chunks of 510 tokens for an effective context of 12,240 tokens covering 98.25% of the corpus, and recombine the chunk representations with a bidirectional LSTM under additive attention. Holding preprocessing, chunk budget, pooling, aggregator, loss, schedule, seeds and split identical, the extended context is worth +0.1038 micro-F1 and +0.1722 macro-F1 over single-window truncation, roughly four times the benefit of the best available encoder. The loss under truncation is markedly uneven: Front Running falls by 0.294 and Time manipulation by 0.262, while Access Control, whose indicators sit near the top of a file, loses 0.010. Fifty-one structural measurements and a five-relation contract graph enter the classifier through per-class gates initialised at σ(−4) ≈ 0.018, so any contribution must be learned; both open, and the resulting gain is 1.9 times larger on categories below 900 test instances. Under family-aware leakage-controlled partitioning the complete system reaches 0.8435 micro-F1 and0.7775 macro-F1, with the fusion gain significant under a paired bootstrap (macro-F1 +0.0173, 95% CI [+0.0113, +0.0236]). We report every result additionally on a twin-free test subset from which the 39.58% of test contracts sharing a structural twin with training are removed. Finally, evaluated against human-verified exploitability judgements the detector scores 0.455 mean AUC, below a baseline built from contract size and compiler version alone (0.735), bounding what any detector trained on analyser consensus can be claimed to do.
Related Articles
2026
AI-Based Stomach Cancer Detection Using Biomarkers, Medical Images, and Voice Analysis
2026
Hydrogen-Efficient Eco-Driving and Route Planning for Fuel-Cell Electric Vehicles Using Multi-Objective Optimization Under Traffic and Terrain Uncertainty
2026
A Data-Driven Machine Learning Framework for Assessing Patent Commercial Value and Technological Significance
2026
Evaluating Student Academic Performance Through a Benchmark of Fuzzy Reasoning Models
2026
A Hybrid Soft Computing Approach for Managing Uncertainty in Data Analytics
2026
Soft Computing Approaches for Robust Analysis of Imbalanced and Noisy Data
Share Article
Or copy link
*Instagram doesn't support direct link sharing from web. Copy the link and share it in your Instagram story or post.