paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Robin: A Novel Method to Produce Robust Interpreters for Deep Learning-Based Code Classifiers

Robin:一种为基于深度学习的代码分类器生成鲁棒解释器的新方法
ASE 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE)2023匹配度 2/10 · 论文研究深度学习代码分类器的可解释性与鲁棒解释器,属于机器学习与程序语言的宽泛交叉,但未涉及用户核心关注的静态分析、Agentic/LLM 程序、浮点程序分析或贝叶斯程序分析,也未利用 LLM/Agent 改进分析验证。因此仅与‘ML+PL’标签有边缘关联,匹配度低。引用 1 inbox
Zhen Li, Ruqian Zhang, Deqing Zou, Ning Wang, Yating Li, Shouhuai Xu, Chen Chen, Hai Jin
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 Robin,通过混合解释器与两个近似器并结合对抗训练和数据增强,为深度学习代码分类器生成更保真、更鲁棒的解释器。

深度学习已广泛用于代码分类,如功能分类、作者归属和漏洞检测,但其黑箱性使分类器预测难以解释,影响实践者信任。现有解释方法既不鲁棒,也难以应对分布外样本。论文提出 Robin,用于为给定的基于深度学习的代码分类器生成鲁棒解释器。其核心是一种混合结构,将解释器与两个近似器结合,并利用对抗训练与数据增强。实验表明,Robin 生成解释器平均在分类器上保真度高 6.11%,在近似器上保真度高 67.22%,鲁棒性为所评估三种现有解释器的 15.87 倍;且受分布外样本影响比 LEMNA 少 47.31%。

问题
深度学习代码分类器的黑箱性导致其预测难以解释,而现有解释方法既不鲁棒,也难以处理分布外样本。
方法
提出 Robin,采用解释器与两个近似器相结合的混合结构,并引入对抗训练和数据增强来生成鲁棒解释器。
评估
与三种已有解释器比较,评估保真度、鲁棒性以及受分布外样本影响的程度,并报告各项提升幅度。
原文摘要(Abstract)

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

BibTeX
@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}
}