跳到正文
arXiv (AI + Vision + Imaging)· Xin Guo, Qiang Zhang, Xiang Zhou, Arushi Rai, Siyu Lin, Yifan Wu, Xiang Shen, Lei Huang, Qunshu Zhang, Xiangjun Fan, Lizhu Zhang·· 7 天前AI 评分36

KVUse:面向高效 LLM 推荐系统的可复用 KV 用户记忆方案

KVUse: Reusable-KV User Memory for Efficient LLM Recommenders

AI 导读

KVUse 将 LLM 推荐系统中的用户画像以可复用 KV 缓存形式存储,替代原有文本存储方式,避免每次排序调用重复 prefill 用户画像文本。该方法通过自蒸馏训练轻量 LoRA writer,在解码用户画像时同步生成可复用 KV,并配套 KV 调度器将下一批次 KV 上传隐藏在 GPU 计算之后。

正文 · 原文

arXiv:2611.21920v1 Announce Type: new Abstract: Memory-augmented recommenders built on large language models (LLMs) maintain a natural-language profile of each user. These profiles are updated by a user profile update path that revises the profile as new interactions arrive and are consumed by downstream task paths like ranking. Because these user profiles are stored as text in the user memory, every ranking LLM call that consumes them must splice them in the prompt and calculate the KV cache of them during the prefill phase. Given these ranking LLM calls are prefill heavy (long prompt but short decoded output) and repeatedly called, these repeated prefill of user profile text dominates the serving. Prefix caching cannot remove it, because these user profiles are preceded by different text in different calls. We present KVUse, which stores the user profiles as reusable key-value (KV) caches instead of text. KVUse trains lightweight LoRA writers by self-distillation, so that the user profile update call produces the reusable KV of the user profile while decoding it, and the LLM can read these reusable KV at new positions and behind new context without recomputation. KVUse also has a customized KV scheduler that uploads the stored reusable KV of the next batch while the current batch is computed, hiding the KV transfer from host memory behind GPU computation. On four InstructRec datasets with Llama-3.1-8B-Instruct, KVUse shows no statistically significant difference in ranking quality from full prefill over continuous memory update rounds. Under saturated load, KVUse raises the throughput of the downstream scoring path by 4.0x-4.5x and of the profile update path by 1.4x-1.9x.

来源:arXiv (AI + Vision + Imaging) · arxiv.org