An Initial Exploration of Fine-tuning Small Language Models for Smart Contract Reentrancy Vulnerability Detection
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are being used more and more for various coding tasks, including to help coders identify bugs and are a promising avenue to support coders in various tasks including vulnerability detection -- particularly given the flexibility of such generative AI models and tools. Yet for many tasks it may not be suitable to use LLMs, for which it may be more suitable to use smaller language models that can fit and easily execute and train on a developer's computer. In this paper we explore and evaluate whether smaller language models can be fine-tuned to achieve reasonable results for a niche area: vulnerability detection -- specifically focusing on detecting the reentrancy bug in Solidity smart contracts.
Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 9 of its 23 references that are in the map. First posted on arXiv 25 May 2025.
Builds on
9 of 23 references.
References · 9
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,979
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,628
- 2024Qwen2.5-Coder Technical Reportcited by 1,179
- 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 564
- 2020On the Generalizability of Neural Program Models with respect to Semantic-Preserving Program Transformationscited by 44
- 2023Evaluation of ChatGPT Model for Vulnerability Detectioncited by 33
- 2017Learn&Fuzz: Machine Learning for Input Fuzzingcited by 23
- 2022Modularized Transfer Learning with Multiple Knowledge Graphs for Zero-shot Commonsense Reasoningcited by 5
- 2023Turn the Rudder: A Beacon of Reentrancy Detection for Smart Contracts on Ethereumcited by 3
Built on by
Not cited yet.