Multi-Grained Patch Training for Efficient LLM-based Recommendation

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Liao, Jiayi, Xie, Ruobing, Li, Sihang, Wang, Xiang, Sun, Xingwu, Kang, Zhanhui, He, Xiangnan
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866918023012548608
author Liao, Jiayi
Xie, Ruobing
Li, Sihang
Wang, Xiang
Sun, Xingwu
Kang, Zhanhui
He, Xiangnan
author_facet Liao, Jiayi
Xie, Ruobing
Li, Sihang
Wang, Xiang
Sun, Xingwu
Kang, Zhanhui
He, Xiangnan
contents Large Language Models (LLMs) have emerged as a new paradigm for recommendation by converting interacted item history into language modeling. However, constrained by the limited context length of LLMs, existing approaches have to truncate item history in the prompt, focusing only on recent interactions and sacrificing the ability to model long-term history. To enable LLMs to model long histories, we pursue a concise embedding representation for items and sessions. In the LLM embedding space, we construct an item's embedding by aggregating its textual token embeddings; similarly, we construct a session's embedding by aggregating its item embeddings. While efficient, this way poses two challenges since it ignores the temporal significance of user interactions and LLMs do not natively interpret our custom embeddings. To overcome these, we propose PatchRec, a multi-grained patch training method consisting of two stages: (1) Patch Pre-training, which familiarizes LLMs with aggregated embeddings -- patches, and (2) Patch Fine-tuning, which enables LLMs to capture time-aware significance in interaction history. Extensive experiments show that PatchRec effectively models longer behavior histories with improved efficiency. This work facilitates the practical use of LLMs for modeling long behavior histories. Codes are available at https://github.com/ljy0ustc/PatchRec.
format Preprint
id arxiv_https___arxiv_org_abs_2501_15087
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Multi-Grained Patch Training for Efficient LLM-based Recommendation
Liao, Jiayi
Xie, Ruobing
Li, Sihang
Wang, Xiang
Sun, Xingwu
Kang, Zhanhui
He, Xiangnan
Information Retrieval
Large Language Models (LLMs) have emerged as a new paradigm for recommendation by converting interacted item history into language modeling. However, constrained by the limited context length of LLMs, existing approaches have to truncate item history in the prompt, focusing only on recent interactions and sacrificing the ability to model long-term history. To enable LLMs to model long histories, we pursue a concise embedding representation for items and sessions. In the LLM embedding space, we construct an item's embedding by aggregating its textual token embeddings; similarly, we construct a session's embedding by aggregating its item embeddings. While efficient, this way poses two challenges since it ignores the temporal significance of user interactions and LLMs do not natively interpret our custom embeddings. To overcome these, we propose PatchRec, a multi-grained patch training method consisting of two stages: (1) Patch Pre-training, which familiarizes LLMs with aggregated embeddings -- patches, and (2) Patch Fine-tuning, which enables LLMs to capture time-aware significance in interaction history. Extensive experiments show that PatchRec effectively models longer behavior histories with improved efficiency. This work facilitates the practical use of LLMs for modeling long behavior histories. Codes are available at https://github.com/ljy0ustc/PatchRec.
title Multi-Grained Patch Training for Efficient LLM-based Recommendation
topic Information Retrieval
url https://arxiv.org/abs/2501.15087