重新审视神经反编译:候选选择是隐藏的瓶颈 Rethinking Neural Decompilation: Candidate Selection as the Hidden Bottleneck 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-11-02
⬇️ 1 次下载
👁️ 预览文献
💡 AI 中文简介
本研究探讨了神经反编译中候选生成与选择的问题。基于LLM4Decompile架构,发现正确重建通常已在模型采样空间中(top-5预测包含真值95.6%,pass@100达93%),但单输出准确率低。通过生成-选择流程,使用负困惑度等选择器,在HumanEval-Decompile上pass@1达73.3%,执行引导选择在ExeBench上达86.3%。结合新发布的混淆数据集微调后,混淆二进制pass@1提升至88.8%,反驳了先前认为LLM4Decompile不适用于混淆输入的观点。
领域软件安全与程序理解
适合谁读需要一定专业背景
核心贡献1. 揭示候选选择是神经反编译性能瓶颈,证明正确重建已在采样空间中;2. 提出生成-选择流程并发布混淆数据集ExeBench-Obfuscated,显著提升混淆二进制反编译准确率。
关键数据top-5预测包含真值95.6%;pass@100达93%;负困惑度选择器pass@1 73.3%;执行引导选择pass@1 86.3%;混淆二进制pass@1 88.8%;数据集362,647个样本。
推荐理由如果你关注LLM在逆向工程中的实际落地,这篇工作直击‘生成容易选择难’的痛点,数据扎实,结论反直觉,值得一读。
关键词["神经反编译", "候选选择", "大语言模型", "代码混淆", "逆向工程"]

原文摘要

查看英文原文摘要

Reverse engineering obfuscated binaries is a core task in malware analysis and software security auditing. While neural decompilers based on Large Language Models (LLMs) have improved the readability and functional fidelity of recovered code over heuristic tools such as Ghidra and IDA Pro, a substantial gap remains between best-sample performance and practical single-output accuracy, particularly under code obfuscation. We study this gap through the lens of candidate generation and candidate selection. Using the LLM4Decompile architecture, we show that ground-truth tokens lie within the model's top-five next-token predictions in 95.6% of positions on average and that multi-sample decoding reaches a pass@100 of 93% on HumanEval-Decompile, indicating that correct reconstructions are typically already present in the model's sampling space. We then evaluate a generate-then-select pipeline that ranks 100 candidates per input with text-, syntax-, embedding-, consensus-, and likelihood-based selectors. Negative perplexity emerges as the strongest static selector on HumanEval-Decompile (73.3% pass@1), while execution-guided selection nearly closes the oracle gap on ExeBench (86.3% pass@1). Combined with one epoch of fine-tuning on our newly released ExeBench-Obfuscated dataset containing 362,647 obfuscated OLLVM samples, the same pipeline increases the pass@1 rate for obfuscated binaries to 88.8%, directly contradicting prior claims that released LLM4Decompile checkpoints are unsuitable for obfuscated inputs.