Mining Program Properties From Neural Networks Trained on Source Code Embeddings
Martina Saletta, Claudio Ferretti

TL;DR
This paper introduces a method to analyze neural networks trained on source code to automatically identify program features and properties, aiding in understanding and potentially simplifying software development tasks.
Contribution
It presents a novel approach for mining program features from neural network internal representations trained on source code embeddings, including new neuron ranking methods.
Findings
Some neurons can detect specific program properties
Program representation affects classification performance
Proposed neuron ranking methods identify informative neurons
Abstract
In this paper, we propose a novel approach for mining different program features by analysing the internal behaviour of a deep neural network trained on source code. Using an unlabelled dataset of Java programs and three different embedding strategies for the methods in the dataset, we train an autoencoder for each program embedding and then we test the emerging ability of the internal neurons in autonomously building internal representations for different program features. We defined three binary classification labelling policies inspired by real programming issues, so to test the performance of each neuron in classifying programs accordingly to these classification rules, showing that some neurons can actually detect different program properties. We also analyse how the program representation chosen as input affects the performance on the aforementioned tasks. On the other hand, we…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Reliability and Analysis Research · Software Testing and Debugging Techniques
MethodsSolana Customer Service Number +1-833-534-1729
