Decoupled Attention Fusion: Accelerating RAG with Efficient KV Cache Reuse

Xiabao Wu, Wentao Liu, Yongchao Liu, Jiajun Zheng
5/3/2026
cs.PFcs.AI
transformer-attentionrag

No confident code implementation found for this paper.

Abstract

Retrieval-Augmented Generation (RAG) effectively mitigates hallucinations in Large Language Models (LLMs) but suffers from prohibitive Time-To-First-Token (TTFT) latency in long-context scenarios. Reusing pre-computed document KV caches addresses this but introduces a distribution mismatch, where offline caches lack the inter-document attention patterns required for coherent reasoning.

Show full abstract

CacheBlend reduces recomputation via selective attention, but suffers severe accuracy degradation at longer contexts. To address these challenges, we propose Decoupled Attention Fusion (DAF), a framework that maintains high accuracy while significantly reducing recomputation overhead. DAF decouples the attention process into three integrated stages: important-token self-attention to restore missing inter-document attention, question-document self-attention for standard inference, and a state fusion that concatenates their outputs to synthesize the final hidden states. By decoupling these operations into dense patterns, DAF is natively compatible with Flash-Attention kernels, maximizing hardware utilization without requiring complex attention masks. Experiments show that DAF delivers up to 2 times speedup over CacheBlend and 5.6 times over full recomputation with vLLM on long-context benchmarks, without sacrificing accuracy.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wu2026decoupled,
  title  = {Decoupled Attention Fusion: Accelerating RAG with Efficient KV Cache Reuse},
  author = {Xiabao Wu and Wentao Liu and Yongchao Liu and Jiajun Zheng},
  year   = {2026},
  eprint = {2607.21599},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.21599v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.21599.svg)](https://codeofpaper.com/paper/2607.21599)

Discussion