mlsanityData to 14 Oct 2026

SmartEval: A Benchmark for Evaluating LLM-Generated Smart Contracts from Natural Language Specifications

arXiv 2605.09610 ↗First posted 10 May 2026cs.MA cs.AI cs.CEcited by 0

Not on the map. Why?

Abstract (arXiv)

We introduce SmartEval, a benchmark for systematically evaluating the quality of Solidity smart contracts generated by large language models (LLMs) from natural language specifications. SmartEval provides a corpus of 9,000 generated contracts paired with expert-written ground-truth implementations drawn from the FSMSCG dataset, a five-dimensional evaluation rubric covering functional completeness, variable fidelity, state-machine correctness, business-logic fidelity, and code quality, and a reproducible generation-and-evaluation pipeline. To validate the benchmark's reliability, we conduct three independent empirical studies: a five-condition ablation study (N=300 per condition) isolating the contribution of each pipeline component, a human expert evaluation by three Columbia University PhD researchers confirming automated scores align with expert judgment to within 0.34 points, and external security analysis via the Slither static analyzer confirming 79.4% agreement between the LLM auditor and a non-LLM rule-based tool. Systematic analysis of 9,000 generated contracts reveals characteristic failure modes (logic omissions at 35.3%, state transition errors at 23.4%, and complexity-driven degradation) and quantifies a +8.29 composite-score advantage of generated contracts over ground-truth implementations, attributable to LLMs' literal specification-following behavior. SmartEval establishes a reproducible, validated foundation for empirical research on LLM smart contract synthesis quality, with all data, evaluation code, and generated contracts publicly released.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 10 of its 36 references that are in the map. First posted on arXiv 10 May 2026.

Builds on

10 of 36 references.

References · 10

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2021Program Synthesis with Large Language Modelscited by 3,637
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  5. 2019Slither: A Static Analysis Framework For Smart Contractscited by 89
  6. 2019A Survey on Ethereum Systems Security: Vulnerabilities, Attacks and Defensescited by 25
  7. 2019An Overview on Smart Contracts: Challenges, Advances and Platformscited by 20
  8. 2017Designing Secure Ethereum Smart Contracts: A Finite State Machine Based Approachcited by 3
  9. 2024Detecting Buggy Contracts via Smart Testingcited by 3
  10. 2023Decentralized Finance: Protocols, Risks, and Governancecited by 2

Built on by

Not cited yet.