Research map / Large language models / Retrieval and knowledge
Across Programming Language Silos: A Study on Cross-Lingual Retrieval-Augmented Code Generation
Qiming Zhu, Jialun Cao, Xuanang Chen, Weili Zhang, Yaojie Lu, Hongyu Lin, Xianpei Han, Le Sun, Shing-Chi Cheung
Chinese Academy of Sciences · University of Chinese Academy of Sciences · Hong Kong University of Science and Technology
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 |
|---|---|---|---|
| add a golden source-PL solution from another language to the prompt | multi-lingual code LLMs · HumanEval-X (5 PLs) | Pass@1: 55.28 -> +12.84 mean gain | Improved |
| add a golden cross-PL solution to the prompt | Python-specialized LLMs (Phi-1, Phi-1.5) · HumanEval-X (5 PLs) | Pass@1: +3.06 mean; Mean -0.53 (Java), -2.82 (Python) | Mixed |
| use RACG with Top-3 retrieved cross-PL documents | multi-lingual code LLMs · Large Multilingual Code Dataset (13 PLs) | Pass@1: +11.67 mean gain over 57.67 baseline | Improved |
| use RACG with Top-3 retrieved cross-PL documents | Python-specialized LLMs · Large Multilingual Code Dataset (13 PLs) | Pass@1: +1.04 mean; -4.57 on Python target | No clear effect |
| use a Java corpus instead of a Python corpus as retrieval source | multi-lingual code LLMs · Large Multilingual Code Dataset (13 PLs) | Pass@1: +8.29 -> +16.08 | Improved |
| use TypeScript corpus for JavaScript target (similar PLs) | multi-lingual / Python-specialized LLMs · Large Multilingual Code Dataset, JS target | Pass@1: +20.04 (multi), +28.90 (Python-spec.) | Improved |
| use a JavaScript corpus for TypeScript target | Python-specialized LLMs · Large Multilingual Code Dataset, TS target | Pass@1: +45.40 | Improved |
| add PHP or Scala corpus as retrieval source for some targets | multi-lingual code LLMs · Large Multilingual Code Dataset | Pass@1: PHP->Scala -1.20; Scala->Kotlin -1.71 | Hurt |
| strip NL comments from the retrieval corpus (ablation) | RACG, multi-lingual LLMs · Large Multilingual Code Dataset (13 PLs) | Pass@1: +11.67 -> +9.30 | No clear effect |
| strip NL comments from the retrieval corpus (ablation) | RACG, Python-specialized LLMs · Large Multilingual Code Dataset (13 PLs) | Pass@1: +1.04 -> +0.45 | No clear effect |
| use domain-specific CodeRankEmbed instead of BM25 or generic embeddings | retrieval on code-only corpus · Doc w/o NL retrieval | Precision@5: 6.57% (BM25) -> 91.60% | Improved |
| use larger generic embedder (Qwen3-Embedding-8B vs BGE-large) | retrieval on code-only corpus · Doc w/o NL retrieval | Precision@5: 56.18% -> 77.29% | Improved |
Open problems this paper states
- “Evaluated LLMs are small, at most 14B parameters.” → Larger, closed or frontier models were left out. (an open problem in knowledge-augmented question answering)
Open problems in knowledge-augmented question answering
Do knowledge-augmented QA results hold beyond multiple-choice, English, text-only tests and open-weight models?
- Coverage is English only or a handful of languages. · 25 papers state it
- Most benchmarks are multiple-choice, so open-ended answers are untested. · 19 papers state it
- Larger, closed or frontier models were left out. · 16 papers state it
Closest papers by meaning
- Language Agnostic Code Embeddings (NAACL 2024 · similarity 0.90)
- IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generators (ACL 2024 · similarity 0.89)
- RAR: Retrieval-augmented retrieval for code generation in low resource languages (EMNLP 2024 · similarity 0.89)
- SRACG: A Code Generation Framework with Selective Retrieval Augmentation (AAAI 2026 · similarity 0.89)
- ERNIE-Code: Beyond English-Centric Cross-lingual Pretraining for Programming Languages (ACL 2023 · 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.