Introduction
Traditional recommender systems rely almost entirely on numerical star ratings, often ignoring the rich semantic context hidden within text reviews. While a 5-star rating indicates a user's preference, the accompanying text (e.g., "The battery life is incredible!") explains the reason for that preference. Standard Matrix Factorization (MF) models suffer from two primary limitations: they discard unstructured text data, and they assume all latent factors contribute equally to a final rating.
This paper introduces TopicMF, a novel recommendation framework that jointly performs matrix factorization on ratings and non-negative matrix factorization (NMF) on review texts. By linking user and item latent factors directly to review topics, TopicMF improves prediction accuracy and provides a more interpretable model of user preferences.
Methodology
TopicMF integrates two distinct techniques into a unified probabilistic graphical model:
- Biased Matrix Factorization (MF): Learns latent vectors for users ($u$) and items ($v$) to predict missing ratings.
- Non-negative Matrix Factorization (NMF): Extracts hidden topics from the bag-of-words representation of review texts. NMF is preferred over Latent Dirichlet Allocation (LDA) here because it allows for independent estimation of topic distributions, facilitating a more seamless mathematical integration with MF.
The core innovation of TopicMF lies in aligning these two processes. The model enforces a constraint where the topic distribution of a specific review must be a function of the corresponding user’s and item’s latent vectors. To achieve this, the authors propose two transformation functions: Addition-Transform (A-T) and Multiplication-Transform (M-T). These functions act as a form of attention, allowing the model to "spike" the importance of dominant factors. This reflects the reality that users often focus on a few specific features of an item when providing a review.
Experimental Setup
The model was evaluated on 22 Amazon product datasets, including categories such as Arts, Automotive, Baby, and Video Games. To manage computational constraints, each dataset was capped at 5,000 items. The data was split into an 80% training set (containing both ratings and reviews) and a 20% testing set (used to evaluate rating prediction accuracy).
Results and Discussion
The performance of TopicMF was measured using Mean Squared Error (MSE) on rating predictions. The results demonstrate that incorporating text reviews significantly enhances the model's predictive power compared to rating-only baselines.
Key findings include:
- Superior Accuracy: TopicMF-MT (Multiplication Transform) achieved the lowest average MSE of 1.3468 across all 22 datasets.
- Significant Improvements: The model outperformed standard MF techniques like PMF and SVD++ by up to 6.43%. Crucially, it also surpassed the state-of-the-art text-aware baseline, HFT, by a statistically significant margin of 2.73% ($p < 0.05$).
- Semantic Grounding: By tethering latent factors to text topics, the abstract vectors learned by the model gain semantic meaning. A latent factor is no longer just a numerical index; it becomes associated with the specific vocabulary users use to describe products.
- Category Sensitivity: The most substantial gains were observed in categories characterized by high subjectivity and detailed reviews, such as Baby products and Video Games, where text provides a dense signal for the NMF component.
Conclusion
TopicMF successfully bridges the gap between numerical ratings and textual reviews. By relaxing the assumption that all latent factors are equally important and grounding those factors in review topics, the model achieves state-of-the-art performance in rating prediction. Future work will focus on a deeper qualitative analysis of the learned topics to further validate the model's interpretability and its ability to capture explicit user preferences.
Summary updated