paper-with-me

Papers

REFRAG: Rethinking RAG based Decoding

2025-09-01 · Xiaoqiang Lin, Aritra Ghosh, Bryan Kian Hsiang Low, Anshumali Shrivastava, Vijai Mohan arxiv

Large Language Models (LLMs) have demonstrated remarkable capabilities in leveraging extensive external knowledge to enhance responses in multi-turn and agentic applications, such as retrieval-augmented generation (RAG). However, processing long-context inputs introduces significant system latency and demands substantial memory for the key-value cache, resulting in reduced throughput and a fundamental trade-off between knowledge enrichment and system efficiency. While minimizing latency for long-context inputs is a primary objective for LLMs, we contend that RAG require specialized consideration. In RAG, much of the LLM context consists of concatenated passages from retrieval, with only a small subset directly relevant to the query. These passages often exhibit low semantic similarity due to diversity or deduplication during re-ranking, leading to block-diagonal attention patterns that differ from those in standard LLM generation tasks. Based on this observation, we argue that most computations over the RAG context during decoding are unnecessary and can be eliminated with minimal impact on performance. To this end, we propose REFRAG, an efficient decoding framework that compresses, senses, and expands to improve latency in RAG applications. By exploiting the sparsity structure, we demonstrate a 30.85 the time-to-first-token acceleration (3.75 improvement to previous work) without loss in perplexity. In addition, our optimization framework for large context enables REFRAG to extend the context size of LLMs by 16. We provide rigorous validation of REFRAG across diverse long-context tasks, including RAG, multi-turn conversations, and long document summarization, spanning a wide range of datasets. Experimental results confirm that REFRAG delivers substantial speedup with no loss in accuracy compared to LLaMA models and other state-of-the-art baselines across various context sizes.

📄 PDF Abstract BibTeX arXiv:2509.01092

Code (0)

등록된 구현이 없습니다.

Tasks

Document SummarizationSemantic Similarity

Similar Papers 제목 키워드 기반

Doc-REFRAG: Rethinking Multimodal Document Retrieval-Augmented Generation

2026-08-31 · Ruofan Hu, Shengyang Xu, Minjie Hong, Xiaoda Yang 외 arxiv

Real-world knowledge resides in multimodal documents, necessitating retrieval-augmented generation (RAG) for accurate question answering. However, existing multimodal RAG models are primarily designed for single-image or…

Question Answering

Rethinking Encoder-Decoder Flow Through Shared Structures

2025-01-24 · Frederik Laboyrie, Mehmet Kerim Yucel, Albert Saa-Garriga

Dense prediction tasks have enjoyed a growing complexity of encoder architectures, decoders, however, have remained largely the same. They rely on individual blocks decoding intermediate feature maps sequentially. We int…

DecoderDepth Estimation

Variational Speculative Decoding: Rethinking Draft Training from Token Likelihood to Sequence Acceptance

2026-02-05 · Xiandong Zou, Jianshu Li, Jing Huang, Pan Zhou arxiv

Speculative decoding accelerates inference for (M)LLMs, yet a training-decoding discrepancy persists: while existing methods optimize single greedy trajectories, decoding involves verifying and ranking multiple sampled d…

Rethinking Patch Dependence for Masked Autoencoders

2024-01-25 · Letian Fu, Long Lian, Renhao Wang, Baifeng Shi 외

In this work, we re-examine inter-patch dependencies in the decoding mechanism of masked autoencoders (MAE). We decompose this decoding mechanism for masked patch reconstruction in MAE into self-attention and cross-atten…

DecoderInstance SegmentationRepresentation LearningSemantic Segmentation

Fail Fast, Win Big: Rethinking the Drafting Strategy in Speculative Decoding via Diffusion LLMs

2025-12-23 · Rui Pan, Zhuofu Chen, Hongyi Liu, Arvind Krishnamurthy 외 arxiv

Diffusion Large Language Models (dLLMs) offer fast, parallel token generation, but their standalone use is plagued by an inherent efficiency-quality tradeoff. We show that, if carefully applied, the attributes of dLLMs c…