Study of Distractors in Neural Models of Code
Preprint
Abstract
Finding important features that contribute to the prediction of neural models is an active area of research in explainable AI. Neural models are opaque and finding such features sheds light on a better understanding of their predictions. In contrast, in this work, we present an inverse perspective of distractor features: features that cast doubt about the prediction by affecting the model's confidence in its prediction. Understanding distractors provide a complementary view of the features' relevance in the predictions of neural models. In this paper, we apply a reduction-based technique to find distractors and provide our preliminary results of their impacts and types. Our experiments across various tasks, models, and datasets of code reveal that the removal of tokens can have a significant impact on the confidence of models in their predictions and the categories of tokens can also play a vital role in the model's confidence. Our study aims to enhance the transparency of models by emphasizing those tokens that significantly influence the confidence of the models.Keywords
All Related Versions
- Version 1, 2023-03-03, ArXiv
- Published version: , 1.
This publication has 18 references indexed in Scilit:
- Toward Transparent AI: A Survey on Interpreting the Inner Structures of Deep Neural Networks2023
- Memorization and generalization in neural code intelligence modelsInformation and Software Technology, 2022
- On the generalizability of Neural Program Models with respect to semantic-preserving program transformationsInformation and Software Technology, 2021
- Explaining Deep Neural Networks and Beyond: A Review of Methods and ApplicationsProceedings of the IEEE, 2021
- Towards demystifying dimensions of source code embeddings2020
- Assessing the Generalizability of Code2vec Token Embeddings2019
- AutoFocus: Interpreting Attention-Based Neural Networks by Code Perturbation2019
- The adverse effects of code duplication in machine learning models of code2019
- code2vec: learning distributed representations of codeProceedings of the ACM on Programming Languages, 2019
- Simplifying and isolating failure-inducing inputIEEE Transactions on Software Engineering, 2002