2022

CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Training

Wang, Xin, Wang, Yasheng, Wan, Yao et al.

Understand

Recent years have witnessed increasing interest in code representation learning, which aims to represent the semantics of source code into distributed vectors.

  • Currently, various works have been proposed to represent the complex semantics of source code from different views, including plain text, Abstract Syntax Tree (AST), and several kinds of code graphs (e.g., Control/Data Flow Graph).
  • However, most of them only consider a single view of source code independently, ignoring the correspondences among different views.
  • In this paper, we propose to integrate different views with the natural-language description of source code into a unified framework with Multi-View contrastive Pre-training, and name our model as CODE-MVP.

Reading the bibliography…