Research map / Large language models / Retrieval and knowledge
Rewriting the Code: A Simple Method for Large Language Model Augmented Code Search
Haochen Li, Xin Zhou, Zhiqi Shen
Nanyang Technological University
Read the paperPlace an idea next to itCheck your own paper ↗
11measured effects
5improved
1no clear effect
5hurt
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 |
|---|---|---|---|
| Add code rewriting in the codebase (ReCo) on top of GAR | BM25 with GPT3.5 · MBPP | MRR: 35.1 -> 70.8 | Improved |
| Add ReCo on top of GAR | UniXcoder fine-tuned · APPS | MRR: 34.5 -> 58.1 | Improved |
| Add ReCo on top of GAR | CodeBERT fine-tuned · CoNaLa | MRR: 88.6 -> 85.0 | Hurt |
| Add ReCo on top of GAR | UniXcoder zero-shot · APPS | MRR: 13.2 -> 28.8 | Improved |
| Use only LLM-generated codes (drop original query and code) (ablation) | UniXcoder + ReCo · APPS (fine-tuned) | MRR: 48.8 -> 39.0 | Hurt |
| Use only LLM-generated codes (ablation) | UniXcoder + ReCo · MBJP (zero-shot) | MRR: 83.4 -> 78.1 | Hurt |
| Use Code Llama-7B instead of GPT3.5 as the LLM (ablation) | BM25 + ReCo · CoNaLa | MRR: 75.8 -> 14.2 | Hurt |
| Use Code Llama-34B instead of Code Llama-13B (ablation) | BM25 + ReCo · CoNaLa | MRR: 29.8 -> 20.4 | Hurt |
| Select the best exemplar code by CSSim instead of randomly (ablation) | BM25 + GAR (Code Llama-7B) · MBPP | MRR: 24.0 -> 26.8 | Improved |
| Select the best exemplar code by CodeBLEU/ROUGE-L/BLEU instead of randomly (ablation) | BM25 + GAR (Code Llama-7B) · CoNaLa/MBPP/APPS | MRR: MBPP 24.0 -> 25.1 / 23.7 / 24.0 | No clear effect |
| Generate more exemplar and rewritten codes (ablation) | BM25 + ReCo · CoNaLa/MBPP | MRR | Improved |
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
- SRACG: A Code Generation Framework with Selective Retrieval Augmentation (AAAI 2026 · similarity 0.91)
- Hidden Positives: Why Code Retrieval Benchmarks Underestimate Model Quality (NeurIPS 2026 · similarity 0.90)
- CodeMMR: Bridging Natural Language, Code, and Image for Unified Retrieval (CVPR 2026 · similarity 0.89)
- Towards A Generalist Code Embedding Model Based On Massive Data Synthesis (NeurIPS 2025 · similarity 0.88)
- AlchemistCoder: Harmonizing and Eliciting Code Capability by Hindsight Tuning on Multi-source Data (NeurIPS 2024 · similarity 0.88)
- CONSIDER: Commonalities and Specialties Driven Multilingual Code Retrieval Framework (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.