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 · DOI

Abstract

Side information of items, such as images and text descriptions, is crucial for accurate recommendations. We propose the Pre-trained Multimodal Graph Transformer (PMGT), a framework that learns item representations by integrating multimodal side information with item relationships derived from user behavior (e.g., co-purchases). PMGT utilizes a novel sampling algorithm, MCNSampling, and two self-supervised pre-training objectives: graph structure reconstruction and masked node feature reconstruction. Experimental results across multiple datasets and an online case study with 600,000 users demonstrate PMGT's effectiveness in recommendation, classification, and click-through rate (CTR) prediction tasks.

Introduction

Modern recommendation systems face the challenge of effectively utilizing the vast amount of multimodal side information available for items, such as product images and textual descriptions. While deep learning has advanced the processing of individual modalities, existing methods often treat side information and behavioral item-to-item relationships (the "graph" of user behavior) as separate entities. The goal is to create a unified representation that captures both the intrinsic features of an item (what it looks like and says) and its extrinsic context (which other items it is frequently associated with).

Methodology

Item Multimodal Graph Construction

The first step involves constructing a homogeneous item graph where nodes represent items and edges represent behavioral relationships. For example, if two items are frequently co-purchased, they share an edge. Each node is associated with multimodal features, such as visual and textual data extracted from product listings.

Construction of the item multimodal graph from user purchasing history.

PMGT Framework

The PMGT framework consists of a Graph Transformer encoder designed to aggregate information across the multimodal graph. The architecture is built around four main components:

  1. MCNSampling (Mini-batch Contextual Neighbors Sampling): To handle large-scale graphs, this algorithm selects "contextual neighbors" for a target item by considering both the frequency of a neighbor in random walks and its distance from the target node.
  2. Transformer-based Graph Encoder: The model uses a Graph Transformer with a diversity-promoting attention mechanism. This encourages the model to pay attention to neighbors that are relevant but not identical to the target node, ensuring the learned representation captures a diverse range of context.
  3. Dual Pre-training Objectives:
    • Graph Structure Reconstruction (GSR): The model learns to predict whether an edge exists between two items, capturing the behavioral topology.
  4. Masked Node Feature Reconstruction (NFR): Inspired by BERT, the model masks the multimodal features of some items and tries to reconstruct them using the features of their neighbors.
The PMGT framework architecture and node embedding initialization process.

Experimental Evaluation

The researchers evaluated PMGT on several diverse datasets, including Amazon Review subsets (Video Games, Toys, Tools), MovieLens-20M, and a massive real-world dataset from Taobao (Alibaba).

Key Results

  • Recommendation Accuracy: PMGT consistently outperformed state-of-the-art baselines like GPT-GNN and GRAPH-BERT. On the Amazon "Toys" dataset, it achieved a Recall@10 of 0.3032, significantly higher than the next best baseline (0.2858).
  • Multimodal Synergy: Ablation studies showed that combining visual and textual features consistently outperformed models using only one modality, proving that the "whole" representation is greater than the sum of its parts.
  • Online Impact: In a live test on Taobao with 600,000 users, PMGT led to a 6.80% increase in new video plays compared to the existing baseline (UNITER).
  • Efficiency: PMGT-initialized models reached lower training loss significantly faster than those with random initialization, highlighting the efficiency of the pre-trained embeddings.

Conclusion

PMGT successfully bridges the gap between multimodal content and behavioral graph structures through self-supervised pre-training. The model captures fundamental item characteristics that transfer effectively to various downstream tasks. While currently focused on homogeneous graphs, future work aims to extend this framework to heterogeneous graphs to capture even more nuanced relationships within the recommendation ecosystem.

Summary updated

Abstract

Side information of items, e.g., images and text description, has shown to be effective in contributing to accurate recommendations. Inspired by the recent success of pre-training models on natural language and images, we propose a pre-training strategy to learn item representations by considering both item side information and their relationships. We relate items by common user activities, e.g., co-purchase, and construct a homogeneous item graph. This graph provides a unified view of item relations and their associated side information in multimodality. We develop a novel sampling algorithm named MCNSampling to select contextual neighbors for each item. The proposed Pre-trained Multimodal Graph Transformer (PMGT) learns item representations with two objectives: 1) graph structure reconstruction, and 2) masked node feature reconstruction. Experimental results on real datasets demonstrate that the proposed PMGT model effectively exploits the multimodality side information to achieve better accuracies in downstream tasks including item recommendation, item classification, and click-through ratio prediction. We also report a case study of testing the proposed PMGT model in an online setting with 600 thousand users.
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