面向神经反编译器的快速、细粒度等价性检查
Fast, Fine-Grained Equivalence Checking for Neural Decompilers
AI总结:
针对神经反编译器输出正确性评估不足的问题,本文提出指令级代码等价性检查技术 codealign,通过等价对齐揭示函数片段等价性与变量名匹配质量,提供比现有相似性指标更细粒度的评估。
摘要:
神经反编译器是从可执行程序重构源代码的机器学习模型。对任何机器学习模型而言,评估其有效性在其生命周期中都至关重要。然而,现有用于评估神经反编译模型的技术存在显著弱点,尤其是在证明神经反编译器预测的正确性方面。为解决这一问题,我们提出 codealign,这是一种专为神经反编译器设计的新型指令级代码等价性技术。我们对等价指令之间的关系给出形式化定义,并将其称为等价对齐。我们展示 codealign 如何生成等价对齐,随后通过与符号执行进行比较来评估 codealign。最后,我们表明 codealign 提供的信息——函数的哪些部分是等价的,以及变量名匹配程度如何——比现有最先进评估指标所报告的用于衡量相似性的无单位数值要详细得多。
英文摘要:
Neural decompilers are machine learning models that reconstruct the source code from an executable program. Critical to the lifecycle of any machine learning model is an evaluation of its effectiveness. However, existing techniques for evaluating neural decompilation models have substantial weaknesses, especially when it comes to showing the correctness of the neural decompiler's predictions. To address this, we introduce codealign, a novel instruction-level code equivalence technique designed for neural decompilers. We provide a formal definition of a relation between equivalent instructions, which we term an equivalence alignment. We show how codealign generates equivalence alignments, then evaluate codealign by comparing it with symbolic execution. Finally, we show how the information codealign provides-which parts of the functions are equivalent and how well the variable names match-is substantially more detailed than existing state-of-the-art evaluation metrics, which report unitless numbers measuring similarity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。