Searching by Code: a New SearchBySnippet Dataset and SnippeR Retrieval Model for Searching by Code Snippets
Not on the map. Why?
Abstract (arXiv)
Code search is an important and well-studied task, but it usually means searching for code by a text query. We argue that using a code snippet (and possibly an error traceback) as a query while looking for bugfixing instructions and code samples is a natural use case not covered by prior art. Moreover, existing datasets use code comments rather than full-text descriptions as text, making them unsuitable for this use case. We present a new SearchBySnippet dataset implementing the search-by-code use case based on StackOverflow data; we show that on SearchBySnippet, existing architectures fall short of a simple BM25 baseline even after fine-tuning. We present a new single encoder model SnippeR that outperforms several strong baselines on SearchBySnippet with a result of 0.451 Recall@10; we propose the SearchBySnippet dataset and SnippeR as a new important benchmark for code search evaluation.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 18 of its 31 references that are in the map. First posted on arXiv 19 May 2023.
Builds on
18 of 31 references.
References · 18
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,216
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2020RocketQA: An Optimized Training Approach to Dense Passage Retrieval for Open-Domain Question Answeringcited by 413
- 2020Distilling Knowledge from Reader to Retriever for Question Answeringcited by 226
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
- 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
6 more
- 2021CoDesc: A Large Code-Description Parallel Datasetcited by 23
- 2019Neural Code Search Evaluation Datasetcited by 13
- 2017Accumulated Gradient Normalizationcited by 10
- 2017NLP2Code: Code Snippet Content Assist via Natural Language Taskscited by 4
- 2021Cascaded Fast and Slow Models for Efficient Semantic Code Searchcited by 4
- 2021Clone-Seeker: Effective Code Clone Search Using Annotationscited by 2
Built on by
Citing papers per year: 2023: 1.
1 paper.
- 2023Language Models are Universal Embedderscited by 11
- 2023Language Models are Universal Embedders12 Oct 2023