mlsanityData to 14 Oct 2026

Addressing Leakage in Self-Supervised Contextualized Code Retrieval

arXiv 2204.11594 ↗First posted 17 Apr 2022cs.SE cs.IR cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

We address contextualized code retrieval, the search for code snippets helpful to fill gaps in a partial input program. Our approach facilitates a large-scale self-supervised contrastive training by splitting source code randomly into contexts and targets. To combat leakage between the two, we suggest a novel approach based on mutual identifier masking, dedentation, and the selection of syntax-aligned targets. Our second contribution is a new dataset for direct evaluation of contextualized code retrieval, based on a dataset of manually aligned subpassages of code clones. Our experiments demonstrate that our approach improves retrieval substantially, and yields new state-of-the-art results for code clone and defect detection.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 26 of its 35 references that are in the map. First posted on arXiv 17 Apr 2022.

Builds on

26 of 35 references.

References · 26

  1. 2017Attention Is All You Needcited by 60,361
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
  5. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
  6. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  7. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  8. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  9. 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 695
  10. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
  11. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  12. 2021Unified Pre-training for Program Understanding and Generationcited by 366
14 more
  1. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
  2. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 272
  3. 2018code2vec: Learning Distributed Representations of Codecited by 250
  4. 2020IntelliCode Compose: Code Generation Using Transformercited by 227
  5. 2021RocketQAv2: A Joint Training Method for Dense Passage Retrieval and Passage Re-rankingcited by 176
  6. 2021Retrieval Augmented Code Generation and Summarizationcited by 149
  7. 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 119
  8. 2020Contrastive Code Representation Learningcited by 76
  9. 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
  10. 2021CoTexT: Multi-task Learning with Code-Text Transformercited by 61
  11. 2020Multi-task Learning based Pre-trained Language Model for Code Completioncited by 58
  12. 2018Aroma: Code Recommendation via Structural Code Searchcited by 29
  13. 2017Neural Sketch Learning for Conditional Program Generationcited by 3
  14. 2020Searching a Database of Source Codes Using Contextualized Code Searchcited by 3

Built on by

Cited by year

Citing papers per year: 2023: 1.

1 paper.