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

Collaborative filtering recommendation algorithm based on variational inference

Kai Zheng, Xianjun Yang, Yilei Wang, Yingjie Wu, Xianghan ZhengInt. J. Crowd Sci 2020

TL;DR

This paper tackles the problem of poor robustness and overfitting in collaborative filtering recommendation systems, especially with large datasets. They propose using variational inference, specifically a Variational Auto-Encoder (VAE), to model user behavior probabilistically. To address the common KL-vanishing issue in VAEs, they incorporate KL annealing and Free Bits methods, leading to improved recommendation performance on larger datasets.

What Problem Does This Paper Address?

Recommender systems are crucial for navigating information overload, and collaborative filtering (CF) is a popular approach. However, traditional CF methods often struggle with robustness and overfitting, particularly as the scale of user-item interaction data grows. This means recommendations can become unreliable or biased when dealing with massive datasets. Existing neural network-based CF methods, while improving accuracy, sometimes lack clear theoretical grounding. The authors aim to bridge this gap by leveraging variational inference, a probabilistic modeling technique, to build a more robust and theoretically sound CF recommendation system. They specifically target the challenge of accurately modeling complex probability distributions inherent in user behavior, which is often computationally prohibitive.

Methods

The core of the proposed solution lies in using Variational Inference (VI) to build a probabilistic recommendation model. VI is a technique for approximating complex probability distributions with simpler ones, making it computationally tractable.

The paper introduces a Variational Auto-Encoder (VAE) as the generative network to model user rating data. The VAE learns a latent representation (hidden vector z) of user behavior. The optimization target for the VAE is a combination of reconstruction error (how well the model can predict original ratings) and the KL divergence between the learned latent distribution and a prior distribution (typically a standard normal distribution).

A significant challenge in training VAEs is the KL-vanishing problem, where the KL divergence term quickly approaches zero during training, rendering it ineffective and hindering the model's ability to learn meaningful latent representations. To combat this, the authors adopt two established methods:

  1. KL Annealing: This method gradually increases the weight (parameter β) of the KL divergence term during training, starting from zero. This allows the model to first focus on reconstructing the data and then progressively incorporate the regularization effect of the KL term, encouraging the latent distribution to align with the prior.
  2. Free Bits: This method introduces a threshold (ε) for each dimension of the KL divergence. Only dimensions where the KL divergence exceeds this threshold are optimized. This approach allows for a controlled deviation from the prior distribution, preventing premature convergence to zero.

The paper then details how these methods are integrated into a collaborative filtering recommendation algorithm, focusing on score matrix filling and Top-N recommendations.

Datasets

The experiments were conducted on the following datasets:

  • MovieLens 1 M: A smaller dataset used for initial comparison.
  • MovieLens 10 M: A larger dataset.
  • MovieLens 20 M: The largest dataset used in the study.

For these datasets, the paper mentions that scores of four points and above were treated as a positive rating (1), while scores below four were treated as a negative rating (0). This binary conversion is common for implicit feedback recommendation tasks.

Key Insights and Ideas

  • Probabilistic modeling for robustness: By framing recommendation as a probabilistic inference problem, the model can better capture the uncertainty and variability in user behavior, leading to improved robustness against noise and overfitting.
  • VAE as a powerful generative model for CF: The VAE's ability to learn latent representations and reconstruct data makes it a suitable framework for score matrix filling in collaborative filtering.
  • KL-vanishing is a critical hurdle: The paper highlights that without addressing KL-vanishing, the VAE's performance in CF is significantly hampered, especially on smaller datasets.
  • KL annealing and Free Bits offer effective solutions: Both KL annealing and Free Bits methods demonstrably improve the VAE's performance by mitigating the KL-vanishing problem, allowing for better latent representation learning.
  • Performance scales with data size: The proposed VAE-based methods, particularly when optimized with KL annealing and Free Bits, show superior performance on larger datasets (MovieLens 10M and 20M) compared to smaller ones (MovieLens 1M). This suggests that probabilistic models benefit from sufficient data to accurately capture complex distributions.

Key Results

The paper presents experimental results comparing their proposed methods (VAE, VAE_KL, VAE_FB) against baseline methods like DAE, CDAE, and cSLIM on MovieLens 1M, 10M, and 20M datasets.

  • Small Datasets (MovieLens 1M): The VAE-based models (VAE, VAE_KL, VAE_FB) generally performed worse than DAE and CDAE. This is attributed to the KL-vanishing problem affecting the base VAE and potentially the difficulty in accurately fitting distributions with limited data.
  • Large Datasets (MovieLens 10M and 20M): VAE_KL and VAE_FB showed better performance than the baseline methods, including DAE and CDAE. For instance, on MovieLens 20M, VAE_FB achieved the highest NDCG@100 (0.43089) and Recall@50 (0.53679), outperforming other models.
  • Improvement over base VAE: Both VAE_KL and VAE_FB significantly outperformed the base VAE model across all datasets, demonstrating the effectiveness of the KL-vanishing mitigation strategies.

Limitations and Future Work

  • Performance on Small Datasets: The paper acknowledges that the proposed VAE-based models do not perform as well on small datasets. This is attributed to the difficulty in accurately fitting probability distributions with limited data, which can lead to inaccurate local representations.
  • Need for Large-Scale Data: The effectiveness of the proposed methods is more pronounced on larger datasets, suggesting that they are well-suited for real-world scenarios with abundant user interaction data.
  • Future Work: The paper implies that future work could explore ways to improve performance on smaller datasets, possibly by incorporating auxiliary information or exploring different regularization techniques. The authors also suggest that the probabilistic nature of the fitted data distribution in large-scale scenarios makes variational inference a valuable tool for collaborative filtering recommendation.

Summary updated

BibTeX
@article{zheng2020collaborative,
  author = {Kai Zheng and Xianjun Yang and Yilei Wang and Yingjie Wu and Xianghan Zheng},
  title = {{Collaborative filtering recommendation algorithm based on variational inference}},
  journal = {Int. J. Crowd Sci.},
  year = {2020},
  doi = {10.1108/ijcs-10-2019-0030},
}
Figure