PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
February 8, 20260 citationsOpen Access

Vulnerability Detection in Smart Contracts using Large Language Models

ΕΜΕλένη Φ. Μανδάνα

Key Points

  • The research aims to enhance vulnerability detection in smart contracts by leveraging large language models to address complex security risks.
  • Employs large language models for vulnerability detection in smart contracts
  • Utilizes parameter-efficient fine-tuning techniques like Low-Rank Adaptation
  • Examines Retrieval-Augmented Generation (RAG) frameworks for dynamic information processing
  • Evaluates the performance of the CodeGemma 7B model and the Gemma 2 RAG model
  • CodeGemma 7B model achieved 94.78% accuracy on the DeFi Hacks & Top200 dataset
  • CodeGemma 7B model attained 92.52% accuracy on the TrustLLM dataset, surpassing previous benchmarks
  • The best-performing RAG model, Gemma 2, achieved 79.1% accuracy, demonstrating the potential of retrieval-based techniques

Abstract

Blockchain technology has emerged as a transformative innovation, redefining industries through its decentralized and secure framework. Smart contracts—self-executing code deployed on blockchain platforms like Ethereum—enable decentralized applications (dApps) to automate processes across finance, healthcare, and supply chain management. However, their programmability introduces significant security risks, making them susceptible to vulnerabilities that can be exploited by malicious actors. While different detection methods have been developed to address these security concerns, they often remain inadequate. Traditional approaches to smart contract vulnerability detection, such as static and dynamic analysis, are limited by their reliance on predefined rules, making them ineffective for addressing complex, domain-specific vulnerabilities in rapidly evolving decentralized ecosystems. This thesis addresses these challenges by leveraging Large Language Models (LLMs), which have demonstrated exceptional capabilities in contextual understanding and reasoning. Through parameter-efficient fine-tuning techniques, including Low-Rank Adaptation (LoRA) and Quantized LoRA (QLoRA), the research enhances the scalability and accessibility of LLMs for vulnerability detection. The study also examines Retrieval-Augmented Generation (RAG) frameworks to dynamically retrieve and process relevant information. The research develops and evaluates two distinct approaches: fine-tuning LLMs and RAG. The CodeGemma 7B model achieved exceptional results, attaining 94.78% accuracy on the DeFi Hacks & Top200 dataset and 92.52% on the TrustLLM dataset, surpassing previous benchmarks using larger and proprietary models. The best-performing RAG model, Gemma 2, achieved 79.1% accuracy, demonstrating the effectiveness of retrieval-based augmentation. These contributions lay the groundwork for more scalable, efficient, and democratized tools for securing blockchain ecosystems, addressing the limitations of traditional methods while offering cost-effective solutions for safer decentralized systems.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Ελένη Φ. Μανδάνα (2025) studied this question.

synapsesocial.com/papers/6988277b0fc35cd7a88464a0https://doi.org/10.26262/heal.auth.ir.368946
Ask AI
Helpful
Bookmark
Share
View Full Paper