Manuscript Offprint
arXiv:2610.39175PRISM: Personalized Item Representations in User History
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Renzhi Wu¹, Zikun Cui¹, Junjie Yang¹, Li Sheng¹, Yongjun Xie¹, Jerry Fu², Nipun Mathur¹, Sri Reddy¹, Hong Li¹
¹Meta MRS, ²Facebook Discovery
Sequential recommenders typically construct history inputs from item identifiers or content features using an embedding map shared across users. The same item therefore yields the same initial embedding representation, even when users have different relationships to the item. We propose personalized item representations in user history, where each item’s embedding expresses its relationship to the user. Personalization becomes a property of the history inputs themselves, supplying richer evidence for later sequence modeling. We instantiate this idea with PRISM, which reuses upstream ranking computation to generate personalized item embeddings. An autoencoder jointly compresses all layer states from a user tower, a user-item tower, and same-request candidate mixing into one embedding per scored pair for downstream replay. Offline evaluation on Surface 1, a major recommendation surface at billion scale, reports an average downstream normalized entropy (NE) change of −0.15%, compared with −0.07% for VISTA at similar history lengths. We further identify an empirical sequence-length scaling law: over history lengths of 26–240 events, NE gain follows a fitted power law with exponent 0.468, increasing from 0.06% to 0.17%. Therefore, personalized item representations in user history provide a new scaling dimension for improving recommendation quality.
Date: October 30, 2026
Correspondence: Renzhi Wu at renzhiwu@meta.com
Keywords: Sequential Recommendation, Sequence Modeling
∞ Meta
1 Introduction
Sequence modeling is central to personalized recommendation. Existing models, including SASRec (Kang and McAuley, 2018), HSTU (Zhai et al., 2024), CMSL (Cui et al., 2026), and OneTrans (Zhang et al., 2025), share a common starting point: each item in user history is mapped to an embedding before sequence processing, using item-side features such as item IDs, creator IDs, and content descriptors. The embedding map is shared across users, so the same item receives the same initial embedding in different users’ histories. After this step, sequence encoders and target-aware interaction learn user-dependent states from these inputs (Zhou et al., 2017, 2018).
Item embeddings: from shared to personalized. The above mentioned standard practice limits personalization at the input stage. For example, a cooking video may be occasional entertainment for a casual viewer but a recurring source of ideas for a food creator. A shared initial embedding does not express these different relationships. Motivated by this limitation, we propose personalized item representations in user history. As illustrated in Figure 1, each history entry represents how an item relates to the user. In the cooking video example, personalized embeddings can distinguish entertainment from professional interest. Furthermore, even for the same user, the same item can receive different embeddings across repeated events as interests and context evolve. This personalizes the initial history inputs for each user and each moment, giving sequence models richer evidence for learning user preferences.
However, our proposal introduces a scalability challenge. A naive approach would train and run a separate user-item model to generate rich embeddings across a large volume of historical events. We observe that recommendation systems often already use an upstream ranker to provide learned user embedding features and teacher labels for downstream models. Such a ranker reads user history and combines user, item, and context features to predict engagement; its hidden states provide learned evidence about each user-item

Figure 1 From shared item history to personalized item history. A cooking video (A) has the same initial item vector for a casual viewer and a food creator. PRISM represents historical items in relation to the user, supplying personalized evidence to a later sequence model. Hue identifies the item; vector glyphs schematically illustrate shared versus personalized inputs.
encounter. Therefore, we retain this computation in a compact embedding per scored pair and chronologically replay these embeddings to construct a personalized history for later sequence modeling, amortizing generation computation.
The three complementary views through PRISM. We introduce PRISM, an upstream ranker designed to generate personalized item embeddings for downstream sequence modeling. Its representation learning captures three complementary views. User state describes the user's interests at the moment of viewing the item. User-item interaction describes how the item relates to that user state. Session interaction describes the item's relationships with other candidates in the same session, providing evidence about the user's immediate context. Together, these views express the user-item relationship comprehensively at the moment of the historical encounter.
Figure 2 maps these views to a dedicated user tower, a user-item tower, and same-request candidate mixing. The user tower reads prior history and other user features; its states also inform pair modeling. Candidate mixing contextualizes each item through the other items in its request. A detached autoencoder jointly compresses their hidden states from every layer, including candidate-specific and pooled session states, into one personalized embedding. Joint compression allocates one code budget across sources and depths; downstream models learn how to read the retained evidence for their own prediction objectives.
We evaluate PRISM history as an additional input to the ranker for Surface 1, a major recommendation surface at billion scale. PRISM achieves an average normalized entropy (NE; lower is better) change of -0.15%, compared with -0.07% for VISTA (Chen et al., 2025) using similar history lengths. We further identify an empirical sequence-length scaling law (Figure 3): NE gain follows a fitted power law . The sublinear exponent captures improving recommendation quality per additional event at log scale. Therefore, personalized item representations in user history provide a new scaling dimension for improving recommendation quality.
We make four contributions:
-
Personalized item representations in user history. We introduce a new history input design for sequential recommendation in which each item's representation is personalized to the user, allowing the same item to differ across users and time.
-
Embedding generation through upstream reuse. We instantiate this idea with an efficient design, which exports compact embeddings from scored pairs and replays them as history, amortizing upstream ranking computation across future reads.
-
PRISM's three modeling components. We propose the PRISM upstream user model that captures the three complementary views through a user tower, a user-item tower, and same-request candidate mixing. A detached autoencoder then jointly compresses states from every layer into one personalized embedding.
-
An empirical scaling law for personalized history. We identify a scaling law relationship between personalized history length and downstream ranking quality, providing a new scaling dimension for improving recommendation systems.

Figure 2 Complete PRISM architecture. User states seed the pair workspace; detached pair states feed session mixing. Colored taps gather every layer, including contextual and pooled session states. An autoencoder compresses them for event export and downstream replay. Its decoder learns reconstruction during training.
3 Method
Figure 2 shows the complete implementation. Let identify user, item, scoring time, and request. Let be user history before , other user features, candidate features, and shared request context. The generation interface is : a fixed-width code computed from information available at the historical event, where denotes the generator's parameters and the exported embedding width. Its user and context inputs remain attached to that event. A later reader uses its new candidate and current context to select saved codes.
3.1 User and User-Item Towers
Let and be the user and pair tower depths; indexes layers, and superscripts and identify the two components. The user tower reads the history together with candidate-independent sparse feature embeddings, dense embedding features, and continuous features. It produces from these user inputs and shared request context, where is the hidden-state tensor at layer . Its final state is shared across the request's candidates and incorporated into the initial user-item workspace. Thus user evidence also participates directly in pair-state learning.
The pair tower produces hidden states for event . In the model backbone, blocks perform self-attention, candidate-conditioned reads of history and feature sources, and higher-order interaction. Condensates from preceding blocks remain available to later blocks. Final pair states feed multitask prediction heads, trained with . The sum is over training events ; indexes item prediction tasks, is the observed target, the pair prediction head, and its loss function. The weight combines task weights and missing-label masks. Binary tasks use cross entropy; other tasks retain their appropriate objectives. This supervision learns the user and pair towers.
3.2 Session Mixing Within a Request
A session is the candidate set in one ranking request, where is the number of valid candidates. The session mixer has parameters and layers; superscript denotes session states. The operator sg stops gradients. This masked interaction module jointly processes detached final pair states:
A Transformer-style module is one realization. Each layer gives a candidate-specific contextual state and a fixed-width request summary . Here pools over valid candidates; both interaction and pooling mask padded candidates.
Item heads on predict the ordinary engagement labels. Aggregate heads on predict request-level outcomes, such as total action counts. Their weighted objective is
Here indexes aggregate tasks, is the request-level target, and and are item and aggregate prediction heads. The item loss is defined above; is the aggregate loss. Weights include item task weights and masks for missing or ineligible labels, and weights aggregate tasks.
3.3 Multi-Level Hidden-State Compression
The exported representation combines all layers. The ordered collection is defined as
where concatenates ordered parts. User and pooled session states are shared across candidates; pair and contextual session states are event-specific. Flattened source widths sum to target dimension . Each session term contains only this candidate's state and its request summary, so is independent of . Code width sets the transfer budget independently.
The three sources capture complementary aspects of personalization. User states describe the user's current interests at this event. Pair states express how the user's state interacts with this item's features. Session mixing places the candidate among other items in the request; candidate-specific and pooled states preserve local relationships and shared context. Joint compression combines these overlapping perspectives into one personalized item embedding, retaining both common evidence and event-specific refinements.
For each part , we apply normalization to a detached copy, , where is a fixed scale, ensures numerical stability, and the mean is over coordinates. We then concatenate the vectors to obtain where vec flattens a tensor; Per-part normalization controls depth-dependent scale differences; Let and be the encoder and decoder, with collecting their separate parameters. With reconstruction weight , the multilevel compressor learns
Here . The encoder and decoder use gated residual blocks with RMS normalization. The encoder bounds coordinates with softsign, ; the decoder reconstructs coordinates. We optimize , with prediction losses learning source states and reconstruction updating only the compressor. The resulting fuses sources and depths, with different codes possible for repeated items.
3.4 Downstream Sequence Modeling
Each stored event has an availability time , when its code becomes readable downstream, and a generator version . At downstream time , select user events with and under a specified retention policy, exclude the current request, and retain at most history events. Let be the th retained event, with scoring time , generator version , and eligible metadata . Let be the downstream reader width and the projection for version . The functions and encode elapsed time and event metadata into coordinates. Construct a token . A sequence encoder and an attention reader conditioned on the candidate consume these tokens alongside ordinary features. Let stack the encoded tokens and be the current candidate. The query network , with parameters , combines current history , user features , candidate features , and request context to form . Candidate attention returns . Here denotes attention with the query, key, and value arguments shown, and is the candidate-conditioned history summary. The predictor combines with ordinary features. Downstream supervision updates the reader and projections; stored codes remain fixed. Missing history uses an availability indicator and the ordinary path.
4 Experiments
4.1 Setup and Metrics
Data. We use production data from Surface 1, a major recommendation surface at billion scale. PRISM does online training for 14 consecutive days, exporting embeddings during training. The downstream ranking models then train on three subsequent days of production data, comprising approximately 30–50 billion examples, and evaluate on the following day's held-out production data.
Hardware. The PRISM model runs on 16 NVIDIA B200 nodes. Downstream models train on 16 NVIDIA H100 GPUs using an internal industrial training platform, mixed precision, and customized kernels for memory and throughput efficiency.
Metrics. We use normalized entropy (NE) (He et al., 2014) as our metric. Smaller NE means better prediction performance. Note an NE improvement greater than 0.03% is considered statistically significant.
Settings. The PRISM arm adds the embedding history alongside the downstream ranker's ordinary features; both baseline and PRISM arms train without warm start. Exported codes have 128 dimensions, are INT8-quantized, and are accompanied by timestamps. History retains the latest 400 events within 30 days; coverage is 98%, with mean sequence length 235 and median 250.
4.2 Downstream Ranking Results
Table 1 reports downstream average NE changes versus the Surface 1 ranking baseline. Adding PRISM history yields changes of −0.17% on positive engagement tasks and −0.11% on negative engagement tasks, with a combined change of −0.15%. Individual binary tasks also improve: comment (−0.20%), like (−0.22%), share
Table 1 Average NE changes (%) versus the Surface 1 ranking baseline, with similar history lengths for PRISM and VISTA. Lower is better. VISTA's combined value is computed from its task-group means.
| Method | Task group | Average NE change (%) |
|---|---|---|
| VISTA | Positive (8) | -0.05 |
| Negative (5) | -0.09 | |
| Combined (13) | -0.07 | |
| PRISM | Positive (8) | -0.17 |
| Negative (5) | -0.11 | |
| Combined (13) | -0.15 |

Figure 3 Log-log sequence-length scaling. Circles show measurements; the dashed line is the power-law fit , where is NE gain (%) and is history length.
(-0.17%), and dislike (-0.09%). The gains across both task groups indicate that personalized history provides useful predictive information beyond the ranker's ordinary features.
We also compare with VISTA (Chen et al., 2025), which caches user-history summary tokens for downstream candidate attention. Both methods use the same ranking baseline, data, ordinary features, prediction heads, and evaluation protocol, with similar retained history lengths. VISTA achieves average NE changes of -0.05% on positive engagement tasks and -0.09% on negative engagement tasks; its combined change, weighted by task count, is -0.07%. PRISM achieves larger improvements in both groups, suggesting that preserving information about individual historical encounters is valuable in this setting.
4.3 Scaling Law with Sequence Length
We next examine how downstream gains change as more personalized history is retained. Figure 3 shows NE improvements of 0.06%, 0.10%, 0.13%, and 0.17% for histories of 26, 76, 135, and 240 events, respectively. Fitting a power law to these measurements by least squares in log space gives , where is the number of retained events and is NE improvement in percent. The fit appears as a straight line on the log-log axes. Its exponent indicates diminishing gains per additional event: doubling history length corresponds to approximately the NE improvement within the observed range. This empirical relationship describes the tested 26–240-event regime and identifies retained personalized history as a scaling dimension for recommendation.
5 Conclusion
We introduced personalized item representations in user history, enabling history inputs to express how each item relates to a particular user at a particular encounter. PRISM implements this idea by reusing upstream ranking computation: it jointly compresses states from every layer of its user tower, user-item tower, and same-request candidate mixer into compact event embeddings for downstream sequence modeling. Evaluation on Surface 1 reports an average NE change of -0.15%, compared with -0.07% for VISTA at similar history lengths. A sweep over 26–240 retained events further reveals an empirical power-law trend with diminishing gains per additional event. Together, these findings identify personalized history as a new scaling dimension for recommendation, combining richer information about historical encounters with the benefits of retaining more events.
References
Zhimin Chen, Chenyu Zhao, Ka Chun Mo, Yunjiang Jiang, Jane H. Lee, Shouwei Chen, Khushhall Chandra Mahajan, Ning Jiang, Kai Ren, Jinhui Li, and Wen-Yun Yang. 2025. Massive Memorization with Hundreds of Trillions of Parameters for Sequential Transducer Generative Recommenders. arXiv preprint arXiv:2510.22049. https://arxiv.org/abs/2510.22049v1
Zikun Cui, Renzhi Wu, Junjie Yang, Li Sheng, Jijie Wei, Linfeng Liu, Tai Guo, Tao Jia, Xiaodong Wang, Hong Li, Li Yu, Sri Reddy, and Hong Yan. 2026. CMSL: Constructive Multi-Sequence Learning for Recommendation Systems. In Proceedings of the 49th International ACM SIGIR Conference on Research and Development in Information Retrieval (Melbourne, VIC, Australia) (SIGIR '26). Association for Computing Machinery, New York, NY, USA, 4545–4549. https://doi.org/10.1145/3805712.3808426
Bharath Hariharan, Pablo Arbeláez, Ross Girshick, and Jitendra Malik. 2014. Hypercolumns for Object Segmentation and Fine-grained Localization. arXiv preprint arXiv:1411.5752. https://arxiv.org/abs/1411.5752
Xinran He, Junfeng Pan, Ou Jin, Tianbing Xu, Bo Liu, Tao Xu, Yanxin Shi, Antoine Atallah, Ralf Herbrich, Stuart Bowers, et al. 2014. Practical lessons from predicting clicks on ads at facebook. In Proceedings of the eighth international workshop on data mining for online advertising. 1–9.
Balázs Hidasi, Alexandros Karatzoglou, Linas Baltrunas, and Domonkos Tikk. 2015. Session-based Recommendations with Recurrent Neural Networks. arXiv preprint arXiv:1511.06939. https://arxiv.org/abs/1511.06939
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the Knowledge in a Neural Network. arXiv preprint arXiv:1503.02531. https://arxiv.org/abs/1503.02531
G. E. Hinton and R. R. Salakhutdinov. 2006. Reducing the Dimensionality of Data with Neural Networks. Science 313, 5786 (July 2006), 504–507. https://doi.org/10.1126/science.1127647
Andrew Jaegle, Felix Gimeno, Andrew Brock, Andrew Zisserman, Oriol Vinyals, and Joao Carreira. 2021. Perceiver: General Perception with Iterative Attention. arXiv preprint arXiv:2103.03206. https://arxiv.org/abs/2103.03206
Wang-Cheng Kang and Julian McAuley. 2018. Self-Attentive Sequential Recommendation. arXiv preprint arXiv:1808.09781. https://arxiv.org/abs/1808.09781
Juho Lee, Yoonho Lee, Jungtaek Kim, Adam R. Kosiorek, Seungjin Choi, and Yee Whye Teh. 2018. Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networks. arXiv preprint arXiv:1810.00825. https://arxiv.org/abs/1810.00825
Dawen Liang, Rahul G. Krishnan, Matthew D. Hoffman, and Tony Jebara. 2018. Variational Autoencoders for Collaborative Filtering. arXiv preprint arXiv:1802.05814. https://arxiv.org/abs/1802.05814
Maxim Naumov, Dheevatsa Mudigere, Hao-Jun Michael Shi, Jianyu Huang, Narayanan Sundaraman, Jongsoo Park, Xiaodong Wang, Udit Gupta, Carole-Jean Wu, Alisson G. Azzolini, Dmytro Dzhulgakov, Andrey Mallevich, Ilia Cherniavskii, Yinghai Lu, Raghuraman Krishnamoorthi, Ansha Yu, Volodymyr Kondratenko, Stephanie Pereira, Xianjie Chen, Wenlin Chen, Vijay Rao, Bill Jia, Liang Xiong, and Misha Smelyanskiy. 2019. Deep Learning Recommendation Model for Personalization and Recommendation Systems. arXiv preprint arXiv:1906.00091. https://arxiv.org/abs/1906.00091
Nikil Pancha, Andrew Zhai, Jure Leskovec, and Charles Rosenberg. 2022. PinnerFormer: Sequence Modeling for User Representation at Pinterest. arXiv preprint arXiv:2205.04507. https://arxiv.org/abs/2205.04507
Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. 2014. FitNets: Hints for Thin Deep Nets. arXiv preprint arXiv:1412.6550. https://arxiv.org/abs/1412.6550
Fei Sun, Jun Liu, Jian Wu, Changhua Pei, Xiao Lin, Wenwu Ou, and Peng Jiang. 2019. BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformer. arXiv preprint arXiv:1904.06690. https://arxiv.org/abs/1904.06690
Ruoxi Wang, Bin Fu, Gang Fu, and Mingliang Wang. 2017. Deep & Cross Network for Ad Click Predictions. arXiv preprint arXiv:1708.05123. https://arxiv.org/abs/1708.05123
Ruoxi Wang, Rakesh Shivanna, Derek Z. Cheng, Sagar Jain, Dong Lin, Lichan Hong, and Ed H. Chi. 2020. DCN V2: Improved Deep & Cross Network and Practical Lessons for Web-scale Learning to Rank Systems. arXiv preprint arXiv:2008.13535. https://arxiv.org/abs/2008.13535
Renzhi Wu, Zikun Cui, Junjie Yang, Tai Guo, Hong Li, Xian Chen, Li Yu, Ke Pan, Sri Reddy, Nipun Mathur, Haomin Yu, and Hong Yan. 2026. RankGraph-2: Lifecycle Co-Design for Billion-Node Graph Learning in Recommendation. In Proceedings of the 20th ACM Conference on Recommender Systems (Minneapolis, USA) (RecSys '26). Association for Computing Machinery, New York, NY, USA, 1417–1426. https://doi.org/10.1145/3773078.3831843
Renzhi Wu, Junjie Yang, Li Chen, Hong Li, Li Yu, and Hong Yan. 2025. RankGraph: Unified Heterogeneous Graph Learning for Cross-Domain Recommendation. In Proceedings of the Nineteenth ACM Conference on Recommender Systems (Prague, Czech Republic) (RecSys '25). Association for Computing Machinery, New York, NY, USA, 1050–1053. https://doi.org/10.1145/3705328.3748118
Shu Wu, Yuyuan Tang, Yanqiao Zhu, Liang Wang, Xing Xie, and Tieniu Tan. 2018. Session-based Recommendation with Graph Neural Networks. arXiv preprint arXiv:1811.00855. https://arxiv.org/abs/1811.00855
Lee Xiong, Zhirong Chen, Rahul Mayuranath, Shangran Qiu, Arda Ozdemir, Lu Li, Yang Hu, Dave Li, Jingtao Ren, Howard Cheng, Fabian Souto Herrera, Ahmed Agiza, Baruch Epshtein, Anuj Aggarwal, Julia Ulziisaikhan, Chao Wang, Dinesh Ramasamy, Parshva Doshi, Sri Reddy, and Arnold Overwijk. 2026. LLaTTE: Scaling Laws for Multi-Stage Sequence Modeling in Large-Scale Ads Recommendation. arXiv preprint arXiv:2601.20083. https://arxiv.org/abs/2601.20083
Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan Salakhutdinov, and Alexander Smola. 2017. Deep Sets. arXiv preprint arXiv:1703.06114. https://arxiv.org/abs/1703.06114
Jiaqi Zhai, Lucy Liao, Xing Liu, Yueming Wang, Rui Li, Xuan Cao, Leon Gao, Zhaojie Gong, Fangda Gu, Michael He, Yinghai Lu, and Yu Shi. 2024. Actions Speak Louder than Words: Trillion-Parameter Sequential Transducers for Generative Recommendations. arXiv preprint arXiv:2402.17152. https://arxiv.org/abs/2402.17152
Buyun Zhang, Liang Luo, Yuxin Chen, Jade Nie, Xi Liu, Daifeng Guo, Yanli Zhao, Shen Li, Yuchen Hao, Yantao Yao, Guna Lakshminarayanan, Ellie Dingqiao Wen, Jongsoo Park, Maxim Naumov, and Wenlin Chen. 2024. Wukong: Towards a Scaling Law for Large-Scale Recommendation. arXiv preprint arXiv:2403.02545. https://arxiv.org/abs/2403.02545
Zhaoqi Zhang, Haolei Pei, Jun Guo, Tianyu Wang, Yufei Feng, Hui Sun, Shaowei Liu, and Aixin Sun. 2025. OneTrans: Unified Feature Interaction and Sequence Modeling with One Transformer in Industrial Recommender. arXiv preprint arXiv:2510.26104. https://arxiv.org/abs/2510.26104v1
Guorui Zhou, Na Mou, Ying Fan, Qi Pi, Weijie Bian, Chang Zhou, Xiaoqiang Zhu, and Kun Gai. 2018. Deep Interest Evolution Network for Click-Through Rate Prediction. arXiv preprint arXiv:1809.03672. https://arxiv.org/abs/1809.03672
Guorui Zhou, Chengru Song, Xiaoqiang Zhu, Ying Fan, Han Zhu, Xiao Ma, Yanghui Yan, Junqi Jin, Han Li, and Kun Gai. 2017. Deep Interest Network for Click-Through Rate Prediction. arXiv preprint arXiv:1706.06978. https://arxiv.org/abs/1706.06978
Kun Zhou, Hui Wang, Wayne Xin Zhao, Yutao Zhu, Sirui Wang, Fuzheng Zhang, Zhongyuan Wang, and Ji-Rong Wen. 2020. S³-Rec: Self-Supervised Learning for Sequential Recommendation with Mutual Information Maximization. arXiv preprint arXiv:2008.07873. https://arxiv.org/abs/2008.07873