Pith. sign in

REVIEW 4 cited by

Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selection

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2405.16178 v1 pith:C2XTX5NB submitted 2024-05-25 cs.CL

classification cs.CL
keywords sparsegenerationdocumentsllmsretrievedacceleratingcontextcontexts
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Large language models (LLMs) augmented with retrieval exhibit robust performance and extensive versatility by incorporating external contexts. However, the input length grows linearly in the number of retrieved documents, causing a dramatic increase in latency. In this paper, we propose a novel paradigm named Sparse RAG, which seeks to cut computation costs through sparsity. Specifically, Sparse RAG encodes retrieved documents in parallel, which eliminates latency introduced by long-range attention of retrieved documents. Then, LLMs selectively decode the output by only attending to highly relevant caches auto-regressively, which are chosen via prompting LLMs with special control tokens. It is notable that Sparse RAG combines the assessment of each individual document and the generation of the response into a single process. The designed sparse mechanism in a RAG system can facilitate the reduction of the number of documents loaded during decoding for accelerating the inference of the RAG system. Additionally, filtering out undesirable contexts enhances the model's focus on relevant context, inherently improving its generation quality. Evaluation results of two datasets show that Sparse RAG can strike an optimal balance between generation quality and computational efficiency, demonstrating its generalizability across both short- and long-form generation tasks.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 4 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. MINTQA: A Multi-Hop Question Answering Benchmark for Evaluating LLMs on New and Tail Knowledge

    cs.CL 2024-12 conditional novelty 7.0 of 10

    MINTQA provides 28,366 multi-hop QA pairs across popular/unpopular and old/new knowledge, with sub-questions, and shows that even the best LLMs achieve only about 62% accuracy even with retrieval.

  2. Provence: efficient and robust context pruning for retrieval-augmented generation

    cs.CL 2025-01 conditional novelty 6.0 of 10

    Provence prunes and reranks retrieved contexts in one pass, compressing 50-80% of the context while keeping question-answering accuracy close to the full-context baseline.

  3. Accelerating Retrieval-Augmented Generation

    cs.CL 2024-12 conditional novelty 6.0 of 10

    Exact nearest neighbor search, accelerated by a near-memory CXL device called IKS, can make retrieval-augmented generation faster and more accurate end-to-end than approximate search.

  4. Towards Understanding Systems Trade-offs in Retrieval-Augmented Generation Model Inference

    cs.AR 2024-12 conditional novelty 5.0 of 10

    Retrieval-augmented generation adds significant latency, with retrieval making up roughly one-third of time-to-first-token, and the retrieval database's memory and throughput scale poorly to production sizes.

Pith tools