Efficient Knowledge Feeding to Language Models: A Novel Integrated Encoder-Decoder Architecture
On the map: Retrieval-augmented generation → Generation and context integration
Abstract (arXiv)
This paper introduces a novel approach to efficiently feeding knowledge to language models (LLMs) during prediction by integrating retrieval and generation processes within a unified framework. While the Retrieval-Augmented Generation (RAG) model addresses gaps in LLMs' training data and knowledge limits, it is hindered by token limit restrictions and dependency on the retrieval system's accuracy. Our proposed architecture incorporates in-context vectors (ICV) to overcome these challenges. ICV recasts in-context learning by using latent embeddings of LLMs to create a vector that captures essential task information. This vector is then used to shift the latent states of the LLM, enhancing the generation process without adding demonstration examples to the prompt. ICV directly integrates information into the model, enabling it to process this information more effectively. Our extensive experimental evaluation demonstrates that ICV outperforms standard in-context learning and fine-tuning across question-answering, information retrieval, and other tasks. This approach mitigates the limitations of current RAG models and offers a more robust solution for handling extensive and diverse datasets. Despite leveraging a fraction of the parameters, our ICV-enhanced model achieves competitive performance against models like LLaMA-3, Gemma, and Phi-3, significantly reducing computational costs and memory requirements. ICV reduces prompt length, is easy to control, surpasses token limitations, and is computationally efficient compared to fine-tuning.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 27 of its 35 references that are in the map. First posted on arXiv 7 Feb 2025.
Builds on
27 of 35 references.
Closest ancestors · 2
Same direction, newest first
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks22 May
- 2020REALM: Retrieval-Augmented Language Model Pre-Training10 Feb
Other references · 25
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
13 more
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 733
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2023Larger language models do in-context learning differentlycited by 386
- 2023In-Context Learning Creates Task Vectorscited by 302
- 2022On the Effect of Pretraining Corpora on In-context Learning by a Large-scale Language Modelcited by 78
- 2023Better Zero-Shot Reasoning with Self-Adaptive Promptingcited by 52
- 2023kNN Prompting: Beyond-Context Learning with Calibration-Free Nearest Neighbor Inferencecited by 47
- 2023Did You Read the Instructions? Rethinking the Effectiveness of Task Definitions in Instruction Learningcited by 40
- 2022Guess the Instruction! Flipped Learning Makes Language Models Stronger Zero-Shot Learnerscited by 22
- 2023Understanding and Controlling a Maze-Solving Policy Networkcited by 19
- 2023Iterative Forward Tuning Boosts In-Context Learning in Language Modelscited by 15
- 2023Universal Self-Adaptive Promptingcited by 14
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Eliciting In-context Retrieval and Reasoning for Long-context Large Language Models
- 2024Enhancing Long Context Performance in LLMs Through Inner Loop Query Mechanism
- 2024Context Quality Matters in Training Fusion-in-Decoder for Extractive Open-Domain Question Answering
- 2026Latent Abstraction for Retrieval-Augmented Generation
- 2025Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontiers
- 2026ReFilter: Improving Robustness of Retrieval-Augmented Generation via Gated Filter
- 2024RE-RAG: Improving Open-Domain QA Performance and Interpretability with Relevance Estimator in Retrieval-Augmented Generation
- 2023RAVEN: In-Context Learning with Retrieval-Augmented Encoder-Decoder Language Models