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

Hyper Meta-Path Contrastive Learning for Multi-Behavior Recommendation

Haoran Yang, Hongxu Chen, Lin Li, Philip S. Yu, Guandong Xu · DOI

TL;DR

This paper introduces "hyper meta-paths" to better model complex user behaviors in recommendation systems, going beyond simple aggregation of different actions. They propose HMG-CR, a novel framework that uses graph contrastive learning on these hyper meta-paths to adaptively learn user behavior patterns, achieving state-of-the-art results.

What Problem Does This Paper Address?

Traditional recommendation systems often struggle to effectively leverage the rich information embedded in users' diverse behaviors (e.g., viewing, favoriting, adding to cart, purchasing). Existing methods that try to incorporate multiple behaviors often use simplistic fusion techniques or fixed schemes, failing to capture the intricate dependencies and sequential nature of these actions. This can lead to suboptimal recommendations, especially when user behavior patterns are complex and vary across different product categories or user types. The challenge lies in finding a way to represent these complex, multi-faceted user behaviors in a unified manner for downstream recommendation tasks.

Methods

The core innovation is the hyper meta-path, a concept that consolidates multiple traditional meta-paths into a single, holistic representation. Unlike standard meta-paths that might represent individual user actions, a hyper meta-path explicitly illustrates the logical relationships and chronological order among a sequence of behaviors leading to a specific outcome (like a purchase).

To learn from these hyper meta-paths, the authors propose the HMG-CR (Hyper Meta-Graph Contrastive learning for Recommendations) framework. This framework constructs multiple "hyper meta-graphs" for each user, where each graph progressively includes more types of user behaviors. Graph encoders (like GCN or GAT) are used to generate embeddings for these hyper meta-graphs. Crucially, graph contrastive learning is applied to these embeddings. The contrastive learning objective aims to maximize the dissimilarity between embeddings of adjacent hyper meta-graphs (representing different levels of behavioral complexity), thereby adaptively capturing nuanced behavioral patterns. Finally, these learned behavior embeddings are fused into a unified user representation for the recommendation task.

Datasets

The proposed framework was evaluated on two real-world datasets:

  • Taobao: A large-scale e-commerce dataset.
  • Tmall: Another e-commerce dataset.

Both datasets were preprocessed by filtering users and items with fewer than five "buy" interactions, and Tmall also had users with excessive "page view" interactions filtered to reduce noise.

Key Insights and Ideas

  • Beyond Simple Aggregation: The paper highlights that simply fusing embeddings from different user behaviors (like view, add-to-cart, buy) is insufficient. The dependencies and sequences between these behaviors are critical for understanding user intent.
  • Hyper Meta-Paths as Richer Structures: The introduction of hyper meta-paths provides a more expressive way to model complex user journeys, capturing the interplay between different actions in a structured manner.
  • Contrastive Learning for Adaptive Pattern Discovery: Leveraging graph contrastive learning allows the model to learn the important behavioral patterns adaptively, rather than relying on predefined rules or fixed fusion schemes. This is key to handling the complexity and variability of user behaviors.
  • Progressive Learning: Building hyper meta-graphs with increasing behavioral complexity and then using contrastive learning between adjacent graphs allows for a progressive understanding of user behavior, from simpler to more intricate patterns.

Key Results

HMG-CR consistently and significantly outperformed all baseline methods, including conventional GNNs (GCN, GraphSAGE), edge-type aware GNNs (GAT, RGCN), and state-of-the-art multi-behavior recommendation frameworks (NMTR, EHCF), across both Taobao and Tmall datasets. The improvements were particularly notable in NDCG@K metrics, indicating better performance in ranking recommended items. For instance, HMG-CR (GAT) achieved a 24.50% improvement in Recall@5 and a 33.82% improvement in NDCG@5 on the Taobao dataset compared to the best baseline.

Limitations and Future Work

  • Hyperparameter Sensitivity: The authors note that while the framework is not overly sensitive to the hyperparameter $\beta$ (which balances contrastive and recommendation losses), it should not be too small (hindering recommendation) or too large (neglecting contrastive learning).
  • Dataset Specifics: The performance difference between Taobao and Tmall was partly attributed to the distribution of behaviors, where a lack of "add to cart" interactions in Tmall made it harder for contrastive learning to distinguish between certain hyper meta-graphs. This suggests that the effectiveness of contrastive learning might depend on the diversity and distinctiveness of behaviors present in the dataset.
  • Future Work: The paper suggests that the hyper meta-path concept and the HMG-CR framework are flexible and can be extended to other heterogeneous graph mining tasks beyond recommendation. The authors also explored different graph encoders and fusion layers, indicating potential for further optimization.

Summary updated

BibTeX
@inproceedings{yang2021hyper,
  author = {Haoran Yang and Hongxu Chen and Lin Li and Philip S. Yu and Guandong Xu},
  title = {{Hyper Meta-Path Contrastive Learning for Multi-Behavior Recommendation}},
  booktitle = {ICDM},
  year = {2021},
  doi = {10.1109/icdm51629.2021.00090},
}
Figure