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

Neural Review Rating Prediction with Hierarchical Attentions and Latent Factors

Xianchen Wang, Hongtao Liu, Peiyi Wang, Fangzhao Wu, Hongyan Xu, Wenjun Wang, Xing Xie

Abstract

Rating prediction in recommender systems typically utilizes either numerical ratings or textual reviews. The Hierarchical Attentions and Latent Factors (HALF) model bridges this gap by integrating text reviews with traditional Latent Factor Models (LFMs). By employing a personalized hierarchical attention mechanism that uses a user’s unique latent profile to weigh the relevance of specific words and reviews, HALF significantly improves prediction accuracy across multiple benchmark datasets.

Introduction

In modern recommender systems, two primary data sources are available: numerical ratings and textual reviews. While ratings are easily processed by machines, text reviews contain the qualitative rationale behind the scores. Existing models that incorporate text often struggle with noise—where irrelevant words or unrepresentative reviews skew predictions—and a lack of personalization, as they often apply a generic attention mechanism to all users.

The HALF model addresses these challenges by filtering textual information through the lens of a user's (or item's) specific latent characteristics, ensuring that the most relevant features are prioritized for each prediction.

Methodology

The HALF model architecture consists of two symmetrical branches: User-Net and Item-Net. The process follows a hierarchical structure designed to distill raw text into meaningful representations.

Architecture of the HALF model, illustrating the hierarchical attention layers and the integration of latent factors.

Hierarchical Attention Layers

  • Word-Level Attention: The model utilizes a Convolutional Neural Network (CNN) to extract semantic features from words. An attention layer then highlights the most informative words within a single review.
  • Review-Level Attention: This is the model's core innovation. Instead of treating all reviews equally, the model uses Latent Factor Model (LFM) vectors as queries. It effectively asks which of a user's past reviews are most relevant to their current tastes as defined by their latent factors.

Fusion and Prediction

Finally, the features learned from the text are concatenated with the original latent factor vectors. This hybrid representation is fed into a prediction layer—utilizing a ReLU activation and element-wise inner product—to calculate the final predicted rating $\hat{R}_{u,i}$.

Experimental Evaluation

The model was evaluated on five real-world datasets: Yelp 2013, Yelp 2014, and three categories from the Amazon 5-core collection (Electronics, Video Games, and Gourmet Foods). These datasets ensure that every user and item has at least five reviews, providing sufficient data for the attention mechanism to operate effectively.

Results and Analysis

HALF was compared against several state-of-the-art baselines, including JMARS, ConvMF+, NARRE, and TARMF. Performance was measured using Mean Squared Error (MSE), where lower values indicate higher accuracy.

Comparison of Mean Squared Error (MSE) across five datasets, showing HALF's superior performance against state-of-the-art baselines.

As shown in the results table, HALF consistently outperformed all baselines across every dataset. Notable improvements were seen in the Gourmet Foods category, where HALF achieved an MSE of 0.947 (compared to the next best, NARRE, at 0.986), and Yelp 2014, where it reached 0.903. These results validate that text features and latent factors are complementary; text provides semantic depth, while latent factors provide the necessary collaborative context.

Conclusion and Future Work

The HALF model demonstrates that using latent factors to guide hierarchical attention leads to more accurate and personalized rating predictions. While highly effective, future research could explore the model's performance in "cold-start" scenarios where reviews are sparse, as well as investigate the computational efficiency of the hierarchical CNN structure. Additionally, the attention weights themselves offer a pathway toward better model interpretability and explainable recommendations.

Summary updated

BibTeX
@inproceedings{wang2019neural,
  author = {Xianchen Wang and Hongtao Liu and Peiyi Wang and Fangzhao Wu and Hongyan Xu and Wenjun Wang and Xing Xie},
  title = {{Neural Review Rating Prediction with Hierarchical Attentions and Latent Factors}},
  booktitle = {DASFAA},
  year = {2019},
  doi = {10.1007/978-3-030-18590-9\_46},
}
Figure