一句话:提出 Robin,通过混合解释器与两个近似器并结合对抗训练和数据增强,为深度学习代码分类器生成更保真、更鲁棒的解释器。
深度学习已广泛用于代码分类,如功能分类、作者归属和漏洞检测,但其黑箱性使分类器预测难以解释,影响实践者信任。现有解释方法既不鲁棒,也难以应对分布外样本。论文提出 Robin,用于为给定的基于深度学习的代码分类器生成鲁棒解释器。其核心是一种混合结构,将解释器与两个近似器结合,并利用对抗训练与数据增强。实验表明,Robin 生成解释器平均在分类器上保真度高 6.11%,在近似器上保真度高 67.22%,鲁棒性为所评估三种现有解释器的 15.87 倍;且受分布外样本影响比 LEMNA 少 47.31%。
Deep learning has been widely used in source code classification tasks, such as code classification according to their functionalities, code authorship attribution, and vulnerability detection. Unfortunately, the black-box nature of deep learning makes it hard to interpret and understand why a classifier (i.e., classification model) makes a particular prediction on a given example. This lack of interpretability (or explainability) might have hindered their adoption by practitioners because it is not clear when they should or should not trust a classifier's prediction. The lack of interpretability has motivated a number of studies in recent years. However, existing methods are neither robust nor able to cope with out-of-distribution examples. In this paper, we propose a novel method to produce Robust interpreters for a given deep learning-based code classifier; the method is dubbed Robin. The key idea behind Robin is a novel hybrid structure combining an interpreter and two approximators, while leveraging the ideas of adversarial training and data augmentation. Experimental results show that on average the interpreter produced by Robin achieves a 6.11% higher fidelity (evaluated on the classifier), 67.22% higher fidelity (evaluated on the approximator), and 15.87x higher robustness than that of the three existing interpreters we evaluated. Moreover, the interpreter is 47.31% less affected by out-of-distribution examples than that of LEMNA.
DOI 原文 · arXiv · PDF(开放获取) · DBLP
@inproceedings{LiZZWLXCJ23,
title = {Robin: A Novel Method to Produce Robust Interpreters for Deep Learning-Based Code Classifiers},
author = {Zhen Li and Ruqian Zhang and Deqing Zou and Ning Wang and Yating Li and Shouhuai Xu and Chen Chen and Hai Jin},
booktitle = {ASE},
year = {2023},
doi = {10.1109/ase56229.2023.00164}
}