Enhanced Generative Recommendation via Content and Collaboration Integration

Yidan Wang, Zhaochun Ren, Weiwei Sun, Jiyuan Yang, Zhixiang Liang, Xin Chen, Ruobing Xie, Su Yan, Xu Zhang, Pengjie Ren, Zhumin Chen, Xin XinarXiv 2024 · arXiv · OpenReview

Abstract

Generative recommendation has emerged as a promising paradigm aimed at augmenting recommender systems with recent advancements in generative artificial intelligence. This task has been formulated as a sequence-to-sequence generation process, wherein the input sequence encompasses data pertaining to the user's previously interacted items, and the output sequence denotes the generative identifier for the suggested item. However, existing generative recommendation approaches still encounter challenges in (i) effectively integrating user-item collaborative signals and item content information within a unified generative framework, and (ii) executing an efficient alignment between content information and collaborative signals. In this paper, we introduce content-based collaborative generation for recommender systems, denoted as ColaRec. To capture collaborative signals, the generative item identifiers are derived from a pretrained collaborative filtering model, while the user is represented through the aggregation of interacted items' content. Subsequently, the aggregated textual description of items is fed into a language model to encapsulate content information. This integration enables ColaRec to amalgamate collaborative signals and content information within an end-to-end framework. Regarding the alignment, we propose an item indexing task to facilitate the mapping between the content-based semantic space and the interaction-based collaborative space. Additionally, a contrastive loss is introduced to ensure that items with similar collaborative GIDs possess comparable content representations, thereby enhancing alignment. To validate the efficacy of ColaRec, we conduct experiments on three benchmark datasets. Empirical results substantiate the superior performance of ColaRec.

Introduction

Modern recommender systems generally fall into two distinct categories: Collaborative Filtering (CF), which identifies patterns in user-item interactions, and Content-Based models, which analyze item attributes like titles and descriptions. While Generative Recommendation has recently emerged as a powerful paradigm—where models directly generate the next item identifier—it faces two significant hurdles. First, there is an alignment gap: language models excel at text but do not inherently understand the collaborative relationships between items. Second, information silos persist, as most methods focus on either content or collaboration, rarely integrating both in a unified end-to-end pipeline.

The ColaRec Framework

To address these challenges, we propose ColaRec (Content-based Collaborative Generation). ColaRec utilizes a Transformer-based encoder-decoder architecture (fine-tuned T5-small) to unify item content and collaborative signals.

Collaborative Generative Identifiers (GIDs)

A core innovation of ColaRec is the use of Generative Identifiers (GIDs). Unlike conventional item IDs, which are often arbitrary and uncorrelated, GIDs are derived from a pretrained collaborative filtering model (e.g., LightGCN). By applying hierarchical K-means clustering to item embeddings, we ensure that items with similar interaction patterns share prefix-overlapping GIDs. This makes the identifier itself a map of the collaborative landscape.

Comparison between conventional uncorrelated ItemIDs and correlated GIDs.

Multi-Task Alignment and Architecture

ColaRec represents users as a sequence of "content tuples" from their history (e.g., [Title: Hiking Boot, Brand: VoyageX]). To bridge the semantic and collaborative spaces, the model is trained on two primary tasks:

  1. Recommendation Task: Mapping a user's content-based history to the GID of the next item.
  2. Item Indexing Task: An auxiliary task where the model maps an item's own content and its interacting users to its GID, acting as the "glue" for alignment.
The ColaRec architecture showing the User-Item Recommendation and Item-Item Indexing tasks.

Furthermore, the model incorporates a Bayesian Personalized Ranking (BPR) loss and a contrastive loss to ensure that items with similar GIDs maintain similar content representations in the latent space.

Experimental Results

ColaRec was evaluated on four real-world datasets: Amazon Beauty, Sports, Phone, and Recipe (Food.com). The results demonstrate that ColaRec consistently outperforms both traditional CF methods and existing generative baselines.

  • Overall Performance: On the Beauty dataset, ColaRec achieved a Recall@20 of 0.1371, significantly outperforming generative models like TIGER (0.1154) and traditional CF baselines like NCL (0.1320).
  • Long-Tail Success: ColaRec excels with "long-tail" users who have few interactions. By relying on semantic descriptions to ground collaborative GIDs, the model provides a robust safety net when interaction data is sparse.
  • Generative Superiority: Compared to models using random IDs (like DSI-R), ColaRec showed relative improvements ranging from 26% to 80% in Recall@5 across datasets.

Conclusion and Future Work

ColaRec demonstrates that explicit alignment between content and collaborative signals is superior to naive data fusion. While the model shows significant gains, future work will address inference latency inherent in autoregressive generation and explore how these alignment tasks scale with larger language models. Additionally, more sophisticated negative sampling strategies for generative recommendation remain an open area for research.

Summary updated

Abstract

Generative recommendation has emerged as a promising paradigm aimed at augmenting recommender systems with recent advancements in generative artificial intelligence. This task has been formulated as a sequence-to-sequence generation process, wherein the input sequence encompasses data pertaining to the user's previously interacted items, and the output sequence denotes the generative identifier for the suggested item. However, existing generative recommendation approaches still encounter challenges in (i) effectively integrating user-item collaborative signals and item content information within a unified generative framework, and (ii) executing an efficient alignment between content information and collaborative signals. In this paper, we introduce content-based collaborative generation for recommender systems, denoted as ColaRec. To capture collaborative signals, the generative item identifiers are derived from a pretrained collaborative filtering model, while the user is represented through the aggregation of interacted items' content. Subsequently, the aggregated textual description of items is fed into a language model to encapsulate content information. This integration enables ColaRec to amalgamate collaborative signals and content information within an end-to-end framework. Regarding the alignment, we propose an item indexing task to facilitate the mapping between the content-based semantic space and the interaction-based collaborative space. Additionally, a contrastive loss is introduced to ensure that items with similar collaborative GIDs possess comparable content representations, thereby enhancing alignment. To validate the efficacy of ColaRec, we conduct experiments on three benchmark datasets. Empirical results substantiate the superior performance of ColaRec.
BibTeX
@misc{wang2024enhanced,
  author = {Yidan Wang and Zhaochun Ren and Weiwei Sun and Jiyuan Yang and Zhixiang Liang and Xin Chen and Ruobing Xie and Su Yan and Xu Zhang and Pengjie Ren and Zhumin Chen and Xin Xin},
  title = {{Enhanced Generative Recommendation via Content and Collaboration Integration}},
  year = {2024},
  eprint = {2403.18480},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.18480},
}
Figure