[論文レビュー] CollectiveKV: Decoupling and Sharing Collaborative Information in Sequential Recommendation
CollectiveKV は KV キャッシュをユーザー固有の部分とユーザー間共有部分に分解し、グローバル KV プールとルータを介して学習することで、KV キャッシュを圧縮し、長い連続推奨モデル全体で精度を犠牲にせずレイテンシを低減する。
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.
研究の動機と目的
- 長いシーケンスのシーケンシャル推奨における KV キャッシュ圧縮の必要性を動機づけ、レイテンシ制約を満たす。
- KV 表現の跨ユーザ類似性を識別し、共有性を定量化する。
- 学習可能なグローバル KV プールを用いて KV をユーザー固有成分と集合的成分に分離する CollectiveKV フレームワークを提案する。
- ルータと損失を設計して跨ユーザ KV インデックスを学習させ、プールのバランスの取れた有意な利用を保障する。
- CollectiveKV が複数のモデルとデータセット across で精度を維持・改善しつつ圧縮を達成することを実証する。
提案手法
- コサイン類似度と SVD を用いた跨ユーザの K/V の類似性を分析し、情報の大部分が共有可能であることを示す。
- SVD による主成分(共有)と残差成分(ユーザー固有)に KV を分解し、共有可能性を定量化する。
- グローバル KV プールと各ユーザー用のルータを導入し、集合的な K/V インデックスを取得してユーザー固有の K/V と結合する。
- 推論時には K_u と K_c を連結して最終的な K と V を形成する。訓練時にはシグモイドに基づくルーティングとピーク・ロードバランス損失を用いて学習可能でバランスの取れた共有を実現する。
- KV の計算を分離してレイテンシを低減するため、プレフィルとデコードの二段階推論を提供する。
- 5つのシーケンシャルモデル(ターゲットアテンションと自己アテンション)で、3つの長大シーケンス CTR データセットを評価する。

実験結果
リサーチクエスチョン
- RQ1キーと値はシーケンシャル推奨において跨ユーザの共有を可能にする跨ユーザ類似性を示すか。
- RQ2KV 情報のうち共有可能な部分とユーザー固有の部分はどれくらいか、それをどのように定量化するか。
- RQ3学習可能なグローバル KV プールとルータは、推奨パフォーマンスを保ちつつ KV キャッシュを効果的に圧縮できるか。
- RQ4リアルタイム推論における従来の KV キャッシュと比較して CollectiveKV はレイテンシにどのような影響を与えるか。
- RQ5ユーザー固有の KV 次元とグローバルプールサイズの組み合わせはパフォーマンスと圧縮にどのような影響を与えるか。
主な発見
- ユーザー間の KV シーケンスは、K および V 表現に顕著な跨ユーザ類似性を示す。
- SVD に基づく分解は、主成分の K/V が大部分の情報を捉え(高い共有性)、残差の K/V は主にユーザー固有であることを示す。
- CollectiveKV は KV キャッシュを元サイズの 0.8% まで圧縮でき、モデルとデータセットを跨いで GAUC/AUC/Logloss を維持・改善できる。
- グローバル KV プールと学習可能なルーティングインデックスにより、デコード時の集合的 K/V の取得が効率化され、従来の KV キャッシュに比べてレイテンシを顕著に削減できる(例:バッチサイズのスケーリングによる結果)。
- 推論時のバッチサイズが増加しても CollectiveKV のレイテンシは KV キャッシュより低速化が遅い(例:1→512 の場合、KV キャッシュは 0.099ms→32.991ms、CollectiveKV は 0.084ms→0.695ms)。”
- ユーザー固有の KV 次元と共有 KV 容量の最適なバランスはデータセットにより異なる;ユーザー固有 KV が小さいほど性能が良い場合が多く、拡大とともに効果が逓減する。

この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。