Research map / Large language models / Retrieval and knowledge
RAR: Retrieval-augmented retrieval for code generation in low resource languages
Avik Dutta, Mukul Singh, Sumit Gulwani, Vu Le, Gust Verbruggen
Microsoft
Read the paperPlace an idea next to itCheck your own paper ↗
13measured effects
7improved
1no clear effect
2hurt
3mixed
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 |
|---|---|---|---|
| use RAR (dependent) grammar retrieval instead of CAPIR/best baseline | RARD · OfficeScript | execution match: 26.14% gain over best baseline (text); 70.49 vs 44.35 for M-FT | Improved |
| use RAR dependent grammar retrieval instead of CAPIR | RARD · Power Query M / Excel | execution match: +2.81% (M), +2% (Excel) | Improved |
| use RARE example retrieval instead of TST/TSTR/MPT | RARE · OfficeScript, M, Excel | execution match: 70.32 vs 69.04 (OS); 54.72 vs 50.94 (M); 46.00 vs 44.00 (Excel) | Improved |
| fine-tune embeddings on documentation-only data (TST, TSTR vs MPT) | TST/TSTR · OfficeScript, M, Excel | execution match: MPT 69.04 vs TST 52.95 / TSTR 60.37 (OfficeScript) | Hurt |
| retrieve grammar via examples (RAR) instead of independently | RetD · OfficeScript, M, Excel | execution match: -25% OS, -15% M, -4% Excel for independent | Improved |
| combine grammar and examples in the prompt | RAR · OfficeScript, M | execution match: +6% OfficeScript, +2% M | Improved |
| add grammar to examples | RARE · Excel formulas | execution match: 46.00 -> 42.00 (RARE->D); 39.00 (RARD->E) | Hurt |
| use RARD instead of RetD for grammar retrieval | RARD · Grammar recall (OS, M, Excel) | recall: 50.04 -> 76.36; 24.83 -> 67.16; 16.53 -> 82.86 | Improved |
| use both positive and negative influence (D+ and D-) instead of one (ablation) | RARE→D · OfficeScript | execution match: D+ 64.01, D- 69.98 -> D++D- 76.40 | Improved |
| use both positive and negative influence instead of one (ablation) | RAR · Power Query M | sketch vs execution match: sketch better for D-/E-, execution better for D+/E+ | Mixed |
| increase prompt token length (ablation) | RAR · OfficeScript, M | sketch/execution match: best around ~3000 tokens | No clear effect |
| use RAR with pre-trained or fine-tuned embeddings for the driver (ablation) | RARD→E · OfficeScript, M, Excel | execution match: OS 71.67 -> 73.48 (pre-trained), 72.34 -> 76.01 (fine-tuned); Excel 38.00 -> 39.00 | Mixed |
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
- CodeRAG-Bench: Can Retrieval Augment Code Generation? (NAACL 2025 · similarity 0.92)
- SRACG: A Code Generation Framework with Selective Retrieval Augmentation (AAAI 2026 · similarity 0.91)
- Repoformer: Selective Retrieval for Repository-Level Code Completion (ICML 2024 · similarity 0.90)
- PinNet: Pinpoint Instructive Information for Retrieval Augmented Code-to-Text Generation (ICML 2024 · similarity 0.88)
- CONSIDER: Commonalities and Specialties Driven Multilingual Code Retrieval Framework (AAAI 2024 · similarity 0.88)
- CodeMMR: Bridging Natural Language, Code, and Image for Unified Retrieval (CVPR 2026 · 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.