Manuscript Offprint

arXiv:2609.11209

REVA: Reusable Evidence View Aggregation for Context-Efficient RAG Serving

Tuan Nguyen, Qiran Hu, Banruo Liu, Khoa D. Doan, Kok-Seng Wong, Fan Lai

Tuan Nguyen ∗^{*} †^{\dagger}, Qiran Hu †^{\dagger}, Banruo Liu †^{\dagger}, Khoa D. Doan ∗^{*}, Kok-Seng Wong ∗^{*}, Fan Lai †^{\dagger}

*VinUni-Illinois Smart Health Center, VinUniversity, Vietnam

{tuan.nm,khoa.dd,wong.ks}@vinuni.edu.vn

†University of Illinois Urbana-Champaign, USA

{qiranhu2,banruol2,fanlai}@illinois.edu

Abstract—Retrieval-augmented generation (RAG) improves knowledge-intensive large language model (LLM) applications by conditioning generation on retrieved documents, but longer contexts increase latency, key-value (KV) cache memory, and token cost. Post-retrieval compression can reduce this cost, yet existing compressors often operate independently for each query, rely on auxiliary models or rewriting, and introduce online overhead that can offset the benefit of shorter prompts. We revisit RAG compression from a data-mining perspective by aggregating historical query-document-model interactions into reusable evidence views. We first show that modern compressors have unstable gains over simple truncation and can add substantial inference-time latency. We then propose Reusable Evidence View Aggregation (REVA), a framework that mines the target generator's historical attention traces into a document-keyed, budget-agnostic score store. REVA maps token-level attention to readable word units, aggregates importance across repeated document accesses, and renders budget-specific plain-text views that preserve document order and the standard RAG interface. Across four representative benchmarks and modern LLMs, REVA improves generation quality by 1.0–5.8 points over existing advances, while reducing compression overhead by a factor of 5.3 to 15.6, adding less than 40 ms of latency.

Index Terms—retrieval-augmented generation, large language model attention mining, context compression, efficient large language model serving

I. INTRODUCTION

Retrieval-augmented generation (RAG) has been improving the quality of knowledge-intensive generation by conditioning a large language model (LLM) on externally retrieved evidence (e.g., documents) [1], [2]. However, it often lengthens the input context and substantially increases inference cost [3], including higher latency, larger key-value (KV) cache memory, and greater API token expense. Cost pressure has motivated a growing line of post-retrieval context reduction methods, part of the broader prompt-compression literature [4], which compress retrieved documents before generation while attempting to preserve generation quality, such as by selecting salient sentences [5], rewriting documents into shorter representations [6], or hierarchically refining documents [7].

While prior work reports impressive compression ratios (for example, RECOMP achieves roughly 10−20×10-20\times compression of retrieved documents, with only a 2.8–3.8-point F1 drop relative to full-context retrieval [5]), we observe that existing advances frequently suffer from two fundamental limitations. First, many methods introduce non-trivial operational overhead because they rely on external models to score, compress, or rewrite documents [7], which can require model customization and/or extra inference latency. Second, they are often agnostic to the generation model, deciding which evidence to keep without considering what that LLM already knows or how it tends to use evidence. Such generator-agnostic compression can waste budget on information already internalized by the model.

Our extensive studies reveal three key findings (Section III). First, existing advances do not necessarily outperform a naive truncation-based baseline: document-wise prefix truncation is often surprisingly competitive, while adding almost no runtime overhead. Second, the (online) cost of compression can outweigh its benefit, increasing overall latency. Third, retrieved documents are frequently reused across many related queries.

Together, these observations reveal a missed opportunity: historical queries provide reusable signals about the generator's knowledge gaps and evidence needs. During generation, the LLM reveals how it allocates attention to tokens in the retrieved document, both from the input question and, when available, from generated response tokens. In large-scale RAG workloads, similar queries often retrieve overlapping documents, making past query-document-model interactions informative proxies for future evidence demand. Document spans that are repeatedly attended to across historical questions and responses are therefore more likely to contain reusable evidence when the same document is retrieved. This view turns compression into a data-mining problem over serving traces: by aggregating prior model-derived importance signals, we can construct lightweight, model- and response-aware document views for future queries.

However, realizing this vision for practical deployments is non-trivial. First, RAG systems must minimize any overhead, such as invoking external compressors or prefilling retrieved documents with the generator solely to estimate token importance. This constraint is critical because produc-

Author's accepted manuscript. Accepted for publication in the 2026 IEEE International Conference on Data Mining (ICDM). © 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

Code: https://github.com/UIUC-MLSys/REVA

Corresponding author: Fan Lai (fanlai@illinois.edu).

tion workloads serve massive query volumes under strict responsiveness requirements, with time-to-first-token targets often below 200 ms [8]. Second, even if such overhead were acceptable, token importance is context-dependent: the LLM's evidence needs may vary throughout the response generation trajectory. For example, attention from the question alone may overemphasize lexical matches while missing answer-bearing spans that become important only during generation. Third, raw token pruning can damage evidence fidelity and interpretability by producing malformed fragments that are difficult to inspect or debug; deployment teams need retained evidence to remain readable enough to audit which spans were kept or removed. A deployable attention-mining compressor should therefore move scoring away from the online path, aggregate evidence importance across historical accesses, and serve readable text rather than a bag of isolated tokens.

We introduce REVA (Reusable Evidence View Aggregation), a framework that mines historical generator-attention traces into reusable document evidence views. REVA aggregates the history-derived importance signals (e.g., per-token attention) into a document-keyed, budget-agnostic score store and progressively refines reusable compressed views as more queries access the same document over time. At serving time, REVA renders budget-specific plain-text evidence views directly from the store, thereby minimizing any overhead.

Overall, we make the following contributions:

• We reveal inefficiencies in existing RAG compression mechanisms: many introduce overhead that can outweigh the efficiency benefit, and their model-agnostic design can make them no better than naive truncation (Section III).

• We introduce REVA, a lightweight compressor that mines historical document-generator interactions into a score store and materializes reusable, model-aware evidence views online (Section IV).

• Our extensive evaluations show that REVA reaches a strong quality–latency frontier, improving quality while reducing compression overhead by 5.3–15.6×5.3–15.6\times (Section V).

References (37)