Understanding neural code intelligence through program simplification
Md. Rafiqul Islam Rabin, Vincent J. Hellendoorn, Mohammad Amin Alipour
摘要
A wide range of code intelligence (CI) tools, powered by deep neural networks, have been developed recently to improve programming productivity and perform program analysis. To reliably use such tools, developers often need to reason about the behavior of the underlying models and the factors that affect them. This is especially challenging for tools backed by deep neural networks. Various methods have tried to reduce this opacity in the vein of "transparent/interpretable-AI". However, these approaches are often specific to a particular set of network architectures, even requiring access to the network's parameters. This makes them difficult to use for the average programmer, which hinders the reliable adoption of neural CI systems. In this paper, we propose a simple, model-agnostic approach to identify critical input features for models in CI systems, by drawing on software debugging research, specifically delta debugging. Our approach, SIVAND, uses simplification techniques that reduce the size of input programs of a CI model while preserving the predictions of the model. We show that this approach yields remarkably small outputs and is broadly applicable across many model architectures and problem domains. We find that the models in our experiments often rely heavily on just a few syntactic features in input programs. We believe that SIVAND's extracted features may help understand neural CI systems' predictions and learned behavior.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 15 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Bugs in Quantum computing platforms: an empirical study 引用了 Global Relational Models of Source Code
- Bugs in Quantum computing platforms: an empirical study 引用了 Learning and Evaluating Contextual Embedding of Source Code
- CCTEST: Testing and Repairing Code Completion Systems 引用了 Diet code is healthy: simplifying programs for pre-trained models of code
- CCTEST: Testing and Repairing Code Completion Systems 引用了 Probing model signal-awareness via prediction-preserving input minimization
- CCTEST: Testing and Repairing Code Completion Systems 引用了 Adversarial Robustness for Code
- Diet code is healthy: simplifying programs for pre-trained models of code 引用了 Probing model signal-awareness via prediction-preserving input minimization
- Coca: Improving and Explaining Graph Neural Network-Based Vulnerability Detection Systems 引用了 Probing model signal-awareness via prediction-preserving input minimization
- Coca: Improving and Explaining Graph Neural Network-Based Vulnerability Detection Systems 引用了 Adversarial Robustness for Code
- Probing model signal-awareness via prediction-preserving input minimization 引用了 Towards Evaluating the Robustness of Neural Networks
- Learning and Evaluating Contextual Embedding of Source Code 引用了 Global Relational Models of Source Code
引用它的顶会 Paper15
- Bugs in Quantum computing platforms: an empirical studyMatteo Paltenghi, Michael PradelOOPSLA 2022 · 70 次引用
- CCTEST: Testing and Repairing Code Completion SystemsZongjie Li, Chaozheng Wang, Zhibo Liu, Haoxuan Wang 等ICSE 2023 · 49 次引用
- Diet code is healthy: simplifying programs for pre-trained models of codeZhaowei Zhang, Hongyu Zhang, Beijun Shen, Xiaodong GuFSE 2022 · 39 次引用
- Probing model signal-awareness via prediction-preserving input minimizationSahil Suneja, Yunhui Zheng, Yufan Zhuang, Jim Alain Laredo 等FSE 2021 · 29 次引用
- Coca: Improving and Explaining Graph Neural Network-Based Vulnerability Detection SystemsSicong Cao, Xiaobing Sun, Xiaoxue Wu, David Lo 等ICSE 2024 · 27 次引用
它引用的 Paper6
- Towards Evaluating the Robustness of Neural NetworksNicholas Carlini, David A. WagnerS&P 2017 · 9,786 次引用
- Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and EntailmentDi Jin, Zhijing Jin, Joey Tianyi Zhou, Peter SzolovitsAAAI 2020 · 1,333 次引用
- Learning and Evaluating Contextual Embedding of Source CodeAditya Kanade, Petros Maniatis, Gogul Balakrishnan, Kensen ShiICML 2020 · 438 次引用
- Global Relational Models of Source CodeVincent J. Hellendoorn, Charles Sutton, Rishabh Singh, Petros Maniatis 等ICLR 2020 · 252 次引用
- Adversarial Robustness for CodePavol Bielik, Martin T. VechevICML 2020 · 101 次引用
相关 Paper
- DeciX: Explain Deep Learning Based Code Generation ApplicationsSimin Chen, Zexin Li, Wei Yang, Cong LiuFSE 2024 · 1 次引用
- Leveraging Sparse Linear Layers for Debuggable Deep NetworksEric Wong, Shibani Santurkar, Aleksander MadryICML 2021 · 101 次引用
- Natural Is the Best: Model-Agnostic Code Simplification for Pre-trained Large Language ModelsYan Wang, Xiaoning Li, Tien N. Nguyen, Shaohua Wang 等FSE 2024 · 6 次引用
- An Explanation Method for Models of CodeYu Wang, Ke Wang, Linzhang WangOOPSLA 2023 · 2 次引用
- Dynamic slicing for deep neural networksZiqi Zhang, Yuanchun Li, Yao Guo, Xiangqun Chen 等FSE 2020 · 34 次引用
