Towards Demystifying Dimensions of Source Code Embeddings
원문 초록
Source code representations are key in applying machine learning techniques for processing and analyzing programs. A popular approach in representing source code is neural source code embeddings that represents programs with high-dimensional vectors computed by training deep neural networks on a large volume of programs. Although successful, there is little known about the contents of these vectors and their characteristics. In this paper, we present our preliminary results towards better understanding the contents of code2vec neural source code embeddings. In particular, in a small case study, we use the code2vec embeddings to create binary SVM classifiers and compare their performance with the handcrafted features. Our results suggest that the handcrafted features can perform very close to the highly-dimensional code2vec embeddings, and the information gains are more evenly distributed in the code2vec embeddings compared to the handcrafted features. We also find that the code2vec embeddings are more resilient to the removal of dimensions with low information gains than the handcrafted features. We hope our results serve a stepping stone toward principled analysis and evaluation of these code representations.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
WRDScore: New Metric for Evaluation of Natural Language Generation Models
Studying Vulnerable Code Entities in R
TransformCode: A Contrastive Learning Framework for Code Embedding via Subtree Transformation
Assessing Project-Level Fine-Tuning of ML4SE Models
Syntax-Guided Program Reduction for Understanding Neural Code Intelligence Models
Extracting Label-specific Key Input Features for Neural Code Intelligence Models
토론
이 논문과 연결된 포럼 글이 아직 없습니다.