Pith. sign in

Lighter And Better: Towards Flexible Context Adaptation For Retrieval Augmented Generation

1 Pith paper cite this work. Polarity classification is still indexing.

1 Pith paper citing it
abstract

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.

fields

cs.CL 1

years

2025 1

verdicts

CONDITIONAL 1

representative citing papers

citing papers explorer

Showing 1 of 1 citing paper.

  • Hierarchical Document Refinement for Long-context Retrieval-augmented Generation cs.CL · 2025-05-15 · conditional · none · ref 34 · internal anchor

    LongRefiner refines long RAG contexts by building an XML tree of the document, scoring nodes with local and global relevance, and selecting a compact subset that improves QA accuracy on seven datasets while cutting token usage versus full-document input.