CRIM:用于高效个性化检索的可组合且可复用的物品记忆
CRIM: Composable and Reusable Item Memory for Efficient Personalized Retrieval
AI总结:
本研究针对大型语言模型在个性化检索中成本高的问题,提出CRIM框架,通过分离物品与请求编码、复用记忆等方式,在低推理成本下实现了最优检索性能。
摘要:
大型语言模型在个性化搜索与推荐中会产生大量训练和推理成本,因为不断增长的交互历史会延长请求输入,且会向模型重复暴露相同的物品文本。我们提出可组合且可复用的物品记忆(CRIM)框架,该框架将物品级语义编码与请求级历史建模分离开来。少量可学习的摘要令牌将每个物品压缩为紧凑的连续记忆,而分段级读出令牌(REC令牌)则在交互历史中引入预测监督。这些记忆独立于用户和查询,因此可在不同请求间复用。推理时,CRIM按交互顺序组合缓存的记忆,并可选择加入查询以生成个性化检索表示,在保留依赖请求的上下文建模的同时,减少重复的物品文本编码。我们进一步引入联合训练机制,将缓存记忆与采样的实时重新编码相结合。每个请求仅对少数历史物品进行重新编码,使检索目标能以有限的计算成本联合优化物品和请求编码器,同时定期缓存刷新保持一致性。在MovieLens-1M、Qilin及我们新的LazSeq数据集上的广泛评估和成本分析表明,CRIM在相同骨干模型规模下实现了最先进的检索性能,且推理成本显著更低,同时限制了联合训练期间的物品重新编码。我们将公开发布代码和数据集。
英文摘要:
Large language models incur substantial training and inference costs in personalized search and recommendation, as growing interaction histories lengthen request inputs and repeatedly expose the same item text to the model. We propose \textbf{C}omposable and \textbf{R}eusable \textbf{I}tem \textbf{M}emory (CRIM), a framework that separates item-level semantic encoding from request-level history modeling. A small set of learnable summary tokens compresses each item into compact continuous memories, while segment-level readout tokens (REC tokens) introduce predictive supervision within the interaction history. These memories are independent of users and queries and can therefore be reused across requests. At inference time, CRIM composes cached memories in interaction order and incorporates an optional query to produce a personalized retrieval representation, reducing repeated item-text encoding while retaining request-dependent contextual modeling. We further introduce a joint training mechanism that combines cached memories with sampled live re-encoding. Re-encoding only a few history items per request allows the retrieval objective to jointly optimize the item and request encoders at limited computational cost, while periodic cache refreshes maintain consistency. Extensive evaluation and cost analysis on MovieLens-1M, Qilin, and our new LazSeq dataset show that CRIM achieves state-of-the-art retrieval performance with substantially lower inference costs at the same backbone scale, while limiting item re-encoding during joint training. We will publicly release our code and dataset.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。