Lighter And Better: Towards Flexible Context Adaptation For Retrieval Augmented Generation
On the map: Retrieval-augmented generation → Generation and context integration
Abstract (arXiv)
The existing Retrieval-Augmented Generation (RAG) systems face significant challenges in terms of cost and effectiveness. On one hand, they need to encode the lengthy retrieved contexts before responding to the input tasks, which imposes substantial computational overhead. On the other hand, directly using generic Large Language Models (LLMs) often leads to sub-optimal answers, while task-specific fine-tuning may compromise the LLMs' general capabilities. To address these challenges, we introduce a novel approach called FlexRAG (Flexible Context Adaptation for RAG). In this approach, the retrieved contexts are compressed into compact embeddings before being encoded by the LLMs. Simultaneously, these compressed embeddings are optimized to enhance downstream RAG performance. A key feature of FlexRAG is its flexibility, which enables effective support for diverse compression ratios and selective preservation of important contexts. Thanks to these technical designs, FlexRAG achieves superior generation quality while significantly reducing running costs. Comprehensive experiments on various question-answering datasets validate our approach as a cost-effective and flexible solution for RAG systems.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 32 of its 47 references that are in the map. First posted on arXiv 24 Sep 2024.
Builds on
32 of 47 references.
Closest ancestors · 5
Same direction, newest first
- 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentation6 Oct
- 2023Making Retrieval-Augmented Language Models Robust to Irrelevant Context2 Oct
- 2023REPLUG: Retrieval-Augmented Black-Box Language Models30 Jan
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Models5 Aug
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks22 May
Other references · 27
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2022Survey of Hallucination in Natural Language Generationcited by 2,075
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2021Improving language models by retrieving from trillions of tokenscited by 1,293
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,253
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
15 more
- 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 916
- 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 689
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 639
- 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 573
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 453
- 2023Learning to Compress Prompts with Gist Tokenscited by 390
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 354
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 348
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 287
- 2024RAFT: Adapting Language Model to Domain Specific RAGcited by 262
- 2022RetroMAE: Pre-Training Retrieval-oriented Language Models Via Masked Auto-Encodercited by 118
- 2023Llama2Vec: Unsupervised Adaptation of Large Language Models for Dense Retrievalcited by 78
- 2022Uni-Retriever: Towards Learning The Unified Embedding Based Retriever in Bing Sponsored Searchcited by 17
- 2022Distill-VQ: Learning Retrieval Oriented Vector Quantization By Distilling Knowledge from Dense Embeddingscited by 17
- 2023RetroMAE-2: Duplex Masked Auto-Encoder For Pre-Training Retrieval-Oriented Language Modelscited by 13
Built on by
Citing papers per year: 2025: 4; 2026: 2.
6 papers.
- 2025Video-XL-2: Towards Very Long-Video Understanding Through Task-Aware KV Sparsificationcited by 37
- 2026ATACompressor: Adaptive Task-Aware Compression for Efficient Long-Context Processing in LLMscited by 5
- 2025Less Is More: Elevating RAG via Performance-Driven Context Compressioncited by 2
- 2025Customized Retrieval-Augmented Generation with LLM for Debiasing Recommendation Unlearningcited by 1
- 2025Smart Trial: Evaluating the Use of Large Language Models for Recruiting Clinical Trial Participants via Social Mediacited by 0
- 2026Don't Lose Entities from Retrieval to Generation: Dual Entity Recovery RAG for multi-hop QAcited by 0
- 2026Don't Lose Entities from Retrieval to Generation: Dual Entity Recovery RAG for multi-hop QA5 Sep 2026
- 2026ATACompressor: Adaptive Task-Aware Compression for Efficient Long-Context Processing in LLMs3 Feb 2026
- 2025Smart Trial: Evaluating the Use of Large Language Models for Recruiting Clinical Trial Participants via Social Media12 Sep 2025
- 2025Customized Retrieval-Augmented Generation with LLM for Debiasing Recommendation Unlearning10 Sep 2025
- 2025Less Is More: Elevating RAG via Performance-Driven Context Compression24 Aug 2025
- 2025Video-XL-2: Towards Very Long-Video Understanding Through Task-Aware KV Sparsification24 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2024Contextual Compression in Retrieval-Augmented Generation for Large Language Models: A Survey
- 2025Enhancing RAG Efficiency with Adaptive Context Compression
- 2024Context Embeddings for Efficient Answer Generation in RAG
- 2025Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontiers
- 2024Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selection
- 2024Leveraging Fine-Tuned Retrieval-Augmented Generation with Long-Context Support: For 3GPP Standards
- 2025SARA: Selective and Adaptive Retrieval-augmented Generation with Context Compression
- 2024Better RAG using Relevant Information Gain