Abstract
This paper introduces the Graph Generalized Category Discovery (GGCD) task, providing the first theoretical framework to explain how knowledge from known classes helps identify novel ones on graphs. The authors derive a provable loss bound using Wasserstein distance and propose SWIRL, a novel contrastive learning method that uses fine-grained repulsion forces to ensure new categories are well-separated yet semantically aligned with known ones.
Introduction: The Challenge of Graph GCD
In real-world scenarios, machine learning models often encounter data from categories they weren't trained on. Generalized Category Discovery (GCD) is the challenge of taking a partially labeled dataset and simultaneously classifying known "old" categories while clustering "new" ones.
While GCD has seen progress in computer vision, its application to graph data (where nodes are linked) has remained largely unexplored and lacked a solid theoretical foundation. Specifically, researchers didn't have a rigorous answer to: When and how do old classes actually help discover new ones? Existing graph methods often failed because they either mixed old and new classes too much (losing the ability to "reject" known classes) or failed to transfer useful structural knowledge.
Methodology & Theoretical Insights
The authors attack this problem through three distinct lenses: theoretical analysis, a Markov Random Field perspective, and a novel algorithmic framework.
The Goldilocks Zone of Wasserstein Distance
The authors quantify the relationship between old and new classes using the Wasserstein distance ($W$) between their joint embedding and label distributions. They prove that for effective GCD, the embeddings must satisfy two critical "Lessons":
- Lesson 1 (Semantic Proximity): A small enough $W$ to allow knowledge transfer. If new classes are too far from old ones, the model learns nothing from the labels.
- Lesson 2 (Reject Capability): Limited overlap to maintain the ability to tell if a node belongs to a new class or an old one. If they are too close (too small $W$), they overlap indistinguishably.
As shown in the figure above, managing this distance is a balancing act. Synthetic graph experiments demonstrate that varying $W$ directly impacts the model's ability to separate classes and maintain high performance across both old and new categories.
The PMRF Perspective and the "Smoothing Trap"
By analyzing Graph Contrastive Learning (GCL) through a Pairwise Markov Random Field (PMRF) framework, the authors discover that standard losses like InfoNCE or SupCon make category relations "random" in the embedding space, inherently violating their theoretical requirements. Furthermore, Graph Convolutional Networks (GCNs) naturally smooth features. While helpful in some tasks, in GGCD, it can accidentally "collapse" new class embeddings into old ones if they are heavily linked in the graph.
SWIRL: Semantic-aWare dIlation contRastive Learning
To fix these issues, the authors propose SWIRL. Instead of uniform repulsion, SWIRL uses six distinct levels of repulsion force based on prototype assignments (via Semi-Supervised K-Means). This allows the model to precisely control the distances between old-old, old-new, and new-new category pairs, adhering to the "Two Lessons" derived earlier.
Experiments and Results
The paper evaluates its findings on both synthetic (Contextual Stochastic Block Models) and real-world benchmarks (Cora, Citeseer, Wiki, Amazon-Photo, and Amazon-Computers), using a 2:2:6 ratio for training, validation, and testing.
- Rectified Metrics: Standard accuracy metrics can be misleading for GCD. The authors introduce HRScore (a harmonic mean of rectified old and new class accuracies) to better penalize models that sacrifice one for the other.
- Superior Performance: SWIRL consistently outperformed baselines like SimGCD and Vanilla GCD across all real-world datasets.
- Scaling Up: On the largest dataset, Amazon-Computers, SWIRL achieved an HRScore of 61.46%, significantly beating the next best parametric method, Vanilla GCD (56.88%), and crushing SimGCD (32.38%).
- Theoretical Validation: Experiments confirmed that SWIRL successfully manages the Wasserstein distance to satisfy both "Lessons," whereas standard GCL methods failed when random seeds changed.
Limitations and Future Work
While highly effective, SWIRL has limitations. The authors found it struggled with Generalized PageRank (GPR) encoders on certain graph types, suggesting GCNs are currently the safer choice. Additionally, SWIRL introduces several repulsion level hyperparameters. Identifying the "primary challenge" of a new dataset to set these values automatically remains an open research question. Finally, extending this transductive theory to inductive settings (entirely new graphs at test time) is a logical next step for future work.
Summary updated