English

Multi-Grained Patch Training for Efficient LLM-based Recommendation

Information Retrieval 2025-05-20 v2

Abstract

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.

Keywords

Cite

@article{arxiv.2501.15087,
  title  = {Multi-Grained Patch Training for Efficient LLM-based Recommendation},
  author = {Jiayi Liao and Ruobing Xie and Sihang Li and Xiang Wang and Xingwu Sun and Zhanhui Kang and Xiangnan He},
  journal= {arXiv preprint arXiv:2501.15087},
  year   = {2025}
}
R2 v1 2026-06-28T21:17:19.900Z