Decaf:通过自动反馈与搜索改进神经反编译 Decaf: Improving Neural Decompilation with Automatic Feedback and Search 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-05-12
👁️ 预览文献
💡 AI 中文简介
神经反编译器能生成可读性强的代码,但常出现语义错误。本文提出Decaf系统,利用编译器反馈通过搜索来修正神经反编译器的输出,而非依赖更多训练数据。在ExeBench数据集上,神经反编译正确率从26.0%提升至83.9%(Real -O2划分),且不牺牲与原源码的相似度。该方法对较弱的神经反编译模型同样有效,为提升反编译语义正确性提供了新思路。
领域软件工程 / 程序语言 / 二进制逆向工程
适合谁读需要一定专业背景(了解编译原理、程序分析和机器学习基础)
核心贡献1. 提出利用编译器反馈通过搜索来提升神经反编译输出的语义正确性,而非增加训练数据;2. 在ExeBench数据集上将神经反编译正确率从26.0%提升至83.9%,且保持与原源码的相似度。
关键数据神经反编译正确率从26.0%(ExeBench)提升至83.9%(Real -O2划分);对较弱模型同样有效。
推荐理由如果你对逆向工程或AI辅助编程感兴趣,这篇论文用编译器反馈巧妙修正神经反编译的语义错误,效果显著,值得一读。
关键词["神经反编译", "编译器反馈", "程序搜索", "二进制逆向工程", "语义正确性"]

原文摘要

查看英文原文摘要

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.