INMO: A Model-Agnostic and Scalable Module for Inductive Collaborative Filtering

Yunfan Wu, Qi Cao, Huawei Shen, Shuchang Tao, Xueqi Cheng

TL;DR

This paper introduces INMO, a novel module that makes collaborative filtering models capable of handling new users and items without retraining. By leveraging interactions with a small set of "template" users and items, INMO significantly reduces model parameters and computational cost while maintaining or improving recommendation accuracy, addressing a key limitation of traditional methods.

What Problem Does This Paper Address?

Recommender systems, particularly those using collaborative filtering (CF), are ubiquitous. A dominant approach in CF is latent factor modeling, where users and items are represented by learned embeddings. However, these models are typically transductive, meaning they are trained on a fixed set of users and items and struggle to adapt to new users or items that appear after training. This necessitates expensive retraining, hindering scalability and real-time adaptation. While some inductive CF methods exist, they often suffer from high computational costs or limited accuracy. This paper aims to bridge this gap by proposing an efficient and effective inductive CF module.

Methods

The core contribution is the Inductive Embedding Module (INMO). Instead of learning a unique embedding for every user and item via a lookup table, INMO generates inductive embeddings by characterizing a user's (or item's) interactions with a carefully selected set of "template" users (or items). This approach allows INMO to generate embeddings for unseen users/items by composing their interactions with these templates.

Key aspects of the method include:

  • Model-Agnostic Design: INMO can be plugged into existing latent factor CF models (like Matrix Factorization (MF) and LightGCN) as a pre-module, inheriting their representational power while adding inductive capabilities.
  • Template Selection: The paper proposes a theoretically-backed "error-sort" indicator to select optimal template users/items, balancing expressiveness with parameter reduction.
  • Scalability: The number of parameters in INMO depends only on the number of template users/items, not the total number of users/items, making it highly scalable.
  • Optimization Techniques: To further improve performance, INMO incorporates a self-enhanced loss function to guide template learning and a normalization annealing strategy to accelerate convergence. A "drop interaction" technique is also used for data augmentation.

Datasets

The authors evaluated their method on three public benchmark datasets:

  • Gowalla: A dataset of user location check-ins.
  • Yelp: A dataset of user reviews for local businesses.
  • Amazon-Book: A dataset of user reviews for books.

The paper defines two inductive scenarios: "new interactions" and "new users/items," which are evaluated on these datasets.

Key Insights and Ideas

  • Template-based Inductive Embeddings: The fundamental idea that a small set of "template" users/items can act as a basis to represent any user/item is a powerful shift from traditional lookup tables. This allows for generalization to unseen entities.
  • Theoretical Justification for Template Selection: The paper provides theoretical analysis showing that INMO can achieve performance comparable to the original MF when all users/items are templates. This underpins the idea that a subset can still be effective.
  • Parameter Reduction and Scalability: The direct link between the number of template entities and model parameters is a crucial insight for building scalable recommender systems in dynamic environments.
  • Inductive vs. Transductive: The paper clearly delineates the limitations of transductive models and the necessity of inductive capabilities for real-world applications where data is constantly evolving.

Key Results

  • Transductive Performance: INMO-MF and INMO-LGCN (INMO integrated with MF and LightGCN, respectively) outperform their base models (MF and LightGCN) in transductive settings, even when using only 30% of parameters (INMO-MF and INMO-LGCN). INMO-LGCN achieved state-of-the-art results.
  • Inductive Performance: In inductive scenarios (new interactions, new users/items), INMO-LGCN significantly outperforms baseline methods, approaching the performance of a fully retrained model. This demonstrates its strong generalization ability.
  • Efficiency: INMO drastically reduces retraining costs. For example, retraining LightGCN takes hours, while INMO provides inductive recommendations in seconds.
  • Template Selection Effectiveness: The proposed "error-sort" indicator for template selection is shown to be superior to heuristic methods like node degree and page rank.
  • Hyperparameter Tuning: The self-enhanced loss and normalization annealing techniques were found to be beneficial, with optimal weights varying between INMO-MF and INMO-LGCN.

Limitations and Future Work

  • Template Selection Sensitivity: While the error-sort indicator is effective, the paper notes that the calculation of the theoretical indicator can be computationally expensive, leading to a simplified heuristic for practical use. The performance can still be sensitive to the choice of template entities.
  • Hyperparameter Tuning: The optimal weight for the self-enhanced loss (β) needs careful tuning, and the paper suggests that INMO-MF might require more supervised signal than INMO-LGCN.
  • Future Work: The paper implicitly suggests exploring more sophisticated template selection strategies and further investigating the interplay between template selection and backbone model architectures. The inductive nature of INMO also opens doors for applications in scenarios with rapidly changing user preferences or item catalogs.

Summary updated

BibTeX
@inproceedings{wu2022inmo,
  author = {Yunfan Wu and Qi Cao and Huawei Shen and Shuchang Tao and Xueqi Cheng},
  title = {{INMO: A Model-Agnostic and Scalable Module for Inductive Collaborative Filtering}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2022},
  doi = {10.1145/3477495.3532000},
}
Figure