Exploring Neural Dynamics in Source Code Processing Domain
-
Published:2023-04-21
Issue:4
Volume:14
Page:251
-
ISSN:2078-2489
-
Container-title:Information
-
language:en
-
Short-container-title:Information
Author:
Saletta Martina12ORCID, Ferretti Claudio2ORCID
Affiliation:
1. Department of Engineering and Architecture, University of Trieste, 34127 Trieste, Italy 2. Department of Informatics, Systems and Communication, University of Milano-Bicocca, 20126 Milan, Italy
Abstract
Deep neural networks have proven to be able to learn rich internal representations, including for features that can also be used for different purposes than those the networks are originally developed for. In this paper, we are interested in exploring such ability and, to this aim, we propose a novel approach for investigating the internal behavior of networks trained for source code processing tasks. Using a simple autoencoder trained in the reconstruction of vectors representing programs (i.e., program embeddings), we first analyze the performance of the internal neurons in classifying programs according to different labeling policies inspired by real programming issues, showing that some neurons can actually detect different program properties. We then study the dynamics of the network from an information-theoretic standpoint, namely by considering the neurons as signaling systems and by computing the corresponding entropy. Further, we define a way to distinguish neurons according to their behavior, to consider them as formally associated with different abstract concepts, and through the application of nonparametric statistical tests to pairs of neurons, we look for neurons with unique (or almost unique) associated concepts, showing that the entropy value of a neuron is related to the rareness of its concept. Finally, we discuss how the proposed approaches for ranking the neurons can be generalized to different domains and applied to more sophisticated and specialized networks so as to help the research in the growing field of explainable artificial intelligence.
Subject
Information Systems
Reference36 articles.
1. Erhan, D., Courville, A., Bengio, Y., and Vincent, P. (2010, January 13–15). Why does unsupervised pre-training help deep learning?. Proceedings of the 13th International Conference on Artificial Intelligence and Statistics, JMLR Workshop and Conference Proceedings, Sardinia, Italy. 2. A comprehensive survey on transfer learning;Zhuang;Proc. IEEE,2020 3. Gilpin, L.H., Bau, D., Yuan, B.Z., Bajwa, A., Specter, M., and Kagal, L. (2018, January 1–3). Explaining explanations: An overview of interpretability of machine learning. Proceedings of the IEEE 5th International Conference on data science and advanced analytics (DSAA), Turin, Italy. 4. Le, Q.V., Ranzato, M., Monga, R., Devin, M., Corrado, G., Chen, K., Dean, J., and Ng, A.Y. (July, January 26). Building high-level features using large scale unsupervised learning. Proceedings of the 29th International Conference on Machine Learning, ICML, PMLR, Edinburgh, Scotland. 5. Dalvi, F., Durrani, N., Sajjad, H., Belinkov, Y., Bau, A., and Glass, J.R. (February, January 27). What Is One Grain of Sand in the Desert? Analyzing Individual Neurons in Deep NLP Models. Proceedings of the 33rd AAAI Conference on Artificial Intelligence, Honolulu, HI, USA.
|
|