Match4Rec: A Novel Recommendation Algorithm Based on Bidirectional Encoder Representation with the Matching Task

Lingxiao Zhang, Jiangpeng Yan, Yujiu Yang, Li Xiu · DOI

TL;DR

This paper introduces Match4Rec, a novel recommendation algorithm that enhances bidirectional sequential models by incorporating a "matching task" during training. This approach aims to capture both users' immediate interests (local purposes) and their overall preferences (global representation) by jointly optimizing for predicting masked items and matching user representations with relevant items, leading to improved recommendation performance.

What Problem Does This Paper Address?

Recommender systems are crucial for personalizing user experiences. While sequential recommendation models have advanced by capturing the order of user interactions, existing bidirectional models often focus on local patterns within a user's history, potentially missing the broader context of their preferences. This can lead to suboptimal recommendations, especially for users with short or less distinct interaction sequences. The paper addresses this by proposing a method to integrate a user's global preference with their local sequential behavior.

Methods

Match4Rec builds upon bidirectional sequential models, similar to BERT4Rec, which leverage self-attention mechanisms to learn from user interaction sequences. The core innovation lies in its training strategy, which combines two tasks:

  • Masked Item Prediction (Mask Task): Similar to BERT, some items in a user's sequence are masked, and the model learns to predict them based on their surrounding context (both past and future interactions). This helps capture local sequential dependencies.
  • Matching Task: This novel addition aims to capture global user preferences. A special "[UID]" token is introduced to represent the user. The model learns to distinguish between positive (relevant) and negative (irrelevant) items by comparing the user's representation (derived from the "[UID]" token) with item representations. This task explicitly encourages the model to learn a user's overall preference.

To mitigate issues with mask noise during training, the authors also propose a new sample production method that generates different types of training instances, including those that focus on the last item prediction and those that combine original sequences with the matching task.

Datasets

The proposed Match4Rec model was evaluated on four real-world datasets:

  • Amazon: Subsets of "Beauty" and "Video Games" categories.
  • Steam: Review data from the Steam video game platform.
  • MovieLens-1M: A popular movie rating dataset.

These datasets vary in domain and sparsity, allowing for a comprehensive evaluation of the model's robustness. The authors note that they used review datasets for Amazon, which differs from some prior work that used rating datasets.

Key Insights and Ideas

  • Bridging Local and Global Preferences: The most significant insight is that combining a task that models local sequential patterns (masking) with a task that explicitly captures global user preferences (matching) leads to superior recommendation performance.
  • The Power of the "[UID]" Token: Introducing a dedicated "[UID]" token to represent the user within the sequence allows the model to learn a consolidated user representation that can be directly used for matching with items, effectively capturing global preferences.
  • Mitigating Mask Noise: The proposed sample production method is crucial for improving training stability and performance, especially for shorter sequences where mask dilemmas can be more pronounced.
  • Bidirectional Context is Key: The results reinforce the advantage of bidirectional models over unidirectional ones, suggesting that considering both past and future interactions is vital for accurate sequential recommendation.

Key Results

Match4Rec consistently outperformed several state-of-the-art baselines across all four datasets and three evaluation metrics (NDCG@10, HR@100, MRR).

  • Overall Improvement: The model achieved significant improvements, with an average MRR improvement of 9.93% over the strongest baselines.
  • Comparison to BERT4Rec: Match4Rec demonstrated a substantial advantage over BERT4Rec, highlighting the effectiveness of the added matching task and the refined sample production strategy.
  • Qualitative Analysis: A heatmap visualization of output sequence correlations showed that user representations are more influenced by recent behavior, and items on both sides of the sequence are highlighted, confirming the successful mining of bidirectional information.

Limitations and Future Work

  • Mask Dilemma on Sparse Datasets: The paper acknowledges that the "mask dilemma" (where more masked items lead to less available context) can be more challenging on sparse datasets, potentially impacting performance.
  • Future Work: The authors suggest exploring the fusion of heterogeneous interactions (e.g., purchase, review, clicks) within their model to further enhance recommendation performance. They also mention the potential for future work in optimizing hyperparameter tuning and exploring different model architectures.

Summary updated

BibTeX
@inproceedings{zhang2020match,
  author = {Lingxiao Zhang and Jiangpeng Yan and Yujiu Yang and Li Xiu},
  title = {{Match4Rec: A Novel Recommendation Algorithm Based on Bidirectional Encoder Representation with the Matching Task}},
  booktitle = {ICONIP},
  year = {2020},
  doi = {10.1007/978-3-030-63836-8\_41},
}
Figure