Semi-supervised User Profiling with Heterogeneous Graph Attention Networks

Weijian Chen, Yulong Gu, Zhaochun Ren, Xiangnan He, Hongtao Xie, Tong Guo, Dawei Yin, Yongdong Zhang

Abstract

User profiling—predicting demographic traits like age and gender—is essential for personalized services in e-commerce. Traditional approaches often treat users as isolated instances, failing to leverage the "homophily" principle where similar users exhibit shared behaviors. This paper presents the Heterogeneous Graph Attention Network (HGAT), a semi-supervised framework that treats user profiling as a graph-based inference task. By integrating users, items, and attributes into a heterogeneous graph and applying a hierarchical attention mechanism, HGAT captures complex relational dependencies. Experimental results on a massive real-world dataset from JD.com show that HGAT achieves superior performance over state-of-the-art baselines.

1. Introduction

In digital ecosystems, a user is defined by their interactions: the products they purchase, the search terms they use, and the social circles they inhabit. Conventional user profiling models typically rely on manual feature engineering and treat each user as an independent data point. This approach creates "information silos" by ignoring the multi-modal nature of data and "instance silos" by neglecting the relationships between users.

To address these limitations, researchers from the University of Science and Technology of China and JD.com proposed HGAT. This model shifts the paradigm from individual classification to semi-supervised learning on a heterogeneous graph, allowing the model to "borrow" information from neighbors to profile users with sparse data.

2. The Heterogeneous Graph Model

The foundation of HGAT is a heterogeneous graph consisting of three distinct node types: Users, Items, and Attributes (derived from product titles).

The structure of the heterogeneous graph showing interactions between users, items, and attributes.

Edges in this graph represent various interactions:

  • User-Item: Direct interactions such as clicks or purchases.
  • Item-Attribute: Semantic descriptions of items using words from their titles.
  • User-User: Implicit relationships formed through co-purchase behaviors or shared interests.

3. Methodology: Heterogeneous Graph Attention Networks (HGAT)

HGAT employs a hierarchical, meta-path-aware architecture to propagate information across the graph. This structure allows the model to learn high-level user representations starting from raw attribute embeddings.

The HGAT architecture illustrating the hierarchical flow from attributes to items to users.

3.1 Meta-path Aware Propagation

The information flow is organized into three primary layers:

  1. Attribute-Item Layer: Uses an attention mechanism to aggregate word embeddings (e.g., FastText) into item representations.
  2. Item-User Layer: Generates initial user embeddings based on the items they have interacted with, weighted by relevance.
  3. User-User Layer: Refines user embeddings by considering the profiles of neighboring users who share similar behavioral patterns.

3.2 Attention Mechanism and Scalability

A "Vanilla Attention" mechanism is used to filter noise within the heterogeneous graph. By assigning higher weights to more informative neighbors—such as a high-intent purchase versus a random click—the model ensures robust representation learning. To handle the scale of real-world e-commerce data, the authors implemented a mini-batch sampling strategy that processes $k$-hop neighborhoods rather than the entire graph.

4. Experimental Evaluation

The model was evaluated using a dataset from JD.com comprising 54,161 users, 203,712 items, and 10,218 attributes.

4.1 Performance Results

HGAT was compared against traditional classifiers (LR, SVM) and homogeneous graph models (GCN, GAT).

  • Gender Prediction: HGAT achieved an accuracy of 0.570, significantly outperforming the Logistic Regression baseline (0.505).
  • Age Prediction: HGAT reached 0.440 accuracy, a substantial improvement over standard GCN (0.370) and LR (0.220).

4.2 Key Insights

Ablation studies confirmed that the hierarchical structure is vital. Incorporating the User-User layer provided a significant boost in accuracy, demonstrating the power of leveraging social and behavioral homophily. The attention mechanism further improved results by effectively managing the noise inherent in large-scale interaction graphs.

5. Conclusion

HGAT demonstrates that treating user profiling as a semi-supervised graph problem is highly effective for e-commerce applications. By breaking down information and instance silos, the model provides a more nuanced understanding of user demographics. Future work may involve incorporating temporal dynamics to account for shifting user interests and addressing the "cold start" problem for users with no prior interactions.

Summary updated

BibTeX
@inproceedings{chen2019semi,
  author = {Weijian Chen and Yulong Gu and Zhaochun Ren and Xiangnan He and Hongtao Xie and Tong Guo and Dawei Yin and Yongdong Zhang},
  title = {{Semi-supervised User Profiling with Heterogeneous Graph Attention Networks}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/293},
}
Figure