Abstract
In network representation learning we learn how to represent heterogeneous information networks in a low-dimensional space so as to facilitate effective search, classification, and prediction solutions. Previous network representation learning methods typically require sufficient task-specific labeled data to address domain-specific problems. The trained model usually cannot be transferred to out-of-domain datasets. We propose a self-supervised pre-training and fine-tuning framework, PF-HIN, to capture the features of a heterogeneous information network. Unlike traditional network representation learning models that have to train the entire model all over again for every downstream task and dataset, PF-HIN only needs to fine-tune the model and a small number of extra task-specific parameters, thus improving model efficiency and effectiveness. During pre-training, we first transform the neighborhood of a given node into a sequence. PF-HIN is pre-trained based on two self-supervised tasks, masked node modeling and adjacent node prediction. We adopt deep bi-directional transformer encoders to train the model, and leverage factorized embedding parameterization and cross-layer parameter sharing to reduce the parameters. In the fine-tuning stage, we choose four benchmark downstream tasks, i.e., link prediction, similarity search, node classification, and node clustering. PF-HIN consistently and significantly outperforms state-of-the-art alternatives on each of these tasks, on four datasets.
Introduction
Most real-world networks—like academic citation graphs or social media platforms—are Heterogeneous Information Networks (HINs), meaning they contain multiple types of nodes (e.g., authors, papers, venues) and relations. Traditional Network Representation Learning (NRL) and Graph Neural Networks (GNNs) face three major hurdles: task specificity, data scarcity, and poor transferability. Models are usually trained from scratch for a single task and dataset, making them computationally expensive. High-quality labeled data is often scarce. Furthermore, a model trained on one domain (e.g., academic data) typically fails when applied to another (e.g., a movie database).
The authors propose PF-HIN, a self-supervised pre-training and fine-tuning framework designed specifically for HINs. The goal is to create a "pre-train once, fine-tune anywhere" paradigm for complex graphs, similar to how BERT revolutionized Natural Language Processing. By using centrality-based walks, the model focuses on the "backbone" of the network, leading to more robust representations than standard random sampling.
Methods
The PF-HIN framework consists of a sophisticated pipeline to turn graph structures into learnable sequences.
- Rank-Guided Heterogeneous Walks: Instead of random walks, the authors use centrality metrics (betweenness, closeness, and eigenvector centrality) to prioritize "influential" neighbors. This ensures the resulting sequences capture the most structurally important parts of a node's neighborhood.
- Type-Based Mini-Sequences: To handle heterogeneity, nodes of the same type are grouped into mini-sequences. These are processed by type-specific Bi-LSTMs to extract features unique to each node category.
- Dual Pre-training Tasks:
- Masked Node Modeling (MNM): Similar to BERT's masked language modeling, the model predicts randomly hidden nodes within a sequence.
- Adjacent Node Prediction (ANP): The model learns to predict whether two sequences represent nodes that are actually neighbors in the graph.
- Efficient Transformer Architecture: Inspired by the ALBERT architecture, the model uses factorized embedding parameterization and cross-layer parameter sharing. This keeps the model size manageable (12M parameters) while maintaining deep representational power.
Experiments and Results
The authors utilized a massive dataset for pre-training: the Open Academic Graph (OAG), containing over 178 million nodes and 2.2 billion edges. For downstream evaluation, four benchmarks were used: OAG-mini, DBLP (academic citation), YELP (social media reviews), and YAGO (knowledge base).
PF-HIN consistently outperformed state-of-the-art baselines (including GPT-GNN, GCC, and MPP) across four major tasks:
- Link Prediction: On the DBLP dataset, PF-HIN achieved an AUC of 0.692, significantly higher than GPT-GNN (0.678).
- Similarity Search: PF-HIN showed a marked improvement in finding related nodes, outperforming all metapath-based and GNN-based alternatives.
- Node Classification & Clustering: The model achieved the highest Micro-F1 and NMI scores across all four evaluation datasets.
- Efficiency: Despite its complexity, PF-HIN's fine-tuning is faster than training traditional GNNs from scratch because the pre-trained weights provide a "head start" for the loss function to converge.
Conclusion
PF-HIN demonstrates that structural patterns in HINs share commonalities across domains, allowing for effective transfer learning. While powerful, the authors acknowledge that the current model treats HINs as static snapshots. Future work includes incorporating temporal dynamics and testing on a broader range of tasks, such as financial fraud detection or personalized product search.
Summary updated