mlsanityData to 7 Oct 2026

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

arXiv 2108.04556 ↗First posted 10 Aug 2021cs.CL cs.AI cs.PLcited by 63

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 63 papers in the map (data through 7 Oct 2026). Builds on 39 of its 49 references that are in the map. First posted on arXiv 10 Aug 2021.

Builds on

39 of 49 references.

References · 39

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  5. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  6. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  7. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  8. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  9. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  10. 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
  11. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  12. 2014Convolutional Neural Networks for Sentence Classificationcited by 1,124
27 more
  1. 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
  2. 2019Self-Supervised Learning of Pretext-Invariant Representationscited by 806
  3. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  4. 2020Contrastive Multi-View Representation Learning on Graphscited by 651
  5. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  6. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  7. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  8. 2019On Mutual Information Maximization for Representation Learningcited by 315
  9. 2015Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networkscited by 305
  10. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  11. 2018code2vec: Learning Distributed Representations of Codecited by 249
  12. 2020DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representationscited by 249
  13. 2021ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfercited by 231
  14. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  15. 2020CLEAR: Contrastive Learning for Sentence Representationcited by 186
  16. 2020CERT: Contrastive Self-supervised Learning for Language Understandingcited by 169
  17. 2021Multimodal Contrastive Training for Visual Representation Learningcited by 122
  18. 2018Tree-to-tree Neural Networks for Program Translationcited by 93
  19. 2020On the Sentence Embeddings from Pre-trained Language Modelscited by 83
  20. 2020Contrastive Code Representation Learningcited by 76
  21. 2019Tree Transformer: Integrating Tree Structures into Self-Attentioncited by 68
  22. 2021Language-Agnostic Representation Learning of Source Code from Structure and Contextcited by 63
  23. 2021CoTexT: Multi-task Learning with Code-Text Transformercited by 61
  24. 2020Multi-task Learning based Pre-trained Language Model for Code Completioncited by 58
  25. 2020Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving Transformationscited by 49
  26. 2021TreeBERT: A Tree-Based Pre-Trained Model for Programming Languagecited by 40
  27. 2021On using distributed representations of source code for the detection of C security vulnerabilitiescited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 1; 2022: 18; 2023: 19; 2024: 13; 2025: 6; 2026: 6.

63 papers.

Sort:

By area:

  1. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  2. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  3. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  4. 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
  5. 2023Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generationcited by 49
  6. 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
  7. 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
  8. 2022An Empirical Study of Deep Learning Models for Vulnerability Detectioncited by 44
  9. 2023Code Execution with Pre-trained Language Modelscited by 33
  10. 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
  11. 2022On the Transferability of Pre-trained Language Models for Low-Resource Programming Languagescited by 30
  12. 2024Code Representation Learning At Scalecited by 26
38 more
  1. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  2. 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 21
  3. 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
  4. 2023Multi-target Backdoor Attacks for Code Pre-trained Modelscited by 19
  5. 2024Analyzing the Performance of Large Language Models on Code Summarizationcited by 19
  6. 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 16
  7. 2024Code Needs Comments: Enhancing Code LLMs with Comment Augmentationcited by 16
  8. 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Trainingcited by 15
  9. 2023Rethinking Negative Pairs in Code Searchcited by 14
  10. 2023Understanding Programs by Exploiting (Fuzzing) Test Casescited by 13
  11. 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Searchcited by 12
  12. 2024Uncovering LLM-Generated Code: A Zero-Shot Synthetic Code Detector via Code Rewritingcited by 11
  13. 2024Top Pass: Improve Code Generation by Pass@k-Maximized Code Rankingcited by 9
  14. 2022Exploring Representation-Level Augmentation for Code Searchcited by 8
  15. 2022Soft-Labeled Contrastive Pre-training for Function-level Code Representationcited by 7
  16. 2024Investigating the Efficacy of Large Language Models for Code Clone Detectioncited by 7
  17. 2024GALLa: Graph Aligned Large Language Models for Improved Source Code Understandingcited by 7
  18. 2022CommitBART: A Large Pre-trained Model for GitHub Commitscited by 6
  19. 2022CAT-probing: A Metric-based Approach to Interpret How Pre-trained Models for Programming Language Attend Code Structurecited by 6
  20. 2022MultiCoder: Multi-Programming-Lingual Pre-Training for Low-Resource Code Completioncited by 6
  21. 2024On the Limitations of Embedding Based Methods for Measuring Functional Correctness for Code Generationcited by 6
  22. 2023An Unbiased Transformer Source Code Learning with Semantic Vulnerability Graphcited by 5
  23. 2025Grammar-Based Code Representation: Is It a Worthy Pursuit for LLMs?cited by 5
  24. 2025SPENCER: Self-Adaptive Model Distillation for Efficient Code Retrievalcited by 5
  25. 2021Cascaded Fast and Slow Models for Efficient Semantic Code Searchcited by 4
  26. 2023CCT-Code: Cross-Consistency Training for Multilingual Clone Detection and Code Searchcited by 4
  27. 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Groundingcited by 4
  28. 2022Finding Reusable Machine Learning Components to Build Programming Language Processing Pipelinescited by 3
  29. 2023Neural Machine Translation for Code Generationcited by 3
  30. 2024CSEPrompts: A Benchmark of Introductory Computer Science Promptscited by 3
  31. 2024Towards Better Code Understanding in Decoder-Only Models with Contrastive Learningcited by 3
  32. 2024Code LLMs: A Taxonomy-based Surveycited by 3
  33. 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Surveycited by 3
  34. 2026HogVul: Black-box Adversarial Code Generation Framework Against LM-based Vulnerability Detectorscited by 3
  35. 2026Token Optimization Strategies for LLM-Based Oracle-to-PostgreSQL Migrationcited by 3
  36. 2022Semantic-Preserving Adversarial Code Comprehensioncited by 2
  37. 2022CLAWSAT: Towards Both Robust and Accurate Code Modelscited by 2
  38. 2023Neuro-symbolic Zero-Shot Code Cloning with Cross-Language Intermediate Representationcited by 2

50 most cited of 63 All 63 (JSON)