NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Task-Equivariant Graph Few-shot Learning

Sungwon Kim, Junseok Lee, Namkyeong Lee, Wonjoong Kim, Seungyoon Choi, Chanyoung Park · DOI

Abstract

Graph Neural Networks (GNNs) often struggle with limited labeled data, a challenge addressed by few-shot learning (FSL). Conventional episodic meta-learning for FSL requires high task diversity during training to generalize effectively to novel classes. We introduce Task-Equivariant Graph Few-shot Learning (TEG), a framework that utilizes equivariant neural networks to learn universal task-adaptation strategies based on the relative geometry of node embeddings. By focusing on geometric symmetries rather than absolute feature values, TEG generalizes from limited and repetitive training data. Evaluations on five real-world benchmarks demonstrate that TEG achieves state-of-the-art performance and exhibits unique robustness in low-diversity training scenarios.

Introduction

While GNNs excel at node classification, their performance is heavily dependent on large amounts of labeled data. Few-shot learning (FSL) attempts to mitigate this by training models to classify novel classes using only a few labeled examples (the support set). Most existing FSL methods employ episodic meta-learning, where the model "learns how to learn" by practicing on thousands of simulated tasks.

However, a critical limitation of standard meta-learning is its reliance on high task diversity. In many real-world applications, labeled classes for training are scarce. When diversity is low, meta-learners tend to overfit to the specific feature distributions of the training classes, failing to generalize to truly new ones. TEG addresses this bottleneck by shifting the focus from feature identity to task geometry.

Methodology

The TEG framework is built on the principle that tasks with similar geometric arrangements of nodes in embedding space should share the same classification strategy, regardless of their absolute feature values.

Feature Generation and Structural Awareness

TEG generates node representations by combining semantic features (standard GNN embeddings) with structural features. To capture global graph positions, TEG calculates shortest path distances to "virtual anchor nodes." These virtual nodes provide a global coordinate system, solving the issue of disjoint components in sparse real-world graphs where many nodes might not have a direct path to each other.

Task-Equivariant Adaptation

The core of TEG is the Task-Equivariant Embedder, which utilizes an Equivariant Graph Neural Network (EGNN). Unlike standard MLPs, the EGNN is equivariant to rotations, reflections, and translations of the node embedding "cloud." This constraint forces the model to ignore absolute coordinates and focus on the relative distances and directions between support and query nodes. Consequently, the model learns a transferable "pull-and-push" strategy applicable to any task with a similar geometric layout.

TEG Architecture: The pipeline includes graph embedding with virtual anchors, task sampling, and a task-equivariant embedder (EGNN) that performs adaptation based on geometric symmetries.

Experimental Results

TEG was evaluated on five benchmarks: Cora-full, Amazon Clothing, Amazon Electronics, DBLP, and Coauthor-CS. To test robustness, the authors created low-diversity scenarios by restricting the number of available training classes and labels.

Performance and Robustness

TEG consistently outperformed baselines such as MAML, ProtoNet, and TENT across various settings. Notably, in the 5-way 1-shot setting on Amazon Electronics, TEG reached 73.78% accuracy, significantly surpassing the runner-up.

The most significant finding is TEG's stability under low task diversity. While competing models like TENT and GPN experience sharp performance drops when the number of training classes is reduced (e.g., from 60 to 10), TEG maintains high accuracy. This suggests that TEG's geometric focus prevents the overfitting common in traditional meta-learning when training data is repetitive.

Performance comparison under varying label availability (100% vs 2%) and class diversity. TEG (leftmost bars in each group) demonstrates superior accuracy and robustness as the number of training classes decreases.

Conclusion

TEG represents a significant advancement in graph few-shot learning by introducing task-equivariance. By prioritizing task geometry over class identity, it overcomes the data diversity requirements of traditional meta-learning. Future work may involve integrating self-supervised learning to improve initial node embeddings and exploring more complex learned metrics while preserving the essential equivariance properties.

Summary updated

BibTeX
@inproceedings{kim2023task,
  author = {Sungwon Kim and Junseok Lee and Namkyeong Lee and Wonjoong Kim and Seungyoon Choi and Chanyoung Park},
  title = {{Task-Equivariant Graph Few-shot Learning}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
  doi = {10.1145/3580305.3599515},
}
Figure