Research map / Large language models / Retrieval and knowledge
Syntax-Aware Retrieval Augmented Code Generation
Xiangyu Zhang, Yu Zhou, Guang Yang, Taolue Chen
Nanjing University of Aeronautics and Astronautics · University of London
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 syntax-aware token-level kNN retrieval | BertranX · CoNaLa test | BLEU: 34.18 -> 37.29 | Improved |
| add syntax-aware token-level kNN retrieval | BertranX · CoNaLa test | exact match: 5.8 -> 7.4 | Improved |
| add syntax-aware token-level kNN retrieval | BertranX · Django test | BLEU: 79.86 -> 83.20 | Improved |
| add retrieval noise filtering with syntax (ASDL) rules (ablation) | kNN-TRANX · CoNaLa test | BLEU: 36.51 -> 37.29 | Improved |
| add the confidence network (ablation) | kNN-TRANX · CoNaLa test | exact match: 5.8 -> 7.4 | Improved |
| use separate syntactic and semantic datastores (ablation) | kNN-TRANX · CoNaLa test | BLEU: 35.62 -> 37.29 | Improved |
| use separate syntactic and semantic datastores (ablation) | kNN-TRANX · Django test | BLEU: 80.74 -> 83.20 | Improved |
| use Krule=4, Kpri=64 instead of Krule=1, Kpri=1 (ablation) | kNN-TRANX · CoNaLa test | BLEU: 35.76 -> 37.29 | Improved |
| increase the datastore size (ablation) | kNN-TRANX · CoNaLa and Django | BLEU/CodeBLEU | Improved |
| update datastore with 95k external mined data without changing model parameters | kNN-TRANX† (both datastores) · CoNaLa incremental adaptation | BLEU: 32.25 -> 34.04 | Improved |
| update only the semantic datastore instead of both (ablation) | kNN-TRANX† with 95k data · CoNaLa incremental adaptation | BLEU: 34.04 -> 33.89 | Hurt |
| use kNN-TRANX retrieval instead of kNN-MT-style retrieval | decoding · CoNaLa test decoding time | ms/code: 1258.4 -> 722.2 | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- CodeT5 — CodeT: Code Generation with Generated Tests (ICLR 2023) · better on 4 of 4 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.
Closest papers by meaning
- PinNet: Pinpoint Instructive Information for Retrieval Augmented Code-to-Text Generation (ICML 2024 · similarity 0.87)
- Retrieval is Accurate Generation (ICLR 2024 · similarity 0.86)
- Repoformer: Selective Retrieval for Repository-Level Code Completion (ICML 2024 · similarity 0.86)
- Let's Revise Step-by-Step: A Unified Local Search Framework for Code Generation with LLMs (NeurIPS 2025 · similarity 0.85)
- Hot or Cold? Adaptive Temperature Sampling for Code Generation with Large Language Models (AAAI 2024 · similarity 0.85)
- A Theory for Token-Level Harmonization in Retrieval-Augmented Generation (ICLR 2025 · similarity 0.85)
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.
