TL;DR
Decoupled Attention Fusion (DAF) enhances Retrieval-Augmented Generation (RAG) by efficiently reusing key-value (KV) caches, achieving up to 5.6 times faster performance without sacrificing accuracy. This framework addresses latency issues in long-context scenarios while maintaining coherent reasoning across documents.
✦ Why It Matters
Implement DAF in your RAG systems to significantly reduce latency in long-context applications today.
Key Takeaways
How It Works
DAF separates the attention mechanism into three distinct stages. First, it employs important-token self-attention to recover inter-document attention patterns that are often lost when reusing KV caches.
Next, it uses question-document self-attention for standard inference tasks. Finally, a state fusion step concatenates the outputs from the first two stages to create the final hidden states.
This structured approach allows DAF to maximize efficiency and accuracy, particularly when integrated with Flash-Attention kernels.
Related