Cross-heterogeneity Graph Few-shot Learning

Pengfei Ding, Yan Wang, Guanfeng Liu

Abstract

Heterogeneous Graph Few-shot Learning (HGFL) aims to address label sparsity by transferring knowledge from a label-rich source graph to a label-poor target graph. However, existing methods typically assume a shared schema between graphs. This paper introduces the Cross-heterogeneity Graph Few-shot Learning (CGFL) framework, designed to handle scenarios where source and target graphs have entirely disjoint node and edge types. By extracting domain-agnostic "meta-patterns" and employing a three-level scoring mechanism, CGFL enables robust knowledge transfer across diverse domains such as citation networks and movie databases.

Introduction

Heterogeneous Graphs (HGs) are ubiquitous in modern data science, representing complex relationships in social networks, recommendation systems, and biological databases. Despite their prevalence, obtaining high-quality labels for nodes in these graphs is often labor-intensive and expensive. While Few-shot Learning (FSL) has emerged as a solution, traditional Heterogeneous Graph Few-shot Learning (HGFL) models suffer from a significant limitation: they assume "single-heterogeneity." This assumption requires the source and target graphs to share the same schema (e.g., both must be citation networks with "Author" and "Paper" nodes).

In real-world applications, we often encounter "cross-heterogeneity," where the source and target graphs belong to entirely different domains with no overlapping node or edge types. For instance, a model trained on a well-annotated citation network (DBLP) might need to be applied to a movie database (IMDB). Existing models fail in these scenarios because they rely on type-specific embeddings that cannot generalize across disjoint schemas.

The CGFL Framework

To bridge these disjoint worlds, the authors propose CGFL, a model that abstracts graph structures into generalized relational roles. The framework consists of three primary components:

1. Meta-pattern Extraction

Instead of focusing on specific node labels, CGFL identifies "meta-patterns" that describe the structural roles nodes play. These are categorized into two fundamental types:

  • Affiliation: Relationships where nodes are associated with a common set or category (e.g., a researcher belonging to a laboratory).
  • Interaction: Relationships where nodes connect directly to peers (e.g., two users interacting in a social network).

These patterns are further refined into "Strong" or "Weak" based on path symmetry and length. By focusing on these universal structural roles rather than domain-specific labels, CGFL creates a "universal language" for graph transfer.

2. Multi-view Heterogeneous GNN (MHGN)

To process the diverse information captured by meta-patterns, CGFL utilizes a Multi-view Heterogeneous Graph Neural Network (MHGN). This module aggregates information using three distinct views: Sum, Max, and Mean. This multi-view approach ensures the model captures both the total volume of relationships and the most dominant structural patterns simultaneously, providing a comprehensive representation of the node's local neighborhood.

3. Three-level Score Module

A common pitfall in few-shot learning is "negative transfer," where irrelevant information from the source domain degrades performance on the target task. CGFL mitigates this through a hierarchical scoring mechanism:

  • Graph-level: Evaluates the overall transferability of the source graph to the target domain.
  • Task-level: Measures the consistency of the specific few-shot task across domains.
  • Node-level: Identifies and weights informative labeled samples while filtering out noise and outliers in the support set.

Experimental Evaluation

The researchers evaluated CGFL using a "leave-one-out" strategy across four diverse datasets: DBLP (computer science), IMDB (movies), YELP (business reviews), and PubMed (medical). In each test, the model was trained on three datasets and evaluated on the fourth, ensuring zero overlap in node and edge types.

Key Results

CGFL was compared against 12 state-of-the-art baselines, including GAT, HAN, and Meta-GNN. The experimental results demonstrated:

  • Superior Accuracy: CGFL achieved an average improvement of 5.56% in classification accuracy over the best-performing baselines.
  • Improved F1-Scores: The model saw a 4.97% average increase in Macro-F1 scores.
  • Robustness: Unlike many FSL models that become unstable as the number of "shots" (labeled examples) increases—often due to the inclusion of noisy data—CGFL remained stable. This is attributed to the node-level scoring module that effectively filters out uninformative samples.

Discussion and Insights

The success of CGFL highlights a critical insight in graph learning: while specific node labels change across domains, the roles nodes play are often universal. Using symmetry as a proxy for relationship strength (e.g., User-Company-User vs. User-Company-Item-User) allows the model to weight edges intelligently without manual feature engineering.

However, the authors note that the model currently does not fully distinguish between "heterogeneity-specific" knowledge and "cross-heterogeneity" knowledge. Future research will explore the use of mutual information to quantify the shared utility between source and target tasks, potentially leading to even more precise knowledge transfer.

Conclusion

CGFL represents a significant step forward in making graph few-shot learning practical for real-world applications. By moving beyond fixed schemas and focusing on abstract meta-patterns, the framework enables effective knowledge transfer across entirely disjoint domains, overcoming the limitations of single-heterogeneity models and providing a robust solution for label-sparse environments.

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