Dynamic Retrieval-Augmented Generation
On the map: Retrieval-augmented generation → Generation and context integration
Abstract (arXiv)
Current state-of-the-art large language models are effective in generating high-quality text and encapsulating a broad spectrum of world knowledge. These models, however, often hallucinate and lack locally relevant factual data. Retrieval-augmented approaches were introduced to overcome these problems and provide more accurate responses. Typically, the retrieved information is simply appended to the main request, restricting the context window size of the model. We propose a novel approach for the Dynamic Retrieval-Augmented Generation (DRAG), based on the entity-augmented generation, which injects compressed embeddings of the retrieved entities into the generative model. The proposed pipeline was developed for code-generation tasks, yet can be transferred to some domains of natural language processing. To train the model, we collect and publish a new project-level code generation dataset. We use it for the evaluation along with publicly available datasets. Our approach achieves several targets: (1) lifting the length limitations of the context window, saving on the prompt size; (2) allowing huge expansion of the number of retrieval entities available for the context; (3) alleviating the problem of misspelling or failing to find relevant entity names. This allows the model to beat all baselines (except GPT-3.5) with a strong margin.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 27 of its 36 references that are in the map. First posted on arXiv 14 Dec 2023.
Builds on
27 of 36 references.
Closest ancestors · 1
Same direction, newest first
Other references · 26
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
- 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 402
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddingscited by 238
14 more
- 2023Text Embeddings Reveal (Almost) As Much As Textcited by 189
- 2020Generation-Augmented Retrieval for Open-domain Question Answeringcited by 186
- 2022A Survey on Retrieval-Augmented Text Generationcited by 157
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
- 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
- 2018NL2Bash: A Corpus and Semantic Parser for Natural Language Interface to the Linux Operating Systemcited by 97
- 2021Natural SQL: Making SQL Easier to Infer from Natural Language Specificationscited by 66
- 2022Out of the BLEU: how should we assess quality of the Code Generation models?cited by 65
- 2022CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Contextcited by 64
- 2018Retrieval-Based Neural Code Generationcited by 41
- 2021R2-D2: A Modular Baseline for Open-Domain Question Answeringcited by 37
- 2021RetGen: A Joint framework for Retrieval and Grounded Text Generation Modelingcited by 22
- 2022Generate-and-Retrieve: use your predictions to improve retrieval for semantic parsingcited by 15
- 2021NeurIPS 2020 NLC2CMD Competition: Translating Natural Language to Bash Commandscited by 7
Built on by
Citing papers per year: 2024: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2024DRAGIN: Dynamic Retrieval Augmented Generation based on the Information Needs of Large Language Models
- 2024Contextual Compression in Retrieval-Augmented Generation for Large Language Models: A Survey
- 2025Dynamic Context Selection for Retrieval-Augmented Generation: Mitigating Distractors and Positional Bias
- 2025SARA: Selective and Adaptive Retrieval-augmented Generation with Context Compression
- 2025Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontiers
- 2024Embedding-Informed Adaptive Retrieval-Augmented Generation of Large Language Models
- 2024E2E-AFG: An End-to-End Model with Adaptive Filtering for Retrieval-Augmented Generation
- 2024A Survey on Retrieval-Augmented Text Generation for Large Language Models