Abstract
This paper studies zero-shot node classification, which aims to predict new classes (i.e., unseen classes) of nodes in a graph. This problem is challenging yet promising in a variety of real-world applications such as social analysis and bioinformatics. The key of zero-shot node classification is to enable the knowledge transfer of nodes from training classes to unseen classes. However, existing methods typically ignore the dependencies between nodes and classes, and fail to be organically integrated in a united way. In this paper, we present a novel framework called the Graph Contrastive Embedding Network (GraphCEN) for zero-shot node classification. Specifically, GraphCEN first constructs an affinity graph to model the relations between the classes. Then the node- and class-level contrastive learning (CL) are proposed to jointly learn node embeddings and class assignments in an end-to-end manner. The two-level CL can be optimized to mutually enhance each other. Extensive experiments indicate that our GraphCEN significantly outperforms the state-of-the-art approaches on multiple challenging benchmark datasets.
Introduction
In traditional graph machine learning, models are typically trained under a closed-world assumption where all possible categories are present during training. However, real-world graphs, such as social networks or citation databases, are inherently dynamic. New topics emerge, and new types of users appear constantly. Manually labeling these emergent nodes is both labor-intensive and slow.
Zero-shot node classification addresses this by predicting "unseen" classes without any training examples. This is achieved by leveraging auxiliary semantic information, such as natural language descriptions or word embeddings of class names. The fundamental challenge lies in "knowledge transfer"—effectively applying learned patterns from known categories (e.g., "Neural Networks") to novel ones (e.g., "Genetic Algorithms"). Existing approaches often treat classes as isolated labels, failing to capture the complex dependencies between nodes and their semantic categories.
Methodology: GraphCEN
The Graph Contrastive Embedding Network (GraphCEN) addresses these limitations through a three-stage pipeline designed to model node-class dependencies explicitly.
1. Class Affinity Graph Construction
Unlike traditional methods that treat classes as independent, GraphCEN constructs a graph where classes themselves are nodes. Connections are established based on semantic similarity (e.g., connecting "Machine Learning" and "Deep Learning"). This structure allows the model to propagate knowledge across related categories, facilitating generalization to unseen classes.
2. Information Fusion and GNN Encoding
Using a Graph Neural Network (GNN) encoder, the framework integrates raw node features with class semantics to generate a Joint Information Matrix. In this matrix, rows correspond to node embeddings while columns represent class embeddings, creating a unified space for comparison.
3. Two-level Contrastive Learning (CL)
The core innovation of GraphCEN is its dual-level contrastive learning strategy:
- Node-level CL: This ensures that different augmented views of the same node (generated via edge dropping or graph diffusion) remain close in the embedding space, promoting structural robustness.
- Class-level CL: This ensures semantic consistency for classes across different views. An entropy function is incorporated to prevent "model collapse," where the network might otherwise assign all nodes to a single dominant class.
Experimental Setup
The model was evaluated on four major citation network benchmarks: Cora, Citeseer, C-M10M, and the large-scale ogbn-arxiv dataset.
To support zero-shot transfer, the researchers utilized two types of Class Semantic Descriptions (CSDs):
- TEXT-CSDs: Rich natural language descriptions.
- LABEL-CSDs: Embeddings generated from class labels using a Bert-Tiny model.
Key Results and Insights
GraphCEN consistently established new state-of-the-art performance across all benchmarks:
- Accuracy Gains: On the Cora dataset, GraphCEN outperformed the previous leading method by up to 7.43% in specific class splits.
- Scalability: The framework maintained a 2-3% lead over competitors like DGPN and DBiGCN on the large-scale
ogbn-arxivdataset, demonstrating its effectiveness in high-volume data scenarios. - Semantic Expressiveness: Experiments revealed that rich natural language descriptions (TEXT-CSDs) significantly improved performance over simple label embeddings, highlighting the importance of semantic richness in zero-shot tasks.
- Ablation Success: Removing either the node-level or class-level contrastive components resulted in performance degradation, confirming that the "mutual enhancement" of the dual-level architecture is critical.
Conclusion and Future Work
GraphCEN represents a significant advancement in zero-shot node classification by treating classes as interconnected entities and employing a dual-level contrastive objective. While highly effective, future research directions include developing "neighbor-aware" contrastive signals to better utilize the class affinity graph and exploring "generalized zero-shot" settings where models must distinguish between seen and unseen classes simultaneously.
Summary updated