Model-driven smart contract generation leveraging pretrained large language models

This project titled ‘Model-Driven Smart Contract Generation Leveraging Pretrained Large Language Models’ explores automating blockchain smart contract creation using Large Language Models (LLMs), such as ChatGPT and LLaMA-2, and automates refinement through the integration of a static analysis frame...

Full description

Bibliographic Details
Main Author: Jiang, Qinbo
Other Authors: Lihui Chen
Format: Final Year Project (FYP)
Language:English
Published: Nanyang Technological University 2024
Subjects:
Online Access:https://hdl.handle.net/10356/176154
_version_ 1811688393581527040
author Jiang, Qinbo
author2 Lihui Chen
author_facet Lihui Chen
Jiang, Qinbo
author_sort Jiang, Qinbo
collection NTU
description This project titled ‘Model-Driven Smart Contract Generation Leveraging Pretrained Large Language Models’ explores automating blockchain smart contract creation using Large Language Models (LLMs), such as ChatGPT and LLaMA-2, and automates refinement through the integration of a static analysis framework, specifically Slither. Smart contracts, encoded agreements on a blockchain, traditionally require extensive coding knowledge. LLMs, trained on vast text datasets, can potentially simplify this by generating smart contract code, making development more accessible to non-experts. This study evaluates the feasibility of a framework for LLM-assisted smart contract generation, focusing on reducing development time and skill requirements. It compares the effectiveness of GPT-4 and LLaMA-2 in creating smart contracts, aiming to identify strengths and limitations in language understanding and code generation. By integrating LLMs with smart contract languages, the project seeks to democratise smart contract development, offering a novel tool for users with limited programming experience. This research contributes to the field by highlighting LLMs’ potential in automating complex coding tasks, pushing the boundaries of blockchain technology accessibility.
first_indexed 2024-10-01T05:31:30Z
format Final Year Project (FYP)
id ntu-10356/176154
institution Nanyang Technological University
language English
last_indexed 2024-10-01T05:31:30Z
publishDate 2024
publisher Nanyang Technological University
record_format dspace
spelling ntu-10356/1761542024-05-17T15:43:40Z Model-driven smart contract generation leveraging pretrained large language models Jiang, Qinbo Lihui Chen School of Electrical and Electronic Engineering ELHCHEN@ntu.edu.sg Computer and Information Science Engineering Natural language processing Smart contract Large language model This project titled ‘Model-Driven Smart Contract Generation Leveraging Pretrained Large Language Models’ explores automating blockchain smart contract creation using Large Language Models (LLMs), such as ChatGPT and LLaMA-2, and automates refinement through the integration of a static analysis framework, specifically Slither. Smart contracts, encoded agreements on a blockchain, traditionally require extensive coding knowledge. LLMs, trained on vast text datasets, can potentially simplify this by generating smart contract code, making development more accessible to non-experts. This study evaluates the feasibility of a framework for LLM-assisted smart contract generation, focusing on reducing development time and skill requirements. It compares the effectiveness of GPT-4 and LLaMA-2 in creating smart contracts, aiming to identify strengths and limitations in language understanding and code generation. By integrating LLMs with smart contract languages, the project seeks to democratise smart contract development, offering a novel tool for users with limited programming experience. This research contributes to the field by highlighting LLMs’ potential in automating complex coding tasks, pushing the boundaries of blockchain technology accessibility. Bachelor's degree 2024-05-14T12:36:37Z 2024-05-14T12:36:37Z 2024 Final Year Project (FYP) Jiang, Q. (2024). Model-driven smart contract generation leveraging pretrained large language models. Final Year Project (FYP), Nanyang Technological University, Singapore. https://hdl.handle.net/10356/176154 https://hdl.handle.net/10356/176154 en application/pdf Nanyang Technological University
spellingShingle Computer and Information Science
Engineering
Natural language processing
Smart contract
Large language model
Jiang, Qinbo
Model-driven smart contract generation leveraging pretrained large language models
title Model-driven smart contract generation leveraging pretrained large language models
title_full Model-driven smart contract generation leveraging pretrained large language models
title_fullStr Model-driven smart contract generation leveraging pretrained large language models
title_full_unstemmed Model-driven smart contract generation leveraging pretrained large language models
title_short Model-driven smart contract generation leveraging pretrained large language models
title_sort model driven smart contract generation leveraging pretrained large language models
topic Computer and Information Science
Engineering
Natural language processing
Smart contract
Large language model
url https://hdl.handle.net/10356/176154
work_keys_str_mv AT jiangqinbo modeldrivensmartcontractgenerationleveragingpretrainedlargelanguagemodels