Zero-shot Transfer Learning within a Heterogeneous Graph via Knowledge Transfer Networks

Minji Yoon, John Palowitch, Dustin Zelle, Ziniu Hu, Ruslan Salakhutdinov, Bryan Perozzi

TL;DR

This paper introduces Knowledge Transfer Networks (KTN), a novel framework for zero-shot transfer learning within a single heterogeneous graph. By mathematically mapping the feature spaces of unlabeled node types to those of label-abundant ones, KTN enables high-accuracy inference on node types that have never seen a single training label, outperforming traditional domain adaptation methods by up to 73%.

What Problem Does This Paper Address?

In the real world, data is messy and interconnected. Large-scale systems—like e-commerce platforms or academic databases—are often represented as Heterogeneous Graphs (HGs), where nodes and edges have different types (e.g., "users," "products," and "reviews").

The primary challenge in these networks is label imbalance. While we might have millions of labeled "product" nodes, we often have zero labels for "user" nodes due to privacy restrictions or high collection costs. Standard Heterogeneous Graph Neural Networks (HGNNs) struggle here because they use distinct "feature extractors" (different sets of weights) for each node type.

Gradient paths for source and target feature extractors in a toy heterogeneous graph.

Even if a user and a product share a similar classification task, their embeddings live in different mathematical spaces. You cannot simply take a classifier trained on products and plug it into users. Traditional Domain Adaptation (DA) techniques fail here because they assume feature extractors are shared across domains, which contradicts the fundamental architecture of HGNNs, where gradient backpropagation paths are unique for each node type.

Methods: Knowledge Transfer Networks (KTN)

The authors propose Knowledge Transfer Networks (KTN) to bridge this architectural gap, built on a rigorous theoretical foundation:

  1. Theoretical Derivation: The authors prove that in a message-passing network, the embedding of a source node type can be mathematically expressed as a transformation of its neighbors' (target) embeddings.
  2. The KTN Module: Instead of hand-calculating this complex relationship, they implement KTN as a trainable module. It acts as a "translator" that maps target node embeddings into the source domain's latent space.
  3. Joint Training: During training, the model simultaneously minimizes a standard classification loss on the label-abundant source nodes and a transfer loss that ensures the KTN-mapped target embeddings align with the source embeddings.
  4. Zero-shot Inference: At test time, target nodes (which lack labels) are passed through the HGNN, translated by the KTN module, and finally fed into the source-trained classifier.

Datasets

The researchers evaluated KTN across 18 different transfer learning tasks using:

  • Open Academic Graph (OAG): A massive dataset of papers, authors, venues, and fields, split into Computer Science, Computer Networks, and Machine Learning subgraphs.
  • PubMed: A biological network consisting of genes, diseases, chemicals, and species.
  • Synthetic HG Generator: A novel stochastic block model generator used to study how specific graph properties (like edge and feature distributions) affect transfer performance.

Key Insights and Ideas

  • HGNNs are "Disjoint" by Design: The most critical insight is that HGNNs create unique gradient backpropagation paths for each node type. Consequently, even with perfectly aligned input data, the model's internal representations will naturally diverge.
  • Message Passing as a Bridge: While feature extractors differ, the context is shared. Because nodes of different types are connected, the "knowledge" of one type is implicitly encoded in the structure of the other. KTN explicitly exploits this structural relationship.
  • Robustness to Feature Noise: Synthetic experiments revealed that KTN is remarkably robust to differences in feature distributions (feature homophily) but relies heavily on the quality of the connections between node types (edge homophily).

Key Results

KTN demonstrated significant improvements across multiple architectures and tasks:

Test accuracy and gradient norms demonstrating the effectiveness of KTN compared to baseline paths.
  • Massive Performance Boosts: KTN improved the performance of 6 different HGNN architectures (including R-GCN, HAN, and HGT) by up to 960% for inference on zero-labeled node types compared to models with no adaptation.
  • Outperforming the State-of-the-Art: KTN outperformed traditional domain adaptation baselines (like DANN and CDAN) by up to 73.3% in Mean Reciprocal Rank (MRR).
  • Generality: The method proved effective across diverse architectures, showing that the "translator" approach is a principled, generalizable solution for the HGNN family of models.

Limitations and Future Work

  • Shared Task Assumption: Currently, KTN requires that the source and target node types share the same inference task (e.g., classifiable into the same set of categories).
  • Structural Sensitivity: The method's effectiveness depends on the existence of relational edges between the source and target types. Without connections, KTN cannot transfer knowledge.
  • Noisy Edges: Future work should focus on filtering "noisy" edges that might lead to negative transfer, potentially making the KTN module even more robust to complex, real-world graph structures.

Summary updated

BibTeX
@inproceedings{yoon2022zero,
  author = {Minji Yoon and John Palowitch and Dustin Zelle and Ziniu Hu and Ruslan Salakhutdinov and Bryan Perozzi},
  title = {{Zero-shot Transfer Learning within a Heterogeneous Graph via Knowledge Transfer Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=NDWIcZ9Ty0},
}
Figure