Reproduce “KVCOMM: Online Cross-context KV-cache Communication for Efficient LLM-based Multi-agent Systems” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Hancheng Ye, Zhengqi Gao, Mingyuan Ma, Qinsi Wang, Yuzhe Fu, Ming-Yu Chung, Yueqian Lin, Zhijian Liu and 3 more
KVCOMM enables efficient KV-cache reuse in multi-agent Large Language Model systems by estimating and applying context-aware offsets for shared content across diverging prefixes, achieving up to 7.8x prefill speedup and high reuse rates while preserving or improving task performance.
Key insights
- Rotary Positional Embeddings (RoPE) are a primary cause of KV-cache divergence for identical content when prefixes vary, but this effect can be isolated and corrected through de-rotation and re-rotation.
- While KV vectors for similar tokens remain close, the *deviations* in KV-caches for similar tokens across different prefixes also remain close, allowing for approximation of these contextual offsets.
- An anchor-based system can learn these context-specific KV-cache deviations on the fly from a growing pool of examples, enabling accurate correction for new, unseen prefix contexts without retraining.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.