vix.ing · top · new · best · stats

Neural Code Search Revisited: Enhancing Code Snippet Retrieval through Natural Language Intent

2020/08/27 by Geert Heyman, Heyman, Geert, Tom Van Cutsem +1 · 3 citations
Computer Science · #FOS: Computer and information sciences #Information Retrieval (cs.IR) #Machine Learning (cs.LG) #Natural Language Processing Techniques #Software Engineering (cs.SE) #Software Engineering Research #Topic Modeling #cs.IR #cs.LG #cs.SE

paper · pdf · doi:10.48550/arxiv.2008.12193

18 pages

arxiv created 2020/08/27 · openalex publication_date 2020/08/27 · arxiv updated 2020/08/28 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

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.

Citations

Cited by

Related