Toward a Theory of Causation for Interpreting Neural Code Models
IEEE Transactions on Software Engineering · 2024-05 · 50 (5) · 1215-1243
DOI: 10.1109/tse.2024.3379943 ↗Kurz gefasst
Fachartikel in der Zeitschrift IEEE Transactions on Software Engineering, 2024-05. Verfasst von David Nader Palacio und 5 weiteren Autor:innen. Die Arbeit wurde bisher 16-mal zitiert (Crossref) und nennt 98 Literaturangaben. Gefördert von: NSF.
Abstract (Originalsprache)
Neural Language Models of Code, or Neural Code Models (NCMs), are rapidly progressing from research prototypes to commercial developer tools. As such, understanding the capabilities and limitations of such models is becoming critical. However, the abilities of these models are typically measured using automated metrics that often only reveal a portion of their real-world performance. While, in general, the performance of NCMs appears promising, currently much is unknown about how such models arrive at decisions. To this end, this paper introduces do ${}_{\textbf{code}}$ code , a post hoc interpretability method specific to NCMs that is capable of explaining model predictions. do ${}_{\textbf{code}}$ code is based upon causal inference to enable programming language-oriented explanations. While the theoretical underpinnings of do ${}_{\textbf{code}}$ code are extensible to exploring different model properties, we provide a concrete instantiation that aims to mitigate the impact of spurious correlations by grounding explanations of model behavior in properties of programming languages. To demonstrate the practical benefit of do ${}_{\textbf{code}}$ code , we illustrate the insights that our framework can provide by performing a case study on two popular deep learning architectures and ten NCMs. The results of this case study illustrate that our studied NCMs are sensitive to changes in code syntax. All our NCMs, except for the BERT-like model, statistically learn to predict tokens related to blocks of code ( e.g., brackets, parenthesis, semicolon) with less confounding bias as compared to other programming language constructs. These insights demonstrate the potential of do ${}_{\textbf{code}}$ code as a useful method to detect and facilitate the elimination of confounding bias in NCMs.
Förderung
- NSF
Zitieren
APA
Palacio, D. N., Velasco, A., Cooper, N., Rodriguez, A., Moran, K., & Poshyvanyk, D. (2024). Toward a Theory of Causation for Interpreting Neural Code Models. IEEE Transactions on Software Engineering, 50(5), 1215-1243. https://doi.org/10.1109/tse.2024.3379943
Vancouver
Palacio DN, Velasco A, Cooper N, Rodriguez A, Moran K, Poshyvanyk D. Toward a Theory of Causation for Interpreting Neural Code Models. IEEE Transactions on Software Engineering. 2024;50(5):1215-1243. doi:10.1109/tse.2024.3379943
BibTeX
@article{Palacio2024,
author = {Palacio, David Nader and Velasco, Alejandro and Cooper, Nathan and Rodriguez, Alvaro and Moran, Kevin and Poshyvanyk, Denys},
title = {Toward a Theory of Causation for Interpreting Neural Code Models},
journal = {IEEE Transactions on Software Engineering},
year = {2024},
volume = {50},
number = {5},
pages = {1215--1243},
doi = {10.1109/tse.2024.3379943}
}
EUVIMED