Large Language Model based Smart Contract Auditing with LLMBugScanner
Yining Yuan, Yifei Wang, Yichang Xu, Zachary Yahn, Sihao Hu, and Ling Liu

TL;DR
This paper introduces LLMBugScanner, a framework that combines fine-tuning and ensemble learning of large language models to improve the accuracy and robustness of smart contract vulnerability detection.
Contribution
It proposes a novel ensemble approach with domain knowledge adaptation and conflict resolution to enhance smart contract auditing with LLMs.
Findings
LLMBugScanner outperforms individual LLMs in vulnerability detection accuracy.
The ensemble approach improves robustness across diverse smart contract structures.
Fine-tuning with domain knowledge enhances LLMs' reasoning about vulnerabilities.
Abstract
This paper presents LLMBugScanner, a large language model (LLM) based framework for smart contract vulnerability detection using fine-tuning and ensemble learning. Smart contract auditing presents several challenges for LLMs: different pretrained models exhibit varying reasoning abilities, and no single model performs consistently well across all vulnerability types or contract structures. These limitations persist even after fine-tuning individual LLMs. To address these challenges, LLMBugScanner combines domain knowledge adaptation with ensemble reasoning to improve robustness and generalization. Through domain knowledge adaptation, we fine-tune LLMs on complementary datasets to capture both general code semantics and instruction-guided vulnerability reasoning, using parameter-efficient tuning to reduce computational cost. Through ensemble reasoning, we leverage the complementary…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBlockchain Technology Applications and Security · Adversarial Robustness in Machine Learning · Web Application Security Vulnerabilities
