Research map / Large language models / Retrieval and knowledge
CoQuIR: A Comprehensive Benchmark for Code Quality-Aware Information Retrieval
Jiahui Geng, Fengyu Cai, Shaobo Cui, Qing Li, Liangwei Chen, Chenyang Lyu, Haonan Li, Derui Zhu, Alexander Pretschner, Heinz Koeppl, Fakhri Karray
Linköping University · MBZUAI · TU Darmstadt · Shanghai Jiao Tong University · EPFL · University of Groningen
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| fine-tune Repllama-3b/8b on the quality-aware contrastive corpus (Repllama-quality) | Repllama-3b and Repllama-8b · CoQuIR (all datasets) | PPA and MRS: PPA improvements of 20-30%; MRS from near-zero or negative to over 10% | Improved |
| quality-aware fine-tuning of Repllama | Repllama-3b and Repllama-8b · CoQuIR (all datasets) | nDCG@10 and MRR | No clear effect |
| use quality-aware retriever (fine-tuned Repllama-8b) in RAG | CodeGen, Incoder, Santa code generation · SVEN CWE scenarios (CodeQL) | vulnerability rate | Improved |
| add paired secure and vulnerable demonstrations to quality-aware retrieval | code generation models · SVEN CWE scenarios | vulnerability rate | Improved |
| use fine-tuned retrievers with positive demonstrations | code generation models · DepreAPI | modern API usage | Improved |
| prompt instruction-following retrievers with positive vs negative quality instruction (ablation) | instruction-following retrievers · CoQuIR | PPA and MRS | No clear effect |
| use proprietary Voyage-code-3 vs other retrievers | retrievers · CoQuIR | PPA and MRS: only model not below random on any dataset | Improved |
| higher relevance (nDCG@10) as a proxy for quality | retrievers · SafeCoder, DepreAPI | PPA vs nDCG@10 | No clear effect |
Open problems in RAG robustness and evaluation
When does retrieval help a language model, and when does it mislead it?
- Only one answer-bearing document is handled. · 6 papers state it
- String-match metrics misjudge long or rephrased answers. · 6 papers state it
- Verbalized graph triples distort or drop facts. · 5 papers state it
Closest papers by meaning
- CoIR: A Comprehensive Benchmark for Code Information Retrieval Models (ACL 2025 · similarity 0.91)
- Hidden Positives: Why Code Retrieval Benchmarks Underestimate Model Quality (NeurIPS 2026 · similarity 0.89)
- CLARC: C/C++ Benchmark for Robust Code Search (ICLR 2026 · similarity 0.89)
- CoRNStack: High-Quality Contrastive Data for Better Code Retrieval and Reranking (ICLR 2025 · similarity 0.89)
- Repoformer: Selective Retrieval for Repository-Level Code Completion (ICML 2024 · similarity 0.87)
- CHICOT: A Developer-Assistance Toolkit for Code Search with High-Level Contextual Information (AAAI 2024 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.