MMM
YYYY
CLSEBERT: Contrastive Learning for Syntax Enhanced Code Pre-Trained Model
CLSEBERT:语法增强代码预训练模型的对比学习
CLSEBERT:構文拡張コードの事前トレーニング済みモデルの対照学習
CLSEBERT: 구문 강화 코드 사전 훈련 모델을 위한 대조 학습
CLSEBERT: Aprendizaje contrastivo para el modelo preentrenado de código mejorado de sintaxis
CLSEBERT : modèle pré-entraîné d'apprentissage contrastif pour le code amélioré de syntaxe
CLSEBERT: сравнительное обучение для предварительно обученной модели кода с расширенным синтаксисом
Xin Wang ¹, Yasheng Wang ², Pingyi Zhou ², Meng Xiao ², Yadao Wang ², Li Li ³, Xiao Liu ⁴, Hao Wu 武浩 ⁵, Jin Liu 刘进 ¹, Xin Jiang ²
¹ School of Computer Science, Wuhan University 武汉大学 计算机学院
² Noah's Ark Lab, Huawei 华为 诺亚方舟实验室
³ Faculty of Information Technology, Monash University
⁴ School of Information Technology, Deakin University
⁵ School of Information Science and Engineering, Yunnan University 云南大学 信息学院
arXiv, 10 August 2021
Abstract

Pre-trained models for programming languages have proven their significant values in various code-related tasks, such as code search, code clone detection, and code translation. Currently, most pre-trained models treat a code snippet as a sequence of tokens or only focus on the data flow between code identifiers.

However, rich code syntax and hierarchy are ignored which can provide important structure information and semantic rules of codes to help enhance code representations. In addition, although the BERT-based code pre-trained models achieve high performance on many downstream tasks, the native derived sequence representations of BERT are proven to be of low-quality, it performs poorly on code matching and similarity tasks.

To address these problems, we propose CLSEBERT, a Constrastive Learning Framework for Syntax Enhanced Code Pre-Trained Model, to deal with various code intelligence tasks. In the pre-training stage, we consider the code syntax and hierarchy contained in the Abstract Syntax Tree (AST) and leverage the constrastive learning to learn noise-invariant code representations. Besides the masked language modeling (MLM), we also introduce two novel pre-training objectives. One is to predict the edges between nodes in the abstract syntax tree, and the other is to predict the types of code tokens. Through extensive experiments on four code intelligence tasks, we successfully show the effectiveness of our proposed model.
arXiv_1
arXiv_2
arXiv_3
arXiv_4
Reviews and Discussions
https://www.hotpaper.io/index.html
High-resolution tumor marker detection based on microwave photonics demodulated dual wavelength fiber laser sensor
High performance laser induced plasma assisted ablation by GHz burst mode femtosecond pulses
Sequential harmonic spin–orbit angular momentum generation in nonlinear optical crystals
Advanced biological imaging techniques based on metasurfaces
Orthogonal matrix of polarization combinations: concept and application to multichannel holographic recording
High-precision multi-focus laser sculpting of microstructured glass
Multi-physical field null medium: new solutions for the simultaneous control of EM waves and heat flow
Adaptive decentralized AI scheme for signal recognition of distributed sensor systems
Data-driven polarimetric approaches fuel computational imaging expansion
An externally perceivable smart leaky-wave antenna based on spoof surface plasmon polaritons
The possibilities of using a mixture of PDMS and phosphor in a wide range of industry applications
Agile cavity ringdown spectroscopy enabled by moderate optical feedback to a quantum cascade laser



Previous Article                                Next Article
About
|
Contact
|
Copyright © Hot Paper