Abstract
Despite the prominence of neural network approaches in the field of recommender systems, simple methods such as matrix factorization (MF) with quadratic loss remain industry standards due to their scalability and efficiency. These models can be trained using Alternating Least Squares (ALS), which allows for massive parallelization across billions of events. However, standard MF models often struggle with the severe popularity skew found in real-world datasets. This paper proposes two matrix factorization models utilizing mixed-dimension embeddings that can be optimized via ALS. By assigning smaller vectors to rare entities and larger vectors to popular ones, these models reduce overfitting and parameter counts while maintaining the computational advantages of the ALS framework.
Introduction
In large-scale recommender systems, the distribution of interactions is typically characterized by a "long tail." A few "blockbuster" items or power users account for the majority of interactions, while the vast majority of entities have only a handful of data points. Standard Matrix Factorization assigns every user and item an embedding of a fixed dimension $d$. This approach leads to a fundamental inefficiency:
- Overfitting: For rare items, a large vector has too many degrees of freedom relative to the available data, leading to poor generalization.
- Underfitting: For popular items, a small vector may lack the capacity to capture complex latent patterns.
While mixed-dimension embeddings—where vector size varies based on popularity—have been explored in the context of Gradient Descent, they have been difficult to integrate into the ALS optimization path. ALS is often preferred in production environments because it is faster, requires fewer hyperparameters, and is easily parallelized via frameworks like MapReduce.
Proposed Methodology
The authors introduce two specific architectures to bridge the gap between mixed-dimension embeddings and ALS optimization:
1. Zero Padded Mixed Dimension
In this approach, every user or item is assigned a "true" embedding of size $k$ (where $k \le d$). This vector is then padded with zeros to match a global maximum dimension $d$. While this is computationally efficient and easy to implement, it limits the potential interactions between different components of the latent space.
2. Projected Mixed Dimension
This more sophisticated model assigns an embedding of size $k$ and then uses a trainable projection matrix ($A$ or $B$) to map it into a common $d$-dimensional space. This allows every component of a smaller embedding to interact with every component of the target embedding, significantly increasing the model's expressiveness.
The ALS Innovation: The primary challenge was deriving a closed-form solution for the projection matrices that fits the ALS update cycle. The authors utilized a mathematical "flattening" trick—converting matrices into vectors—to transform the projection matrix update into a standard linear regression problem. To ensure the method remains scalable, they introduced a subsampling technique that keeps computational complexity at $O(d^2N)$, making it suitable for massive datasets.
Experimental Results
The models were evaluated on two benchmark datasets: MovieLens 25M and the Netflix Prize Dataset. The researchers converted these into binary tasks (treating high ratings as 1 and low ratings as 0) to simulate a standard recommendation environment.
Key Findings
- Performance Gains: The Projected Mixed Dimension model consistently achieved a higher ROC AUC (ranking quality) compared to standard fixed-dimension ALS baselines.
- Parameter Efficiency: The proposed method achieved superior results while using approximately 35% fewer parameters than the baseline. This is achieved by using a heuristic to assign dimensions: $d_u \approx \text{round}(\frac{f_u}{\gamma f_{med}})$, where $f_u$ represents the entity's frequency.
- Scalability: The complexity of the updates remains linear relative to the number of interactions, ensuring the model is ready for big-data production environments.
Conclusion and Future Work
This research demonstrates that it is possible to leverage the benefits of variable-sized embeddings without sacrificing the efficiency of the ALS algorithm. By intelligently allocating model capacity based on popularity, the Projected Mixed Dimension model provides a more robust and efficient solution for large-scale recommendation.
Future work may involve moving beyond manual heuristics for dimension assignment toward Neural Architecture Search (NAS) to automatically learn optimal embedding sizes. Additionally, while this study focused on explicit feedback, the mathematical framework is expected to extend naturally to implicit feedback settings (e.g., clicks and views).
Summary updated