Pre-training Graph Transformer with Multimodal Side Information for Recommendation

Yong Liu, Susen Yang, Chenyi Lei, Guoxin Wang, Haihong Tang, Juyong Zhang, Aixin Sun, Chunyan Miao

Introduction

Modern recommendation systems increasingly rely on "side information"—such as product images, descriptions, and categories—to better understand user preferences. However, a significant challenge remains in effectively integrating this rich multimodal data with the structural relationships inherent in item-to-item graphs (e.g., co-purchase or co-viewing patterns). Existing models often treat these modalities in isolation or struggle to scale to industrial-sized graphs.

Overview of user purchasing history and the resulting item multimodal graph.

To bridge this gap, the Pre-trained Multimodal Graph Transformer (PMGT) framework is proposed. PMGT learns high-quality item representations by combining multimodal side information with structural graph data through an unsupervised pre-training strategy. This approach captures both the intrinsic attributes of an item and its contextual position within the broader web of consumer behavior.

Methodology

The PMGT framework operates through a multi-stage pipeline designed for scalability and feature diversity.

Graph Construction and Sampling

The process begins by constructing a homogeneous item graph where edges represent behavioral relationships. To handle massive datasets, the authors introduced MCNSampling (Mini-batch Contextual Neighbors Sampling). This method efficiently selects relevant "contextual neighbors" for any given item based on sampling frequency and path depth, ensuring the model remains computationally feasible on large-scale graphs.

Architecture and Node Initialization

As shown in Figure 2, PMGT utilizes a Transformer-based architecture tailored for graph data. For every item, visual features (extracted via Inception-v4) and textual features (extracted via BERT) are fused using an attention mechanism to create a unified multimodal representation. To provide spatial and structural context, "position" ($P_t$) and "role" ($R_t$) embeddings are incorporated during node initialization.

The PMGT framework architecture and node embedding initialization process.

Diversity-Promoting Transformer

A common issue in graph neural networks is "over-smoothing," where node representations become indistinguishable. PMGT addresses this with a unique diversity-promoting attention mechanism. This mechanism encourages the model to attend to neighbors that are relevant yet dissimilar to the target item, thereby preserving the unique feature nuances of the neighborhood.

Pre-training Tasks

The model is pre-trained using two self-supervised objectives:

  1. Graph Structure Reconstruction (GSR): Predicting the existence of edges between items to capture structural connectivity.
  2. Masked Node Feature Reconstruction (NFR): Inspired by BERT, the model masks the features of 20% of neighbor nodes and attempts to reconstruct them using the remaining graph context. This forces the model to learn deep correlations between item attributes and purchase patterns.

Experiments and Results

The researchers evaluated PMGT across several public benchmarks, including Amazon Review subsets (Video Games, Toys and Games, Tools and Home Improvement) and MovieLens-20M, as well as a massive internal Alibaba Video Graph containing 4 million nodes and 500 million edges.

Performance Gains

PMGT consistently outperformed state-of-the-art baselines such as GraphSAGE, GRAPH-BERT, and GPT-GNN. On the "Toys and Games" dataset, PMGT achieved a 6% improvement in Recall@10 over the next best pre-training method. In Click-Through Rate (CTR) prediction tasks, PMGT-initialized models demonstrated significant AUC improvements across all datasets.

Real-World Impact

An online A/B test conducted at Alibaba involving 600,000 users revealed that PMGT increased the number of new video plays by 6.80% compared to the previous state-of-the-art multimodal baseline, UNITER. Furthermore, the MCNSampling algorithm proved essential for scaling the Graph Transformer to hundreds of millions of edges.

Conclusion and Future Work

PMGT demonstrates that BERT-style masking and diversity-promoting attention are highly effective for learning multimodal graph representations. By providing a superior "warm start" for downstream recommendation models, it leads to faster convergence and higher peak performance.

While currently optimized for homogeneous item graphs, future research will focus on extending PMGT to heterogeneous graphs that include diverse node types such as users, brands, and sellers. Additionally, the authors suggest integrating more specialized encoders for platforms where video content is the primary modality.

Summary updated

BibTeX
@inproceedings{liu2021pre,
  author = {Yong Liu and Susen Yang and Chenyi Lei and Guoxin Wang and Haihong Tang and Juyong Zhang and Aixin Sun and Chunyan Miao},
  title = {{Pre-training Graph Transformer with Multimodal Side Information for Recommendation}},
  booktitle = {ACM Multimedia},
  year = {2021},
  doi = {10.1145/3474085.3475709},
}
Figure