Skip to content

Decompiling smart contracts with large language modelsDecompiling Smart Contracts with a Large Language Model

arXiv· arXiv:2506.19624· Isaac David, Liyi Zhou, Dawn Song, Arthur Gervais, Kaihua Qin·Indexed by this site · 21 days ago· Originally publishedTools
AI summary

The paper is the first to use a large language model to decompile EVM bytecode into readable, semantically faithful Solidity code. It first uses static analysis to convert bytecode into three-address code (TAC), then fine-tunes Llama-3.2-3B (training set of 238,446 TAC-Solidity function pairs). Average semantic similarity with the source code is 0.82, readability is better than traditional decompilers, and variable names, control flow and function signatures can be recovered.

Read originalarxiv.org