arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.12513cs.SE
收藏

基于概念生成 Move 智能合约

Generating Move Smart Contracts based on Concepts

Rabimba Karanjai, Sam Blackshear, Lei Xu, Weidong Shi

AI总结:

本文提出 ConMover 框架,利用 Move 概念知识图谱和少量验证示例,通过迭代代理流程增强 LLM 生成 Move 智能合约的准确性,显著优于基线模型。

摘要:

智能合约形式化验证的日益普及推动了 Move 等新型可验证语言的发展。然而,这些语言训练数据的有限可用性阻碍了大型语言模型(LLM)的有效代码生成。本文提出了 ConMover,一种新颖的框架,通过利用 Move 概念的知识图谱和一小部分经过验证的代码示例来增强基于 LLM 的 Move 代码生成。ConMover 集成了概念检索、规划、编码和调试代理,在迭代过程中优化生成的代码。使用各种开源 LLM 的评估表明,与基线模型相比,准确性有显著提升。这些结果凸显了 ConMover 在解决低资源代码生成挑战方面的潜力,弥合了自然语言描述与可靠智能合约开发之间的差距。

英文摘要:

The growing adoption of formal verification for smart contracts has spurred the development of new verifiable languages like Move. However, the limited availability of training data for these languages hinders effective code generation by large language models (LLMs). This paper presents ConMover, a novel framework that enhances LLM-based code generation for Move by leveraging a knowledge graph of Move concepts and a small set of verified code examples. ConMover integrates concept retrieval, planning, coding, and debugging agents in an iterative process to refine generated code. Evaluations with various open-source LLMs demonstrate substantial accuracy improvements over baseline models. These results underscore ConMover's potential to address low-resource code generation challenges, bridging the gap between natural language descriptions and reliable smart contract development.

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

↑