ParaVul: A Parallel Large Language Model and Retrieval-Augmented Framework for Smart Contract Vulnerability Detection
On the map: Retrieval-augmented generation → Privacy and security of RAG
Abstract (arXiv)
Smart contracts play a significant role in automating blockchain services. Nevertheless, vulnerabilities in smart contracts pose serious threats to blockchain security. Currently, traditional detection methods primarily rely on static analysis and formal verification, which can result in high false-positive rates and poor scalability. Large Language Models (LLMs) have recently made significant progress in smart contract vulnerability detection. However, they still face challenges such as high inference costs and substantial computational overhead. In this paper, we propose ParaVul, a parallel LLM and retrieval-augmented framework to improve the reliability and accuracy of smart contract vulnerability detection. Specifically, we first develop Sparse Low-Rank Adaptation (SLoRA) for LLM fine-tuning. SLoRA introduces sparsification by incorporating a sparse matrix into quantized LoRA-based LLMs, thereby reducing computational overhead and resource requirements while enhancing their ability to understand vulnerability-related issues. We then construct a vulnerability contract dataset and develop a hybrid Retrieval-Augmented Generation (RAG) system that integrates dense retrieval with Best Matching 25 (BM25), assisting in verifying the results generated by the LLM. Furthermore, we propose a meta-learning model to fuse the outputs of the RAG system and the LLM, thereby generating the final detection results. After completing vulnerability detection, we design chain-of-thought prompts to guide LLMs to generate comprehensive vulnerability detection reports. Simulation results demonstrate the superiority of ParaVul, especially in terms of F1 scores, achieving 0.9398 for single-label detection and 0.9330 for multi-label detection.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 28 of its 53 references that are in the map. First posted on arXiv 20 Oct 2025.
Builds on
28 of 53 references.
Closest ancestors · 2
Same direction, newest first
- 2024Retrieval Augmented Generation Integrated Large Language Models in Smart Contract Vulnerability Detection20 Jul
- 2024PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generation4 May
Other references · 26
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2019Similarity of Neural Network Representations Revisitedcited by 1,755
- 2023SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compressioncited by 367
- 2023QA-LoRA: Quantization-Aware Low-Rank Adaptation of Large Language Modelscited by 155
- 2022Dense Text Retrieval based on Pretrained Language Models: A Surveycited by 136
- 2023Sparse Low-rank Adaptation of Pre-trained Language Modelscited by 96
- 2019Slither: A Static Analysis Framework For Smart Contractscited by 89
- 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
- 2018Securify: Practical Security Analysis of Smart Contractscited by 61
14 more
- 2024LongEmbed: Extending Embedding Models for Long Context Retrievalcited by 48
- 2024SLTrain: a sparse plus low-rank approach for parameter and memory efficient pretrainingcited by 45
- 2023When ChatGPT Meets Smart Contract Vulnerability Detection: How Far Are We?cited by 42
- 2023Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inferencecited by 40
- 2023Blockchain-empowered Federated Learning for Healthcare Metaverses: User-centric Incentive Mechanism with Optimal Data Freshnesscited by 15
- 2024Interaction-Aware Vulnerability Detection in Smart Contract Bytecodescited by 6
- 2025SoK: Security Analysis of Blockchain-based Cryptocurrencycited by 5
- 2020MetaGater: Fast Learning of Conditional Channel Gated Networks via Federated Meta-Learningcited by 4
- 2022ScrawlD: A Dataset of Real World Ethereum Smart Contracts Labelled with Vulnerabilitiescited by 4
- 2025LoRS: Efficient Low-Rank Adaptation for Sparse Large Language Modelcited by 4
- 2025SmartLLM: Smart Contract Auditing using Custom Generative AIcited by 3
- 2024Optimal AoI-based Block Propagation and Incentive Mechanism for Blockchain Networks in Web 3.0cited by 2
- 2024Graph Attention Network-based Block Propagation with Optimal AoI and Reputation in Web 3.0cited by 2
- 2025LLM-BSCVM: An LLM-Based Blockchain Smart Contract Vulnerability Management Frameworkcited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025SAEL: Leveraging Large Language Models with Adaptive Mixture-of-Experts for Smart Contract Vulnerability Detection
- 2025Smart-LLaMA-DPO: Reinforced Large Language Model for Explainable Smart Contract Vulnerability Detection
- 2024LLM-SmartAudit: Advanced Smart Contract Vulnerability Detection
- 2026Decoupled Smart Contract Audits: Lightweight LLM Framework via Distillation and Aggregation
- 2025ETrace:Event-Driven Vulnerability Detection in Smart Contracts via LLM-Based Trace Analysis
- 2025Large Language Model based Smart Contract Auditing with LLMBugScanner
- 2024FTSmartAudit: A Knowledge Distillation-Enhanced Framework for Automated Smart Contract Auditing Using Fine-Tuned LLMs
- 2025Securing Smart Contract Languages with a Unified Agentic Framework for Vulnerability Repair in Solidity and Move