Introduction
Collaborative filtering (CF) has long been the cornerstone of modern recommender systems. Traditional approaches, such as Matrix Factorization, typically represent users and items as deterministic "point" vectors in a latent space. While effective, these fixed-point representations fail to capture the inherent uncertainty associated with user preferences and item characteristics. This paper introduces a shift in paradigm by representing users and items as Gaussian distributions—defined by both a mean and a variance—allowing the model to explicitly reason about uncertainty.
The Challenge of Deterministic Vectors
Deterministic models struggle in two primary scenarios that are common in real-world applications:
- The Cold Start Problem: When a user has minimal interaction history, a point-based model is forced to make a "best guess" location in the latent space. In contrast, a distribution can represent this lack of data through high variance, signaling low confidence to the system.
- Conflicting Preferences: Users often exhibit inconsistent behavior, such as liking some films in a genre while disliking others with no clear pattern. A deterministic model might collapse these conflicting signals into a neutral mean, losing the information that the user is actually polarized. A Gaussian model can maintain a specific mean while using high variance to indicate that the user's behavior in that region is unpredictable.
The Gaussian Embeddings Ranking (GER) Model
The proposed Gaussian Embeddings Ranking (GER) model learns a mean $\mu$ and a diagonal covariance matrix $\Sigma$ for every user and item. By adopting the Bayesian Personalized Ranking (BPR) framework, the model optimizes for the pairwise probability that a user prefers one item over another.
To handle the mathematical complexity of calculating inner products between Gaussian variables, the authors employ moment matching. This technique approximates the resulting distribution as a normal distribution, enabling the use of the standard Normal cumulative distribution function (CDF) to calculate preference probabilities. Furthermore, Normal-Gamma priors—the conjugate prior for a normal distribution with unknown mean and variance—are utilized to regularize the learned parameters and prevent overfitting.
Insights: Variance as a Proxy for Confidence
A key contribution of this work is the interpretation of variance as a measure of confidence. The model uses variance to "dampen" the influence of dimensions where the data is noisy or insufficient. This approach opens the door for applying Portfolio Theory to recommendations: a system could intentionally suggest "risky" high-variance items to explore a user's interests or stick to "safe" low-variance items for a conservative list.
As shown in the analysis of latent space dimensions, the model's reliance on variance changes with the capacity of the system. In lower-dimensional spaces, the model aggressively adjusts variance to capture uncertainty. As the dimensionality increases, the distribution of learned variances tends to stabilize toward the prior. Qualitative analysis further reveals that while median variance generally decreases with more training data, it can increase for specific items where more ratings introduce conflicting opinions, effectively capturing the "controversial" nature of certain content.
Results and Performance
The GER model was evaluated against standard BPR and state-of-the-art baselines like CoRank across three major benchmarks: Yahoo! Music, MovieLens 100k, and the Yelp Dataset. To test robustness, the datasets were subsampled to simulate varying levels of sparsity (10, 20, or 50 ratings per user).
- Superior Ranking: GER consistently outperformed baselines on MovieLens and Yelp across almost all training sizes.
- Significant nDCG Gains: On the Yelp dataset, GER improved nDCG (normalized Discounted Cumulative Gain) scores by margins of 0.05 to 0.08 over the next best model.
- Robustness to Sparsity: Even with only 10 ratings per user, the Gaussian approach remained highly competitive, proving its utility in sparse data environments.
Conclusion and Future Directions
By moving from points to distributions, the GER model provides a more nuanced representation of the latent space in recommender systems. While the current implementation assumes a diagonal covariance matrix for efficiency, future work could explore full covariance structures to capture richer correlations between dimensions. Additionally, the probabilistic nature of these embeddings makes them ideal candidates for hybrid systems that integrate external content metadata directly into the Gaussian parameters, bridging the gap between collaborative and content-based filtering.
Summary updated