On the Effectiveness of Low-rank Approximations for Collaborative Filtering compared to Neural Networks
Marcel Kurovski, Florian Wilhelm

TL;DR
This paper compares low-rank matrix factorization and deep neural networks for collaborative filtering, finding that low-rank methods outperform neural networks due to better suitability for the task.
Contribution
The study clarifies why low-rank approximations are more effective than neural networks in pure collaborative filtering tasks without additional features.
Findings
Low-rank methods outperform neural networks in collaborative filtering.
Deep neural networks' universal approximation impairs latent vector determination.
Low-rank approximations are better suited for pure collaborative filtering tasks.
Abstract
Even in times of deep learning, low-rank approximations by factorizing a matrix into user and item latent factors continue to be a method of choice for collaborative filtering tasks due to their great performance. While deep learning based approaches excel in hybrid recommender tasks where additional features for items, users or even context are available, their flexibility seems to rather impair the performance compared to low-rank approximations for pure collaborative filtering tasks where no additional features are used. Recent works propose hybrid models combining low-rank approximations and traditional deep neural architectures with promising results but fail to explain why neural networks alone are unsuitable for this task. In this work, we revisit the model and intuition behind low-rank approximation to point out its suitability for collaborative filtering tasks. In several…
| Implicit | Explicit | |||
| user | item | user | item | |
| 610 | 4275 | 610 | 6278 | |
| 0.8246 | 0.7256 | 0.8987 | 0.8156 | |
| 0.1011 | 0.1275 | 0.0446 | 0.098 | |
| 0.5304 | 0.112 | 0.6589 | 0.1534 | |
| 0.7552 | 0.6505 | 0.8683 | 0.7752 | |
| 0.8425 | 0.7472 | 0.9034 | 0.8433 | |
| 0.9061 | 0.8207 | 0.9318 | 0.8827 | |
| 0.9806 | 0.9681 | 0.9867 | 0.9710 | |
| MRR | MAP@10 | AUC | ||
|---|---|---|---|---|
| 0.0436 | 0.0706 | 0.9211 | ||
| 0.0369 | 0.0627 | 0.8920 | ||
| 0.0444 | 0.0738 | 0.9195 | ||
| 0.0449 | 0.0706 | 0.9138 | ||
| 0.0445 | 0.0716 | 0.9157 | ||
| 0.0473 | 0.0753 | 0.9241 | ||
| 0.0449 | 0.0713 | 0.9216 | ||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsRecommender Systems and Techniques · Advanced Bandit Algorithms Research · Stochastic Gradient Optimization Techniques
On the Effectiveness of Low-rank Approximations for Collaborative
Filtering compared to Neural Networks
Marcel Kurovski
inovex GmbH
and
Florian Wilhelm
inovex GmbH
Abstract.
Even in times of deep learning, low-rank approximations by factorizing a matrix into user and item latent factors continue to be a method of choice for collaborative filtering tasks due to their great performance. While deep learning based approaches excel in hybrid recommender tasks where additional features for items, users or even context are available, their flexibility seems to rather impair the performance compared to low-rank approximations for pure collaborative filtering tasks where no additional features are used. Recent works propose hybrid models combining low-rank approximations and traditional deep neural architectures with promising results but fail to explain why neural networks alone are unsuitable for this task. In this work, we revisit the model and intuition behind low-rank approximation to point out its suitability for collaborative filtering tasks. In several experiments we compare the performance and behavior of models based on a deep neural network and low-rank approximation to examine the reasons for the low effectiveness of traditional deep neural networks. We conclude that the universal approximation capabilities of traditional deep neural networks severely impair the determination of suitable latent vectors, leading to a worse performance compared to low-rank approximations.
Recommender Systems; Neural Networks; Collaborative Filtering
††ccs: Information systems Collaborative filtering††ccs: Computing methodologies Neural networks††ccs: Computing methodologies Factorization methods
1. Introduction
Since the Netflix prize in 2009, variants of low-rank approximation (LRA) have been and still are among the most popular approaches to collaborative filtering (CF) problems despite the advent of Deep Learning (DL). In many other domains, e.g. computer vision, image and speech recognition, classical methods used in those domains were significantly surpassed by neural networks and thus great progress was made. Although neural network based recommender systems have become widespread and shown significant performance gains by exploiting content, contextual and sequential patterns, they prove insufficient in case of CF. Feature engineering and extraction capabilities of DL seem to be of no use and the sparsity of user-item interactions surely is an impeding factor. This is generally acknowledged by the community and neural networks are often combined with LRA approaches(He et al., 2017; Guo et al., 2013). Despite these works, we found no proper study comparing LRAs with neural networks especially with respect to the determined latent vectors by these methods. Our work remedies this by contributing an intuition for LRAs based on expected covariances between latent features and interactions. Moreover, we evaluate in several experiments the suitability of the latent vectors obtained by low-rank approximations compared to neural networks.
1.1. Problem Formulation
Given users with and items with from a single domain, we denote with a scalar the interaction of user with item . In order to express the user’s preference for an item, we assume if liked more than and if is indifferent between and . In implicit feedback scenarios, we often have for positive feedback, whereas in explicit feedback scenarios takes a numerical rating. We denote the interaction matrix of all users and items with .
1.2. Low-Rank Approximations
LRAs exploit the fact that rows and columns of are highly correlated due to redundancies in the underlying ratings, e.g. similarly acting users or similarly rated items. This allows a robust approximation by a lower-rank matrix (Ricci et al., 2015; Aggarwal, 2016). We have
[TABLE]
where and are elements of a joint latent space of dimension denoted as user or item* latent factors* in a LRA context** or more generally* latent vectors*. Their inner product models the user-item interaction. The bias terms and capture interaction-independent effects like users systematically rating lower than others or items that are more popular than others. The actual approximation depends on the problem setting. For explicit feedback, where or , a pointwise approach is often applied and for instance the binary cross-entropy loss, i.e.
[TABLE]
where , is the sigmoid function and , is optimized. In case of implicit positive feedback, the de facto standard is Bayesian Personalized Ranking (BPR). This pairwise approach maximizes the probability that an item with observed interaction of user is ranked higher than an item with no observed interaction with an item , i.e. (Rendle et al., 2009). The model parameters are determined with the help of (stochastic) gradient descent or alternating least squares methods (Hu et al., 2008; Koren, 2008).
1.3. Neural Network Approaches
In recent years, DL based recommenders have become widespread in academia and industry (Zhang et al., 2018). Leveraging flexible, non-linear models for representation learning and sequence modeling has proven highly beneficial, especially in content-based and hybrid settings. However, some works also use neural networks, e.g. multi-layer perceptrons (MLP), autoencoders, and convolutional neural networks, purely for CF (Wang et al., 2015; He et al., 2017, 2018; Song et al., 2018). This invites to research their effectiveness compared to LRAs.
A general MLP-based model, illustrating the basic structure of neural collaborative filtering networks (NCFN), is
[TABLE]
where is a mapping from a user-item tuple into . It is composed of functions that transforms user and item indices into their joint latent space and a MLP with parameters which maps the concatenation, outer product or Hadamard product of these latent vectors into modeling the user-item interaction (He et al., 2017, 2018; Song et al., 2018). Since neural networks are universal function approximators, they are theoretically capable to derive these interactions when the concatenation of user and item latent vectors are provided as inputs. Analogously to LRAs, NCFNs can be trained in an explicit context using the binary cross-entropy (1) or in an implicit context with BPR. The parameters are inferred by using backpropagation for loss minimization and hence weight adaption by means of (stochastic) gradient descent.
2. Covariances and low-rank approximations
We want to establish the connection between LRAs and the covariances of latent vectors and interactions to give a novel intuition behind the LRA model. In case of a purely CF task, as well as are just entities without any observable features. Thus we assume the existence of latent item features with which describe the items since we assume a single domain. Consequently, we have for each item a latent vector where defines how strong the latent feature is prevalent in . Analogously, we have for each user a latent vector where represents the strength of the preference for .
Under these assumptions, we can conclude that if user has a preference for this will also be reflected in the items the user has interacted with. With we denote the random variable for the interactions of user having realizations and analogously the random variable for the prevalence of the feature in items with and realizations . We can now formalize the joint variability of and the prevalence of in the items, has interacted with, as . Following the same reasoning but from an item’s perspective, we can argue that the preference of users for should be reflected in their interactions with an item having a strong prevalence of and thus we have that . If we now interpret as realizations of a random variable , we can express these relationships jointly as due to the fact that and can be assumed independent.
Using the bilinearity of the covariance, we have for all latent item features that
[TABLE]
where weights the importance of with respect to the other latent features. Having derived this canonical condition allows us to justify many traditional methods for CF tasks. For instance classical matrix factorization based methods in an implicit feedback use-case, fulfill (2) by assuming equal importance of i.e. setting for and determining and such that .
3. Experiments
In the following section we provide empirical validation of the covariance intuition together with an extensive comparison between LRA and DL.111The source code is available at https://github.com/FlorianWilhelm/lrann.
3.1. Dataset
We use the MovieLens 100k dataset (Harper and Konstan, 2015) for our empirical study. The dataset contains ratings between users and items on a discrete rating scale with . We provide an implicit and explicit interpretation of the rating data to analyze the results in both feedback scenarios.
For the* implicit feedback* scenario, we only keep all interactions rated equal and above each user’s mean rating labeled with and set all others to [math]. This yields a remainder of ratings. We use loss for training which also maximizes the AUC (Dhanjal et al., 2015). randomly samples negative feedback from the remaining unobserved items for each user. In the* explicit feedback* scenario, we binarize the original ratings using the users’ mean ratings as threshold resulting in labels and . We then use the binary cross-entropy (1) to fit the data to our models.
3.2. Methodology
3.2.1. Covariances and LRAs
In both scenarios, we fit latent vectors of size with minibatch gradient descent (batch size 128) for 15 training epochs using the Adam Optimizer (Kingma and Ba, 2014). We use a learning rate , exponential decay rates and and no regularization. Hence, we obtain latent vectors and . We calculate the covariance between the interactions of a fixed user and latent vectors component of the items she interacted or not interacted with. The covariances over varying are then correlated to the user’s latent vector using Pearson which we denote as . Analogously, we define the correlation from the view of a fixed item and varying users that interacted or not interacted with it. Highly positive correlation provides empirical support for our theory from Section (2).
3.2.2. NCFN
In order to compare LRA and DL, we limit experiments to implicit feedback due to its greater abundance in real-world applications and competitive results by using the pairwise ranking approach BPR. Essentially, we examine to which extent network input modeling as well as pretraining latent vectors influence the capability of a DNN to reproduce or potentially outperform a strong LDA baseline in terms of accuracy as measured by the Mean Reciprocal Rank (MRR), Mean Average Precision at 10 (MAP@10) and Area Under receiver operating characteristic Curve (AUC). We explore different DNN architectures and distinguish between three pretraining strategies. refers to the first setting where the latent vectors are initialized randomly and constitute the parameter space to fit together with the network parameters. We augment this setting by initializing the latent vectors to those of our LDA baseline model. In this case we distinguish whether the latent vectors can still be adjusted or whether they stay fixed, yielding and . Input modeling wise, we separate between feeding concatenated user-item latent vectors and their Hadamard product , similar to (He et al., 2017, 2018), into the network.
For each of the resulting six combinations we explore neural networks with hidden layers, using different activation functions arriving at 13 combinations. We choose and five different random initializations for the network parameter initialization. Each combination is trained for 20 epochs. We compute test set MRR after every epoch for early stopping.222Thus, with settings, neural network architectures, training epochs, we consider experiments. For sake of brevity of our study, we leave other goals of recommendations as diversity, serendipity for future work. We apply a 80/20 train-test split and keep it consistent across LRA and NCFN.333We perform a hyperparameter grid search to find the best and therefore most competitive LRA configuration using MRR as selection criterion.
3.3. Results and Discussion
3.3.1. Covariances and LRAs
Evaluating as well as for both feedback scenarios, we observe highly positive correlations with and (implicit feedback) and and (explicit feedback) as detailed in Table 1. Due to the fact that we only consider significant individual correlations and that many items have just few or no interactions, there remains just a fraction of items in each scenario. The distributions of these correlations are also shown in Figures 2 and 2. These results empirically support our derivation of LRA based on covariances of users’ preferences and items’ features manifested by user-item interactions.
3.3.2. NCFN
A traditional DNN with concatenation of user and item latent vectors could not match the performance of LRA in our experiments. This result is in line with Dziugaite and Roy (2015) who stated “Conceivably, a deep neural network could learn to approximate the element-wise product or even outperform it, but this was not the case in our experiments, which used gradient-descent techniques to learn the neural network weights.“ Despite the universal approximation capability of such a network, we need to explicitly model the inner product of latent user and item vectors to match LRA’s performance. We believe that the flexibility of a traditional DNN impedes the determination of proper latent vectors. This hypothesis is supported by our experiments that use pretrained latent vectors from LRA. In this case even a DNN with concatenation is on par with LRA, and even more so, if the pretrained latent vectors are fixed. The largest performance gain is achieved, however, by explicitly modeling the user-item interaction with the help of the Hadamard product resulting in a boost of 20% in MRR. Combining the fitted latent factors of the best LRA that already embed the underlying preference relations with the Hadamard product even outperforms LRA to a certain extent, i.e. 8.58% in . This can be interpreted as an adaption of in (2) by the neural network which is more flexible as setting . All results are summarized in Figure 3 and Table 2.
4. Conclusion
This work contributes theoretical and empirical studies examining the effectiveness of LRA compared to DNNs. We showed that standard DNNs fail to approximate element-wise multiplications which is the cornerstone of LRA’s effectiveness according to our model derivation using covariances. Traditional DNNs perform significantly worse than LRAs for CF. However, when using proper initialization of the latent vectors from a pretrained LRA and potentially joining them using the Hadamard product, DNNs can outperform LRAs. These are important insights to consider when designing DNN based recommender systems that (partially) depend on collaborative signals. Our results are also supported by latest works that show surprising incapacities of neural networks. For example, Trask et al. (2018) propose a neural arithmetic logic unit (NALU) to alleviate the fact that DNNs fail to systematically abstract and to extrapolate from the provided training data. Lin et al. (2017) propose dedicated multiplication gates to enable DNNs solving a seemingly simple task.
For future work, we want to further deepen the understanding of DNNs for CF tasks compared to LRAs. We believe that the concurrent adaption of both, latent vector space and neural network parameters, leads to suboptimal configurations which is supported by the gained performance when we used pretrained latent vectors in our experiments. Eventually, a deeper understanding of these inner workings will result in more advanced DNN-based recommenders.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Aggarwal (2016) Charu C. Aggarwal. Recommender Systems: The Textbook . Springer International Publishing, Cham, 2016. ISBN 978-3-319-29657-9. doi: 10.1007/978-3-319-29659-3 .
- 2Dhanjal et al. (2015) Charanpal Dhanjal, Romaric Gaudel, and Stephan Clemencon. AUC Optimisation and Collaborative Filtering. Arxiv , pages 1–25, 2015. URL http://arxiv.org/abs/1508.06091 .
- 3Dziugaite and Roy (2015) Gintare Karolina Dziugaite and Daniel M. Roy. Neural Network Matrix Factorization. pages 1–7, 2015. URL http://arxiv.org/abs/1511.06443 .
- 4Guo et al. (2013) Huifeng Guo, Ruiming Tang, Yunming Ye, Zhenguo Li, and Xiuqiang He. Deep FM: A Factorization-Machine based Neural Network for CTR Prediction. pages 1725–1731, 2013. ISBN 9780999241103. doi: 10.24963/ijcai.2017/239 . URL https://arxiv.org/pdf/1703.04247.pdf .
- 5Harper and Konstan (2015) F. Maxwell Harper and Joseph A. Konstan. The Movie Lens Datasets: History and Context. ACM Transactions on Interactive Intelligent Systems , 5(4):1–19, dec 2015. ISSN 21606455. doi: 10.1145/2827872 .
- 6He et al. (2017) Xiangnan He, Lizi Liao, Hanwang Zhang, Liqiang Nie, Xia Hu, and Tat-Seng Chua. Neural Collaborative Filtering. In Proceedings of the 26th International Conference on World Wide Web , pages 173–182, 2017. ISBN 9781450349130. doi: 10.1145/3038912.3052569 . URL http://arxiv.org/abs/1708.05031 .
- 7He et al. (2018) Xiangnan He, Xiaoyu Du, Xiang Wang, Feng Tian, Jinhui Tang, and Tat Seng Chua. Outer product-based neural collaborative filtering. IJCAI International Joint Conference on Artificial Intelligence , 2018-July:2227–2233, 2018. ISSN 10450823.
- 8Hu et al. (2008) Yifan Hu, Yehuda Koren, and Chris Volinsky. Collaborative Filtering for Implicit Feedback. IEEE International Conference on Data Mining , pages 263–272, 2008. ISSN 15504786. doi: 10.1109/ICDM.2008.22 .
