arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.11019cs.SEcs.AIcs.CL
收藏

各类大型语言模型在生成智能合约中的效能

Efficacy of Various Large Language Models in Generating Smart Contracts

Mountain View High School(山景城高中);University at Buffalo(布法罗大学)

Siddhartha Chatterjee, Bina Ramamurthy

AI总结:

本研究评估了大型语言模型生成以太坊Solidity智能合约的能力,发现其在安全细节上存在不足,但能成功处理常见合约,并提出新的提示策略以改进生成。

摘要:

本研究分析了代码生成型大型语言模型在以太坊区块链上创建不可变Solidity智能合约中的应用。以往的研究已分析了人工智能的代码生成能力。本文旨在将其扩展到更广泛的范畴,涵盖安全性和效率至关重要的程序,如智能合约。研究前的假设是,大型语言模型通常难以在代码中严格实现安全细节,这一假设通过我们的结果得到了证实,但令人惊讶的是,它们在许多常见类型的合约中普遍表现成功。我们还发现了一种通过新的提示策略生成智能合约的新方法。

英文摘要:

This study analyzes the application of code-generating Large Language Models in the creation of immutable Solidity smart contracts on the Ethereum Blockchain. Other works have previously analyzed Artificial Intelligence code generation abilities. This paper aims to expand this to a larger scope to include programs where security and efficiency are of utmost priority such as smart contracts. The hypothesis leading into the study was that LLMs in general would have difficulty in rigorously implementing security details in the code, which was shown through our results, but surprisingly generally succeeded in many common types of contracts. We also discovered a novel way of generating smart contracts through new prompting strategies.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑