Introduction
In the rapidly evolving landscape of graph-structured data—such as citation networks and social media platforms—new categories of nodes emerge continuously. Traditional machine learning models, typically trained on a fixed set of labels, struggle to adapt to these changes. They face two primary challenges: Novel Class Discovery (NCD), the ability to cluster and identify new categories without labels, and Catastrophic Forgetting, the tendency to lose knowledge of old categories when learning new ones, especially when original training data is unavailable due to privacy or storage constraints.
This paper introduces NC-NCD (Node Classification - Novel Class Discovery), a rigorous, stage-wise, and task-agnostic framework. To address this setting, the authors propose SWORD (Self-training With prOtotype Replay and Distillation), a system designed to discover new node categories while preserving knowledge of the old.
Problem Formulation
Existing NCD methods, primarily developed for computer vision, often rely on "task IDs" during evaluation to distinguish between old and new classes. The proposed NC-NCD setting removes this crutch, requiring the model to classify all categories simultaneously in a task-agnostic manner. This reflects real-world scenarios where a model must operate on a unified feature space without knowing which "task" a node belongs to.
The SWORD Framework
SWORD utilizes a Graph Neural Network (GNN) encoder and a dual-head classification system. The architecture is divided into a pre-training phase on labeled old classes and an NCD-training phase on unlabeled new classes.
Key Methodological Innovations:
- Pairwise Pseudo-labeling via Rank Statistics: To learn unlabeled classes, SWORD analyzes node embeddings. If two nodes share the same "top-k" most activated dimensions in their feature vectors, they are assigned pseudo-labels to guide the training process.
- Prototype Replay: To avoid storing sensitive or bulky raw data, SWORD saves the statistical "prototypes" (mean and variance) of old classes. During the discovery phase, it replays synthetic features sampled from these Gaussian distributions to prevent forgetting.
- Feature Distillation: A "frozen" version of the initial model acts as a teacher, ensuring the GNN encoder's feature space does not drift excessively during the discovery of new classes.
- Encoder Output Perturbation: By injecting Gaussian noise into node representations, the model is forced to learn more stable decision boundaries, making it robust against the inherent noise of pseudo-labels.
Experimental Evaluation
The framework was evaluated on four standard graph benchmarks: Cora, Citeseer, Pubmed, and Wiki-CS. These datasets were split into "old" (labeled) and "new" (unlabeled) class sets.
Key Results:
- Superior Accuracy: On the Cora dataset, SWORD achieved an overall accuracy of 53.50%. Most NCD baselines failed in the task-agnostic setting, often scoring 0% on new classes because they could not distinguish them from old categories.
- Resistance to Forgetting: SWORD demonstrated significantly lower performance decay on old classes compared to standard graph incremental learning methods like GEM or TWP.
- Ablation Insights: Prototype Replay proved critical; removing it caused old-class accuracy to drop to near zero, confirming that statistical replay is essential for stability.
- The Depth Trap: Researchers observed that 2-layer GNNs outperformed deeper architectures. Increasing depth led to "over-smoothing," where node embeddings across different classes became indistinguishable.
Conclusion
SWORD establishes a new baseline for discovering novel classes in evolving graphs without sacrificing previous knowledge. While the current model assumes the number of novel classes is known, future work aims to extend this to dynamic scenarios where the number of categories is estimated automatically and discovery occurs over multiple successive stages.
Summary updated