Neural Code Search Revisited: Enhancing Code Snippet Retrieval through Natural Language Intent
Not on the map. Why?
Abstract (arXiv)
In this work, we propose and study annotated code search: the retrieval of code snippets paired with brief descriptions of their intent using natural language queries. On three benchmark datasets, we investigate how code retrieval systems can be improved by leveraging descriptions to better capture the intents of code snippets. Building on recent progress in transfer learning and natural language processing, we create a domain-specific retrieval model for code annotated with a natural language description. We find that our model yields significantly more relevant search results (with absolute gains up to 20.6% in mean reciprocal rank) compared to state-of-the-art code retrieval methods that do not use descriptions but attempt to compute the intent of snippets solely from unannotated code.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). First posted on arXiv 27 Aug 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 7; 2023: 3; 2024: 2; 2025: 2.
16 papers.
Sort:
By area:
- 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 74
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2022CodeRetriever: Unimodal and Bimodal Contrastive Learning for Code Searchcited by 21
- 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Searchcited by 12
- 2022CodeQueries: A Dataset of Semantic Queries over Codecited by 11
- 2024CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agentscited by 11
- 2022Accelerating Code Search with Deep Hashing and Code Classificationcited by 10
- 2023Noisy Pair Corrector for Dense Retrievalcited by 5
- 2025SPENCER: Self-Adaptive Model Distillation for Efficient Code Retrievalcited by 5
- 2021Natural Language-Guided Programmingcited by 4
- 2022NS3: Neuro-Symbolic Semantic Code Searchcited by 3
- 2022AstBERT: Enabling Language Model for Financial Code Understanding with Abstract Syntax Treescited by 1
4 more
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Codecited by 1
- 2025Natural Language Summarization Enables Multi-Repository Bug Localization by LLMs in Microservice Architecturescited by 1
- 2022Programming Language Agnostic Mining of Code and Language Pairs with Sequence Labeling Based Question Answeringcited by 0
- 2022MQDD: Pre-training of Multimodal Question Duplicity Detection for Software Engineering Domaincited by 0
- 2025Natural Language Summarization Enables Multi-Repository Bug Localization by LLMs in Microservice Architectures5 Dec 2025
- 2025SPENCER: Self-Adaptive Model Distillation for Efficient Code Retrieval1 Aug 2025
- 2024CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agents17 Jun 2024
- 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Search25 Mar 2024
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code14 Nov 2023
- 2023Noisy Pair Corrector for Dense Retrieval7 Nov 2023
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Code5 Jul 2023
- 2022CodeQueries: A Dataset of Semantic Queries over Code17 Sep 2022
- 2022NS3: Neuro-Symbolic Semantic Code Search21 May 2022
- 2022Accelerating Code Search with Deep Hashing and Code Classification29 Mar 2022
- 2022MQDD: Pre-training of Multimodal Question Duplicity Detection for Software Engineering Domain26 Mar 2022
- 2022Programming Language Agnostic Mining of Code and Language Pairs with Sequence Labeling Based Question Answering21 Mar 2022
4 more
- 2022CodeRetriever: Unimodal and Bimodal Contrastive Learning for Code Search26 Jan 2022
- 2022AstBERT: Enabling Language Model for Financial Code Understanding with Abstract Syntax Trees20 Jan 2022
- 2021Natural Language-Guided Programming11 Aug 2021
- 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answering27 May 2021
- 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 74
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2022CodeRetriever: Unimodal and Bimodal Contrastive Learning for Code Searchcited by 21
- 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Searchcited by 12
- 2022CodeQueries: A Dataset of Semantic Queries over Codecited by 11
- 2022Accelerating Code Search with Deep Hashing and Code Classificationcited by 10
- 2023Noisy Pair Corrector for Dense Retrievalcited by 5
- 2025SPENCER: Self-Adaptive Model Distillation for Efficient Code Retrievalcited by 5
- 2021Natural Language-Guided Programmingcited by 4
- 2022NS3: Neuro-Symbolic Semantic Code Searchcited by 3
- 2022AstBERT: Enabling Language Model for Financial Code Understanding with Abstract Syntax Treescited by 1
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Codecited by 1
12 most cited of 15 All 15 (JSON)
- 2025Natural Language Summarization Enables Multi-Repository Bug Localization by LLMs in Microservice Architectures5 Dec 2025
- 2025SPENCER: Self-Adaptive Model Distillation for Efficient Code Retrieval1 Aug 2025
- 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Search25 Mar 2024
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code14 Nov 2023
- 2023Noisy Pair Corrector for Dense Retrieval7 Nov 2023
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Code5 Jul 2023
- 2022CodeQueries: A Dataset of Semantic Queries over Code17 Sep 2022
- 2022NS3: Neuro-Symbolic Semantic Code Search21 May 2022
- 2022Accelerating Code Search with Deep Hashing and Code Classification29 Mar 2022
- 2022MQDD: Pre-training of Multimodal Question Duplicity Detection for Software Engineering Domain26 Mar 2022
- 2022Programming Language Agnostic Mining of Code and Language Pairs with Sequence Labeling Based Question Answering21 Mar 2022
- 2022CodeRetriever: Unimodal and Bimodal Contrastive Learning for Code Search26 Jan 2022
12 newest of 15 All 15 (JSON)