Abstract
While the SLIM approach obtained high ranking-accuracy in many experiments in the literature, it is also known for its high computational cost of learning its parameters from data. For this reason, we focus in this paper on variants of high-dimensional regression problems that have closed-form solutions. Moreover, we motivate a re-scaling rather than a re-weighting approach for dealing with biases regarding item-popularities in the data. We also discuss properties of the sparse solution, and outline a computationally efficient approximation. In experiments on three publicly available data sets, we observed not only extremely reduced training times, but also significantly improved ranking accuracy compared to SLIM. Surprisingly, various state-of-the-art models, including deep non-linear autoencoders, were also outperformed on two of the three data sets in our experiments, in particular for recommendations with highly personalized relevance.
Introduction
In the landscape of modern recommender systems, deep learning models like Variational Autoencoders (VAEs) often dominate the conversation. However, the Sparse Linear Method (SLIM) has long been a strong contender due to its high ranking accuracy. The primary drawback of SLIM is its computational intensity; learning its parameters requires solving a constrained optimization problem involving L1-regularization and non-negativity constraints for every item in the catalog. This paper introduces a simplified, "embarrassingly shallow" linear model that addresses these scalability issues while maintaining, and often exceeding, state-of-the-art performance.
Methodology
The proposed approach treats collaborative filtering as a high-dimensional ridge regression problem with a critical zero-diagonal constraint.
Closed-Form Solution
By relaxing the non-negativity and L1 constraints of traditional SLIM, the authors derive a closed-form solution for the weight matrix $B$: $$B = I - \hat{P} \cdot \text{diagMat}(1 \oslash \text{diag}(\hat{P}))$$ where $\hat{P}$ is the inverse of the regularized item-item Gram matrix. This allows for a direct calculation of weights, bypassing iterative optimization and slashing training times from weeks to minutes.
Zero-Diagonal Constraint
To prevent the model from learning the identity mapping—predicting an item simply because it was previously consumed—the diagonal of the weight matrix is forced to zero. This ensures the model captures meaningful cross-item similarities rather than trivial self-correlations.
Target Re-scaling for Popularity Bias
Popularity bias often skews recommendations toward frequently consumed items. Instead of complex re-weighting during training, the authors propose re-scaling the target values. This adjustment can be applied as a post-processing step, preserving the efficiency of the closed-form solution while allowing for fine-tuned control over how popularity influences the final rankings.
Experimental Setup
The model was evaluated against several baselines, including SLIM, Weighted Matrix Factorization (WMF), and deep models like Mult-VAE, across three large datasets:
- MovieLens 20M (ML-20M): 136k users, 20k movies, 10M interactions.
- Netflix Prize: 463k users, 17k movies, 57M interactions.
- Million Song Data (MSD): 571k users, 41k songs, 34M interactions.
Results and Discussion
The linear model demonstrated remarkable efficiency. On the Netflix dataset, a parallelized grid search for SLIM took two weeks, whereas the new closed-form approach took less than two minutes on a standard AWS instance.
Ranking Accuracy
Quantitatively, the model matched or outperformed deep learning baselines. On ML-20M, the closed-form solution ($\hat{B}^{(0d)}$) achieved a Recall@20 of 0.391, nearly identical to Mult-VAE's 0.395. On the Million Song Data, it outperformed deep models by approximately 20% in NDCG@100, likely because MSD requires highly personalized recommendations where popularity is a poor proxy for relevance.
Sparsity and Scalability
The authors also introduced a heuristic for sparsification that uses only ~0.3% of the weights. This approximation maintained accuracy while further reducing training time on the MSD dataset to just 30 seconds, proving that dense representations are not always necessary for high-quality recommendations.
Conclusion
This work demonstrates that high-dimensional sparse linear models are not only competitive with deep non-linear models but are also significantly more efficient. The success of this "shallow" approach suggests that the field may benefit from exploring deep architectures that leverage high-dimensional sparse representations rather than low-dimensional dense bottlenecks.
Summary updated