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

用于理解神经代码智能模型的语法引导程序约简

Syntax-Guided Program Reduction for Understanding Neural Code Intelligence Models

University of Houston(休斯顿大学)

Md Rafiqul Islam Rabin, Aftab Hussain, Mohammad Amin Alipour

摘要:

神经代码智能(CI)模型是不透明的黑盒子,对它们在预测中使用的功能几乎没有提供任何见解。这种不透明性可能会导致对它们的预测的不信任,并阻碍它们在安全关键应用中的广泛采用。最近,输入程序缩减技术已被提出来识别输入程序中的关键特征,以提高CI模型的透明度。然而,这种方法是语法未知的,并且不考虑程序设计语言的语法。在本文中,我们采用语法指导的程序减少技术,认为在减少输入程序的语法。我们在不同类型的输入程序上的多个模型上的实验表明,语法引导的程序缩减技术更快,并且在缩减的程序中提供更小的关键标记集。我们还表明,关键令牌可以用于生成高达65%的输入程序的对抗性示例。

英文摘要:

Neural code intelligence (CI) models are opaque black-boxes and offer little insight on the features they use in making predictions. This opacity may lead to distrust in their prediction and hamper their wider adoption in safety-critical applications. Recently, input program reduction techniques have been proposed to identify key features in the input programs to improve the transparency of CI models. However, this approach is syntax-unaware and does not consider the grammar of the programming language. In this paper, we apply a syntax-guided program reduction technique that considers the grammar of the input programs during reduction. Our experiments on multiple models across different types of input programs show that the syntax-guided program reduction technique is faster and provides smaller sets of key tokens in reduced programs. We also show that the key tokens could be used in generating adversarial examples for up to 65% of the input programs.

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

↑