Decompiling smart contracts with large language modelsDecompiling Smart Contracts with a Large Language Model
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.