paper-with-me

Papers

SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representation

2021-08-10 · Xin Wang, Yasheng Wang, Fei Mi, Pingyi Zhou, Yao Wan, Xiao Liu, Li Li, Hao Wu, Jin Liu, Xin Jiang

Code representation learning, which aims to encode the semantics of source code into distributed vectors, plays an important role in recent deep-learning-based models for code intelligence. Recently, many pre-trained language models for source code (e.g., CuBERT and CodeBERT) have been proposed to model the context of code and serve as a basis for downstream code intelligence tasks such as code search, code clone detection, and program translation. Current approaches typically consider the source code as a plain sequence of tokens, or inject the structure information (e.g., AST and data-flow) into the sequential model pre-training. To further explore the properties of programming languages, this paper proposes SynCoBERT, a syntax-guided multi-modal contrastive pre-training approach for better code representations. Specially, we design two novel pre-training objectives originating from the symbolic and syntactic properties of source code, i.e., Identifier Prediction (IP) and AST Edge Prediction (TEP), which are designed to predict identifiers, and edges between two nodes of AST, respectively. Meanwhile, to exploit the complementary information in semantically equivalent modalities (i.e., code, comment, AST) of the code, we propose a multi-modal contrastive learning strategy to maximize the mutual information among different modalities. Extensive experiments on four downstream tasks related to code intelligence show that SynCoBERT advances the state-of-the-art with the same pre-training corpus and model size.

📄 PDF Abstract BibTeX arXiv:2108.04556

Code (0)

등록된 구현이 없습니다.

Tasks

Clone DetectionCode SearchCode TranslationContrastive LearningLanguage ModellingRepresentation LearningType prediction

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Contrastive Learning 설명 없음
CuBERT CuBERT, or Code Understanding BERT, is a BERT based model for code understanding. In order to achieve this, the authors curate a…
Weight Decay 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Syntax-guided Contrastive Learning for Pre-trained Language Model

2022-05-01 · Findings (ACL) 2022 5 · Shuai Zhang, Wang Lijie, Xinyan Xiao, Hua Wu

Syntactic information has been proved to be useful for transformer-based pre-trained language models. Previous studies often rely on additional syntax-guided attention components to enhance the transformer, which require…

Contrastive LearningGrammatical Error DetectionLanguage ModelingLanguage Modelling

Structures Meet Semantics: Multimodal Fusion via Graph Contrastive Learning

2025-08-24 · Jiangfeng Sun, Sihao He, Zhonghong Ou, Meina Song arxiv

Multimodal sentiment analysis (MSA) aims to infer emotional states by effectively integrating textual, acoustic, and visual modalities. Despite notable progress, existing multimodal fusion methods often neglect modality-…

Multimodal Sentiment AnalysisContrastive Learning

Explainable Multimodal Aspect-Based Sentiment Analysis with Dependency-guided Large Language Model

2026-01-11 · Zhongzheng Wang, Yuanhe Tian, Hongzhi Wang, Yan Song arxiv

Multimodal aspect-based sentiment analysis (MABSA) aims to identify aspect-level sentiments by jointly modeling textual and visual information, which is essential for fine-grained opinion understanding in social media. E…

Sentiment Analysis

Improving Code Translation with Syntax-Guided and Semantic-aware Preference Optimization

2026-05-13 · Yuhan Wu, Huan Zhang, Wei Cheng, Chen Shen 외 arxiv

LLMs have shown immense potential for code translation, yet they often struggle to ensure both syntactic correctness and semantic consistency. While preference-based learning offers a promising alignment strategy, it is …

Contrastive LearningCode Translation

Language-guided Medical Image Segmentation with Target-informed Multi-level Contrastive Alignments

2024-12-18 · Mingjian Li, Mingyuan Meng, Shuchang Ye, David Dagan Feng 외

Medical image segmentation is crucial in modern medical image analysis, which can aid into diagnosis of various disease conditions. Recently, language-guided segmentation methods have shown promising results in automatin…

Image SegmentationMedical Image AnalysisMedical Image SegmentationRepresentation Learning+2