Research map / Large language models / Retrieval and knowledge
CoRet: Improved Retriever for Code Editing
Fabio Fehr, Prabhu Teja Sivaprasad, Luca Franceschi, Giovanni Zappella
EPFL · Amazon
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 CodeSage S with CoRet loss, file paths and call graph context | CodeSage S · SWE-bench Verified | perfect recall@5: 0.34 -> 0.54 | Improved |
| fine-tune CodeSage S with CoRet loss, file paths and call graph context | CodeSage S · SWE-bench Verified | perfect recall@20: 0.51 -> 0.71 | Improved |
| fine-tune CodeSage S with CoRet | CodeSage S · LCA bug localisation | perfect recall@20: 0.34 -> 0.47 | Improved |
| add call graph context (ablation) | CoRet · LCA bug localisation | perfect recall@20: 0.41 -> 0.47 | Improved |
| add call graph context (ablation) | CoRet · SWE-bench Verified | perfect recall@5: 0.52 -> 0.54 | Improved |
| add call graph context (ablation) | CoRet · LCA bug localisation | perfect recall@5: 0.32 -> 0.32 | No clear effect |
| replace call graph context with random chunks from the same file (ablation) | CoRet · LCA bug localisation | perfect recall@20: 0.47 -> 0.38 | Hurt |
| remove file path from chunk input at inference (ablation) | CoRet · SWE-bench Verified (chunk-level) | recall@20: 0.70 -> 0.58 | Hurt |
| add file path to chunk input at inference (ablation) | CodeSage S (not fine-tuned) · SWE-bench Verified (chunk-level) | recall@20: 0.58 -> 0.57 | No clear effect |
| increase number of in-instance negatives from 8 to 1024 (ablation) | CoRet loss · held-out SWE-bench train | recall@20: almost +10 points | Improved |
| use in-instance negatives instead of across-instance negatives (ablation) | CoRet loss · held-out SWE-bench train | recall | Improved |
| add a single BM25 hard negative (ablation) | CoRet loss · held-out SWE-bench train | recall | No clear effect |
Later papers that compared with this method
1 later accepted paper reports CORE-T as a baseline in their results tables; 1 of them report a better number on most of the results they share with it.
- PEARL: Front-Loading Relational Chains for Multi-Hop Table Retrieval (EMNLP 2026 · better on 2 of 3 shared results)
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in retrieval-augmented reasoning
How can retrieval-augmented reasoning cut its extra LLM calls, storage and dependence on retrieval and LLM-built structures?
- Multi-step retrieval needs extra LLM calls and slows inference. · 22 papers state it
- Tested on English, or English and one other language, only. · 15 papers state it
- Graphs, trees and memories built by LLMs or parsers pass on their errors. · 12 papers state it
Closest papers by meaning
- CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding (EMNLP 2026 · similarity 0.91)
- CoRNStack: High-Quality Contrastive Data for Better Code Retrieval and Reranking (ICLR 2025 · similarity 0.88)
- SpIDER: Spatially Informed Dense Embedding Retrieval for Software Issue Localization (EMNLP 2026 · similarity 0.88)
- CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completion (EMNLP 2025 · similarity 0.88)
- SACL: Understanding and Combating Textual Bias in Code Retrieval with Semantic-Augmented Reranking and Localization (EMNLP 2025 · similarity 0.88)
- Repoformer: Selective Retrieval for Repository-Level Code Completion (ICML 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.