mlsanityData to 7 Oct 2026

Benchmarking Zero-Shot Reasoning Approaches for Error Detection in Solidity Smart Contracts

arXiv 2603.13239 ↗First posted 17 Feb 2026cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 18 of its 30 references that are in the map. First posted on arXiv 17 Feb 2026.

Builds on

18 of 30 references.

References · 18

  1. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  2. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  3. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  4. 2024Understanding the planning of LLM agents: A surveycited by 414
  5. 2022A Systematic Evaluation of Large Language Models of Codecited by 360
  6. 2022Towards Understanding Chain-of-Thought Prompting: An Empirical Study of What Matterscited by 221
  7. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
  8. 2023Large Language Model Guided Tree-of-Thoughtcited by 218
  9. 2018DeepBugs: A Learning Approach to Name-based Bug Detectioncited by 65
  10. 2023Understanding the Effectiveness of Large Language Models in Detecting Security Vulnerabilitiescited by 58
  11. 2023When ChatGPT Meets Smart Contract Vulnerability Detection: How Far Are We?cited by 42
  12. 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justificationscited by 41
6 more
  1. 2019Empirical Review of Automated Analysis Tools on 47,587 Ethereum Smart Contractscited by 35
  2. 2018Explainable Software Analyticscited by 15
  3. 2022Smart Contract Vulnerability Detection Technique: A Surveycited by 9
  4. 2023DAppSCAN: Building Large-Scale Datasets for Smart Contract Weaknesses in DApp Projectscited by 9
  5. 2024Smart-LLaMA: Two-Stage Post-Training of Large Language Models for Smart Contract Vulnerability Detection and Explanationcited by 8
  6. 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilitiescited by 5

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025SAEL: Leveraging Large Language Models with Adaptive Mixture-of-Experts for Smart Contract Vulnerability Detection
  2. 2025Smart-LLaMA-DPO: Reinforced Large Language Model for Explainable Smart Contract Vulnerability Detection
  3. 2024LLM-SmartAudit: Advanced Smart Contract Vulnerability Detection
  4. 2025ParaVul: A Parallel Large Language Model and Retrieval-Augmented Framework for Smart Contract Vulnerability Detection
  5. 2025LLMs as verification oracles for Solidity
  6. 2024Evaluation of ChatGPT's Smart Contract Auditing Capabilities Based on Chain of Thought
  7. 2025LLM-BSCVM: An LLM-Based Blockchain Smart Contract Vulnerability Management Framework
  8. 2026Mitigating Error Propagation in Chain-of-Thought: A Tree-of-Thought Framework for Smart Contract Repair ↗