Latent Class Models for Collaborative Filtering

Thomas Hofmann, Jan PuzichaIJCAI 1999 · OpenReview

This paper, a foundational piece in the history of recommender systems, moves collaborative filtering from heuristic-based approaches toward a rigorous statistical framework. By treating user-item interactions as "dyadic data," the authors introduce latent variable models that can uncover the hidden structures of human taste.

Abstract

This paper presents a statistical approach to collaborative filtering and investigates the use of latent class models for predicting individual choices and preferences based on observed preference behavior. Two models are discussed and compared: the aspect model, a probabilistic latent space model which models individual preferences as a convex combination of preference factors, and the two-sided clustering model, which simultaneously partitions persons and objects into clusters. We present EM algorithms for different variants of the aspect model and derive an approximate EM algorithm based on a variational principle for the two-sided clustering model. The benefits of the different models are experimentally investigated on a large movie data set.

The Problem: Beyond Heuristics

In the late 90s, the "information overload" of the growing web created a massive need for automated filtering. Most systems relied on content-based filtering, recommending items with similar descriptions. However, content-based systems struggle with items that are hard to describe (like the "vibe" of a movie) or when user data is sparse.

Collaborative filtering (CF) solves this by looking at what other similar people liked. The challenge the authors tackle is the lack of a formal statistical foundation for CF. They wanted a model that didn't require external knowledge about the users or the items—just the raw "dyadic" data of who liked what.

Methods: Latent Variable Models

The authors introduce two distinct flavors of latent variable models to capture the underlying structure of user preferences:

  1. The Aspect Model: This is a probabilistic latent space model. It assumes there is a hidden variable $z$ (an "aspect" or "factor") associated with every user-item pair. Crucially, it assumes that the user and the item are independent given the aspect. This allows a user to be modeled as a convex combination of different interests. For example, a user isn't just a "horror fan"; they might be 40% "horror," 30% "indie drama," and 30% "sci-fi."
  2. The Two-Sided Clustering Model: This is a more rigid approach where every user belongs to exactly one cluster and every item belongs to exactly one cluster. It seeks to find "blocks" of similar interactions.
Graphical model representations of various latent class model architectures (a-f) discussed in the paper, showing dependencies between users (x), items (y), latent aspects (z), and ratings (v).

Algorithms

  • For the Aspect Model, the authors use the standard Expectation-Maximization (EM) algorithm.
  • For Two-Sided Clustering, the exact EM is computationally "out of reach" due to the coupling of user and item mappings. Instead, they derive an approximate Variational EM algorithm (specifically a mean-field approximation) to make the computation tractable.

Datasets and Evaluation

The models were evaluated using the EachMovie dataset, a premier benchmark at the time containing nearly 3 million preference votes. The original 0–5 star ratings were thresholded into binary preferences: +1 (like) and -1 (dislike).

Key Insights

  • Flexibility vs. Structure: The Aspect Model is superior for prediction because it allows for "overlapping" interests. Real people have multifaceted tastes, and the Aspect Model captures this by allowing a user to participate in multiple latent classes.
  • Symmetry: The models are "perfectly symmetric" with respect to users and items. The math treats a "user choosing a movie" the same way it treats a "movie attracting a user," simplifying the underlying probability distributions.
  • Overcoming Sparsity: By reducing thousands of users and items into a small number of latent "aspects," the model can make educated guesses about interactions it has never seen before, effectively solving the data sparseness problem.

Results

  • Predictive Power: The Aspect Model significantly outperformed the Two-Sided Clustering model in terms of perplexity (a measure of how well a probability model predicts a sample), achieving a roughly 2x reduction compared to a baseline independence model.
  • Qualitative Success: The "aspects" discovered by the model were intuitively meaningful, clustering related items like Star Trek movies or Disney animations together.
  • Real-world Recommendations: When tested on the authors' own data, the system produced highly relevant recommendations (e.g., suggesting The Empire Strikes Back and Raiders of the Lost Ark to a fan of Star Trek).

Limitations and Future Work

While groundbreaking, the paper notes several areas for improvement. The focus on binary preferences is a simplification, and the Two-Sided Clustering model proved too restrictive for high-accuracy prediction. Additionally, the computational cost of these models is high, and future work would benefit from more user-centric evaluation metrics like Precision and Recall.

Summary updated

Abstract

This paper presents a statistical approach to collaborative filtering and investigates the use of latent class models for predicting individual choices and preferences based on observed preference behavior. Two models are discussed and compared: the aspect model, a probabilistic latent space model which models individual preferences as a convex combination of preference factors, and the two-sided clustering model, which simultaneously partitions persons and objects into clusters. We present EM algorithms for different variants of the aspect model and derive an approximate EM algorithm based on a variational principle for the two-sided clustering model. The benefits of the different models are experimentally investigated on a large movie data set.
BibTeX
@inproceedings{hofmann1999latent,
  author = {Thomas Hofmann and Jan Puzicha},
  title = {{Latent Class Models for Collaborative Filtering}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1999},
  url = {https://openreview.net/forum?id=HkZ-ZmfdbB},
}
Figure