NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Distributed Representations from Reviews for Collaborative Filtering

Amjad Almahairi, Kyle Kastner, Kyunghyun Cho, Aaron C. CourvilleRecSys 2015 · DOI

Abstract

Recent work has shown that collaborative filter-based recommender systems can be improved by incorporating side information, such as natural language reviews, as a way of regularizing the derived product representations. Motivated by the success of this approach, we introduce two different models of reviews and study their effect on collaborative filtering performance. While the previous state-of-the-art approach is based on a latent Dirichlet allocation (LDA) model of reviews, the models we explore are neural network based: a bag-of-words product-of-experts model and a recurrent neural network. We demonstrate that the increased flexibility offered by the product-of-experts model allowed it to achieve state-of-the-art performance on the Amazon review dataset, outperforming the LDA-based approach. However, interestingly, the greater modeling power offered by the recurrent neural network appears to undermine the model's ability to act as a regularizer of the product representations.

Introduction

Collaborative filtering (CF) is the backbone of modern recommendation systems, typically relying on matrix factorization to predict user ratings for products. However, these systems face a massive "data sparsity" problem—in datasets like the Amazon Reviews corpus, over 99.999% of possible user-product ratings are missing. This leads to overfitting, where the model learns the noise in the training data rather than the underlying preferences.

While previous research attempted to solve this by using text reviews as "side information" (using models like Latent Dirichlet Allocation or LDA), these methods often struggle to capture the complex, "peaky" distributions of words associated with specific products. This paper explores neural network-based language models to better regularize product representations.

Methods

The authors propose a multitask learning framework that jointly optimizes two tasks: rating prediction and review modeling. These tasks share parameters (product latent factors), allowing the text to regularize the rating model. Two specific neural architectures were introduced:

  • BoWLF (Bag-of-Words Latent Factor model): This treats a review as a "bag of words" and uses a Product of Experts approach. It maps a product's latent vector to a word distribution via a simple linear transformation followed by a softmax. This allows the model to "suppress" certain words (negative correlation), which traditional LDA-based models cannot do.
  • LMLF (Language Model Latent Factor model): A more sophisticated approach using a Recurrent Neural Network (LSTM) to model the sequence and order of words in a review.

The models are trained by minimizing a weighted combination of the Mean Squared Error (MSE) for ratings and the Negative Log-Likelihood (NLL) for the text.

Key Results and Scalability

The models were evaluated on the Amazon Reviews Dataset, containing 35 million ratings across 28 categories. BoWLF outperformed the baseline Matrix Factorization (MF) by an average of 20.29% and the previous state-of-the-art LDA-based model (HFT) by 5.64% across all categories.

Table 1: Performance comparison (MSE) across various Amazon dataset categories. BoWLF consistently outperforms MF, HFT, and LMLF.

A key finding was that the performance gains of the neural models over traditional methods became more pronounced as the dataset size increased. This suggests that the neural approach scales more effectively with large-scale data than previous generative models.

Figure 1: Percentage improvement of BoWLF over the HFT baseline relative to the number of samples (log scale).

The Complexity Paradox

Surprisingly, the more powerful LMLF (RNN) model performed worse than the simpler BoWLF at predicting ratings. The authors argue that because the RNN is highly non-linear, it "absorbs" the complexity of the language into its own internal weights. This means the product's latent vector doesn't need to be as structured or informative to satisfy the language task, making it a poorer regularizer for the linear rating prediction task. For a text-based regularizer to help a rating predictor, the information it extracts must be "linearly decodable" by the rating model—a property BoWLF enforces, but LMLF does not.

Conclusion

This research demonstrates that neural network-based language models can significantly improve recommendation systems by using text reviews to regularize matrix factorization. While the simpler BoWLF model achieved state-of-the-art results, the study reveals a critical trade-off: more complex models like RNNs may be better at modeling language but can be less effective at improving downstream collaborative filtering tasks due to the way they distribute information within their latent representations.

Summary updated

BibTeX
@inproceedings{almahairi2015learning,
  author = {Amjad Almahairi and Kyle Kastner and Kyunghyun Cho and Aaron C. Courville},
  title = {{Learning Distributed Representations from Reviews for Collaborative Filtering}},
  booktitle = {RecSys},
  year = {2015},
  doi = {10.1145/2792838.2800192},
}
Figure