Abstract
Latent variable collaborative filtering methods have been a standard approach to modelling user-click interactions due to their simplicity and effectiveness. However, there is limited work on analyzing the mathematical properties of these methods in particular on preventing the overfitting towards the identity, and such methods typically utilize loss functions that overlook the geometry between items. In this work, we introduce a notion of generalization gap in collaborative filtering and analyze this with respect to latent collaborative filtering models. We present a geometric upper bound that gives rise to loss functions, and a way to meaningfully utilize the geometry of the items to improve recommendations. We show how these losses can be minimized and gives the recipe to a new latent collaborative filtering algorithm, which we refer to as GeoCF, due to the geometric nature of our results. We then show experimentally that our proposed GeoCF algorithm can outperform other all existing methods on the Movielens20M and Netflix datasets, as well as two large-scale internal datasets. In summary, our work proposes a theoretically sound method which paves a way to better understand generalization of collaborative filtering at large.
Introduction: The Challenge of Generalization
Collaborative filtering (CF) is the backbone of modern recommendation engines. While latent variable models like MultiVAE are highly effective, they often suffer from the "Identity Trap"—overfitting to a user's existing click history rather than predicting future preferences. Furthermore, most CF research remains purely empirical, lacking a formal Statistical Learning Theory (SLT) framework to explain why models generalize.
Traditional models are also frequently "metadata-agnostic," ignoring rich semantic information like movie genres or descriptions that could help bridge the gap for users with sparse interaction histories. This paper addresses these gaps by introducing a formal mathematical framework for generalization in CF and proposing GeoCF, an algorithm that uses item metadata to geometrically reshape the user-item space.
Methodology: Bridging SLT and Geometry
The core innovation of this work is the derivation of a formal generalization gap for collaborative filtering. By borrowing machinery from SLT, the authors establish a geometric upper bound on this gap that depends on the number of observed data points and the intrinsic dimensionality ($d^*$) of the user-item distribution.
The GeoCF Algorithm
To minimize this bound, GeoCF "metrizes" the user-item space using semantic metadata:
- Item Embeddings: Items are represented using semantic embeddings (e.g., Sentence Transformers for movie titles).
- Users as Point Clouds: A user is treated as a distribution of the items they have interacted with. The distance between users is calculated using the Wasserstein distance (Earth Mover's Distance) between their respective item point clouds.
- Geometric Loss Functions: Instead of standard VAE losses, GeoCF minimizes a reconstruction error based on the Sinkhorn distance and a prior regularization term using Maximum Mean Discrepancy (MMD).
By forcing users with semantically similar interests to cluster on a lower-dimensional manifold, the model improves its ability to generalize to unseen items.
Experimental Results
The authors evaluated GeoCF against state-of-the-art baselines, including SLIM, MultiVAE, and LightGCN, across four datasets: MovieLens 20M, Netflix, and two large-scale internal datasets (Storefront and NextUp).
GeoCF consistently outperformed all baselines across all metrics (Recall@K and nDCG@K). On MovieLens 20M, GeoCF showed a 1.48% improvement in Recall@20 over the next best model. The gains were even more pronounced on internal datasets, particularly those with strong semantic biases.
On the "NextUp" service, which handles auto-play recommendations, GeoCF achieved an 8.87% boost in nDCG@10. The authors attribute this to the model's unique ability to capture the strong semantic relationships inherent in sequential viewing (e.g., watching a sequel after the first movie).
Discussion and Future Work
GeoCF demonstrates that metadata is more than just extra features; it is a tool to change the underlying geometry of the recommendation problem. By using semantic embeddings to "shrink" the problem space, the model achieves faster convergence and better generalization.
While computationally viable (only ~2.5x slower than MultiVAE), future work could explore learning the item-similarity matrix directly through bi-level optimization rather than relying on a pre-specified cost matrix. Additionally, incorporating more complex metadata, such as full plot descriptions or director lists, could further refine the geometric manifold and improve performance in cold-start scenarios.
Summary updated