paper-with-me

Papers

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

2026-05-10 · Abhinav Goel, Agostino Capponi, Alfio Gliozzo, Chaitya Shah 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.

📄 PDF Abstract BibTeX arXiv:2605.09610

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

SolBench: A Dataset and Benchmark for Evaluating Functional Correctness in Solidity Code Completion and Repair

2025-03-03 · Zaoyu Chen, Haoran Qin, Nuo Chen, Xiangyu Zhao 외

Smart contracts are crucial programs on blockchains, and their immutability post-deployment makes functional correctness vital. Despite progress in code completion models, benchmarks for Solidity, the primary smart contr…

Code CompletionCode RepairRetrieval

An Empirical Study of AI-based Smart Contract Creation

2023-08-05 · Rabimba Karanjai, Edward Li, Lei Xu, Weidong Shi

The introduction of large language models (LLMs) like ChatGPT and Google Palm2 for smart contract generation seems to be the first well-established instance of an AI pair programmer. LLMs have access to a large number of…

Code Generation

Profiling Gas Consumption in Solidity Smart Contracts

2020-08-12 · Andrea Di Sorbo, Sonia Laudanna, Anna Vacca, Corrado A. Visaggio 외

Nowadays, more and more applications are developed for running on a distributed ledger technology, namely dApps. The business logic of dApps is usually implemented within smart contracts developed through Solidity, a pro…

Legal Compliance Evaluation of Smart Contracts Generated By Large Language Models

2025-06-01 · Chanuka Wijayakoon, Hai Dong, H. M. N. Dilum Bandara, Zahir Tari 외

Smart contracts can implement and automate parts of legal contracts, but ensuring their legal compliance remains challenging. Existing approaches such as formal specification, verification, and model-based development re…

Code Generation

DISL: Fueling Research with A Large Dataset of Solidity Smart Contracts

2024-03-25 · Gabriele Morello, Mojtaba Eshghie, Sofia Bobadilla, Martin Monperrus

The DISL dataset features a collection of $514,506$ unique Solidity files that have been deployed to Ethereum mainnet. It caters to the need for a large and diverse dataset of real-world smart contracts. DISL serves as a…

Benchmarking