TreeBERT: A Tree-Based Pre-Trained Model for Programming Language
원문 초록
Source code can be parsed into the abstract syntax tree (AST) based on defined syntax rules. However, in pre-training, little work has considered the incorporation of tree structure into the learning process. In this paper, we present TreeBERT, a tree-based pre-trained model for improving programming language-oriented generation tasks. To utilize tree structure, TreeBERT represents the AST corresponding to the code as a set of composition paths and introduces node position embedding. The model is trained by tree masked language modeling (TMLM) and node order prediction (NOP) with a hybrid objective. TMLM uses a novel masking strategy designed according to the tree's characteristics to help the model understand the AST and infer the missing semantics of the AST. With NOP, TreeBERT extracts the syntactical structure by learning the order constraints of nodes in AST. We pre-trained TreeBERT on datasets covering multiple programming languages. On code summarization and code documentation tasks, TreeBERT outperforms other pre-trained models and state-of-the-art models designed for these tasks. Furthermore, TreeBERT performs well when transferred to the pre-trained unseen programming language.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
BMFM-RNA: An Open Framework for Building and Evaluating Transcriptomic Foundation Models
Diffusion Sequence Models for Enhanced Protein Representation and Generation
Masked Language Models are Good Heterogeneous Graph Generalizers
GigaAM: Efficient Self-Supervised Learner for Speech Recognition
GeoRecon: Graph-Level Representation Learning for 3D Molecules via Reconstruction-Based Pretraining
Improving Low-Resource Morphological Inflection via Self-Supervised Objectives
토론
이 논문과 연결된 포럼 글이 아직 없습니다.