NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Relational Collaborative Filtering: Modeling Multiple Item Relations for Recommendation

Xin Xin, Xiangnan He, Yongfeng Zhang, Yongdong Zhang, Joemon M. Jose

Abstract

Relational Collaborative Filtering (RCF) addresses the limitations of traditional item-based collaborative filtering (ICF) by explicitly modeling the multi-faceted relationships between items. While ICF relies on coarse-grained "collaborative similarity," RCF leverages item metadata to define a two-level relation hierarchy consisting of relation types and values. By employing a hierarchical attention mechanism and a multi-task learning framework that preserves relational structures, RCF achieves superior recommendation accuracy and provides human-readable explanations. Evaluations on MovieLens and KKBox datasets demonstrate significant performance gains over state-of-the-art baselines, including Matrix Factorization and Knowledge Graph-enhanced models.

Introduction

Traditional recommendation systems often rely on Item-based Collaborative Filtering (ICF), a staple in the industry due to its simplicity and effectiveness. ICF operates on the principle of "collaborative similarity": if many users interact with both Item A and Item B, the items are considered similar. However, this approach is fundamentally "coarse-grained." It treats all similarities as a black box, ignoring the specific semantic reasons why items are related—such as two movies sharing a director or a camera being a functional complement to a specific lens.

This lack of granularity makes it difficult for standard ICF to capture nuanced user preferences or provide transparency regarding why a recommendation was made. To bridge this gap, the authors propose Relational Collaborative Filtering (RCF), which moves beyond simple co-occurrence to model rich, multi-faceted item relationships.

The RCF Framework

The core innovation of RCF lies in its ability to incorporate item metadata into the recommendation process through a structured relational approach. Unlike previous models that treat attributes as a flat list, RCF defines relations as a pair: <type, value>. For instance, a relation might be <Genre, Sci-Fi> or <Director, Christopher Nolan>.

Comparison between traditional Item-based Collaborative Filtering (ICF) and the proposed Relational Collaborative Filtering (RCF).

As illustrated in the figure above, while ICF relies on a single latent "collaborative similarity," RCF explicitly models multiple relational links ($r_1, r_2, r_3$) between items. This allows the model to distinguish between different drivers of similarity, leading to more precise user modeling.

Hierarchical Attention Mechanism

To process these complex relations, RCF utilizes a two-level hierarchical attention mechanism. This architecture allows the model to dynamically determine which aspects of an item's history are most relevant to a specific user:

  1. First Level Attention: This level determines which relation types (e.g., Genre vs. Actor) a specific user prioritizes.
  2. Second Level Attention: This level identifies which specific values (e.g., "Sci-Fi" vs. "Drama") within those types are driving the user's interest, weighting historical items accordingly.
The RCF model architecture, highlighting the two-level hierarchical attention mechanism and the multi-task learning objective.

Multi-Task Learning and Relation Preservation

Beyond the attention mechanism, RCF employs a multi-task learning framework. The model is trained not only to predict user-item interactions but also to preserve the relational structure of the items. By using a scoring function inspired by Knowledge Graph Embedding (specifically a commutative version of DistMult), the model ensures that item embeddings reflect real-world connections. This joint training acts as a powerful regularizer, preventing the model from overfitting to sparse interaction data.

Experimental Results

The model was evaluated on two large-scale real-world datasets: MovieLens (enriched with IMDb metadata) and KKBox (a music streaming dataset). RCF was compared against several state-of-the-art baselines, including Matrix Factorization (MF), Neural Factorization Machines (NFM), and Collaborative Knowledge Base Embedding (CKE).

  • Accuracy Improvements: On the MovieLens dataset, RCF showed a relative improvement of 11.2% to 25.2% over baselines across metrics like Hit Ratio (HR) and Normalized Discounted Cumulative Gain (NDCG).
  • Music Recommendation: The gains were even more pronounced on the KKBox dataset, with relative improvements reaching up to 29.1%.
  • Interpretability: Because the model relies on attention weights, it is inherently interpretable. It can generate explanations such as: "We recommended 'Face/Off' because it is a 'Crime' movie, similar to 'Breakdown' which you watched previously."

Conclusion

Relational Collaborative Filtering represents a significant step forward in making recommendation systems both more accurate and more transparent. By explicitly modeling the "why" behind item similarities through a hierarchical attention mechanism, RCF captures the micro-level preferences of users that traditional models miss. Future work may extend this framework to handle dynamic, time-varying relations and more complex, high-order relational paths within knowledge graphs.

Summary updated

BibTeX
@inproceedings{xin2019relational,
  author = {Xin Xin and Xiangnan He and Yongfeng Zhang and Yongdong Zhang and Joemon M. Jose},
  title = {{Relational Collaborative Filtering: Modeling Multiple Item Relations for Recommendation}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2019},
  doi = {10.1145/3331184.3331188},
}
Figure