CoIR: A Comprehensive Benchmark for Code Information Retrieval Models
Not on the map. Why?
Abstract (arXiv)
Despite the substantial success of Information Retrieval (IR) in various NLP tasks, most IR systems predominantly handle queries and corpora in natural language, neglecting the domain of code retrieval. Code retrieval is critically important yet remains under-explored, with existing methods and benchmarks inadequately representing the diversity of code in various domains and tasks. Addressing this gap, we present COIR (Code Information Retrieval Benchmark), a robust and comprehensive benchmark specifically designed to assess code retrieval capabilities. COIR comprises ten meticulously curated code datasets, spanning eight distinctive retrieval tasks across seven diverse domains. We first discuss the construction of COIR and its diverse dataset composition. Further, we evaluate nine widely used retrieval models using COIR, uncovering significant difficulties in performing code retrieval tasks even with state-of-the-art systems. To facilitate easy adoption and integration within existing research workflows, COIR has been developed as a user-friendly Python framework, readily installable via pip. It shares same data schema as other popular benchmarks like MTEB and BEIR, enabling seamless cross-benchmark evaluations. Through COIR, we aim to invigorate research in the code retrieval domain, providing a versatile benchmarking tool that encourages further development and exploration of code retrieval systems. https://github.com/CoIR-team/coir.
Key facts. Cited by 59 papers in the map (data through 7 Oct 2026). Builds on 38 of its 68 references that are in the map. First posted on arXiv 3 Jul 2024.
Builds on
38 of 68 references.
References · 38
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
- 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,160
26 more
- 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,050
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 705
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2022MTEB: Massive Text Embedding Benchmarkcited by 623
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2023Improving Text Embeddings with Large Language Modelscited by 295
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 242
- 2024Generative Representational Instruction Tuningcited by 227
- 2020Generation-Augmented Retrieval for Open-domain Question Answeringcited by 186
- 2023How Can Recommender Systems Benefit from Large Language Models: A Surveycited by 141
- 2013A Theoretical Analysis of NDCG Type Ranking Measurescited by 119
- 2022RetroMAE: Pre-Training Retrieval-oriented Language Models Via Masked Auto-Encodercited by 118
- 2021COIL: Revisit Exact Lexical Match in Information Retrieval with Contextualized Inverted Listcited by 113
- 2024Evaluating Retrieval Quality in Retrieval-Augmented Generationcited by 90
- 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 74
- 2024Repetition Improves Language Model Embeddingscited by 70
- 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 55
- 2020Text-based Question Answering from Information Retrieval and Deep Neural Network Perspectives: A Surveycited by 21
- 2022IntTower: the Next Generation of Two-Tower Model for Pre-Ranking Systemcited by 18
- 2023CTRL: Connect Collaborative and Language Model for CTR Predictioncited by 14
- 2023FLIP: Fine-grained Alignment between ID-based Models and Pretrained Language Models for CTR Predictioncited by 11
- 2024M3: A Multi-Task Mixed-Objective Learning Framework for Open-Domain Multi-Hop Dense Sentence Retrievalcited by 1
Built on by
Citing papers per year: 2024: 4; 2025: 33; 2026: 22.
59 papers.
Sort:
By area:
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 527
- 2025jina-embeddings-v4: Universal Embeddings for Multimodal Multilingual Retrievalcited by 72
- 2025MMDocIR: Benchmarking Multimodal Retrieval for Long Documentscited by 43
- 2025mmBERT: A Modern Multilingual Encoder with Annealed Language Learningcited by 39
- 2024CoRNStack: High-Quality Contrastive Data for Better Code Retrieval and Rerankingcited by 37
- 2026τ-Knowledge: Evaluating Conversational Agents over Unstructured Knowledgecited by 35
- 2024CodeXEmbed: A Generalist Embedding Model Family for Multiligual and Multi-task Code Retrievalcited by 33
- 2025jina-reranker-v3: Last but Not Late Interaction for Listwise Document Rerankingcited by 23
- 2025SweRank: Software Issue Localization with Code Rankingcited by 20
- 2025Collapse of Dense Retrievers: Short, Early, and Literal Biases Outranking Factual Evidencecited by 16
- 2025O1 Embedder: Let Retrievers Think Before Actioncited by 15
- 2025FreshStack: Building Realistic Benchmarks for Evaluating Retrieval on Technical Documentscited by 15
38 more
- 2025Efficient Code Embeddings from Code Generation Modelscited by 12
- 2025ProRank: Prompt Warmup via Reinforcement Learning for Small Language Models Rerankingcited by 11
- 2025Position: Text Embeddings Should Capture Implicit Semantics, Not Just Surface Meaningcited by 10
- 2026F2LLM-v2: Inclusive, Performant, and Efficient Embeddings for a Multilingual Worldcited by 10
- 2024A Deep Dive Into Large Language Model Code Generation Mistakes: What and Why?cited by 9
- 2026Unlocking Multimodal Document Intelligence: From Current Triumphs to Future Frontiers of Visual Document Retrievalcited by 8
- 2025Granite Embedding Modelscited by 7
- 2025Granite Embedding R2 Modelscited by 7
- 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Codingcited by 7
- 2025CoQuIR: A Comprehensive Benchmark for Code Quality-Aware Information Retrievalcited by 6
- 2025Benchmarking Information Retrieval Models on Complex Retrieval Taskscited by 6
- 2025MIRB: Mathematical Information Retrieval Benchmarkcited by 5
- 2025Humanity's Last Code Exam: Can Advanced LLMs Conquer Human's Hardest Code Competition?cited by 5
- 2026Gemini Embedding 2: A Native Multimodal Embedding Model from Geminicited by 5
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
- 2025CoRet: Improved Retriever for Code Editingcited by 3
- 2025Revela: Dense Retriever Learning via Language Modelingcited by 3
- 2025C2LLM Technical Report: A New Frontier in Code Retrieval via Adaptive Cross-Attention Poolingcited by 3
- 2025MoSE: Hierarchical Self-Distillation Enhances Early Layer Embeddingscited by 2
- 2025ParaStudent: Closing the Sim2Real Gap in User Simulators for AI Tutor Evaluationcited by 2
- 2025GAPrune: Gradient-Alignment Pruning for Domain-Aware Embeddingscited by 2
- 2026On the Challenges and Opportunities of Learned Sparse Retrieval for Codecited by 2
- 2025LightRetriever: A LLM-based Text Retrieval Architecture with Extremely Faster Query Inferencecited by 1
- 2025A Comparative Study of Specialized LLMs as Dense Retrieverscited by 1
- 2025Evaluating the Effectiveness and Scalability of LLM-Based Data Augmentation for Retrievalcited by 1
- 2025Cross-modal Retrieval Models for Stripped Binary Analysiscited by 1
- 2025TabiBERT: A Large-Scale ModernBERT Foundation Model and A Unified Benchmark for Turkishcited by 1
- 2026LMK > CLS: Landmark Pooling for Dense Embeddingscited by 1
- 2026Beyond Retrieval: A Multitask Benchmark and Model for Code Searchcited by 1
- 2026Deep Agentic Search for Repository-Level Code Question Answering: An Empirical Studycited by 1
- 2026Engineering Reliable Coding Agents: Evaluating and Operating the System Around the Modelcited by 1
- 2025LoRACode: LoRA Adapters for Code Embeddingscited by 0
- 2025Uncertainty-driven Embedding Convolutioncited by 0
- 2025DeepCodeSeek: Real-Time API Retrieval for Context-Aware Code Generationcited by 0
- 2025NeuroAda: Activating Each Neuron's Potential for Parameter-Efficient Fine-Tuningcited by 0
- 2026Supporting software engineering tasks with agentic AI: Demonstration on document retrieval and test scenario generationcited by 0
- 2026CodeMMR: Bridging Natural Language, Code, and Image for Unified Retrievalcited by 0
- 2026Do not copy and paste! Rewriting strategies for code retrievalcited by 0
50 most cited of 59 All 59 (JSON)
- 2026ExecRetrieval: Measuring the Functional-Correctness Gap in Code-Embedding Retrieval1 Sep 2026
- 2026Natural Language Code Retrieval for 1C:Enterprise: An Open Benchmark and Efficient Bi-Encoder20 Aug 2026
- 2026Engineering Reliable Coding Agents: Evaluating and Operating the System Around the Model14 Aug 2026
- 2026PICopilot: An LLM-based Agentic Framework for Assisting Photonic Integrated Circuit Design via Script Generation3 Aug 2026
- 2026Deep Agentic Search for Repository-Level Code Question Answering: An Empirical Study2 Aug 2026
- 2026Finding the Right Tables and Columns: A Benchmark and Corpus-Adaptive Embeddings for SQL Schema Retrieval14 Jul 2026
- 2026Scientific Code Search at Scale: A Multi-Domain Dataset and Benchmark3 Jul 2026
- 2026HAKARI-Bench: A Lightweight Benchmark for Comparing Retrieval Architectures and Efficiency Settings under Unified Conditions22 Jun 2026
- 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding10 Jun 2026
- 2026When Hard Negatives Hurt: Bridging the Generative-Discriminative Gap in Hard Negative Synthesis for Retrieval31 May 2026
- 2026Gemini Embedding 2: A Native Multimodal Embedding Model from Gemini26 May 2026
- 2026Improving BM25 Code Retrieval Under Fixed Generic Tokenization: Adaptive q-Log Odds as a Drop-In BM25 Fix18 May 2026
38 more
- 2026ML-Embed: Inclusive and Efficient Embeddings for a Multilingual World14 May 2026
- 2026Do not copy and paste! Rewriting strategies for code retrieval8 May 2026
- 2026Beyond Retrieval: A Multitask Benchmark and Model for Code Search6 May 2026
- 2026CodeMMR: Bridging Natural Language, Code, and Image for Unified Retrieval17 Apr 2026
- 2026On the Challenges and Opportunities of Learned Sparse Retrieval for Code23 Mar 2026
- 2026F2LLM-v2: Inclusive, Performant, and Efficient Embeddings for a Multilingual World19 Mar 2026
- 2026τ-Knowledge: Evaluating Conversational Agents over Unstructured Knowledge4 Mar 2026
- 2026Unlocking Multimodal Document Intelligence: From Current Triumphs to Future Frontiers of Visual Document Retrieval23 Feb 2026
- 2026Supporting software engineering tasks with agentic AI: Demonstration on document retrieval and test scenario generation4 Feb 2026
- 2026LMK > CLS: Landmark Pooling for Dense Embeddings29 Jan 2026
- 2025TabiBERT: A Large-Scale ModernBERT Foundation Model and A Unified Benchmark for Turkish28 Dec 2025
- 2025C2LLM Technical Report: A New Frontier in Code Retrieval via Adaptive Cross-Attention Pooling24 Dec 2025
- 2025Cross-modal Retrieval Models for Stripped Binary Analysis11 Dec 2025
- 2025NeuroAda: Activating Each Neuron's Potential for Parameter-Efficient Fine-Tuning21 Oct 2025
- 2025DeepCodeSeek: Real-Time API Retrieval for Context-Aware Code Generation30 Sep 2025
- 2025jina-reranker-v3: Last but Not Late Interaction for Listwise Document Reranking29 Sep 2025
- 2025Evaluating the Effectiveness and Scalability of LLM-Based Data Augmentation for Retrieval19 Sep 2025
- 2025GAPrune: Gradient-Alignment Pruning for Domain-Aware Embeddings13 Sep 2025
- 2025Benchmarking Information Retrieval Models on Complex Retrieval Tasks8 Sep 2025
- 2025mmBERT: A Modern Multilingual Encoder with Annealed Language Learning8 Sep 2025
- 2025Efficient Code Embeddings from Code Generation Models29 Aug 2025
- 2025Granite Embedding R2 Models26 Aug 2025
- 2025Uncertainty-driven Embedding Convolution28 Jul 2025
- 2025ParaStudent: Closing the Sim2Real Gap in User Simulators for AI Tutor Evaluation16 Jul 2025
- 2025A Comparative Study of Specialized LLMs as Dense Retrievers5 Jul 2025
- 2025jina-embeddings-v4: Universal Embeddings for Multimodal Multilingual Retrieval23 Jun 2025
- 2025Revela: Dense Retriever Learning via Language Modeling19 Jun 2025
- 2025Humanity's Last Code Exam: Can Advanced LLMs Conquer Human's Hardest Code Competition?15 Jun 2025
- 2025Position: Text Embeddings Should Capture Implicit Semantics, Not Just Surface Meaning10 Jun 2025
- 2025ProRank: Prompt Warmup via Reinforcement Learning for Small Language Models Reranking4 Jun 2025
- 2025CoQuIR: A Comprehensive Benchmark for Code Quality-Aware Information Retrieval31 May 2025
- 2025CoRet: Improved Retriever for Code Editing30 May 2025
- 2025MIRB: Mathematical Information Retrieval Benchmark21 May 2025
- 2025LightRetriever: A LLM-based Text Retrieval Architecture with Extremely Faster Query Inference18 May 2025
- 2025SweRank: Software Issue Localization with Code Ranking7 May 2025
- 2025FreshStack: Building Realistic Benchmarks for Evaluating Retrieval on Technical Documents17 Apr 2025
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025
- 2025LoRACode: LoRA Adapters for Code Embeddings7 Mar 2025
50 newest of 59 All 59 (JSON)
- 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Codingcited by 7
- 2025GAPrune: Gradient-Alignment Pruning for Domain-Aware Embeddingscited by 2
- 2026Deep Agentic Search for Repository-Level Code Question Answering: An Empirical Studycited by 1
- 2026Engineering Reliable Coding Agents: Evaluating and Operating the System Around the Modelcited by 1
- 2026Supporting software engineering tasks with agentic AI: Demonstration on document retrieval and test scenario generationcited by 0
- 2026PICopilot: An LLM-based Agentic Framework for Assisting Photonic Integrated Circuit Design via Script Generationcited by 0
- 2026Engineering Reliable Coding Agents: Evaluating and Operating the System Around the Model14 Aug 2026
- 2026PICopilot: An LLM-based Agentic Framework for Assisting Photonic Integrated Circuit Design via Script Generation3 Aug 2026
- 2026Deep Agentic Search for Repository-Level Code Question Answering: An Empirical Study2 Aug 2026
- 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding10 Jun 2026
- 2026Supporting software engineering tasks with agentic AI: Demonstration on document retrieval and test scenario generation4 Feb 2026
- 2025GAPrune: Gradient-Alignment Pruning for Domain-Aware Embeddings13 Sep 2025
- 2025Collapse of Dense Retrievers: Short, Early, and Literal Biases Outranking Factual Evidencecited by 16
- 2025ProRank: Prompt Warmup via Reinforcement Learning for Small Language Models Rerankingcited by 11
- 2026CodeMMR: Bridging Natural Language, Code, and Image for Unified Retrievalcited by 0
- 2026Improving BM25 Code Retrieval Under Fixed Generic Tokenization: Adaptive q-Log Odds as a Drop-In BM25 Fixcited by 0
- 2026HAKARI-Bench: A Lightweight Benchmark for Comparing Retrieval Architectures and Efficiency Settings under Unified Conditionscited by 0
- 2026ExecRetrieval: Measuring the Functional-Correctness Gap in Code-Embedding Retrievalcited by 0
- 2026ExecRetrieval: Measuring the Functional-Correctness Gap in Code-Embedding Retrieval1 Sep 2026
- 2026HAKARI-Bench: A Lightweight Benchmark for Comparing Retrieval Architectures and Efficiency Settings under Unified Conditions22 Jun 2026
- 2026Improving BM25 Code Retrieval Under Fixed Generic Tokenization: Adaptive q-Log Odds as a Drop-In BM25 Fix18 May 2026
- 2026CodeMMR: Bridging Natural Language, Code, and Image for Unified Retrieval17 Apr 2026
- 2025ProRank: Prompt Warmup via Reinforcement Learning for Small Language Models Reranking4 Jun 2025
- 2025Collapse of Dense Retrievers: Short, Early, and Literal Biases Outranking Factual Evidence6 Mar 2025
- 2025O1 Embedder: Let Retrievers Think Before Actioncited by 15
- 2025O1 Embedder: Let Retrievers Think Before Action11 Feb 2025
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 527
- 2025jina-embeddings-v4: Universal Embeddings for Multimodal Multilingual Retrievalcited by 72
- 2025MMDocIR: Benchmarking Multimodal Retrieval for Long Documentscited by 43
- 2025mmBERT: A Modern Multilingual Encoder with Annealed Language Learningcited by 39
- 2024CoRNStack: High-Quality Contrastive Data for Better Code Retrieval and Rerankingcited by 37
- 2026τ-Knowledge: Evaluating Conversational Agents over Unstructured Knowledgecited by 35
- 2024CodeXEmbed: A Generalist Embedding Model Family for Multiligual and Multi-task Code Retrievalcited by 33
- 2025jina-reranker-v3: Last but Not Late Interaction for Listwise Document Rerankingcited by 23
- 2025SweRank: Software Issue Localization with Code Rankingcited by 20
- 2025FreshStack: Building Realistic Benchmarks for Evaluating Retrieval on Technical Documentscited by 15
- 2025Efficient Code Embeddings from Code Generation Modelscited by 12
- 2025Position: Text Embeddings Should Capture Implicit Semantics, Not Just Surface Meaningcited by 10
12 most cited of 45 All 45 (JSON)
- 2026Natural Language Code Retrieval for 1C:Enterprise: An Open Benchmark and Efficient Bi-Encoder20 Aug 2026
- 2026Finding the Right Tables and Columns: A Benchmark and Corpus-Adaptive Embeddings for SQL Schema Retrieval14 Jul 2026
- 2026Scientific Code Search at Scale: A Multi-Domain Dataset and Benchmark3 Jul 2026
- 2026When Hard Negatives Hurt: Bridging the Generative-Discriminative Gap in Hard Negative Synthesis for Retrieval31 May 2026
- 2026Gemini Embedding 2: A Native Multimodal Embedding Model from Gemini26 May 2026
- 2026ML-Embed: Inclusive and Efficient Embeddings for a Multilingual World14 May 2026
- 2026Do not copy and paste! Rewriting strategies for code retrieval8 May 2026
- 2026Beyond Retrieval: A Multitask Benchmark and Model for Code Search6 May 2026
- 2026On the Challenges and Opportunities of Learned Sparse Retrieval for Code23 Mar 2026
- 2026F2LLM-v2: Inclusive, Performant, and Efficient Embeddings for a Multilingual World19 Mar 2026
- 2026τ-Knowledge: Evaluating Conversational Agents over Unstructured Knowledge4 Mar 2026
- 2026Unlocking Multimodal Document Intelligence: From Current Triumphs to Future Frontiers of Visual Document Retrieval23 Feb 2026
12 newest of 45 All 45 (JSON)