M2GRL: A Multi-task Multi-view Graph Representation Learning Framework for Web-scale Recommender Systems

Menghan Wang, Yujie Lin, Guli Lin, Keping Yang, Xiao-Ming Wu · DOI

Abstract

Combining graph representation learning with multi-view data (side information) for recommendation is a trend in industry. Most existing methods can be categorized as multi-view representation fusion; they first build one graph and then integrate multi-view data into a single compact representation for each node in the graph. However, these methods are raising concerns in both engineering and algorithm aspects: 1) multi-view data are abundant and informative in industry and may exceed the capacity of one single vector, and 2) inductive bias may be introduced as multi-view data are often from different distributions. In this paper, we use a multi-view representation alignment approach to address this issue. Particularly, we propose a multi-task multi-view graph representation learning framework (M2GRL) to learn node representations from multi-view graphs for web-scale recommender systems. M2GRL constructs one graph for each single-view data, learns multiple separate representations from multiple graphs, and performs alignment to model cross-view relations. M2GRL chooses a multi-task learning paradigm to learn intra-view representations and cross-view relations jointly. Besides, M2GRL applies homoscedastic uncertainty to adaptively tune the loss weights of tasks during training. We deploy M2GRL at Taobao and train it on 57 billion examples. According to offline metrics and online A/B tests, M2GRL significantly outperforms other state-of-the-art algorithms. Further exploration on diversity recommendation in Taobao shows the effectiveness of utilizing multiple representations produced by M2GRL, which we argue is a promising direction for various industrial recommendation tasks of different focus.

Introduction

In web-scale recommender systems, items are associated with a wealth of side information, such as shop IDs, categories, and price points. Traditionally, industrial systems utilize multi-view representation fusion, where all these features are compressed into a single, compact embedding vector for each node.

However, this approach faces two major flaws at scale. First, a single 128- or 256-dimensional vector often lacks the capacity to capture the nuances of billions of items across hundreds of features. Second, different views have fundamentally different structures; for example, an item-level graph based on click sequences differs significantly from a category-level graph. Fusing them prematurely can ignore these unique local structures and introduce inductive bias. To address this, we propose M2GRL, which shifts the paradigm from fusion to alignment.

Methodology

Multi-view Graph Construction

M2GRL begins by constructing separate graphs for different views (e.g., Instance-view for items, Category-view, and Shop-view) based on user behavior sequences. This preserves the specific structural logic of each view rather than washing it out in a single graph.

Multi-view graph construction from user behavior sequences.

Multi-task Learning and Alignment

The framework employs a multi-task learning paradigm to learn intra-view representations and cross-view relations jointly.

  • Intra-view Tasks: The model learns representations within a single graph using Skip-gram with Negative Sampling (SGNS), preserving the specific logic of that view.
  • Inter-view (Alignment) Tasks: To capture relationships between views (e.g., Item X belongs to Category Y), M2GRL uses a transformation matrix to map embeddings from different spaces into a shared relational space where they can be aligned.
The M2GRL multi-task framework, illustrating intra-view and inter-view alignment tasks.

Automated Loss Weighting

With multiple tasks running simultaneously, manual hyperparameter tuning is impossible at scale. M2GRL employs homoscedastic uncertainty to adaptively tune loss weights during training. It identifies which tasks are "noisier" and downweights them automatically, making the system robust enough for daily production runs on massive datasets.

Evaluation and Results

Datasets and Scale

The authors evaluated M2GRL on a massive industrial dataset from Taobao, containing 10 million popular items and 57 billion training examples. They also used the MovieLens 20M public benchmark for validation.

Performance and Diversity

  • Offline Performance: M2GRL consistently outperformed state-of-the-art baselines like EGES (Alibaba’s previous standard), GraphSage, and DeepWalk across metrics like HitRate@50 and F1-score.
  • Online A/B Testing: Deployed on the Taobao homepage, M2GRL delivered a 5.76% relative improvement in Click-Through Rate (CTR) compared to the best baseline.
  • Recommendation Diversity: By maintaining separate vectors, the model can improve diversity. For "Discovery" tasks, it improved the CTR for items in new categories by 3.79%.

Conclusion

M2GRL demonstrates that maintaining separate representations for different data views and aligning them via multi-task learning is superior to traditional fusion methods for web-scale recommendation. While training on 57 billion examples is resource-intensive, the gains in accuracy and diversity justify the computational cost. Future work will explore adding more views and utilizing these representations for complex tasks like natural language explanation generation.

Summary updated

BibTeX
@inproceedings{wang2020m,
  author = {Menghan Wang and Yujie Lin and Guli Lin and Keping Yang and Xiao-Ming Wu},
  title = {{M2GRL: A Multi-task Multi-view Graph Representation Learning Framework for Web-scale Recommender Systems}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2020},
  doi = {10.1145/3394486.3403284},
}
Figure