Manuscript Offprint
arXiv:2609.11876On the Regularization Landscape for the Linear Recommendation Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Recently, a wide range of recommendation algorithms inspired by deep learning techniques have emerged as the performance leaders on several standard recommendation benchmarks. While these algorithms were built on different DL techniques (e.g., dropouts, autoencoder), they have similar performance and even similar cost functions. This paper studies whether the models' comparable performance are sheer coincidence, or they can be unified under a single framework. We find that all linear performance leaders effectively add only a nuclear-norm based regularizer, or a Frobenius-norm based regularizer. The former ones possess a (surprising) rigid structure that limits the models' predictive power but their solutions are low rank and have closed form. The latter ones are more expressive and more efficient for recommendation but their solutions are either full-rank or require executing hard-to-tune numeric procedures such as ADMM. Along this line of finding, we further propose two low-rank, closed-form solutions, derived from carefully generalizing Frobenius-norm based regularizers. The new solutions get the best of both nuclear-norm and Frobenius-norm world.
1 Introduction
Research progress on algorithms for recommendation has escalated in recent years, partially fueled by the adoption of deep learning techniques. However, recent studies have found that many new deep learning recommendation models have shown sub-par performance against the simpler linear recommendation models [Dacrema et al., 2019a, Rendle et al., 2019]. Although some studies are available to analyze linear vs non-linear models [Dacrema et al., 2019a], it remains puzzling why these seemingly different techniques all result in models with similar performance or even similar cost functions. This motivates us to ask a fundamental question:
What is the barebones engine that drives the performance improvement for the recent recommendation algorithms?
Specifically, do different recommendation techniques offer different “magic”, but coincidentally have similar performance, or can they be unified under a single framework, which has a potential to produce one single algorithm that gets the best of all existing works? In the latest study, Jin et al. [2021] examines the relationship between the widely used matrix factorization (MF), such as ALS [Warlop et al., 2017], and the linear autoencoders (LAE) which encompasses the recent performance leaders, such as EASE [Steck, 2019] and EDLAE [Steck, 2020]. They consider two basic regularization forms (See Eq (1) and (6)) and found that the optimal (closed-form) solutions of both models recover the direction of principal components, while shrinking the corresponding singular values differently. They suggest this difference may enable LAE to utilize a larger number of latent dimensions to improve recommendation accuracy, and use this to highlight the similarity as well as difference between LAE and MF.
In this paper, we go much beyond the two basic models studied in Jin et al. [2021] to analyze a large number of recent performance leaders of (linear) recommender algorithms. We found they all can be categorized into those that implement nuclear-norm regularizers, and into those that implement Frobenius-norm regularizers. We found that the former ones possess a (surprising) rigid structure that limits the models' predictive power, and the latter ones tend to be more expressive and more effective for recommendation. In many cases, both regularizers recover the direction of principal components, while shrinking the corresponding singular values differently. Interestingly, we observe that it is not matrix factorization or LAE that determines the shrinkage structure (as Jin et al. [2021] suggested), but instead it is the forms of regularization. Thus, this paper provides a more complete and accurate characterization on how a linear recommendation model performs under different regularizations.
To better understand the regularizations that can be transformed into the (weighted) nuclear-norm regularizer , we first show that Variational Linear AutoEncoders (VLAE) solves a weighted nuclear-norm regularization problem, in which the weights possess a specific combinatorial structure. We also show that this technique cannot be generalized to tackle arbitrary weight sequences. Second, it has been known that using dropout techniques is equivalent to adding a squared nuclear-norm regularizer , and that the solution structure is strikingly similar to the regularizer that uses . we generalize the result to show that the solution structures for are highly similar for all . But when , the solution and hyper-parameters possess favorable properties so hyper-parameter search becomes easier. This also partially explains why only have been extensively considered. Third, all nuclear-norm-based techniques possess a salient property: their estimators keep the singular vectors of the data matrix and shrink only the singular values. But this severely limits the search space and explains why models that use only nuclear-norm-based regularizers share the same performance ceiling even when hyper-parameters are extensively searched.
The (weighted) Frobenius-norm regularizers are implemented in EASE [Steck, 2019] and ED-LAE [Steck, 2020]. These models produce closed form full-rank estimators; and if the zero diagonal constraint on W is enforced, their singular vectors will no longer coincide with those of the data, and can deliver (slightly) better performance. However, no closed form solutions for the low-rank estimator is known and the current approaches rely on ADMM or stochastic factorized gradients [Steck, 2020]. In this paper, we propose two new low-rank, closed-form estimators that deliver comparable results to the full rank models (EASE and full-rank EDLAE) as well as the ADMM based solutions [Steck, 2020].
The new closed-form solutions for low-rank models have profound implications at both practical and conceptual fronts: First, low rank solutions are often more scalable (the full rank W can be too large to materialize) and can better serve real-world training and deployment. Second, perhaps more excitingly, these solutions get the best of nuclear (closed form and low rank) and Frobenius worlds (strong predictive power). A simple “one-liner” formula (from each solution) concisely pack all the benefits obtained by a recent long line of research and abstract out all the computation nuance (e.g., the need to tune ADMM and deal with local optimal). We believe these closed-form solutions are also powerful tools to help us compare different regularizations analytically.
2.1 Nuclear-norm based regularizations
Let be a matrix of rank at most with leading singular values being . Let . The weighted unclear norm of with respect to is defined as .
We can see that this is a natural generalization of the weighted nuclear norm for low-rank matrices [Gu et al., 2014]. Also, despite its name, the weighted nuclear norm is neither convex nor differentiable unless 's are sorted in descending order [Chen et al., 2013, Iglesias et al., 2020].
Nuclear-norm based regularizers perform -shrinkage over the estimator's singular values, which resembles performing -shrinkage for coefficients in a linear model in LASSO [Tibshirani, 1996]. Therefore, Nuclear-norm regularizers also promote sparsity over the solution's singular values (i.e., the solution is usually low rank). We note a large fraction of recent recommendation algorithms effectively add only a nuclear-norm regularizer to MF (see also Table 3 in Appendix):
A1. Regularized PCA [Udell et al., 2016, Zheng et al., 2018] aims to solve
It has been known that equation (1) is equivalent to solving . To solve equation (1), one can use factored gradient descent [Bhojanapalli et al., 2016] or directly use its closed form solution [Kunin et al., 2019], which involves computation of SVD of .
A2. Matrix Factorization via dropouts. This approach use to approximate X and uses a neural net to find P and Q. A standard dropout technique is used when we train P and Q. Cavazza et al. [2018] shows that optimization with dropout is equivalent to solving , and the closed form solution is obtained by shrinking all singular values of X by a magnitude of , which depends on the data X and choice of .
The next two approaches use techniques from (variational) auto-encoder. We show that they also effectively add variants of nuclear-norm regularizers although this may not be clear at the first glance.
A3. Linear Regression via Denoising Linear Auto-Encoder considers the following (non-uniform) weighted -regularization [Bao et al., 2020]:
(2) where is a diagonal matrix. Bao et al. [2020] has shown a closed-form for eq. 2 with a specific of diagonal when the weight is non-descending: . It remains unclear if a closed-form exists for an arbitrary weight order.
A4. Variational Linear Auto-encoders. While not explicitly studied before, it is also natural to consider linear simplification of Variational Autoencoders, such as Multi-VAE [Liang et al., 2018], which has shown to exhibit strong performance for recommendation. To optimize linear VAE, we need to find the MLE for the probabilistic model
where D is a diagonal covariance matrix. Then we have the following observation.
Lemma 1. Consider optimizing the ELBO (Evidence Lower Bound) [Kingma and Welling, 2014] for the above LVAE model (Eq.3). When the optimization is over the entire dataset and , this optimization problem is equivalent to minimizing
where, .
Here, we set for simplicity and following typical practices in recommendations. The proof can be found in Appendix. Since our objective is for recommendation (not purely on recovering the low rank factors of the data), we treat the covariance matrix as hyperparameters. Thus, the term becomes a constant, and let , , .
If we consider as an optimization parameter, then the optimal solution of LVAE is equivalent to that of pPCA [Tipping and Bishop, 1999]. In this case, , where are the eigen-values of the covariance matrix of , and . Further, the closed form solutions of and are characterized. However, for recommendation, the matrix can be considered as a hyperparameter (to be learned); in this case, the closed form solution is not studied yet. We may “clean up” equation (4) and obtain the following optimization problem:
in which decision variables are A and B, and the hyper-parameter is a diagonal matrix .
Our main results: solution structure and implications (Sec. 3). (i) We show that solving Eq. 5 (A4) is equivalent to solving subject to , where consists of 's diagonal values, sorted in ascending order. In addition, the closed form solution for is merely shrinking the -th singular value of by a magnitude of . When the diagonals of is already sorted (i.e., ), the problem effectively reduces to A3. When is proportional to identity, the problem reduces to A1. This result has three major implications. First, A1, A3, and A4 effectively only add a variant of nuclear-norm based regularizer, and the major benefits from these algorithms are computational. Second, our result generalizes that in A3 and solves an open problem left there, i.e., the hyper-parameters do not need to have sorted diagonal values, the optimization algorithm will “automatically perform the sorting”. Third, while the variational auto-encoder offers a flexibility to tailor-make the prior for each entry in the latent variable (in eq. 3), the solution space is quite rigid due to the auto-sorting property: the -th smallest entry in will find its way to match with the -th largest singular values in . In other words, it is impossible to shrink 's singular values by an arbitrary sequence via carefully choosing in eq. 5.
(ii) We characterize the optimal solution for for any . We shall show that regardless the choice of , the optimal solution uniformly shrinks all 's singular values by a constant magnitude (and to 0 if a singular value is already less than ). The specific depends on , , as well as the data unless . It has two implications. First, needs to be fine-tuned to optimize test performance. Therefore, choices of (again) only produces computational gain. Second, when , does not depend on the data so we can tune this hyper-parameter in a direct manner. When , is scale-invariant, i.e., it does not need to be rescaled when all entries in is scaled by a constant factor. Being able to directly tune or having the scale invariant property helps the hyper-parameter search; when , it does not offer benefit in either computation or search, which explains why we see only in the literature.
Finally, for all nuclear-norm-based approaches discussed above, the estimators always keep singular vectors of X and shrink its singular values. Therefore, the solution space offered by nuclear-norm based regularization is quite constrained, which limits these models predictive power.
2.2 Frobenius norm based regularizations
Most algorithms below were originally motivated by the design of (denoising) auto-encoders, it has been shown that they effectively add a Frobenius-norm regularizer. See also Table 3 in Appendix.
A5. EASE [Steck, 2019] aims to optimize subject to the constraint that . A closed form solution exists for this problem.
A6. DLAE [Steck, 2020] adds a weighted Frobenius-norm regularizer so the objective becomes
where .
A7. EDLAE [Steck, 2020] integrates weighted Frobenius norm in DLAE with EASE's diagonal constraint so its objective is the same as DLAE but it requires . A closed form solution exists for this problem. When W is required to be low rank, an ADMM algorithm may be used.
A8. Tikhonov regularization/Low Rank Regression (LRR) [Jin et al., 2021]. Let be the leading right singular vectors of . Jin et al. [2021] finds an estimator that solves
where and is a hyper-parameter. Its a closed-form solution is.
Our results. Our major goal is to design a low-rank closed form estimator whose performance is comparable to the performance leaders. We first remark that A5 and A6 produce full-rank estimators. A7 can produce either full-rank or low-rank estimator (via ADMM) and has the best performance (among all approaches we discussed). The estimator from A8 is low-rank and has a closed-form solution but it has to keep singular vectors of X so its predictive power is also limited. Nevertheless, A8 is conceptually interesting because it uses Frobenius norm regularizers but its solution space cover the solution space offered in A4 (and thus also A1-A4).
Proposition 1. For any regularized instances in the form of (5) with regularization parameter such that for all , there is a corresponding Tikhonov regularized instance with which provides the same regularization effect.
The proof is in Appendix. A major implication of Prop. 1 is that we can focus on designing Frobenius-norm regularizers because it also gets the value from using nuclear-norm regularizers. Indeed, Sec. 4 will introduce two low-rank Frobenius-norm-based model with closed form solutions that have comparable performance to linear performance leaders.
3 Nuclear-norm based regularization
Rigidity of VLAE. We first analyze solution for Eq. 5 (A4). To facilitate the analysis, we also consider the following problem:
Note that when we let and (where and are an optimal solution of Equation 5), the syntax of Eq. 8 matches with that of Eq. 5. This implies that solution for Eq. 8 is a lower bound of that for Eq. 5. These two solutions coincide only when the columns in the optimal in Eq. 8 are spanned by the columns of X.
We shall first find a closed-form solution for Eq. 8, and show that indeed that the column space of is in the column space of X. Below is our major Proposition.
Proposition 2. Let be any cost function. Let and . Let be a diagonal matrix such that (). Let also , where is a permutation on such that . The following two optimization problems have the same optimal values
In addition, if is an optimal solution for OPT1, then is an optimal solution for OPT2. If is an optimal solution for OPT2, then there exists an optimal solution for OPT1 such that .
We reiterate three points made earlier (Sec. 2). (i) Both A3 and A4 effectively add a nuclear norm regularizer. (ii) Diagonals of do not need to be sorted in ascending order as stated in [Bao et al., 2020] because any permutation of the diagonals will be equivalent to OPT2. This also limits the search space and affects a model's prediction power. (iii) Prop. 2 “compiles” a non-differentiable objective (OPT2) into an equivalent differentiable one (OPT1), which is easier to optimize. In addition, in A3 & A4 is the reconstruction error, in which case closed form solutions exist.
We next explain the intuition for proving Prop. 2 (see Appendix for the full analysis). Consider OPT1 and let . Our goal is to characterize the behaviors of and with the presence of the regularizers when is known (fixed). Let the SVD of be . Because two regularizers and are symmetric, we could “guess” and , where is a unitary matrix. Now we have
Now the question of finding and when is known boils down to finding a unitary matrix that minimizes , where diagonal matrices and are given. Recall that and let . Note that 's could be unsorted and, and that 's are sorted in descending order.
If we restrict to be only a permutation matrix, then we aim to find a permutation that minimizes . Using a rearrangement inequality Yue [2020], we can see that the minimal is achieved when . In this case, we indeed have permutation , where .
Note that because for any unitary matrix , it is always beneficial to use to shuffle the rows and columns of and so that the largest is mapped to the smallest , etc. This “degree of freedom” from also explains why ordering the values along ’s diagonal is irrelevant.
Appendix shows that even when is allowed to be any unitary matrix, the optimal one is still a permutation matrix. This conclusion can be viewed as a matrix version of re-arrangement inequality.
Prop. 2 also leads to the following Corollary.
Corollary 1. Let ( ) be a full rank matrix. Let be a diagonal matrix with for all . Let and . Consider the optimization problems
Let the SVD of X be , and let be a matrix comprising the largest singular values of X, and and be the corresponding singular vectors. Let be the sorted sequence of the diagonal values from . (9) has a closed-form solution:
where is a unitary matrix that corresponds to the permutation such that . In addition, (10) has a closed-form solution: and , where is the pseudo-inverse of .
Uniform solution structure for regularizing . In [Cavazza et al., 2018], it was observed that when we use a neural net (with learnable parameters being and ) to train a model and a standard dropout is used, the objective is equivalent to solving . While the regularizer deviates from the standard one , the optimal solution here is , where is SVD of , and is a diagonal matrix such that its -th element is , in which depends on the data and . In other words, the optimal solution for regularizers and are strikingly similar. Thus, we are interested in how regularizers with different exponents are connected. Our main observation is that for any regularizer ( ), the optimal solution has the same structure.
Lemma 2. Let , where . Let the leading SVDs of be and respectively. Let be the singular values of . Consider the optimization problem:
Let , be the positive root of the function and be the largest value such that . Let . The optimal solution of is .
Lemma 2 is a straightforward generalization of Prop. 12 in [Cavazza et al., 2018] so the contribution here is a conceptual one: it implies that regularizers with different 's differ in how the shrinkage variable is obtained. Observe that is an important hyper-parameter that needs to be extensively tuned against data, all regularizers provide the same learning power. As noted earlier, is a function of (i.e., different will result in different ) unless . In addition, needs to be rescaled when is scaled by a constant factor unless . This implies it could be easier to tune when , and explains why only have been extensively considered.
4 Low-Rank Frobenius norm based regularizations
This section presents the close-form low-rank estimators with comparable performance to the state of the art algorithms.
Approximate Low rank DLAE and EDLAE. Recall that DLAE solves
(13)
and EDLAE with the additional constraint. Even though both the Nuclear norm based regularization as well as the full rank DLAE and EDLAE solutions all have closed-form solutions, such solution is unknown for the low-rank DLAE and EDLAE, whose existing solution is based on ADMMSteck [2020]. The closed form solutions will help both better understand and compare these models, and determine the hyper-parameters, which is usually difficult for the ADMM type solutions.
For DLAE, since it can be considered a special form of Tikhonov regularization (Eq 6) which has a closed form Jin et al. [2021], its closed form solution, referred to LR-DLAE, is immediately available (See Line 6 in Table 3). However, for EDLAE, it has the zero diagonal constraint, which make the exact solution difficult to express. Here, we present an approximate low-rank closed-form solution of equation (13) by decomposing the optimization problem into two subproblems, which is similar to [Jin et al., 2021]: We first consider the full-rank closed form solution for EDLAE Steck [2020], which is:
Then, we consider two approaches to produce low-rank matrix approximation of :
(Method 1 (LR-EDLAE-1): ) Selecting to best approximate the performance of without the zero diagonal constraint:
where . Noting, in the full rank problem equation (13), it forces the diagonal of derived matrix to be zero. Here, we relax the zero diagonal constraint - the diagonal of low rank approximate matrix
doesn't have to be zero, which has also been discussed in [Steck, 2020]. The closed-from solution of equation (14) is given by:
where comes from SVD:
(Method 2 (LR-EDLAE-2):) SVD approximation of : The alternative solution is to simply perform SVD, and which gives a low-rank estimation of .
Note that in both approaches, the hard constraint of zero-diagonal on is relaxed. In the next section, the experimental results show both approaches can provide comparable or better performance compared with the ADMM solution, and also very close to the full rank EDLAE solution.
5 Experimental Results
In this section, we experimentally study different regularizations for linear recommendation models. Our goal is to validate the effectiveness of various regularizations (all can be categorized under nuclear norm and Frobenius norm) together with their simple closed-form solutions. We aim to answer three questions: Q1. How does the closed form solution of low rank Frobenius norm perform compared with the ADMM solutions (Section 4) and how does the weighted nuclear norm regularizer for matrix factorization (Proposition 2 and Corollary 1) perform? Q2. What is the tradeoff between the number of factors (rank k) and the recommendation accuracy? Q3. How does the ordering of weights from small to large (non-descending) for adjusting the singular values (Corollary 1) affect the recommendation performance?
Experimental Setup: We use three commonly used datasets for recommendation studies: MovieLens 20 Million (ML-20M) [Harper and Konstan, 2015], Netflix Prize (Netflix) [Bennett et al., 2007], and the Million Song Data (MSD)[Bertin-Mahieux et al., 2011]. We obtained these datasets and all benchmarks from authors of EASE [Steck, 2019], EDLAE [Steck, 2020], and Mult-VAE [Liang et al., 2018].
Similar to the latest study in EASE [Steck, 2019], and EDLAE [Steck, 2020], we consider the following state-of-the-art recommendation models: ALS (WMF) [Hu et al., 2008] for matrix factorization approaches, SLIM [Ning and Karypis, 2011], EASE [Steck, 2019], and EDLAE [Steck, 2020] for linear autoendoers, CDAE [Wu et al., 2016], Mult-DAE and Mult-VAE [Liang et al., 2018] for deep learning models. The experiment settings for these baseline are the same as [Liang et al., 2018, Steck, 2019, 2020]. Also we follow their practice [Liang et al., 2018, Steck, 2019, 2020] for the strong generalization by splitting the users into training, validation and tests group, and report performance metrics Recall@20, Recall@50 and nDCG@100. Finally, we note that our code are openly available (see Appendix).
Q1: Low-Rank Frobenius Norm and (Weighted) Nuclear Norm Regularization: In this experiment, we evaluate the low rank Frobenius norm regularization and the nuclear norm regularization (equation (1)) for the matrix factorization. Here EDLAE-ADMM, LRR, LR-DLAE, LR-EDLAE-1, LR-EDLAE-2, MF dropout and LVAE are listed in table 3 in Appendix. To determine the non-descending order of weights for the closed-form solution in (equation (11)), we follow the practice in weighted nuclear norm regularization in [Gu et al., 2014] as well as the optimized pPCA weight [Lucas et al., 2019b]. Let where is a hyperparameter, and we perform grid-search to find the optimal one.
In Table 1, we can see that the weighted nuclear norm regularization (LVAE) based matrix factorization actually performs worse than the constant weighted version (Regularized PCA). And the latter shows very

(a)

(b)

(c)
Figure 1: Low rank models nDCG@100 on test data for 3 datasets.
strong performance comparing against the WFM/ALS (one of the most popular implicit matrix factorization algorithm). We also observe the closed form solutions (LR-DLAE, LR-EDLAE-1 and LR-EDLAE-2) all perform very comparable with the ADMM based low rank solution and the full rank DLAE and EDLAE solutions.
Q2: nDCG vs Rank for low-rank Frobenius norm: In this experiment, we focus on evaluating the recommendation accuracy (using nDCG) against the rank . Specifically, we vary the rank from around 1K to around 10K, and we tune and compare four different methods, including EDLAE-ADMM, LR-DLAE, LR-EDLAE-1, and LR-EDLAE-2. We have the following observations: 1) As increases, the recommendation accuracy also increases in general; however, most of them reaches a plateau around similar , and for different datasets, the saturating point varies. 2) LR-DLAE performs worse than EDLAE based approaches in two out of three datasets. This partially demonstrates the benefits of zero-diagonal constraint. 3) The closed form solution of EDLAE performs comparable or even slightly better than ADMM methods as grows; but when is relatively small, ADMM method perform slightly better. But none-the-less, for most of the reasonable choices of when low-rank approximates full rank, the closed form solution performs comparable or better.
Table 1: The performance comparison between different regularizations. For notation, please refer table 3 for more details.
| Model | ML-20M | Netflix | MSD | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Recall@20 | Recall@50 | nDCG@100 | Recall@20 | Recall@50 | nDCG@100 | Recall@20 | Recall@50 | nDCG@100 | ||
| Frobenius Norm | EASE | 0.391 | 0.521 | 0.420 | 0.362 | 0.445 | 0.393 | 0.333 | 0.428 | 0.389 |
| DLAE | 0.392 | 0.527 | 0.424 | 0.362 | 0.446 | 0.395 | 0.329 | 0.426 | 0.387 | |
| EDLAE | 0.393 | 0.523 | 0.424 | 0.366 | 0.449 | 0.398 | 0.334 | 0.429 | 0.392 | |
| EDLAE-ADMM | 0.392 | 0.524 | 0.424 | 0.365 | 0.448 | 0.396 | 0.330 | 0.424 | 0.386 | |
| LRR | 0.376 | 0.511 | 0.408 | 0.348 | 0.431 | 0.380 | 0.248 | 0.335 | 0.301 | |
| LR DLAE | 0.392 | 0.527 | 0.424 | 0.362 | 0.445 | 0.395 | 0.306 | 0.403 | 0.363 | |
| LR-EDLAE-1 | 0.392 | 0.523 | 0.424 | 0.365 | 0.449 | 0.398 | 0.327 | 0.423 | 0.384 | |
| LR-EDLAE-2 | 0.392 | 0.523 | 0.424 | 0.365 | 0.449 | 0.398 | 0.325 | 0.421 | 0.382 | |
| Nuclear Norm | MF dropout | 0.367 | 0.501 | 0.393 | 0.334 | 0.418 | 0.365 | 0.270 | 0.367 | 0.328 |
| Regularized PCA | 0.364 | 0.501 | 0.392 | 0.331 | 0.417 | 0.365 | 0.229 | 0.313 | 0.279 | |
| LVAE | 0.348 | 0.474 | 0.378 | 0.325 | 0.405 | 0.357 | 0.205 | 0.254 | 0.286 | |
| Baseline | WMF/ALS | 0.360 | 0.498 | 0.386 | 0.316 | 0.404 | 0.351 | 0.211 | 0.312 | 0.257 |
| SLIM | 0.370 | 0.495 | 0.401 | 0.347 | 0.428 | 0.379 | no results in [Ning and Karypis, 2011] | |||
| CDAE | 0.391 | 0.523 | 0.418 | 0.343 | 0.428 | 0.376 | 0.188 | 0.283 | 0.237 | |
| MULT-DAE | 0.387 | 0.524 | 0.419 | 0.344 | 0.438 | 0.380 | 0.266 | 0.363 | 0.313 | |
| MULT-VAE | 0.395 | 0.537 | 0.426 | 0.351 | 0.444 | 0.386 | 0.266 | 0.364 | 0.316 | |
| # items | 20108 | 17769 | 41140 | |||||||
| # users | 136677 | 463435 | 571353 | |||||||
| # interactions | 10mil | 57mil | 34mil | |||||||
Table 2: Investigating the weight ordering of Matrix Factorization
| Model | ML-20M | Netflix | MSD | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Recall@20 | Recall@50 | nDCG@100 | Recall@20 | Recall@50 | nDCG@100 | Recall@20 | Recall@50 | nDCG@100 | |
| MF/LRR weighted | 0.3806 | 0.5175 | 0.4102 | 0.3484 | 0.4320 | 0.3797 | 0.2508 | 0.3390 | 0.3037 |
| MF sorted | 0.3017 | 0.4507 | 0.3361 | 0.2860 | 0.3801 | 0.3265 | 0.2288 | 0.3148 | 0.2802 |
Q3: Impact of Weight Ordering: Finally, we study how the ordering of weights from small to large (non-descending) for adjusting the singular values (Corollary 1) affects the recommendation performance using matrix factorization (closed-form solution in Eq. 11). Our results are in Table 2. Here, we obtain the searched optimal weight parameters from weighted Tikhonov regularization (following the approach in Jin et al. [2021]), and map it back to the parameters in the closed form solution (Proposition 1). Then we sort the parameters in the non-descending order, and then report their results in the second row of Table 2. We can see that the recommendation performance becomes significant worst. This help confirm our conjecture that the strict ordering of weight on matrix factorization and other regularizations can be an inherent limitation for those approaches.
6 Conclusion and Discussion
This work provides a complete analysis on the recently proposed linear models for recommendation systems. Despite that models leverage different deep learning techniques, they achieve similar performance. We find that this is not coincident: all the models add either a nuclear-norm-based (Lemma 1) or a Frobenius-norm based regularizer. The nuclear-norm-based approach results in estimators that keep 's singular vectors and shrink its singular values in a quite rigid way (Proposition 2 and Lemma 2), which limit their prediction power. The Frobenius-norm models are more express (Proposition 1) and effective but their estimators are either full-rank or do not have closed form solutions. To get the best of both nuclear and Frobenius worlds, we propose two low-rank and closed-form estimators (Sec. 4) based on carefully generalizing Frobenius-norm based regularizers. These estimators have competitive performance against linear performance leaders, and thus concisely pack all the benefits obtained by a recent long line of research and abstract out all the computation nuance.
References
Charu C. Aggarwal. Recommender Systems: The Textbook. Springer, 1st edition, 2016. ISBN 3319296574.
Xuchan Bao, James Lucas, Sushant Sachdeva, and Roger B. Grosse. Regularized linear autoencoders recover the principal components, eventually. In Hugo Larochelle, Marc'Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020.
James Bennett, Charles Elkan, Bing Liu, Padhraic Smyth, and Domonkos Tikk. Kdd cup and workshop 2007. 2007. doi: 10.1145/1345448.1345459. URL https://doi.org/10.1145/1345448.1345459.
Thierry Bertin-Mahieux, Daniel PW Ellis, Brian Whitman, and Paul Lamere. The million song dataset. 2011.
Srinadh Bhojanapalli, Anastasios Kyrillidis, and Sujay Sanghavi. Dropping convexity for faster semi-definite optimization. In Conference on Learning Theory, pages 530–582. PMLR, 2016.
Emmanuel J Candès and Terence Tao. The power of convex relaxation: Near-optimal matrix completion. IEEE Transactions on Information Theory, 56(5):2053–2080, 2010.
Jacopo Cavazza, Pietro Morerio, Benjamin Haeffele, Connor Lane, Vittorio Murino, and Rene Vidal. Dropout as a low-rank regularizer for matrix factorization. In Proceedings of the Twenty-First International Conference on Artificial Intelligence and Statistics. PMLR, 2018.
Kun Chen, Hongbo Dong, and Kung-Sik Chan. Reduced rank regression via adaptive nuclear norm penalization. Biometrika, 100(4):901–920, 2013.
Evangelia Christakopoulou and George Karypis. Hoslim: Higher-order sparse linear method for top-n recommender systems. In Advances in Knowledge Discovery and Data Mining, 2014.
Maurizio Ferrari Dacrema, P. Cremonesi, and D. Jannach. Are we really making much progress? a worrying analysis of recent neural recommendation approaches. In RecSys'19, 2019a.
Maurizio Ferrari Dacrema, Paolo Cremonesi, and Dietmar Jannach. Are we really making much progress? RecSys'19, 2019b.
Mukund Deshpande and George Karypis. Item-based top-n recommendation algorithms. ACM Trans. Inf. Syst., 2004.
Shuhang Gu, Lei Zhang, Wangmeng Zuo, and Xiangchu Feng. Weighted nuclear norm minimization with application to image denoising. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2862–2869, 2014.
F. Maxwell Harper and Joseph A. Konstan. The movielens datasets: History and context. ACM Trans. Interact. Intell. Syst., 2015. doi: 10.1145/2827872.
Y. Hu, Y. Koren, and C. Volinsky. Collaborative filtering for implicit feedback datasets. In ICDM'08, 2008.
José Pedro Iglesias, Carl Olsson, and Marcus Valtonen Örnhag. Accurate optimization of weighted nuclear norm for non-rigid structure from motion. arXiv preprint arXiv:2003.10281, 2020.
Ruoming Jin, Dong Li, Jing Gao, Zhi Liu, Li Chen, and Yang Zhou. Towards a better understanding of linear recommendation models. In KDD'21, 2021. URL https://arxiv.org/abs/2105.12937.
Santosh Kabbur, Xia Ning, and George Karypis. Fism: Factored item similarity models for top-n recommender systems. KDD '13, 2013.
Diederik P. Kingma and Max Welling. Auto-Encoding Variational Bayes. In 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, 2014.
Yehuda Koren. Factorization meets the neighborhood: A multifaceted collaborative filtering model. In KDD'08, 2008.
Yehuda Koren, Robert Bell, and Chris Volinsky. Matrix factorization techniques for recommender systems. Computer, 42(8):30–37, August 2009.
Daniel Kunin, Jonathan Bloom, Aleksandrina Goeva, and Cotton Seed. Loss landscapes of regularized linear autoencoders. In Proceedings of the 36th International Conference on Machine Learning, Proceedings of Machine Learning Research, pages 3560–3569. PMLR, 09–15 Jun 2019.
Xiaopeng Li and James She. Collaborative variational autoencoder for recommender systems. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD '17, page 305–314, 2017.
Dawen Liang, R. G. Krishnan, M. D. Hoffman, and T. Jebara. Variational autoencoders for collaborative filtering. In WWW'18, 2018.
James Lucas, George Tucker, Roger B Grosse, and Mohammad Norouzi. Don't blame the elbo! a linear vae perspective on posterior collapse. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019a.
James Lucas, George Tucker, Roger B. Grosse, and Mohammad Norouzi. Don't blame the elbo! A linear VAE perspective on posterior collapse. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d'Alché-Buc, Emily B. Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 9403–9413, 2019b. URL https://proceedings.neurips.cc/paper/2019/hash/7e3315fe390974fcf25e44a9445bd821-Abstract.html.
Sahand Negahban and Martin J Wainwright. Estimation of (near) low-rank matrices with noise and high-dimensional scaling. The Annals of Statistics, pages 1069–1097, 2011.
Xia Ning and George Karypis. Slim: Sparse linear methods for top-n recommender systems. ICDM '11, 2011.
Steffen Rendle, Li Zhang, and Yehuda Koren. On the difficulty of evaluating baselines: A study on recommender systems, 2019.
Suvash Sedhain, Aditya Krishna Menon, Scott Sanner, and Darius Braziunas. On the effectiveness of linear models for one-class collaborative filtering. AAAI'16, 2016.
Ilya Shenbin, Anton Alekseev, Elena Tutubalina, Valentin Malykh, and Sergey I. Nikolenko. Recvae: A new variational autoencoder for top-n recommendations with implicit feedback. In Proceedings of the 13th International Conference on Web Search and Data Mining, WSDM '20, page 528–536, 2020.
Harald Steck. Embarrassingly shallow autoencoders for sparse data. WWW'19, 2019.
Harald Steck. Autoencoders that don’t overfit towards the identity. In NIPS, 2020.
Robert Tibshirani. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society: Series B (Methodological), 58(1):267–288, 1996.
Michael E. Tipping and Chris M. Bishop. Probabilistic principal component analysis. JOURNAL OF THE ROYAL STATISTICAL SOCIETY, SERIES B, 61(3):611–622, 1999.
Madeleine Udell, Corinne Horn, Reza Zadeh, and Stephen Boyd. Generalized low rank models. Found. Trends Mach. Learn., 9(1):1–118, June 2016.
Romain Warlop, Alessandro Lazaric, and Jérémie Mary. Parallel higher order alternating least square for tensor recommender system. In Workshops at the Thirty-First AAAI Conference on Artificial Intelligence, 2017.
Yao Wu, Christopher DuBois, Alice X. Zheng, and Martin Ester. Collaborative denoising auto-encoders for top-n recommender systems. WSDM '16, 2016.
Man-Chung Yue. A matrix generalization of the hardy-littlewood-p`olya rearrangement inequality and its applications. arXiv preprint arXiv:2006.08144, 2020.
Shuai Zhang, Lina Yao, Aixin Sun, and Yi Tay. Deep learning based recommender system: A survey and new perspectives. ACM Comput. Surv., 2019.
Shuai Zheng, Chris Ding, and Feiping Nie. Regularized singular value decomposition and application to recommender system, 2018.
A Related Work
There have been extensive researches on recommendation [Aggarwal, 2016]. Besides the basic user-based and item-based collaborative filtering [Deshpande and Karypis, 2004], the full rank linear autoencoder approaches include SLIM [Ning and Karypis, 2011], HOLISM [Christakopoulou and Karypis, 2014], EASE [Steck, 2019], DLAE (Denoising linear autoencoder) Steck [2020], whereas low-rank approaches include [Kabbur et al., 2013, Sedhain et al., 2016, Steck, 2020]. All the customized recommendation has been enforcing zero diagonal constraints for generalization purpose, whereas we show an approximate closed-form solution for a two-term Tikhonov regularization without the zero diagonal constraint can be as effective as these models.
Matrix factorization has been widely studied in practice, partially due to Netflix competition Koren et al. [2009]. Methods like SVD++ Koren [2008] and implicit Alternating Least Square (ALS) method Hu et al. [2008] (also weighted matrix factorization) have been very influential. [Jin et al., 2021] shows the relationship between linear autoencoders and matrix factorization, and pointed out a potential advantage of linear autoencoders. In this work, we take a step further to reveal a deeper relationship between Tikhonov regularized linear autoencoders and a few other regularizations including matrix factorization, and show the potential limitation of the class of regularization. We also utilize the linear variational autoencoders (LVAE) to study how the deep VAE based recommendation approaches [Li and She, 2017, Liang et al., 2018, Shenbin et al., 2020] relate to linear autoencoders and matrix factorization.
Outside recommendation, there have been a few recent studies on regularization landscapes of linear (variational) autoencoders [Kunin et al., 2019, Bao et al., 2020, Lucas et al., 2019a]. They do not provide the general weighted regularization and thus did not find the inherent limitation on the regularization (for MF). Our LVAE inspired regularization is also never studied before.
Nuclear norm regularizers can recover low-rank matrices in the vector regression setting [Negahban and Wainwright, 2011]. Its weighted generalization can be applied in the area of image processing [Gu et al., 2014]. Because weighted nuclear-norm is usually not convex or differentiable, finding optimal solutions is difficult except for a few special cases [Chen et al., 2013].
B Proofs
B.1 Proof of Lemma 1
The Linear Variational AutoEncoder (LVAE) is defined in the same way as [Lucas et al., 2019b]:
For simplification, we set in following context. And the ELBO of LVAE is known as:
Again, the (maximizing) ELBO can be written as:
where , and .
For whole data, it is equivalent to minimize:
(19)
where .
B.2 Proof of Proposition 1
Note that when , the new singular value shrinks to zero, and can be removed. Basically, for any , we can build the corresponding Tikhonov regularized instance by setting
Discussion of Proposition 1: Further, the same observation holds true for the regularization (2), and the weighted-nuclear norm regularization in when the weights are in the non-ascending order. This observation suggests a potentially limitation of the earlier regularization as they will always try to maintain the larger singular values: when a singular value is large, the shrinkage will be small. Such regularization has shown to work well in the areas such as image processing Gu et al. [2014]. But it has not been studied or confirmed if it will work for the recommendation. In Section 5, we report our experimental study which shows such regularization could be too restrictive for recommendation.
B.3 Proof of Proposition 2
By slightly abusing the notation, we shall let OPT1 (OPT2) be the value of the optimal solution for OPT1 (OPT2). We need to show that OPT1 = OPT2. We need two directions.
OPT2 ≥ OPT1: Let be an optimal solution for OPT2. Let the SVD of be . Recall that needs to satisfy the rank constraint so , , and . Let be a permutation on such that . Let also be the corresponding permutation matrix. Specifically, and there is exactly one entry in each row of is 1:
For example, consider a case in which . Then we set , and correspondingly,
Next, let and . We have and . In addition,
where is the i-th largest singular value of . In other words, we have found a pair such that
which shows that .
. Let and be an optimal solution for OPT1. Let the singular values of be and those of be . Let also be the singular values of .
We shall find a lower bound of expressed in terms of 's. In fact, we shall show that
One can see that if Eq. 21 were true, we have
Thus, it remains to prove Eq. 21. Let be a sorted sequence of 's i.e., , .
First, we show that and . We need the following Lemma (see e.g., Theorem 2 in Yue [2020]):
Lemma 3. Let A and B be two positive definite matrices in . Then it holds that
Let the SVD of be U_P^* \Sigma_P^* V_P^*^\mathrm{T} and that of be U_Q^* \Sigma_Q^* V_Q^*^\mathrm{T}. We have
We now apply Lemma 3 by setting and , and obtain that
We may similarly prove that . Therefore,
(25) provides a lower bound of in terms of and . We next aim to express the lower bound in terms of 's (singular values of ) directly.
The following program gives a lower bound for :
Write the SVD of be . Also, let and . Noting that the columns in are in the column space of and the rows in are in the row space of , we have and for , and .
Therefore, (26) can be equivalently written as
Now is positive definite. Using a similar technique developed in [Bao et al., 2020] (Theorem 1), one can see that . See also Lemma 4. This implies that for some unitary matrix and for . Together with (25), we have
B.4 Proof of Corollary 1
We first find an optimal solution for (9). Let the SVD of be , where , , and . Let be an arbitrary basis for the subspace that is orthogonal to 's column space so and form a basis for . We have
Let and . Then our objective becomes
Let and the singular values of be . Let also .
Recall also that is the -th largest singular value of . We next show that
Note first that
Next, we have ([Zheng et al., 2018]):
Therefore, is maximized when
When we plug in this optimized to Eq. 29, we get
Next, from Proposition 2, we have
Therefore, we can find a lower bound for Eq. 5 in terms of 's:
We next find a minimal value of (by treating 's as decision variables). This will give us a lower bound (and is independent of ) on our optimization problem. We then show that this lower bound can be achieved by carefully constructing (as well as and ). This means such is optimal.
Specifically, we need to find an optimal solution for the following program:
We shall first find an optimal solution for
Note here, the ordering constraint is removed so the optimal value for (32) should be no more than that for (31). We shall see that the optimal solution for (31) also satisfies the ordering constraint so indeed optimal solutions for (31) and (32) are the same.
The problem (32) boils down to finding
We note that 's do not interact with each other so we can optimize each 's independently. We get
We can check that . Therefore, the optimal value for (31) is
This is also a lower bound for (9). One can check that when we set P and Q as
(33)
the lower bound is achieved so (33) gives an optimal solution. Here, and are leading left and right singular vectors of X.
Now we move to analyze (10). Our goal is to reduce (10) to (9). Let
Then (10) becomes
Here, X and are given, whereas P, Q, A, and B are decision variables. The (Constraint P) says that each column of P needs to be in a column space of X (it is a necessary and sufficient condition for A to exist). The (Constraint Q) simply says Q and B are linearly related and does not have tangible impact to the optimization problem.
But we note that when we put aside the constraints, an optimal is specified by (33). The columns of the optimal indeed is in the column space of . So is also an optimal solution for (34). We may find the corresponding and :
B.5 Symmetric lemma
Lemma 4. Let be full rank, be a diagonal matrix, and be a diagonal matrix so that , where 's are sorted in descending order. Consider the optimization problem:
There is an optimal solution such that
Proof. Let and . The program (36) is equivalent to
Let the SVD of be so . We can also see that . Therefore, the objective term becomes
Let us consider the stationary points and when is fixed. We can see that they need to be permutation matrices to minimize both terms in the objective (using the rearrangement inequality again). Therefore, we can see for two permutation matrices and . This implies that , i.e., each row (column) of has exactly one non-zero entry. We may similarly show that each row (column) of has exactly one non-zero entry. In addition, the locations of non-zero entries of and are identical because is a diagonal matrix. We may thus write
where and , where is a permutation on . The set of (possibly unsorted) singular values for thus is . Thus, we can see that there exists a permutation such that
One can see that we can set to make all inequality becomes equality so there is an optimal solution such that .
C Experimental Details
C.1 DLAE hyperparameters tuning
This section presents the hyperparameter tuning process on the validation data over three (ML-20M, Netflix, MSD) datasets for the full rank DLAE formula, which was introduced by Steck [2020] yet not investigated:
In practical, regularization is also imposed:
The tables 4 to 6 show the results of nDCG@100 over three datasets respectively. And the optimal parameters are highlighted.
C.2 Matrix Factorization with Dropout Hyperparameters Tuning
Cavazza et al. [2018] shows that optimization with dropout (allowing rank optimizing) is equivalent to solving a matrix approximation problem with nuclear norm:
and the solution is given by:
where denotes the largest integer such that:
Hence, there is only one parameter p to tuning. We present the tuning process on the validation set below, see tables 7 to 9. Optimal parameters as well as induced rank are highlighted.
C.3 Resources
Our code are mainly implemented in Numpy 1.19, Pytorch 1.7.1 on CUDA 11.0. Our experiments are performed on nodes with two sockets, each containing a 24-core Intel(R) Xeon(R) Platinum 8268 CPU @ 2.90GHz and 4 GeForce RTX 3090 24GB memory GPU.
Table 3: Investigating the closed/analytic solutions of linear models. denotes a diagonal matrix, is the vector on the diagonal of .
| Model | regularization | solution | |
|---|---|---|---|
| Frobenius norm | 1. EASE(full rank) [Steck, 2019] | s.t. | |
| 2. DLAE(full rank) [Steck, 2020] | |||
| 3. EDLAE(full rank) [Steck, 2020] | s.t. | ||
| 4. EDLAE-ADMM [Steck, 2020] | s.t. | ADMM update | |
| 5. LRR [Jin et al., 2021] | |||
| 6. LR-DLAE(this paper) | |||
| 7. LR-EDLAE-1(this paper) | s.t. | ||
| 8. LR-EDLAE-2(this paper) | s.t. | ||
| Nuclear Norm | 9. Regularized PCA [Zheng et al., 2018] | ||
| 10. MF dropout [Cavazza et al., 2018] | |||
| 11. LAE [Bao et al., 2020] | |||
| 12. LVAE(this paper) | |||
Table 4: ml-20m, DLAE full rank, parameter tuning on validation dataset by nDCG@100
| λ | |||||||
|---|---|---|---|---|---|---|---|
| 800 | 900 | 1000 | 1100 | 1200 | 1300 | ||
| p | 0.1 | 0.42024 | 0.42063 | 0.42073 | 0.42102 | 0.42131 | 0.4212 |
| 0.2 | 0.43132 | 0.43139 | 0.43154 | 0.4314 | 0.43147 | 0.43136 | |
| 0.3 | 0.43203 | 0.43211 | 0.43214 | 0.43206 | 0.43203 | 0.43196 | |
| 0.4 | 0.43001 | 0.43001 | 0.42995 | 0.42996 | 0.42984 | 0.42978 | |
| 0.5 | 0.42754 | 0.42745 | 0.42729 | 0.42718 | 0.42715 | 0.42704 | |
Table 5: netflix, DLAE full rank, parameter tuning on validation dataset by nDCG@100
| λ | ||||||||
|---|---|---|---|---|---|---|---|---|
| 800 | 900 | 1000 | 1100 | 1200 | 1300 | 1400 | ||
| p | 0.2 | 0.3904 | 0.3904 | 0.39027 | 0.39024 | 0.3902 | 0.3903 | 0.39018 |
| 0.25 | 0.39247 | 0.39252 | 0.39248 | 0.39249 | 0.3925 | 0.3925 | 0.39256 | |
| 0.3 | 0.39359 | 0.39359 | 0.39366 | 0.39358 | 0.39362 | 0.39368 | 0.39369 | |
| 0.35 | 0.39402 | 0.39403 | 0.394 | 0.39405 | 0.39399 | 0.39403 | 0.39397 | |
| 0.4 | 0.39399 | 0.39393 | 0.39395 | 0.39393 | 0.39389 | 0.39388 | 0.39387 | |
| 0.45 | 0.39346 | 0.3935 | 0.39343 | 0.39344 | 0.39338 | 0.3933 | 0.39329 | |
| 0.5 | 0.39249 | 0.39241 | 0.39247 | 0.39241 | 0.39242 | 0.3923 | 0.39224 | |
Table 6: msd, DLAE full rank, parameter tuning on validation dataset by nDCG@100
| λ | |||||||
|---|---|---|---|---|---|---|---|
| 10 | 20 | 30 | 40 | 50 | 60 | ||
| p | 0.3 | 0.38514 | 0.38515 | 0.38517 | 0.38505 | 0.38492 | 0.38474 |
| 0.4 | 0.38596 | 0.38599 | 0.38602 | 0.386 | 0.38597 | 0.38592 | |
| 0.5 | 0.38556 | 0.38555 | 0.38553 | 0.38557 | 0.38553 | 0.38549 | |
| 0.6 | 0.38382 | 0.3838 | 0.38381 | 0.38374 | 0.38373 | 0.38366 | |
Table 7: ml-20m, matrix factorization with dropout, hyper parameter tuning by nDCG@100 on validation dataset and its induced rank.
| p | 0.9 | 0.99 | 0.995 | 0.996 | 0.997 |
|---|---|---|---|---|---|
| induced rank d | 10 | 200 | 385 | 467 | 602 |
| nDCG@100 | 0.29723 | 0.39369 | 0.40045 | 0.40046 | 0.39925 |
Table 8: netflix, matrix factorization with dropout, hyper parameter tuning by nDCG@100 on validation dataset and its induced rank.
| p | 0.9 | 0.99 | 0.996 | 0.997 | 0.998 |
|---|---|---|---|---|---|
| induced rank d | 9 | 209 | 524 | 653 | 883 |
| nDCG@100 | 0.26026 | 0.35462 | 0.36453 | 0.36495 | 0.36406 |
Table 9: msd, matrix factorization with dropout, hyper parameter tuning by nDCG@100 on validation dataset and its induced rank.
| p | 0.99 | 0.999 | 0.9995 | 0.9999 | 0.99995 |
|---|---|---|---|---|---|
| induced rank d | 249 | 2054 | 3783 | 11380 | 19308 |
| nDCG@100 | 0.18986 | 0.28532 | 0.307 | 0.32634 | 0.30995 |