Bridging Items and Language: A Transition Paradigm for Large Language Model-Based Recommendation
Xinyu Lin, Wenjie Wang, Yongqi Li, Fuli Feng, See-Kiong Ng, Tat-Seng Chua
TL;DR
This work tackles bridging the item space and language space for LLM-based recommendations by introducing TransRec, a transition paradigm that uses multi-facet item identifiers (ID, title, and attributes) and position-free constrained generation empowered by an FM-index. An aggregated grounding module ties generated identifiers to in-corpus items, enabling robust ranking and improved generalization, including strong few-shot and cold-start performance with large LLM backbones. Extensive experiments on Beauty, Toys, and Yelp datasets demonstrate TransRec's superiority over traditional and prior LLM-based methods, while ablation and hyper-parameter analyses reveal the critical roles of each facet and the grounding mechanism. The approach advances practical LLM-based recommendation by ensuring semantic richness, discriminative item representation, and reliable in-corpus grounding, with potential for automatic facet construction and enhanced grounding strategies in future work.
Abstract
Harnessing Large Language Models (LLMs) for recommendation is rapidly emerging, which relies on two fundamental steps to bridge the recommendation item space and the language space: 1) item indexing utilizes identifiers to represent items in the language space, and 2) generation grounding associates LLMs' generated token sequences to in-corpus items. However, previous methods exhibit inherent limitations in the two steps. Existing ID-based identifiers (e.g., numeric IDs) and description-based identifiers (e.g., titles) either lose semantics or lack adequate distinctiveness. Moreover, prior generation grounding methods might generate invalid identifiers, thus misaligning with in-corpus items. To address these issues, we propose a novel Transition paradigm for LLM-based Recommender (named TransRec) to bridge items and language. Specifically, TransRec presents multi-facet identifiers, which simultaneously incorporate ID, title, and attribute for item indexing to pursue both distinctiveness and semantics. Additionally, we introduce a specialized data structure for TransRec to ensure generating valid identifiers only and utilize substring indexing to encourage LLMs to generate from any position of identifiers. Lastly, TransRec presents an aggregated grounding module to leverage generated multi-facet identifiers to rank in-corpus items efficiently. We instantiate TransRec on two backbone models, BART-large and LLaMA-7B. Extensive results on three real-world datasets under diverse settings validate the superiority of TransRec.
