Universal Representation for Code
Not on the map. Why?
Abstract (arXiv)
Learning from source code usually requires a large amount of labeled data. Despite the possible scarcity of labeled data, the trained model is highly task-specific and lacks transferability to different tasks. In this work, we present effective pre-training strategies on top of a novel graph-based code representation, to produce universal representations for code. Specifically, our graph-based representation captures important semantics between code elements (e.g., control flow and data flow). We pre-train graph neural networks on the representation to extract universal code properties. The pre-trained model then enables the possibility of fine-tuning to support various downstream applications. We evaluate our model on two real-world datasets -- spanning over 30M Java methods and 770K Python methods. Through visualization, we reveal discriminative properties in our universal code representation. By comparing multiple benchmarks, we demonstrate that the proposed framework achieves state-of-the-art results on method name prediction and code graph link prediction.
Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Builds on 16 of its 25 references that are in the map. First posted on arXiv 4 Mar 2021.
Builds on
16 of 25 references.
References · 16
- 2014Adam: A Method for Stochastic Optimizationcited by 37,093
- 2019A Comprehensive Survey on Graph Neural Networkscited by 2,911
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,157
- 2017Modeling Relational Data with Graph Convolutional Networkscited by 1,689
- 2016Enriching Word Vectors with Subword Informationcited by 1,581
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,304
- 2019Strategies for Pre-training Graph Neural Networkscited by 965
- 2014Embedding Entities and Relations for Learning and Inference in Knowledge Basescited by 930
- 2017A Survey on Multi-Task Learningcited by 840
- 2015Gated Graph Sequence Neural Networkscited by 794
- 2020IntelliCode Compose: Code Generation Using Transformercited by 227
- 2017Learning to Represent Programs with Graphscited by 220
4 more
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
- 2020Self-supervised Learning on Graphs: Deep Insights and New Directioncited by 108
- 2019When Deep Learning Met Code Searchcited by 46
- 2020PanRep: Graph neural networks for extracting universal node embeddings in heterogeneous graphscited by 2
Built on by
Citing papers per year: 2025: 1.
1 paper.