Please use this identifier to cite or link to this item:
https://www.um.edu.mt/library/oar/handle/123456789/148127| Title: | Small language models for smart contract vulnerability detection : exploring efficient fine-tuning approaches for reentrancy detection in resource-constrained environments |
| Authors: | Andreozzi Pofcher, Ignacio Mariano (2025) |
| Keywords: | Smart contracts Artificial intelligence Blockchains (Databases) |
| Issue Date: | 2025 |
| Citation: | Andreozzi Pofcher, I. M. (2025). Small language models for smart contract vulnerability detection: exploring efficient fine-tuning approaches for reentrancy detection in resource-constrained environments (Master's dissertation). |
| Abstract: | This dissertation investigates the application of parameter-efficient fine-tuning techniques to small language models (1-3B parameters) for detecting reentrancy vulnerabilities in Solidity smart contracts. Despite the prevalence and persistent threat of reentrancy vulnerabilities in blockchain ecosystems, existing detection approaches often require substantial computational resources or extensive manual engineering. This research demonstrates that even modest-sized models can develop meaningful security analysis capabilities when efficiently adapted through Low-Rank Adaptation (LoRA) and trained on synthetic vulnerability data. Experimental results show significant improvements in detection performance after fine-tuning, with accuracy increasing from 48% to 67% for LLaMA 3B and from 45% to 59% for Qwen2.5Coder 3B. This work establishes a foundation for resource-efficient approaches to smart contract vulnerability detection, addressing the gap between the capabilities of frontier language models and practical deployment constraints in development environments. Beyond the specific task of reentrancy detection, the methodology and findings contribute to the broader understanding of efficient language model adaptation for specialized security applications. |
| Description: | M.Sc.(Melit.) |
| URI: | https://www.um.edu.mt/library/oar/handle/123456789/148127 |
| Appears in Collections: | Dissertations - CenDLT - 2025 |
Files in This Item:
| File | Description | Size | Format | |
|---|---|---|---|---|
| 2618DLTDLT590005065308_1.PDF Restricted Access | 2.28 MB | Adobe PDF | View/Open Request a copy |
Items in OAR@UM are protected by copyright, with all rights reserved, unless otherwise indicated.
