Introduction
Collaborative Filtering (CF) is the cornerstone of modern recommender systems, mapping users and items into dense embedding spaces. Recent advancements have favored "angle-based" loss functions, such as DirectAU or Sampled Softmax, which optimize the cosine similarity between vectors while theoretically ignoring their magnitudes. However, a persistent contradiction remains: these models require meticulous tuning of weight decay (L2 regularization) to achieve peak performance. Since weight decay primarily penalizes vector magnitudes, its necessity in angle-based models is puzzling. This paper demystifies this role, revealing that weight decay implicitly encodes item popularity into embedding magnitudes, and proposes a more efficient alternative.
The Secret Role of Weight Decay
The authors demonstrate that weight decay is not merely a tool for preventing overfitting; it acts as a mechanism for encoding popularity bias. Through a theoretical analysis of mini-batch gradient descent, they identify an asymmetric update phenomenon. Popular items appear frequently in training batches, receiving frequent loss-based updates that pull them toward users, counteracting the global weight decay penalty. In contrast, unpopular items appear rarely and are subjected primarily to the shrinking effect of weight decay.
As shown in Figure 4, this process results in a clear correlation where popular items have larger embedding magnitudes. Even though the loss function may be angle-based, ranking metrics like NDCG are sensitive to these magnitudes, effectively using them as a proxy for popularity to improve recommendation accuracy.
PRISM: Popularity-Aware Initialization
To eliminate the computational burden of tuning weight decay, the authors introduce PRISM (Popularity-awaRe Initialization Strategy for embedding Magnitudes). PRISM pre-encodes popularity information during initialization rather than relying on the slow, asymmetric updates of weight decay.
The strategy involves:
- Initializing embeddings as normalized unit vectors.
- Scaling magnitudes based on the logarithm of item popularity (degree in the interaction graph).
- Utilizing a tuning parameter, $\alpha$, to control the strength of this popularity encoding.
By decoupling the learning of semantic angles from the encoding of popularity, PRISM allows the model to focus entirely on capturing user-item relationships.
Experimental Results
The authors evaluated PRISM across four benchmark datasets: MovieLens1M, Gowalla, Yelp2018, and AmazonBook.
Key findings include:
- Performance Gains: PRISM matches or exceeds the performance of heavily tuned weight decay baselines, showing up to a 4.77% improvement on DirectAU.
- Efficiency: Training with PRISM is significantly faster, with an average convergence speedup of 38.48%, as the model does not need to "learn" magnitudes from scratch.
- Debiasing Control: The $\alpha$ parameter provides a simple "knob" for popularity bias. Reducing $\alpha$ improved the unpopular-to-popular NDCG ratio by an average of 75.98%, offering a low-cost method for recommendation debiasing.
Conclusion
This work provides a novel geometric perspective on weight decay in collaborative filtering. By identifying that weight decay serves to encode popularity into embedding magnitudes, the authors were able to replace this expensive hyperparameter with a simple initialization strategy, PRISM. While PRISM shows limitations in non-linear models using Sampled Softmax, it represents a significant step toward more interpretable and efficient recommendation algorithms.
Summary updated