[Paper Review] HyMo: Vulnerability Detection in Smart Contracts using a Novel Multi-Modal Hybrid Model
This paper proposes HyMo, a novel multi-modal hybrid deep learning model for detecting smart contract vulnerabilities, particularly arithmetic flaws. It combines cleaned source code and compiled bytecode as dual inputs, leverages FastText word embeddings and bidirectional GRUs (BiGRU) for sequence modeling, achieving 79.71% accuracy on a real-world dataset combining ScrawlD and SmartBugs Dataset-Wild, outperforming state-of-the-art methods.
With blockchain technology rapidly progress, the smart contracts have become a common tool in a number of industries including finance, healthcare, insurance and gaming. The number of smart contracts has multiplied, and at the same time, the security of smart contracts has drawn considerable attention due to the monetary losses brought on by smart contract vulnerabilities. Existing analysis techniques are capable of identifying a large number of smart contract security flaws, but they rely too much on rigid criteria established by specialists, where the detection process takes much longer as the complexity of the smart contract rises. In this paper, we propose HyMo as a multi-modal hybrid deep learning model, which intelligently considers various input representations to consider multimodality and FastText word embedding technique, which represents each word as an n-gram of characters with BiGRU deep learning technique, as a sequence processing model that consists of two GRUs to achieve higher accuracy in smart contract vulnerability detection. The model gathers features using various deep learning models to identify the smart contract vulnerabilities. Through a series of studies on the currently publicly accessible dataset such as ScrawlD, we show that our hybrid HyMo model has excellent smart contract vulnerability detection performance. Therefore, HyMo performs better detection of smart contract vulnerabilities against other approaches.
Motivation & Objective
- To address the growing challenge of smart contract vulnerabilities, especially arithmetic flaws, which have led to millions in financial losses.
- To overcome limitations of traditional symbolic execution and static analysis tools that rely on rigid, expert-defined rules and scale poorly with complexity.
- To improve detection accuracy by integrating multiple input representations—cleaned source code and compiled EVM bytecode—into a unified deep learning framework.
- To demonstrate that hybrid models using multi-modal inputs, advanced word embeddings (FastText), and sequential modeling (BiGRU) significantly enhance vulnerability detection performance.
- To develop a scalable, accurate, and extensible model applicable to diverse types of smart contract vulnerabilities beyond arithmetic flaws.
Proposed method
- HyMo employs a multi-modal hybrid architecture that processes two distinct input representations: cleaned high-level source code and compiled EVM bytecode (opcodes).
- It uses FastText word embeddings to represent each token as character-level n-grams, capturing morphological patterns and improving generalization for rare or malformed identifiers.
- The model applies a bidirectional GRU (BiGRU) network with two GRUs—one processing input forward and one backward—to capture long-range dependencies in sequential code structures.
- Different hybrid configurations are evaluated, combining various input types, embedding techniques, and deep learning models, with the best-performing setup being FBFB (M2_M4), using cleaned code and bytecode with FastText and BiGRU.
- The model is trained and evaluated on a combined dataset of real-world smart contracts from ScrawlD and SmartBugs Dataset-Wild, ensuring practical relevance.
- Performance is measured using standard metrics: accuracy, precision, recall, and F1-score, with ablation studies to isolate the contribution of each component.

Experimental results
Research questions
- RQ1Can a multi-modal deep learning model that combines source code and compiled bytecode representations improve smart contract vulnerability detection accuracy compared to single-input models?
- RQ2Does the use of FastText word embeddings, which model subword patterns, enhance the model’s ability to detect vulnerabilities in smart contracts with non-standard or obfuscated identifiers?
- RQ3How does the integration of BiGRU networks, which capture sequential dependencies in both directions, affect the detection of logic-based vulnerabilities such as arithmetic overflows?
- RQ4What is the optimal configuration of input representations, embedding techniques, and deep learning components in a hybrid model for vulnerability detection?
- RQ5Can the proposed model generalize across diverse vulnerability types, particularly arithmetic vulnerabilities, and be extended to detect other classes of flaws?
Key findings
- The FBFB (M2_M4) configuration of HyMo achieved the highest accuracy of 79.71%, with a recall of 76.61%, precision of 81.82%, and F1-score of 79.05% on the combined ScrawlD and SmartBugs Dataset-Wild dataset.
- The model outperformed state-of-the-art baselines, including CBGRU (second place), Mythril, and Osiris, demonstrating superior detection accuracy.
- Using both cleaned source code and compiled bytecode as inputs significantly improved performance compared to models relying on only one representation.
- The ablation study confirmed that the combination of FastText embeddings and BiGRU architecture contributed meaningfully to the model’s robustness and accuracy.
- The model’s ability to detect vulnerabilities locally and efficiently suggests practical advantages over traditional symbolic execution and taint analysis methods.
- The results indicate that multi-modal representation learning with character-level embeddings and bidirectional sequence modeling is a promising direction for scalable and accurate smart contract vulnerability detection.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.