arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.11501cs.SEcs.AIcs.CR
收藏

Decaf:通过自动反馈和搜索改进神经反编译

Decaf: Improving Neural Decompilation with Automatic Feedback and Search

University of Pennsylvania(宾夕法尼亚大学);Carnegie Mellon University(卡内基梅隆大学)

Alexander Shypula, Osbert Bastani, Edward Schwartz

AI总结:

Decaf通过自动反馈和搜索显著提升神经反编译的语义正确性,将反编译率从26.0%提升至83.9%。

摘要:

反编译器是用于逆向工程理解编译源代码的有用工具。从编译二进制文件中重建源代码是一项具有挑战性的任务,因为高级语法、标识符和自定义数据类型通常在编译器将人类可读代码转换为低级机器代码时丢失。确定性反编译器是二进制分析有用的工具,但可能难以推断惯用的语法和标识符名称。生成式AI模型是重建高级语法、标识符和类型自然的选择,但它们仍然可能因生成不恰当的编程构造和语义而出现问题。我们不尝试通过更多数据和更多训练来改进神经反编译器,而是认为可以通过搜索利用编译器反馈来大幅提高神经反编译器输出的语义正确性。我们的系统Decaf(DECompilation with Automated Feedback)将神经反编译率从ExeBench上的26.0%提升到Real-O2分割上的83.9%,同时不牺牲与原始源代码的相似性。我们还发现我们的自动反馈方法对改进较弱的神经反编译模型效果显著。

英文摘要:

Decompilers are useful tools used in reverse engineering to understand compiled source code. Reconstructing source code from compiled binaries is a challenging task, because high-level syntax, identifiers, and custom data types are generally lost as the compiler translates human-readable code to low-level machine code. Deterministic decompilers are useful tools for binary analysis, but can struggle to infer idiomatic syntax and identifier names. Generative AI models are a natural fit for reconstructing high-level syntax, identifiers, and types, but they can still suffer by hallucinating improper programming constructs and semantics. Instead of attempting to improve neural decompilers with more data and more training, we argue that compiler feedback can be used to dramatically improve the semantic correctness of neural decompiler outputs via search. Our system, Decaf (DECompilation with Automated Feedback), raises the neural decompilation rate from 26.0% on ExeBench to 83.9% on the Real -O2 split without sacrificing similarity to the original source code. We also find our automatic feedback methodology is highly effective for improving weaker neural decompilation models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑