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.
Introduction
Modern recommendation systems rely on two main signals: collaborative filtering (user-item interactions) and content-based filtering (item attributes). While "side information" like product images and text descriptions is valuable, most existing models treat these modalities in a fragmented way or only for specific tasks.
The challenge lies in creating a unified representation that captures both the intrinsic features of an item (e.g., its visual and textual properties) and its extrinsic relationships (e.g., co-purchase patterns). The proposed Pre-trained Multimodal Graph Transformer (PMGT) addresses this by learning rich item representations through unsupervised pre-training on a multimodal graph, providing a versatile starting point for various downstream recommendation tasks.
Methodology
PMGT bridges the gap between item content and item relationships through several novel components designed for scale and multimodal integration.
Item Multimodal Graph Construction
The framework begins by building a graph where nodes represent items and edges represent co-purchase or co-viewing patterns. Each node is initialized with features extracted from multiple modalities, such as visual features from images (using Inception-v4) and textual features from descriptions (using BERT). This provides a unified view of item relations and their associated side information.
PMGT Architecture and Pre-training
To handle large-scale graphs, the authors developed MCNSampling (Mini-batch Contextual Neighbors Sampling). This algorithm selects neighbors based on their frequency in random walks and their distance from the target node, ensuring a high-quality context for each item.
The core of PMGT is a Transformer-based encoder that models the mutual influence between an item and its neighbors. Unlike standard Graph Neural Networks, PMGT includes a diversity-promoting attention mechanism to prevent the model from over-focusing on neighbors that are too similar to the target node.
The model is pre-trained using two self-supervised objectives:
- Graph Structure Reconstruction (GSR): The model learns to predict whether an edge exists between two items.
- Masked Node Feature Reconstruction (NFR): Similar to BERT, PMGT masks the multimodal features of certain nodes and tasks the model with reconstructing them using only the features of their neighbors.
Key Results and Insights
The model was evaluated on diverse datasets, including Amazon Review subsets and MovieLens-20M (augmented with visual and acoustic data). Key findings include:
- State-of-the-Art Performance: PMGT consistently outperformed strong baselines like GraphSAGE, GPT-GNN, and GRAPH-BERT across all tested datasets for item recommendation and click-through rate (CTR) prediction.
- Multimodality Synergy: Ablation studies showed that the model performs best when all modalities (visual, textual, acoustic) are present. The graph structure effectively "glues" these different data types together into a coherent embedding.
- Real-world Impact: In a live test on Taobao involving 600,000 users, PMGT led to a 6.80% increase in new video plays compared to the existing baseline (UNITER), proving its effectiveness at scale.
Conclusion
PMGT demonstrates that pre-training on a multimodal graph is a powerful paradigm for recommendation systems, analogous to the "BERT moment" in NLP. By learning item semantics in an unsupervised way, the model provides a superior foundation for downstream tasks. Future work aims to extend PMGT to handle heterogeneous graphs involving multiple node types like users, brands, and categories to capture even deeper relational insights.
Summary updated