paper-with-me

홈 › Papers

WheaCha: A Method for Explaining the Predictions of Models of Code

2021-02-09 · Yu Wang, Ke Wang, Linzhang Wang

Attribution methods have emerged as a popular approach to interpreting model predictions based on the relevance of input features. Although the feature importance ranking can provide insights of how models arrive at a prediction from a raw input, they do not give a clear-cut definition of the key features models use for the prediction. In this paper, we present a new method, called WheaCha, for explaining the predictions of code models. Although WheaCha employs the same mechanism of tracing model predictions back to the input features, it differs from all existing attribution methods in crucial ways. Specifically, WheaCha divides an input program into "wheat" (i.e., the defining features that are the reason for which models predict the label that they predict) and the rest "chaff" for any prediction of a learned code model. We realize WheaCha in a tool, HuoYan, and use it to explain four prominent code models: code2vec, seq-GNN, GGNN, and CodeBERT. Results show (1) HuoYan is efficient - taking on average under twenty seconds to compute the wheat for an input program in an end-to-end fashion (i.e., including model prediction time); (2) the wheat that all models use to predict input programs is made of simple syntactic or even lexical properties (i.e., identifier names); (3) Based on wheat, we present a novel approach to explaining the predictions of code models through the lens of training data.

📄 PDF Abstract BibTeX arXiv:2102.04625

Code (0)

등록된 구현이 없습니다.

Tasks

BIG-bench Machine LearningCode SummarizationFeature ImportanceImage ClassificationPredictionSource Code Summarization

Similar Papers 제목 키워드 기반

Evaluating and Explaining Large Language Models for Code Using Syntactic Structures

2023-08-07 · David N Palacio, Alejandro Velasco, Daniel Rodriguez-Cardenas, Kevin Moran 외

Large Language Models (LLMs) for code are a family of high-parameter, transformer-based neural networks pre-trained on massive datasets of both natural and programming languages. These models are rapidly being employed i…

Towards Few-shot Self-explaining Graph Neural Networks

2024-08-14 · Jingyu Peng, Qi Liu, Linan Yue, Zaixi Zhang 외

Recent advancements in Graph Neural Networks (GNNs) have spurred an upsurge of research dedicated to enhancing the explainability of GNNs, particularly in critical domains such as medicine. A promising approach is the se…

Towards Visually Explaining Variational Autoencoders

2019-11-18 · CVPR 2020 6 · Wenqian Liu, Runze Li, Meng Zheng, Srikrishna Karanam 외

Recent advances in Convolutional Neural Network (CNN) model interpretability have led to impressive progress in visualizing and understanding model predictions. In particular, gradient-based visual attention methods have…

Disentanglement

Explaining Predictions of Non-Linear Classifiers in NLP

2016-06-23 · WS 2016 8 · Leila Arras, Franziska Horn, Grégoire Montavon, Klaus-Robert Müller 외

Layer-wise relevance propagation (LRP) is a recently proposed technique for explaining predictions of complex non-linear classifiers in terms of input variables. In this paper, we apply LRP for the first time to natural …

General Classificationimage-classificationImage Classification

Explaining Away Attacks Against Neural Networks

2020-03-06 · Sean Saito, Jin Wang

We investigate the problem of identifying adversarial attacks on image-based neural networks. We present intriguing experimental results showing significant discrepancies between the explanations generated for the predic…