2024/03/08 by Hanzhuo Tan, Tan, Hanzhuo, Q. Luo +6 · 1 voice · 24 citations
Computer Science · Mathematics · #Arithmetic #Binary number #Code (set theory) #Computer science #Mathematics #Natural Language Processing Techniques #Programming language #Set (abstract data type) #cs.CL #cs.PL
paper · pdf · doi:10.48550/arxiv.2403.05286
published in arXiv (Cornell University) (Cornell University)
openalex publication_date 2024/03/08 · arxiv published 2024/03/08 · arxiv updated 2024/10/22 · openalex created_date 2025/10/10 · openalex updated_date 2026/08/05
Decompilation aims to convert binary code to high-level source code, but traditional tools like Ghidra often produce results that are difficult to read and execute. Motivated by the advancements in Large Language Models (LLMs), we propose LLM4Decompile, the first and largest open-source LLM series (1.3B to 33B) trained to decompile binary code. We optimize the LLM training process and introduce the LLM4Decompile-End models to decompile binary directly. The resulting models significantly outperform GPT-4o and Ghidra on the HumanEval and ExeBench benchmarks by over 100% in terms of re-executability rate. Additionally, we improve the standard refinement approach to fine-tune the LLM4Decompile-Ref models, enabling them to effectively refine the decompiled code from Ghidra and achieve a further 16.2% improvement over the LLM4Decompile-End. LLM4Decompile demonstrates the potential of LLMs to revolutionize binary code decompilation, delivering remarkable improvements in readability and executability while complementing conventional tools for optimal results. Our code, dataset, and models are released at https://github.com/albertan017/LLM4Decompile