Relation-aware Heterogeneous Graph for User Profiling

Qilong Yan, Yufeng Zhang, Qiang Liu, Shu Wu, Liang WangCIKM 2021 · DOI

Abstract

User profiling has long been an important problem that investigates user interests in many real applications. Some recent works regard users and their interacted objects as entities of a graph and turn the problem into a node classification task. However, they neglect the difference of distinct interaction types, e.g. user clicks an item v.s. user purchases an item, and thus cannot incorporate such information well. To solve these issues, we propose to leverage the relation-aware heterogeneous graph method for user profiling, which also allows capturing significant meta relations. We adopt the query, key, and value mechanism in a transformer fashion for heterogeneous message passing so that entities can effectively interact with each other. Via such interactions on different relation types, our model can generate representations with rich information for the user profile prediction. We conduct experiments on two real-world e-commerce datasets and observe a significant performance boost of our approach.

Introduction

User profiling—predicting traits like age, gender, or interests—is fundamental to personalized recommendation systems. While modern approaches leverage Graph Neural Networks (GNNs) to model user-item interactions, they often suffer from two major limitations:

  1. Relation Oversimplification: Most models treat all interactions as binary, failing to distinguish between varying levels of intent, such as a casual "click" versus a high-intent "purchase."
  2. Underutilized Side Information: Items possess rich attributes (e.g., brands, categories) that are often difficult to integrate into the graph without compromising semantic clarity.

To address these challenges, we propose the Relation-aware Heterogeneous Graph Network (RHGN), which explicitly models diverse interaction types and incorporates side information as distinct nodes within a heterogeneous graph.

Methodology

The RHGN framework consists of three primary components designed to capture the complexity of user behavior:

  • Heterogeneous Graph Construction: We build a graph where nodes represent Users, Items, Ads, or Attributes (e.g., "Brand A"). Edges represent specific actions like "click," "purchase," or "has_attribute."
  • Neighbourhood Message Passing: To update node representations, the model collects messages from neighbors using relation-specific projection matrices. This ensures that information from different edge types is processed with appropriate semantic context.
  • Multi-Relation Attention: Inspired by the Transformer architecture, RHGN utilizes a Query-Key-Value mechanism to weight neighbor importance. By incorporating a unique "relation weight," the model learns which interaction types are most informative for specific profiling tasks.
The overall architecture of RHGN, illustrating the multi-relation graph and the heterogeneous propagation mechanism.

Experimental Results

The model was evaluated on two large-scale e-commerce datasets: the JD-dataset and the Alibaba-dataset. RHGN consistently outperformed state-of-the-art baselines, including GAT, RGCN, and HGAT.

Performance comparison of RHGN against baseline models on JD and Alibaba datasets.

As shown in the results table, RHGN achieved an accuracy of 80.44% for gender and 54.70% for age on the JD-dataset. On the Alibaba-dataset, which features a higher diversity of relations, the performance gains were even more pronounced, reaching 83.00% accuracy for gender. Ablation studies further demonstrated that removing either user-item interaction types or item-attribute relations led to a significant drop in performance, confirming that both behavior and context are essential for accurate profiling.

Conclusion

The RHGN model demonstrates that modeling the type of interaction is as vital as the interaction itself. By treating attributes as nodes and employing relation-aware attention, the model builds more accurate and interpretable user profiles. Future work will explore handling label scarcity and integrating temporal dynamics to capture evolving user interests.

Summary updated

BibTeX
@inproceedings{yan2021relation,
  author = {Qilong Yan and Yufeng Zhang and Qiang Liu and Shu Wu and Liang Wang},
  title = {{Relation-aware Heterogeneous Graph for User Profiling}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2021},
  doi = {10.1145/3459637.3482170},
}
Figure