Deep Item-based Collaborative Filtering for Top-N Recommendation

Feng Xue, Xiangnan He, Xiang Wang, Jiandong Xu, Kai Liu, Richang Hong

TL;DR

Traditional item-based collaborative filtering (ICF) relies on shallow, linear similarities that fail to capture the complex nuances of user behavior. This paper introduces DeepICF, a neural network architecture that models non-linear, higher-order relationships between items in a user’s history to significantly improve Top-N recommendation accuracy.

What Problem Does This Paper Address?

Item-based Collaborative Filtering (ICF) is a staple of industry recommendation engines because it is interpretable and handles online personalization well (e.g., "Because you watched X, we recommend Y"). However, most ICF models are "shallow." They typically only model second-order interactions—the simple similarity between a target item and a single item in a user's history.

The authors argue that this is insufficient. User decision-making is often driven by higher-order relationships—where a combination of multiple previously consumed items provides a much stronger signal than any single item alone. While some models have tried to address this (like HOSLIM), they are often linear and require a cumbersome two-step process to identify "frequent itemsets." The challenge is to create an end-to-end, non-linear model that can automatically learn these complex patterns from raw interaction data.

Methods

The authors propose a generic neural framework called DeepICF. Its architecture consists of several key stages:

  1. Input & Embedding Layer: Users are represented by a multi-hot vector of their historical interactions. These items, along with the target item, are projected into a shared latent embedding space.
  2. Pairwise Interaction Layer: The model calculates the element-wise product between the target item's embedding and each historical item's embedding. This captures the standard "second-order" similarity signals.
  3. Pooling Layer: These pairwise interactions are aggregated into a single vector. The authors propose two versions:
  4. DeepICF: Uses a weighted average pooling.
  5. DeepICF+a: Uses an attention mechanism to learn which items in a user's history are actually relevant to the current target item.
  6. Deep Interaction Layers: This is the core innovation. The pooled vector is fed through multiple non-linear hidden layers (MLP with ReLU activations). This allows the model to learn "higher-order" dependencies between the items.
  7. Pre-training: To avoid local optima and speed up convergence, the authors initialize the embeddings using a simpler model called FISM (Factored Item Similarity Model).

Datasets

The model was evaluated on two widely used public benchmarks:

  • MovieLens (1M): A dense dataset containing roughly 1 million movie ratings.
  • Pinterest: A significantly sparser dataset of user-image interactions, filtered to ensure each user had at least 20 interactions.

Evaluation was performed using a "leave-one-out" protocol, measuring Hit Ratio (HR@10) and Normalized Discounted Cumulative Gain (NDCG@10).

Key Insights and Ideas

  • Non-Linearity is Key: The "aha moment" is that stacking deep layers on top of pairwise interactions allows the model to approximate any continuous function. This means it can learn that "Item A + Item B" implies "Item C" even if A and B individually are not similar to C.
  • Attention as an Explainer: By adding an attention layer (DeepICF+a), the model becomes more interpretable. For example, if a user has watched many romance movies and one documentary, the attention mechanism learns to ignore the documentary when recommending a new romance film.
  • Overcoming the "Linear Limit": The authors demonstrate that simply making a model "deep" isn't enough; you must specifically design the architecture to capture feature interactions. DeepICF succeeds where standard MLPs often fail because it explicitly models the relationship between historical items and the target.

Key Results

  • State-of-the-Art Performance: DeepICF and DeepICF+a consistently outperformed all baselines, including traditional ICF (ItemKNN, FISM), linear higher-order models (HOSLIM), and even popular user-based deep models like Neural Collaborative Filtering (NCF).
  • Depth Matters: Experimental results showed that increasing the number of hidden layers (up to 3 or 4) generally improved performance, confirming that higher-order modeling provides a tangible boost in accuracy.
  • Sparsity Resilience: DeepICF showed particularly strong improvements on the sparse Pinterest dataset, suggesting that deep item-based models are more robust than user-based models when data is limited.

Limitations and Future Work

  • Implicit Feedback Only: The current model focuses on binary interactions (clicked vs. not clicked). It does not yet account for explicit ratings or negative feedback (dislikes).
  • Side Information: The model relies purely on item IDs. The authors suggest that incorporating item attributes (tags, categories, descriptions) or user demographics could further refine the embeddings.
  • Temporal Dynamics: DeepICF treats a user's history as a "bag of items." It doesn't account for the order in which items were consumed, which is often a critical signal in real-world recommendation.
  • Computational Cost: While more accurate, the deep architecture is computationally more expensive than simple linear models during the inference phase.

Summary updated

BibTeX
@article{xue2019deep,
  author = {Feng Xue and Xiangnan He and Xiang Wang and Jiandong Xu and Kai Liu and Richang Hong},
  title = {{Deep Item-based Collaborative Filtering for Top-N Recommendation}},
  journal = {ACM Trans. Information Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=XmAlwQ6ja9C},
}
Figure