A Literature Study of Embeddings on Source Code
Not on the map. Why?
Abstract (arXiv)
Natural language processing has improved tremendously after the success of word embedding techniques such as word2vec. Recently, the same idea has been applied on source code with encouraging results. In this survey, we aim to collect and discuss the usage of word embedding techniques on programs and source code. The articles in this survey have been collected by asking authors of related work and with an extensive search on Google Scholar. Each article is categorized into five categories: 1. embedding of tokens 2. embedding of functions or methods 3. embedding of sequences or sets of method calls 4. embedding of binary code 5. other embeddings. We also provide links to experimental data and show some remarkable visualization of code embeddings. In summary, word embedding has been successfully applied on different granularities of source code. With access to countless open-source repositories, we see a great potential of applying other data-driven natural language processing techniques on source code in the future.
Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). First posted on arXiv 5 Apr 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 6; 2023: 5; 2024: 2; 2025: 1; 2026: 1.
18 papers.
Sort:
By area:
- 2021VarCLR: Variable Semantic Representation Pre-training via Contrastive Learningcited by 11
- 2022Syntax-Guided Program Reduction for Understanding Neural Code Intelligence Modelscited by 7
- 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Taskscited by 5
- 2021Code2Snapshot: Using Code Snapshots for Learning Representations of Source Codecited by 4
- 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
- 2023TransformCode: A Contrastive Learning Framework for Code Embedding via Subtree Transformationcited by 4
- 2025Functional Consistency of LLM Code Embeddings: A Self-Evolving Data Synthesis Framework for Benchmarkingcited by 4
- 2021Unsupervised Learning of General-Purpose Embeddings for Code Changescited by 3
- 2022Test2Vec: An Execution Trace Embedding for Test Case Prioritizationcited by 3
- 2023PERFOGRAPH: A Numerical Aware Program Graph Representation for Performance Optimization and Program Analysiscited by 3
- 2022LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognitioncited by 1
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Codecited by 1
6 more
- 2023Identification of the Relevance of Comments in Codes Using Bag of Words and Transformer Based Modelscited by 1
- 2022Extracting Label-specific Key Input Features for Neural Code Intelligence Modelscited by 0
- 2022MQDD: Pre-training of Multimodal Question Duplicity Detection for Software Engineering Domaincited by 0
- 2023Test Case Recommendations with Distributed Representation of Code Syntactic Featurescited by 0
- 2024Multi-modal Learning for WebAssembly Reverse Engineeringcited by 0
- 2026Type-IV Code Clone Detection via Layer-Wise Non-Contrastive Representation Learningcited by 0
- 2026Type-IV Code Clone Detection via Layer-Wise Non-Contrastive Representation Learning15 Sep 2026
- 2025Functional Consistency of LLM Code Embeddings: A Self-Evolving Data Synthesis Framework for Benchmarking27 Aug 2025
- 2024Multi-modal Learning for WebAssembly Reverse Engineering4 Apr 2024
- 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Tasks15 Mar 2024
- 2023TransformCode: A Contrastive Learning Framework for Code Embedding via Subtree Transformation10 Nov 2023
- 2023Test Case Recommendations with Distributed Representation of Code Syntactic Features4 Oct 2023
- 2023Identification of the Relevance of Comments in Codes Using Bag of Words and Transformer Based Models11 Aug 2023
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Code5 Jul 2023
- 2023PERFOGRAPH: A Numerical Aware Program Graph Representation for Performance Optimization and Program Analysis31 May 2023
- 2022Test2Vec: An Execution Trace Embedding for Test Case Prioritization28 Jun 2022
- 2022Syntax-Guided Program Reduction for Understanding Neural Code Intelligence Models28 May 2022
- 2022A Survey of Deep Learning Models for Structural Code Understanding3 May 2022
6 more
- 2022LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognition5 Apr 2022
- 2022MQDD: Pre-training of Multimodal Question Duplicity Detection for Software Engineering Domain26 Mar 2022
- 2022Extracting Label-specific Key Input Features for Neural Code Intelligence Models14 Feb 2022
- 2021VarCLR: Variable Semantic Representation Pre-training via Contrastive Learning5 Dec 2021
- 2021Code2Snapshot: Using Code Snapshots for Learning Representations of Source Code1 Nov 2021
- 2021Unsupervised Learning of General-Purpose Embeddings for Code Changes3 Jun 2021
- 2021VarCLR: Variable Semantic Representation Pre-training via Contrastive Learningcited by 11
- 2022Syntax-Guided Program Reduction for Understanding Neural Code Intelligence Modelscited by 7
- 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Taskscited by 5
- 2021Code2Snapshot: Using Code Snapshots for Learning Representations of Source Codecited by 4
- 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
- 2023TransformCode: A Contrastive Learning Framework for Code Embedding via Subtree Transformationcited by 4
- 2021Unsupervised Learning of General-Purpose Embeddings for Code Changescited by 3
- 2022Test2Vec: An Execution Trace Embedding for Test Case Prioritizationcited by 3
- 2023PERFOGRAPH: A Numerical Aware Program Graph Representation for Performance Optimization and Program Analysiscited by 3
- 2022LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognitioncited by 1
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Codecited by 1
- 2023Identification of the Relevance of Comments in Codes Using Bag of Words and Transformer Based Modelscited by 1
12 most cited of 17 All 17 (JSON)
- 2026Type-IV Code Clone Detection via Layer-Wise Non-Contrastive Representation Learning15 Sep 2026
- 2024Multi-modal Learning for WebAssembly Reverse Engineering4 Apr 2024
- 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Tasks15 Mar 2024
- 2023TransformCode: A Contrastive Learning Framework for Code Embedding via Subtree Transformation10 Nov 2023
- 2023Test Case Recommendations with Distributed Representation of Code Syntactic Features4 Oct 2023
- 2023Identification of the Relevance of Comments in Codes Using Bag of Words and Transformer Based Models11 Aug 2023
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Code5 Jul 2023
- 2023PERFOGRAPH: A Numerical Aware Program Graph Representation for Performance Optimization and Program Analysis31 May 2023
- 2022Test2Vec: An Execution Trace Embedding for Test Case Prioritization28 Jun 2022
- 2022Syntax-Guided Program Reduction for Understanding Neural Code Intelligence Models28 May 2022
- 2022A Survey of Deep Learning Models for Structural Code Understanding3 May 2022
- 2022LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognition5 Apr 2022
12 newest of 17 All 17 (JSON)