mlsanityData to 7 Oct 2026

Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving Transformations

arXiv 2009.02731 ↗First posted 6 Sep 2020cs.SE cs.AI cs.LGcited by 49

Not on the map. Why?

Abstract (arXiv)

We propose Corder, a self-supervised contrastive learning framework for source code model. Corder is designed to alleviate the need of labeled data for code retrieval and code summarization tasks. The pre-trained model of Corder can be used in two ways: (1) it can produce vector representation of code which can be applied to code retrieval tasks that do not have labeled data; (2) it can be used in a fine-tuning process for tasks that might still require label data such as code summarization. The key innovation is that we train the source code model by asking it to recognize similar and dissimilar code snippets through a contrastive learning objective. To do so, we use a set of semantic-preserving transformation operators to generate code snippets that are syntactically diverse but semantically equivalent. Through extensive experiments, we have shown that the code models pretrained by Corder substantially outperform the other baselines for code-to-code retrieval, text-to-code retrieval, and code-to-text summarization tasks.

Key facts. Cited by 49 papers in the map (data through 7 Oct 2026). First posted on arXiv 6 Sep 2020.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 4; 2022: 17; 2023: 12; 2024: 4; 2025: 7; 2026: 5.

49 papers.

Sort:

By area:

  1. 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
  2. 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
  3. 2022On the Transferability of Pre-trained Language Models for Low-Resource Programming Languagescited by 30
  4. 2023CodeMark: Imperceptible Watermarking for Code Datasets against Neural Code Completion Modelscited by 28
  5. 2021Bridging Pre-trained Models and Downstream Tasks for Source Code Understandingcited by 27
  6. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  7. 2022CodeRetriever: Unimodal and Bimodal Contrastive Learning for Code Searchcited by 21
  8. 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 21
  9. 2023CodeTF: One-stop Transformer Library for State-of-the-art Code LLMscited by 21
  10. 2022Target-aware Abstractive Related Work Generation with Contrastive Learningcited by 20
  11. 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generationcited by 20
  12. 2021Towards Learning (Dis)-Similarity of Source Code from Program Contrastscited by 17
37 more
  1. 2022AST-Probe: Recovering abstract syntax trees from hidden representations of pre-trained language modelscited by 16
  2. 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Trainingcited by 15
  3. 2023Rethinking Negative Pairs in Code Searchcited by 14
  4. 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Searchcited by 12
  5. 2022Code Search based on Context-aware Code Translationcited by 11
  6. 2022HierarchyNet: Learning to Summarize Source Code with Heterogeneous Representationscited by 9
  7. 2022Detect-Localize-Repair: A Unified Framework for Learning to Debug with CodeT5cited by 9
  8. 2023Towards Causal Deep Learning for Vulnerability Detectioncited by 9
  9. 2022Exploring Representation-Level Augmentation for Code Searchcited by 8
  10. 2022Soft-Labeled Contrastive Pre-training for Function-level Code Representationcited by 7
  11. 2024VulScribeR: Exploring RAG-based Vulnerability Augmentation with LLMscited by 7
  12. 2023A Topic-aware Summarization Framework with Different Modal Side Informationcited by 6
  13. 2025SPENCER: Self-Adaptive Model Distillation for Efficient Code Retrievalcited by 5
  14. 2022MIXCODE: Enhancing Code Classification by Mixup-Based Data Augmentationcited by 4
  15. 2023TransformCode: A Contrastive Learning Framework for Code Embedding via Subtree Transformationcited by 4
  16. 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Groundingcited by 4
  17. 2021Self-Supervised Learning to Prove Equivalence Between Straight-Line Programs via Rewrite Rulescited by 3
  18. 2022NS3: Neuro-Symbolic Semantic Code Searchcited by 3
  19. 2022NeuDep: Neural Binary Memory Dependence Analysiscited by 3
  20. 2023DocChecker: Bootstrapping Code Large Language Model for Detecting and Resolving Code-Comment Inconsistenciescited by 3
  21. 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Surveycited by 3
  22. 2022Semantic-Preserving Adversarial Code Comprehensioncited by 2
  23. 2022CLAWSAT: Towards Both Robust and Accurate Code Modelscited by 2
  24. 2023Neuro-symbolic Zero-Shot Code Cloning with Cross-Language Intermediate Representationcited by 2
  25. 2024GenCode: A Generic Data Augmentation Framework for Boosting Deep Learning-Based Code Understandingcited by 2
  26. 2025Semantic-Preserving Transformations as Mutation Operators: A Study on Their Effectiveness in Defect Detectioncited by 2
  27. 2025Style2Code: A Style-Controllable Code Generation Framework with Dual-Modal Contrastive Representation Learningcited by 1
  28. 2023Contrastive Learning for API Aspect Analysiscited by 0
  29. 2023Contrastive Prompt Learning-based Code Search based on Interaction Matrixcited by 0
  30. 2024Analysing the Behaviour of Tree-Based Neural Networks in Regression Taskscited by 0
  31. 2025A Study on Mixup-Inspired Augmentation Methods for Software Vulnerability Detectioncited by 0
  32. 2025Auto-SPT: Automating Semantic Preserving Transformations for Codecited by 0
  33. 2026An Initial Exploration of Contrastive Prompt Tuning to Generate Energy-Efficient Codecited by 0
  34. 2026Learning Generalizable Multimodal Representations for Software Vulnerability Detectioncited by 0
  35. 2026Invariant Pretraining for Robust Code Representationscited by 0
  36. 2026Synthetic Semantic Supervision for Contrastive Code Representation Learning in Small Transformers: An Empirical Studycited by 0
  37. 2026Type-IV Code Clone Detection via Layer-Wise Non-Contrastive Representation Learningcited by 0