Back to Research papers
Research paper index

Recall Before Rerank: Benchmarking Deep Learning Models for Large-Scale Code-to-Code Retrieval

Leonardo Venuta, Francesco Tosoni, Paolo Ferragina

arXiv:2606.27401Published June 24, 20260 citations
  • cs.SE
  • cs.CL
  • cs.IR
  • cs.LG
  • action

Abstract

Semantic code search and clone detection are essential for software development, maintenance, and reuse. This paper evaluates the effectiveness, efficiency, and scalability of contemporary deep learning models for first-stage recall in large-scale code-to-code search engines. Benchmarking across multiple programming languages and datasets reveals critical limits in the precision and scalability of these models on Terabyte-scale source-code collections. We present LLM-based code normalisation and query-rewriting schemes that yield significant gains in precision for lower-performing models. Our results question the sustainability of resource-constrained deployment and the assumed robustness of current code-specialised LLMs across datasets. We conclude with actionable insights for building scalable, efficient code-retrieval systems.

Read the original paper

This page indexes public paper metadata. The manuscript remains with its original publisher and authors.