Skip to main content
archive
Search Submit Donate Log in
Press Enter to search · Advanced search

Computer Science > Information Retrieval

arXiv:2407.02883 (cs)
[Submitted on 3 Jul 2024 (v1), last revised 6 Jun 2025 (this version, v3)]

Title:CoIR: A Comprehensive Benchmark for Code Information Retrieval Models

Authors:Xiangyang Li, Kuicai Dong, Yi Quan Lee, Wei Xia, Hao Zhang, Xinyi Dai, Yasheng Wang, Ruiming Tang
View a PDF of the paper titled CoIR: A Comprehensive Benchmark for Code Information Retrieval Models, by Xiangyang Li and 7 other authors
View PDF HTML (experimental)
Abstract: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. this https URL.
Comments: ACL 2025 Main
Subjects: Information Retrieval (cs.IR); Computation and Language (cs.CL)
Cite as: arXiv:2407.02883 [cs.IR]
  (or arXiv:2407.02883v3 [cs.IR] for this version)
  https://doi.org/10.48550/arXiv.2407.02883
arXiv-issued DOI via DataCite

Submission history

From: Xiangyang Li [view email]
[v1] Wed, 3 Jul 2024 07:58:20 UTC (1,033 KB)
[v2] Mon, 10 Mar 2025 08:48:30 UTC (1,111 KB)
[v3] Fri, 6 Jun 2025 03:39:22 UTC (1,051 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled CoIR: A Comprehensive Benchmark for Code Information Retrieval Models, by Xiangyang Li and 7 other authors
  • View PDF
  • HTML (experimental)
  • TeX Source
license icon view license

Additional Features

  • Audio Summary

Current browse context:

cs.IR
< prev   |   next >
new | recent | 2024-07
Change to browse by:
cs
cs.CL

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
Loading...

BibTeX formatted citation

Data provided by:

Bookmark

BibSonomy Reddit

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
We gratefully acknowledge support from our major funders, member institutions, , and all contributors.
About · Help · Contact · Subscribe · Copyright · Privacy · Accessibility · Operational Status (opens in new tab)
Major funding support from
Simons Foundation Simons Foundation International Schmidt Sciences