Recurrent Collaborative Filtering for Unifying General and Sequential Recommender

Disheng Dong, Xiaolin Zheng, Ruixun Zhang, Yan Wang

Abstract

Recurrent Collaborative Filtering (RCF) is a unified framework designed to bridge the gap between long-term user preferences and short-term behavioral patterns in recommender systems. By integrating Matrix Factorization (MF) with Recurrent Neural Networks (RNNs) in a multi-task learning setup, RCF captures both global tastes and local interaction sequences. Experimental results on large-scale datasets demonstrate that RCF outperforms specialized state-of-the-art models in both general and sequential recommendation tasks.

Introduction

Recommender systems generally follow two distinct paradigms: general recommenders and sequential recommenders. General recommenders, often utilizing Matrix Factorization (MF), focus on a user’s "global" taste—such as a general preference for specific genres—but typically ignore the temporal order of interactions. Conversely, sequential recommenders focus on "local" patterns and short-term transitions, yet often fail to capture a user's broader, long-term profile.

Previous attempts to unify these paradigms have often been lopsided, using one model merely to bias the other. Recurrent Collaborative Filtering (RCF) addresses this by treating general and sequential recommendation as two complementary views of the same problem, unified through shared representations and joint optimization.

The RCF Framework

The RCF model unifies the two recommendation views through three primary mechanisms: parameter sharing, additive attention, and multi-task learning.

The RCF framework unifying sequential prediction via RNN and general prediction via MF through multi-task learning.

1. Parameter Sharing

To ensure that sequential patterns and global preferences are captured within the same representation, RCF uses identical latent vectors (embeddings) for items in both the MF and RNN components. This forces the model to learn item representations that are robust across both tasks.

2. Additive Attention

To maintain user identity within the sequential component, the user’s latent vector ($u_i$) is added directly to the RNN’s hidden state ($h_i^{(t)}$). This creates a dynamic "profile vector" that combines the cumulative history of the interaction sequence with the user's stable, long-term traits. The sequential component specifically utilizes a Gated Recurrent Unit (GRU) for efficient modeling of item relations.

3. Multi-Task Learning

The model is trained using a joint loss function where a trade-off parameter ($\alpha$) balances the general and sequential recommendation tasks. This setup allows the two components to mutually regularize each other, preventing the RNN from over-specializing on recent clicks and the MF from becoming too static.

Experimental Evaluation

The model was evaluated on two industry-standard datasets: MovieLens (1M), containing approximately 1 million interactions, and Netflix, a massive dataset with nearly 100 million interactions. Both datasets were preprocessed into binary implicit feedback and time-ordered sequences.

Key Results

RCF consistently outperformed state-of-the-art baselines, including BPR, GRU-TOP1, and HRM:

  • Sequential Task: On MovieLens, RCF achieved a Hit Ratio (HR@10) of 0.157, significantly higher than HRM (0.142).
  • General Task: RCF maintained its lead with an HR@10 of 0.844 on MovieLens and 0.514 on Netflix, outperforming both CoFactor and standard MF.

Insights and Discussion

A critical finding in the study was the "sweet spot" of historical context. The authors observed that looking back at the last 6 to 12 items yielded the best performance. While too little history misses context, excessive history introduces noise that can degrade accuracy.

Impact of the number of look-back items on recommendation performance (HR and NDCG) for the Netflix dataset.

Furthermore, the joint training process in RCF learns superior item representations. An ablation study showed that "RCF-vec" (using only the learned embeddings) outperformed Prod2Vec. Because the profile vector is updated with every interaction, RCF is naturally capable of real-time, dynamic recommendations.

Conclusion and Future Work

RCF successfully unifies general and sequential recommendation into a single, mutually reinforcing framework. While highly effective, the sequential nature of RNNs can limit training speed. Future work may explore parallelizable architectures like Convolutional Neural Networks (CNNs) and the integration of side information—such as user demographics or item descriptions—to further enhance performance and address cold-start challenges.

Summary updated

BibTeX
@inproceedings{dong2018recurrent,
  author = {Disheng Dong and Xiaolin Zheng and Ruixun Zhang and Yan Wang},
  title = {{Recurrent Collaborative Filtering for Unifying General and Sequential Recommender}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/465},
}
Figure