LLM4Decompile:利用大型语言模型反编译二进制代码
LLM4Decompile: Decompiling Binary Code with Large Language Models
AI总结:
提出LLM4Decompile,首个最大开源LLM系列(1.3B-33B)用于反编译二进制代码,显著提升可重执行率,并改进细化方法进一步优化反编译结果。
摘要:
反编译旨在将二进制代码转换为高级源代码,但传统的工具如Ghidra往往产生难以阅读和执行的输出。受大型语言模型(LLMs)进展的启发,我们提出了LLM4Decompile,这是首个也是最大的开源LLM系列(1.3B到33B参数),专门训练用于反编译二进制代码。我们优化了LLM训练过程,并引入了LLM4Decompile-End模型来直接反编译二进制。在HumanEval和ExeBench基准上,所得模型在可重执行率方面显著优于GPT-4o和Ghidra,提升超过100%。此外,我们改进了标准的细化方法,对LLM4Decompile-Ref模型进行微调,使其能够有效地细化来自Ghidra的反编译代码,并相比LLM4Decompile-End进一步提升了16.2%。LLM4Decompile展示了LLMs在革新二进制代码反编译方面的潜力,在可读性和可执行性上带来了显著改进,同时补充了传统工具以获得最佳结果。我们的代码、数据集和模型已在https://github.com/albertan017/LLM4Decompile发布。
英文摘要:
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
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。