arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.17233cs.SEcs.CL
收藏

自构建上下文反编译与细粒度对齐增强

Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement

Harbin Institute of Technology(哈尔滨工业大学)

Yunlong Feng, Dechuan Teng, Yang Xu, Honglin Mu, Xiao Xu, Libo Qin, Qingfu Zhu, Wanxiang Che

AI总结:

本文提出自构建上下文反编译(sc²dec)和细粒度对齐增强(FAE)两种方法,通过上下文学习与语句级对齐微调提升反编译性能,在Decompile-Eval上达到52.41%的新最优结果。

摘要:

反编译在源代码不可用时将编译后的代码转换回高级编程语言以供分析。以往工作主要通过增大模型参数规模或预训练数据规模来提升反编译性能。基于反编译任务的特点,我们提出两种方法:(1)在无需微调的情况下,自构建上下文反编译(sc²dec)方法将大语言模型的反编译结果重新编译,以构建用于上下文学习的配对样本,帮助模型提升反编译性能。(2)细粒度对齐增强(FAE)利用调试信息在语句级别精细地对齐汇编代码与源代码,在微调阶段使用以进一步改善反编译效果。通过整合这两种方法,我们在Decompile-Eval基准上实现了约3.90%的可重新执行性性能提升,达到了52.41%的最新最优性能。代码、数据和模型可在https://github.com/AlongWY/sccdec获取。

英文摘要:

Decompilation transforms compiled code back into a high-level programming language for analysis when source code is unavailable. Previous work has primarily focused on enhancing decompilation performance by increasing the scale of model parameters or training data for pre-training. Based on the characteristics of the decompilation task, we propose two methods: (1) Without fine-tuning, the Self-Constructed Context Decompilation (sc$^2$dec) method recompiles the LLM's decompilation results to construct pairs for in-context learning, helping the model improve decompilation performance. (2) Fine-grained Alignment Enhancement (FAE), which meticulously aligns assembly code with source code at the statement level by leveraging debugging information, is employed during the fine-tuning phase to achieve further improvements in decompilation. By integrating these two methods, we achieved a Re-Executability performance improvement of approximately 3.90% on the Decompile-Eval benchmark, establishing a new state-of-the-art performance of 52.41%. The code, data, and models are available at https://github.com/AlongWY/sccdec.

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

↑