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

Saved in:
Bibliographic Details
Main Author: Jiang, Qinbo
Other Authors: Lihui Chen
Format: Final Year Project
Language:English
Published: Nanyang Technological University 2024
Subjects:
Online Access:https://hdl.handle.net/10356/176154
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Nanyang Technological University
Language: English
id sg-ntu-dr.10356-176154
record_format dspace
spelling sg-ntu-dr.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
institution Nanyang Technological University
building NTU Library
continent Asia
country Singapore
Singapore
content_provider NTU Library
collection DR-NTU
language English
topic Computer and Information Science
Engineering
Natural language processing
Smart contract
Large language model
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
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.
author2 Lihui Chen
author_facet Lihui Chen
Jiang, Qinbo
format Final Year Project
author Jiang, Qinbo
author_sort Jiang, Qinbo
title Model-driven smart contract generation leveraging pretrained large language models
title_short 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_sort model-driven smart contract generation leveraging pretrained large language models
publisher Nanyang Technological University
publishDate 2024
url https://hdl.handle.net/10356/176154
_version_ 1800916403470991360