AI Paper Atlas

Research map / Architectures and efficiency / Attention and transformers

XC-Cache: Cross-Attending to Cached Context for Efficient LLM Inference

João Monteiro, Étienne Marcotte, Pierre-André Noël, Valentina Zantedeschi, David Vázquez, Nicolas Chapados, Christopher Pal, Perouz Taslakian

EMNLP 2024Architectures and efficiency › Attention and transformersapproach: KV cache eviction and compression9 citations (OpenAlex)

ServiceNow

Read the paperPlace an idea next to itCheck your own paper ↗

10measured effects
8improved
2hurt

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

On benchmark leaderboards

Measured effects reported in the paper

What was changedWhereMeasuredEffect
cross-attend to cached context (small encoder) instead of ICL promptingLlama 2-7B · NQF1: 41.26 -> 63.12Improved
cross-attend to cached context (small encoder) instead of ICL promptingLlama 2-7B · HotpotQAF1: 29.63 -> 54.57Improved
use frozen decoder as encoder with trained cross-attention instead of ICL promptingLlama 2-7B · TopiOCQAF1: 33.45 -> 45.47Improved
replace small-encoder XC-Cache with LoRA-fine-tuned Llama 2 (full KV cache)Llama 2-7B · HotpotQAF1: 54.57 -> 71.97Improved
add a small trainable encoder instead of decoder as encoderXC-Cache · NQF1: 59.95 -> 63.12Improved
add a small trainable encoder instead of decoder as encoderXC-Cache · HotpotQAF1: 43.94 -> 54.57Improved
prepend the question to the encoder input (ablation)XC-Cache (small encoder) · NQF1: 63.12 -> 66.86Improved
use XC-Cache storing encoder outputs instead of KV cacheLlama 2-7B · cache size per tokenkB/token: 512 -> 8 (decoder as encoder); 512 -> 1.5 (small encoder)Improved
use XC-Cache instead of LoRA-fine-tuned prompted modelLlama 2-7B · NQF1: 67.38 -> 63.12Hurt
evaluate on unseen out-of-distribution data (RepLiQA)all models · RepLiQA (unseen)QA scoreHurt

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy