Saved in:
Bibliographic Details
Main Authors: Sardenberg, Eduardo, Busson, Antonio José Grandson, Moraes, Daniel de Sousa, Duarte, Julio Cesar, Colcher, Sérgio
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2603.13239
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914412053397504
author Sardenberg, Eduardo
Busson, Antonio José Grandson
Moraes, Daniel de Sousa
Duarte, Julio Cesar
Colcher, Sérgio
author_facet Sardenberg, Eduardo
Busson, Antonio José Grandson
Moraes, Daniel de Sousa
Duarte, Julio Cesar
Colcher, Sérgio
contents Smart contracts play a central role in blockchain systems by encoding financial and operational logic. Still, their susceptibility to subtle security flaws poses significant risks of financial loss and erosion of trust. LLMs create new opportunities for automating vulnerability detection, yet the effectiveness of different prompting strategies and model choices in real-world contexts remains uncertain. This paper evaluates state-of-the-art LLMs on Solidity smart contract analysis using a balanced dataset of 400 contracts under two tasks: (i) Error Detection, where the model performs binary classification to decide whether a contract is vulnerable, and (ii) Error Classification, where the model must assign the predicted issue to a specific vulnerability category. Models are evaluated using zero-shot prompting strategies, including zero-shot, zero-shot Chain-of-Thought (CoT), and zero-shot Tree-of-Thought (ToT). In the Error Detection task, CoT and ToT substantially increase recall (often approaching ~ 95--99%), but typically reduce precision, indicating a more sensitive decision regime with more false positives. In the Error Classification task, Claude 3 Opus attains the best Weighted F1-score (90.8) under the ToT prompt, followed closely by its CoT.
format Preprint
id arxiv_https___arxiv_org_abs_2603_13239
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Benchmarking Zero-Shot Reasoning Approaches for Error Detection in Solidity Smart Contracts
Sardenberg, Eduardo
Busson, Antonio José Grandson
Moraes, Daniel de Sousa
Duarte, Julio Cesar
Colcher, Sérgio
Artificial Intelligence
Smart contracts play a central role in blockchain systems by encoding financial and operational logic. Still, their susceptibility to subtle security flaws poses significant risks of financial loss and erosion of trust. LLMs create new opportunities for automating vulnerability detection, yet the effectiveness of different prompting strategies and model choices in real-world contexts remains uncertain. This paper evaluates state-of-the-art LLMs on Solidity smart contract analysis using a balanced dataset of 400 contracts under two tasks: (i) Error Detection, where the model performs binary classification to decide whether a contract is vulnerable, and (ii) Error Classification, where the model must assign the predicted issue to a specific vulnerability category. Models are evaluated using zero-shot prompting strategies, including zero-shot, zero-shot Chain-of-Thought (CoT), and zero-shot Tree-of-Thought (ToT). In the Error Detection task, CoT and ToT substantially increase recall (often approaching ~ 95--99%), but typically reduce precision, indicating a more sensitive decision regime with more false positives. In the Error Classification task, Claude 3 Opus attains the best Weighted F1-score (90.8) under the ToT prompt, followed closely by its CoT.
title Benchmarking Zero-Shot Reasoning Approaches for Error Detection in Solidity Smart Contracts
topic Artificial Intelligence
url https://arxiv.org/abs/2603.13239