Personalized Neural Embeddings for Collaborative Filtering with Text

Guangneng Hu

Abstract

Collaborative Filtering (CF) often struggles with data sparsity when user interaction history is limited. While incorporating unstructured text can mitigate this, traditional methods often treat text as static features, failing to capture personalized word importance. We present the Personalized Neural Embedding (PNE) framework, which jointly learns user, item, and word representations. By employing an attention-based memory network, PNE identifies which specific words are most relevant to an individual user. Experimental results on real-world datasets demonstrate that PNE significantly outperforms state-of-the-art baselines in recommendation accuracy.

Introduction

Modern recommendation systems primarily rely on Collaborative Filtering (CF) to predict user preferences based on past behaviors. However, the "sparse data" problem remains a significant hurdle; when a user has few interactions, the system lacks sufficient behavioral data to make accurate predictions.

To address this, researchers frequently leverage auxiliary unstructured text, such as product reviews or news abstracts. Traditional hybrid models typically use pre-trained word embeddings or topic modeling to extract features. A critical limitation of these approaches is their lack of personalization—they assume a word's importance is uniform across all users. In reality, the relevance of a specific term in a description is subjective and depends on the individual's unique interests.

The PNE Framework

The Personalized Neural Embedding (PNE) framework addresses these limitations through a dual-branch architecture that fuses behavioral and semantic signals.

Behavioral Factors (CFNet)

The CFNet branch utilizes a neural collaborative filtering approach, specifically a Multi-Layer Perceptron (MLP), to learn non-linear relationships directly from raw user-item interactions. This branch captures the fundamental collaborative patterns inherent in the data.

Semantic Factors (MemNet)

The core innovation of PNE is the MemNet branch, which employs a Memory Network with an attention mechanism. Unlike standard models that average word vectors, MemNet uses the user’s specific embedding as a "query" to attend to the item's text. This allows the model to dynamically determine which words in a description are most significant for a given user.

A key feature of PNE is the joint optimization of user, item, and word embeddings. By training these representations end-to-end for the recommendation task, the model learns semantic nuances that generic pre-trained embeddings might miss. The final interaction probability is predicted by fusing the outputs of both branches through a logistic layer.

Experimental Setup

The authors evaluated PNE using two distinct real-world datasets:

  • Amazon: A public dataset featuring user-written product reviews.
  • Cheetah Mobile: A dataset containing news articles and user consumption history.

The preprocessing involved selecting the 8,000 most frequent words for the vocabulary. Evaluation followed a "leave-one-out" strategy, measuring performance across Hit Ratio (HR), Normalized Discounted Cumulative Gain (NDCG), and Mean Reciprocal Rank (MRR).

Results and Discussion

PNE consistently outperformed state-of-the-art baselines, including Bayesian Personalized Ranking (BPR), Hidden Factors as Topics (HFT), and standard Neural CF (MLP).

Quantitative comparison of PNE against baselines across different metrics and Top-K values.

On the Amazon dataset, PNE achieved a 55% improvement in HR@5 over traditional hybrid methods like TBPR and a 12.3% boost over the standard MLP model. Similar significant gains were observed on the Cheetah Mobile dataset, highlighting the robustness of the personalized attention mechanism.

Qualitatively, the learned word embeddings demonstrated meaningful semantic clustering. For instance, words related to crime and law enforcement were mapped closely together, indicating that the model successfully captured the contextual relationships within the news corpus.

Visualization of learned word embeddings showing semantic clustering of related concepts.

Conclusion and Future Work

The PNE framework demonstrates that personalized attention is crucial for effectively utilizing text in recommendation systems. By bridging the gap between behavioral patterns and semantic content through joint end-to-end learning, PNE offers a powerful solution to the data sparsity problem.

While PNE introduces some computational overhead—taking approximately 68.1 seconds per epoch compared to 34.5 seconds for a simpler MLP—the performance gains justify the complexity. Future research may explore scaling the vocabulary beyond 8,000 words and extending the framework to incorporate multi-modal data such as images or social graphs.

Summary updated

BibTeX
@inproceedings{hu2019personalized,
  author = {Guangneng Hu},
  title = {{Personalized Neural Embeddings for Collaborative Filtering with Text}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/n19-1212},
}
Figure