Beyond Retrieval: A Multitask Benchmark and Model for Code Search
Not on the map. Why?
Abstract (arXiv)
Code search has usually been evaluated as first-stage retrieval, even though production systems rely on broader pipelines with reranking and developer-style queries. Existing benchmarks also suffer from data contamination, label noise, and degenerate binary relevance. In this paper, we introduce textscCoREB, a contamination-limited, multitask underlinecode underlineretrieval and runderlineeranking underlinebenchmark, together with a fine-tuned code reranker, that goes beyond retrieval to cover the full code search pipeline. textscCoREB is built from counterfactually rewritten LiveCodeBench problems in five programming languages and delivered as timed releases with graded relevance judgments. We benchmark eleven embedding models and five rerankers across three tasks: text-to-code, code-to-text, and code-to-code. Our experiments reveal that: circone code-specialised embeddings dominate code-to-code retrieval (~2× over general encoders), yet no single model wins all three tasks; circtwo short keyword queries, the format closest to real developer search, collapse every model to near-zero nDCG@10; circthree off-the-shelf rerankers are task-asymmetric, with a 12-point swing on code-to-code and no baseline net-positive across all tasks; circfour our fine-tuned textscCoREB-Reranker is the first to achieve consistent gains across all three tasks. The data and model are released.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 43 of its 55 references that are in the map. First posted on arXiv 6 May 2026.
Builds on
43 of 55 references.
References · 43
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,396
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,252
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
31 more
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2022MTEB: Massive Text Embedding Benchmarkcited by 640
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 517
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 247
- 2023TACO: Topics in Algorithmic COde generation datasetcited by 160
- 2023Query2doc: Query Expansion with Large Language Modelscited by 149
- 2024jina-embeddings-v3: Multilingual Embeddings With Task LoRAcited by 141
- 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 126
- 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 75
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024CoIR: A Comprehensive Benchmark for Code Information Retrieval Modelscited by 60
- 2023DB-GPT: Empowering Database Interactions with Private Large Language Modelscited by 27
- 2024Cofca: A Step-Wise Counterfactual Multi-hop QA benchmarkcited by 27
- 2024Code Representation Learning At Scalecited by 26
- 2025Efficient Code Embeddings from Code Generation Modelscited by 13
- 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Searchcited by 12
- 2024On Inter-dataset Code Duplication and Data Leakage in Large Language Modelscited by 10
- 2026QuitoBench: A High-Quality Open Time Series Forecasting Benchmarkcited by 10
- 2024The Fault in our Stars: Quality Assessment of Code Generation Benchmarkscited by 9
- 2024Demonstration of DB-GPT: Next Generation Data Interaction System Empowered by Large Language Modelscited by 9
- 2025F2LLM Technical Report: Matching SOTA Embedding Performance with 6 Million Open-Source Datacited by 8
- 2026LookBench: A Live and Holistic Open Benchmark for Fashion Image Retrievalcited by 7
- 2023GenCodeSearchNet: A Benchmark Test Suite for Evaluating Generalization in Programming Language Understandingcited by 6
- 2024DB-GPT-Hub: Towards Open Benchmarking Text-to-SQL Empowered by Large Language Modelscited by 6
- 2025CPRet: A Dataset, Benchmark, and Model for Retrieval in Competitive Programmingcited by 3
- 2025Across Programming Language Silos: A Study on Cross-Lingual Retrieval-augmented Code Generationcited by 3
- 2025C2LLM Technical Report: A New Frontier in Code Retrieval via Adaptive Cross-Attention Poolingcited by 3
- 2025DORAEMON: A Unified Library for Visual Object Modeling and Representation Learning at Scalecited by 2
- 2025Code2Doc: A Quality-First Curated Dataset for Code Documentationcited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.