ImageNet classification with deep convolutional neural networks
Alex Krizhevsky, Ilya Sutskever et al.
104
Citations
18
Influential Citations
Conference on Empirical Methods in Natural Language Processing
Venue
2024
Year
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.
Decompilation is a critical but challenging task in reverse engineering, security analysis, and legacy code migration. Traditional tools like Ghidra produce low-level, hard-to-read output that often fails to execute correctly. LLM4Decompile directly addresses this gap by leveraging large language models to generate human-readable, executable source code from binaries. This is a significant step forward because it combines the pattern-matching strengths of LLMs with the structured output needed for practical decompilation.
The paper is particularly important because it provides the first open-source LLM series for this task, making the technology accessible to researchers and practitioners. The scale of models (1.3B to 33B parameters) allows for experimentation across different resource constraints. The demonstrated superiority over both GPT-4o and Ghidra—by over 100% in re-executability—shows that specialized LLMs can outperform general-purpose models and traditional tools in niche domains.
LLM4Decompile has broad implications for software engineering and security. It can accelerate reverse engineering tasks, reduce human effort in analyzing malware or legacy code, and enable better tool integration where LLMs complement traditional decompilers. The open-source release allows the community to build upon this work, potentially leading to specialized models for different architectures or optimization levels. This paper also highlights the growing trend of applying LLMs to structured code tasks beyond natural language, reinforcing the versatility of transformer architectures.
Alex Krizhevsky, Ilya Sutskever et al.
Ashish Vaswani, Noam Shazeer et al.
Douglas M. Bates, Martin Mächler et al.
Diederik P. Kingma, Jimmy Ba