Cross-heterogeneity Graph Few-shot Learning

Pengfei Ding, Yan Wang, Guanfeng Liu

TL;DR

CGFL (Cross-heterogeneity Graph Few-shot Learning) is a novel framework that enables knowledge transfer between graphs with completely different node and edge types. By extracting generalized "meta-patterns" and employing a multi-view scoring mechanism, it overcomes the limitations of traditional methods that require source and target graphs to share a fixed schema.

What Problem Does This Paper Address?

Heterogeneous Graphs (HGs)—which contain multiple types of nodes and edges (e.g., authors, papers, and venues in a citation network)—are powerful tools for modeling complex systems. However, labeling data in these graphs is often expensive and time-consuming, leading to "label sparsity."

While Heterogeneous Graph Few-shot Learning (HGFL) has emerged to solve this by transferring knowledge from data-rich source graphs to data-poor target graphs, existing methods suffer from a major limitation: single-heterogeneity. They assume the source and target graphs share the same set of node and edge types. In the real world, we often want to transfer knowledge across domains—for example, using a well-labeled movie database to help classify nodes in a newly formed medical research network. This "cross-heterogeneity" scenario, where schemas do not overlap, is the core challenge addressed by this paper.

Figure 1: Scenarios of heterogeneous graph few-shot learning (HGFL).

Methods

The authors propose CGFL, which consists of three main components designed to normalize and transfer information across diverse graph structures:

  1. Meta-pattern Extraction: Instead of relying on domain-specific "meta-paths," CGFL automatically extracts generalized meta-patterns using random walks. These are categorized into four universal types based on relationship strength and symmetry:
  2. Strong/Weak Affiliation Patterns (SAP/WAP): Modeling many-to-one relations (e.g., a paper belonging to a workshop).
  3. Strong/Weak Interaction Patterns (SIP/WIP): Modeling peer-to-peer relations (e.g., two authors collaborating).
  4. Multi-view Heterogeneous GNN (MHGN): To capture the nuances of these patterns, the model uses a multi-view approach. It aggregates information through three lenses—sum, max, and mean—ensuring that both the presence of rare patterns and the overall distribution of common ones are captured.
  5. Three-level Score Module: To ensure high-quality knowledge transfer, CGFL evaluates data at three scales:
  6. Graph-level: Determines how transferable a specific source HG is to the target.
  7. Task-level: Measures the consistency between the support (labeled) and query (unlabeled) sets within a few-shot task.
  8. Node-level: Estimates the informativeness of individual labeled samples to build robust class prototypes.
Figure 2: (a) The overall architecture of CGFL. (b) The three-level score module.

Datasets

The model was evaluated on four widely used real-world heterogeneous graph datasets:

  • DBLP: A computer science bibliography graph (Nodes: Paper, Author, Venue).
  • IMDB: A movie database graph (Nodes: Movie, Director, Actor).
  • YELP: A business review graph (Nodes: Business, User, Service, etc.).
  • PubMed: A medical publication graph (Nodes: Disease, Gene, Chemical, Species).

To test cross-heterogeneity, the authors used a "leave-one-out" approach: one dataset served as the target HG for testing, while the other three (with entirely different node/edge types) served as source HGs for training.

Table 2: Statistics of Datasets.

Key Insights and Ideas

  • Topology as a Universal Language: The fundamental "aha" moment is that while specific labels like "Director" or "Gene" change, the structural roles nodes play (like being an individual entity vs. a set property) are consistent across domains.
  • Mitigating Negative Transfer: By using the Graph-level Score, CGFL can ignore source graphs that are too structurally dissimilar to the target, preventing "noisy" knowledge from degrading performance.
  • Robust Prototypes: The Node-level Score allows the model to weigh "representative" nodes more heavily when defining a class, making the few-shot learning process much more resilient to outliers in the small support set.

Key Results

CGFL was compared against 12 state-of-the-art baselines, including homogeneous GNNs (GAT, GIN), heterogeneous GNNs (HAN, MAGNN), and meta-learning methods (MAML, G-Meta).

  • Superior Performance: CGFL outperformed the best baselines by an average of 5.56% in Accuracy and 4.97% in Macro-F1 score across all datasets.
  • Resilience to Data Scarcity: In 3-shot scenarios, CGFL showed significant gains, particularly on the YELP dataset, where it achieved a 9.24% accuracy improvement over the next best method.
  • Ablation Success: Removing the "Strong" patterns (SAP and SIP) led to the sharpest performance drops (~7-8%), confirming that identifying strong structural relationships is vital for cross-domain transfer.
3-shot Node classification accuracy results

Limitations and Future Work

While CGFL marks a significant step forward, the authors note two main areas for improvement:

  • Knowledge Disentanglement: Future versions could benefit from more explicitly distinguishing between knowledge that is specific to a single heterogeneity versus knowledge that is truly universal across all graphs.
  • Mutual Information: The authors plan to refine the meta-learning module by exploring the mutual information between source graphs and specific tasks to further optimize the selection of training data.

Summary updated

BibTeX
@inproceedings{ding2023cross,
  author = {Pengfei Ding and Yan Wang and Guanfeng Liu},
  title = {{Cross-heterogeneity Graph Few-shot Learning}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2023},
  doi = {10.1145/3583780.3614830},
}
Figure