Manuscript Offprint

arXiv:2610.35323

CRIM: Composable and Reusable Item Memory for Efficient Personalized Retrieval

Haolin Li, Haipeng Zhang, Mang Li, Zhaohui Xia, Xun Zhu, Miao Li, Yu Zhang, Ji Wu

Haolin Li ∗^{*}

Tsinghua University

Beijing, China

Alibaba International Digital

Commerce Group

Beijing, China

hl-li23@mails.tsinghua.edu.cn

Haipeng Zhang ∗^{*}

Alibaba International Digital

Commerce Group

Beijing, China

Zhaohui Xia

Alibaba International Digital

Commerce Group

Beijing, China

Mang Li

Alibaba International Digital

Commerce Group

Beijing, China

Xun Zhu

Tsinghua University

Beijing, China

Miao Li

Tsinghua University

Beijing, China

Yu Zhang †^{\dagger}

Alibaba International Digital

Commerce Group

Beijing, China

Abstract

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 Composable and Reusable Item Memory (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.

CCS Concepts

• Information systems → Recommender systems; Retrieval efficiency.

Ji Wu †^{\dagger}

Tsinghua University

Beijing, China

∗^{*}Haolin Li and Haipeng Zhang contributed equally to this work.

†^{\dagger}Corresponding authors: Yu Zhang and Ji Wu.

Figure

Figure 1: Recall@100 versus mean request latency on LazSeq (single A100, histories up to 500 interactions). The inset reports mean serving input lengths, including memory slots, REC tokens, queries, and special tokens.

References (10)