paper-with-me

홈 › Papers

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

2022-05-04 · Findings (NAACL) 2022 7 · Xin Wang, Yasheng Wang, Yao Wan, Jiawei Wang, Pingyi Zhou, Li Li, Hao Wu, Jin Liu

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. Specifically, we first extract multiple code views using compiler tools, and learn the complementary information among them under a contrastive learning framework. Inspired by the type checking in compilation, we also design a fine-grained type inference objective in the pre-training. Experiments on three downstream tasks over five datasets demonstrate the superiority of CODE-MVP when compared with several state-of-the-art baselines. For example, we achieve 2.4/2.3/1.1 gain in terms of MRR/MAP/Accuracy metrics on natural language code retrieval, code similarity, and code defect detection tasks, respectively.

📄 PDF Abstract BibTeX arXiv:2205.02029

Code (0)

등록된 구현이 없습니다.

Tasks

Contrastive LearningDefect DetectionRepresentation LearningRetrieval

Methods 이 논문이 사용한 방법론

Contrastive Learning 설명 없음

Similar Papers 제목 키워드 기반

CodeSAM: Source Code Representation Learning by Infusing Self-Attention with Multi-Code-View Graphs

2024-11-21 · Alex Mathai, Kranthi Sedamaki, Debeshee Das, Noble Saji Mathews 외

Machine Learning (ML) for software engineering (SE) has gained prominence due to its ability to significantly enhance the performance of various SE applications. This progress is largely attributed to the development of …

Clone DetectionCode SearchRepresentation LearningSmall Language Model

COMEX: A Tool for Generating Customized Source Code Representations

2023-07-10 · Debeshee Das, Noble Saji Mathews, Alex Mathai, Srikanth Tamilselvam 외

Learning effective representations of source code is critical for any Machine Learning for Software Engineering (ML4SE) system. Inspired by natural language processing, large language models (LLMs) like Codex and CodeGen…

Representation Learning

AE2-Nets: Autoencoder in Autoencoder Networks

2019-06-01 · CVPR 2019 6 · Changqing Zhang, Yeqing Liu, Huazhu Fu

Learning on data represented with multiple views (e.g., multiple types of descriptors or modalities) is a rapidly growing direction in machine learning and computer vision. Although effectiveness achieved, most existing …

ClusteringRepresentation Learning

Multi-View Graph Representation for Programming Language Processing: An Investigation into Algorithm Detection

2022-02-25 · Ting Long, Yutong Xie, Xianyu Chen, Weinan Zhang 외

Program representation, which aims at converting program source code into vectors with automatically extracted features, is a fundamental problem in programming language processing (PLP). Recent work tries to represent p…

Graph Neural Network

Neural Face Video Compression using Multiple Views

2022-03-29 · Anna Volokitin, Stefan Brugger, Ali Benlalah, Sebastian Martin 외

Recent advances in deep generative models led to the development of neural face video compression codecs that use an order of magnitude less bandwidth than engineered codecs. These neural codecs reconstruct the current f…

Video Compression