CollectiveKV: 在顺序推荐中解耦和共享协作信息
CollectiveKV: Decoupling and Sharing Collaborative Information in Sequential Recommendation
AI总结:
本文提出CollectiveKV,通过学习全局KV池实现跨用户KV共享,有效压缩KV缓存至原大小的0.8%,同时保持或提升模型性能。
摘要:
顺序推荐模型在应用中广泛使用,但面临严格的延迟要求。主流模型利用Transformer注意力机制提升性能,但其计算复杂度随序列长度增加而增长,导致长序列的延迟挑战。因此,KV缓存技术近年来被探索用于顺序推荐系统以减少推理延迟。然而,KV缓存引入了显著的存储开销,这在用户基数大且可能有非常长用户历史序列的顺序推荐系统中尤为明显。在本工作中,我们观察到不同用户的KV序列存在显著相似性,表明存在协作信号。进一步分析发现,KV信息可分为两部分:大部分信息可跨用户共享,而一小部分是用户特定的。基于此,我们提出CollectiveKV,一种跨用户KV共享机制。它通过可学习的全局KV池捕获跨用户的信息。在推理过程中,每个用户从池中检索高维共享KV,并将其与低维用户特定KV拼接以获得最终的KV。在五个顺序推荐模型和三个数据集上的实验表明,我们的方法可以将KV缓存压缩到原大小的0.8%,同时保持或甚至提升模型性能。
英文摘要:
Sequential recommendation models are widely used in applications, yet they face stringent latency requirements. Mainstream models leverage the Transformer attention mechanism to improve performance, but its computational complexity grows with the sequence length, leading to a latency challenge for long sequences. Consequently, KV cache technology has recently been explored in sequential recommendation systems to reduce inference latency. However, KV cache introduces substantial storage overhead in sequential recommendation systems, which often have a large user base with potentially very long user history sequences. In this work, we observe that KV sequences across different users exhibit significant similarities, indicating the existence of collaborative signals in KV. Furthermore, we analyze the KV using singular value decomposition (SVD) and find that the information in KV can be divided into two parts: the majority of the information is shareable across users, while a small portion is user-specific. Motivated by this, we propose CollectiveKV, a cross-user KV sharing mechanism. It captures the information shared across users through a learnable global KV pool. During inference, each user retrieves high-dimensional shared KV from the pool and concatenates them with low-dimensional user-specific KV to obtain the final KV. Experiments on five sequential recommendation models and three datasets show that our method can compress the KV cache to only 0.8% of its original size, while maintaining or even enhancing model performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。