[Paper Review] Word2Vec applied to Recommendation: Hyperparameters Matter
The paper conducts large-scale hyperparameter searches for Skip-gram with Negative Sampling (SGNS) in recommendation settings and shows that data/task–dependent tuning of hyperparameters (especially negative sampling distribution, epochs, subsampling, and window size) greatly improves NEP performance, with different optimal choices than NLP tasks.
Skip-gram with negative sampling, a popular variant of Word2vec originally designed and tuned to create word embeddings for Natural Language Processing, has been used to create item embeddings with successful applications in recommendation. While these fields do not share the same type of data, neither evaluate on the same tasks, recommendation applications tend to use the same already tuned hyperparameters values, even if optimal hyperparameters values are often known to be data and task dependent. We thus investigate the marginal importance of each hyperparameter in a recommendation setting through large hyperparameter grid searches on various datasets. Results reveal that optimizing neglected hyperparameters, namely negative sampling distribution, number of epochs, subsampling parameter and window-size, significantly improves performance on a recommendation task, and can increase it by an order of magnitude. Importantly, we find that optimal hyperparameters configurations for Natural Language Processing tasks and Recommendation tasks are noticeably different.
Motivation & Objective
- Motivate why Word2Vec embeddings for recommendations may require different hyperparameters than NLP.
- Quantify the marginal impact of key SGNS hyperparameters on NEP performance across diverse datasets.
- Demonstrate that data/task-specific hyperparameter optimization yields substantial gains over default configurations.
- Compare standard SGNS with Meta-Prod2Vec and analyze cold-start implications.
Proposed method
- Describe SGNS with negative sampling (SGNS) and the role of hyperparameters: alpha (negative sampling distribution), n (epochs), L (window size), t (subsampling threshold).
- Perform large hyperparameter grid search over 7 hyperparameters on 4 datasets (two music, one e-commerce, one click-stream).
- Evaluate item embeddings using Next Event Prediction (NEP) with HR@K and NDCG@K metrics across train/validation/test splits.
- Modify Gensim implementation to make alpha tunable and compare Out-of-the-box SGNS, Optimized SGNS, Fully Optimized SGNS, and Meta-Prod2Vec configurations.
- Report results with 95% CI and provide analysis of hyperparameter importance and data dependence.
Experimental results
Research questions
- RQ1How do SGNS hyperparameters influence NEP performance in recommendation tasks?
- RQ2Are NLP-tuned defaults for hyperparameters suitable for recommendation, or do data/task-specific settings yield better results?
- RQ3How does hyperparameter optimization affect performance across different domains (music, e-commerce, click-stream) and in cold-start regimes?
- RQ4How does Meta-Prod2Vec compare to SGNS when hyperparameters are optimized for recommendation tasks?
Key findings
- Hyperparameter optimization roughly doubles performance on the two music datasets versus default values.
- Optimizing alpha (negative sampling distribution) yields significant gains; the optimal alpha is negative for the datasets studied, contrary to NLP defaults (alpha = 0.75).
- Best configurations share similar alpha, subsampling, and window-size across the two music datasets, reflecting similar count distributions.
- Performance gains vary by dataset; the Click-Stream dataset sees up to an order-of-magnitude improvement with hyperparameter tuning, and E-commerce gains are substantial.
- Fully optimized SGNS outperforms Out-of-the-box SGNS and often beats Meta-Prod2vec on music datasets, though Meta-Prod2vec can be competitive, especially in cold-start scenarios.
- In cold-start tests, properly optimized MetaProd2vec approaches SGNS performance, suggesting optimization of standard methods can rival specialized ones.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.