Manuscript Offprint
arXiv:2610.36696HeteGCD: Statistics-Aware Dual-Prototype Learning for Generalized Category Discovery on Heterophilous Graphs
Abstract
Heterophilous graphs are prevalent in real-world applications, where connected nodes often exhibit dissimilar attributes or belong to different classes, posing significant challenges to conventional graph learning methods based on homophily. This limitation becomes particularly pronounced in generalized category discovery (GCD), which requires models to recognize known classes and discover novel ones using labels from known classes only. However, existing graph GCD methods typically rely on aforementioned homophily-based inductive biases, which are ill-suited to heterophilous graphs. Meanwhile, although current heterophilous graph learning methods exploit diverse neighborhood signals, their selection and fusion are often guided by supervision across all classes, including novel classes whose labels are unavailable in GCD. These limitations raise a key question: how can heterogeneous neighborhood information be effectively leveraged for category discovery without any novel-class supervision? To answer this question, in this study we propose HeteGCD, a new statistics-aware dual-prototype learning perspective for generalized category discovery on heterophilous graphs. The key idea is to examine both statistics of local attribute differences and neighborhood class distribution to extract discriminative information in feature and probability spaces simultaneously. Specifically, a gated dual-stream encoder integrates both node attributes and local attribute-difference statistics to learn informative node representations. Afterwards, a dual-prototype classifier combines feature-based similarity with distribution-based consistency to support category discovery. Experiments on five heterophilous graphs show that HeteGCD achieves competitive performance against 24 baseline combinations.
Keywords
Generalized Category Discovery, Heterophilous Graphs, Prototype Learning, Neighborhood Class Distributions
Known classes Novel classes --- Cross-class edge
A Labeled known ? Unlabeled known ? Unlabeled novel

(a) Unreliable Homophily Assumption. Nodes often connect to nodes of different classes, challenging graph GCD methods that rely on homophily.
(b) Unavailable Novel-Class Supervision. Missing novel-class feedback hinders signal selection and fusion for closed-set heterophilous methods.
Figure 1: GCD on Heterophilous Graphs. Only a subset of known-class nodes is labeled, while unlabeled nodes include both known and novel classes.
has no labeled examples yet. These practical challenges motivate the study of generalized category discovery (GCD) on heterophilous graphs, a problem that remains underexplored. Given labels for only some nodes from known classes, the goal is to recognize known classes and discover novel ones among the remaining unlabeled nodes [29].
On the one hand, heterophily challenges the homophily assumption underlying existing graph GCD methods. Existing methods for graph-based category discovery and open-world node classification often rely on neighborhood agreement to select or propagate pseudo-labels [13, 32]. However, as illustrated in Figure 1(a), most of the target node's neighbors belong to other classes, with red dashed edges highlighting these cross-class connections. Neighborhood agreement can therefore provide misleading evidence for category assignment, undermining the homophily-based inductive biases of these methods.
On the other hand, the lack of novel-class supervision challenges conventional heterophilous graph learning methods. These methods have achieved strong performance in closed-set node classification by combining node attributes with diverse neighborhood and structural signals [2, 16, 17, 20, 34]. Labels from all target classes guide these methods in learning which signals to use and how to combine them. However, in the GCD setting illustrated in Figure 1(b), only some known-class nodes are labeled, while the remaining unlabeled nodes, marked with question marks, belong to both known and novel classes. The model therefore lacks direct
Xuanzhi Xi et al.
novel-class feedback to determine which signals help distinguish novel classes and how these signals should be combined.
When unreliable homophily priors meet missing novel-class supervision, a key question arises: how can heterogeneous neighborhood information be effectively used for category discovery without any novel-class supervision?
To answer this question, we examine neighborhood information from a statistical perspective, with node attributes as the basis. We study two types of neighborhood statistics: local attribute-difference statistics, which summarize a node's deviations from its neighbors' mean attributes, and neighborhood class distribution statistics, which describe the proportions of classes in its neighborhood. Our empirical analyses provide evidence of category separability in these three signals, supporting their use for discovery. These observations suggest combining node attributes and local attribute-difference statistics in embedding space, while retaining neighborhood class distributions in probability space to guide category assignment.
Based on these observations, we propose HeteGCD, a statistics-aware dual-prototype learning framework. A gated dual-stream encoder integrates node attributes and local attribute-difference statistics to learn node representations. A dual-prototype classifier combines similarity to feature prototypes with consistency between neighborhood distributions and distribution prototypes. The neighborhood distributions and distribution prototypes are estimated from evolving soft assignments over known and novel classes, without requiring novel-class labels.
Our main contributions are as follows.
• Heterophilous graph GCD. To the best of our knowledge, this is the first systematic study of GCD on heterophilous graphs, examining the joint challenges of unreliable homophily priors and unavailable novel-class supervision.
• Statistics-Aware Dual-Prototype Learning. We propose HeteGCD, which combines a gated dual-stream encoder with a dual-prototype classifier to capture category information from node attributes and neighborhood statistics in feature and probability spaces.
• Competitive performance. HeteGCD achieves the best average ranks in All and New accuracy across five heterophilous graphs when compared with 24 baseline combinations.
2 Related Work
2.1 Generalized Category Discovery
Vaze et al. [29] first learn representations through supervised and self-supervised contrastive objectives, then apply semi-supervised k-means for category discovery. SimGCD [31] unifies representation learning and parametric classification through self-distillation and entropy regularization. This joint learning framework underlies many recent visual GCD methods [3, 4, 21, 30] and also serves as the basis of HeteGCD. These visual methods primarily focus on instance features, leaving topological relations among samples insufficiently explored.
Graph GCD incorporates these relations into category discovery. Deng et al. [7] study parametric GCD on graphs and introduce SWIRL for graph contrastive learning. Related work on open-world node classification includes POWN [13], which combines prototype learning with pseudo-label propagation, and TopoNC [32], which selects pseudo-labels based on neighborhood consensus. Such homophily-based mechanisms rely on category agreement between connected nodes as evidence for discovery. On heterophilous graphs, frequent cross-class edges can make this evidence unreliable, motivating other ways to use graph relations.
2.2 Learning on Heterophilous Graphs
To move beyond standard GCN aggregation [15], heterophilous graph learning draws on a wider range of attribute and structural signals. Existing methods preserve node attributes and exploit multiple hops [5, 34] or select and transform hop-wise features through adaptive fusion [9, 11, 23]. Adaptive filtering and channel mixing capture local differences and diverse frequency responses [2, 6, 12, 20]. Other approaches distinguish homophilous from heterophilous interactions [8] or encode geometric neighborhoods, global relations, and explicit adjacency [16, 17, 24].
Neighborhood class distributions provide another relational signal: nodes of the same class may have similar neighborhood compositions despite frequent cross-class edges. ND-GCN [18] and NLDGNN [33] use estimated distributions to guide propagation or construct representations, while SCNode [27] incorporates class histograms into node coordinates.
Using these signals effectively requires appropriate selection and fusion, yet GCD provides no direct novel-class supervision to guide this process. Existing neighborhood distribution methods mainly use these statistics for message passing or representation learning, while HeteGCD uses them for category assignment in probability space instead.
3 Problem Formulation
Graph notation. Let be an undirected attributed graph with nodes and , where row gives the attributes of node with category . We use the row-normalized adjacency matrix without self-loops, with zero rows for isolated nodes.
Generalized category discovery. The category set comprises disjoint known (old) and novel (new) subsets and , of sizes and . The labeled set contains examples from every known category and no novel categories. The unlabeled set contains nodes from both known and novel categories. GCD aims to assign nodes in to categories, jointly recognizing known classes and separating novel classes.
Learning setting. We consider transductive node-level GCD with known . All node features and edges are available during training, while training labels are restricted to . Hyperparameter and checkpoint selection use only held-out known-class validation labels. Data splits and evaluation details are specified in Section 6.1 and Appendices B and E.
4 Motivation and Observations
To address the key question raised in the Introduction, we examine neighborhood information from a statistical perspective. With node attributes as the basis, we analyze local attribute-difference statistics and neighborhood class distribution statistics for evidence of category separability.
HeteGCD: Statistics-Aware Dual-Prototype Learning for Generalized Category Discovery on Heterophilous Graphs
WWW '27, May 10–14, 2027, Dublin, Ireland

(a) Class separation above the shuffled baseline.

(b) Nearest-prototype classification accuracy (%).

(c) Flickr.
(d) BlogCatalog.
(e) Roman Empire.
Figure 2: Raw node attributes X retain category information across all five datasets. (a) Class separation above the shuffled-label baseline. (b) Leave-one-out nearest-prototype balanced accuracy. Triangles mark chance levels. (c–e) Mean cosine similarity between node pairs, grouped by class.
We assess category information using two measurements. Class separation is the ratio of between- to within-class distances, minus a shuffled-label baseline. Leave-one-out (LOO) nearest-prototype balanced accuracy assigns each node to the nearest class mean after excluding itself, with accuracy averaged equally across classes. Heatmaps visualize within- and between-class similarity. Details are provided in Appendices C.1 and C.2.
4.1 Node Attributes
Intuition. Since heterophily concerns graph connectivity, raw node attributes can still carry category information before neighborhood aggregation.
Analysis. Retaining X preserves direct access to each node's own attributes. H2GCN, LINKX, and ACM-GCN likewise treat raw attributes as a key source of category information [17, 20, 34].
Empirical observations. Figures 2a and 2b show positive geometry excess and above-chance LOO balanced accuracy across all five datasets. The heatmaps in Figures 2c–2e also show higher average similarity within categories than between categories. Together, these results support retaining X as a direct source of category information for discovery.
4.2 Local Attribute-Difference Statistics
Intuition. On heterophilous graphs, neighbors often belong to different categories. A node’s average attribute differences from its neighbors may nevertheless exhibit category-related patterns.
Analysis. With the adjacency convention in Section 3, the local attribute-difference signal is . For a node with a nonempty neighborhood , we compute

(a) Class separation above the shuffled baseline.

(b) Nearest-prototype classification accuracy (%).

(c) Flickr.
(d) BlogCatalog.
(e) Roman Empire.
Figure 3: Local attribute-difference statistics X – AX retain category information across all five datasets. (a) Class separation above the shuffled-label baseline. (b) LOO balanced accuracy. Triangles mark chance levels. (c–e) Mean cosine similarity between local difference vectors, grouped by class.
This first-order statistic averages the signed differences over neighbors, retaining attribute coordinates without category labels. The usefulness of local differences for graph representation learning is also supported by FAGCN, ACM-GCN, and GREET [2, 19, 20].
Empirical observations. This statistic also shows positive geometry excess and above-chance LOO balanced accuracy on all five datasets (Figures 3a and 3b). The heatmaps in Figures 3c–3e show higher average similarity within categories than between categories. These results support X – AX as an additional source of category information.
4.3 Neighborhood Class Distribution Statistics
Intuition. Even on heterophilous graphs, nodes of the same category can connect to similar mixtures of categories. The relative frequencies of neighbor categories summarize these mixtures and can therefore provide clues to a node's category.
Analysis. Let denote the nodes at shortest-path distance exactly from node . For a nonempty neighborhood, define the empirical neighborhood class distribution and its class mean as
Here, records empirical category proportions, and the class mean summarizes typical neighborhood composition as a distribution prototype. We compare distributions using total variation distance, .
Prior work likewise identifies neighborhood category distributions as informative signals for distinguishing node categories [22, 27, 33], while our focus is their value for discovering novel categories without direct supervision.
Xuanzhi Xi et al.

(a) Class separation above the shuffled baseline.
(b) Nearest-prototype classification accuracy (%).

(c) Flickr.

(d) BlogCatalog.
(e) Roman Empire.
Figure 4: Combining 1-hop and 2-hop distributions gives higher LOO accuracy than either hop on four of five datasets. (a,b) Class separation and LOO balanced accuracy. Triangles mark chance levels. (c–e) Mean node-pair similarity , averaged across hops and grouped by class.
Empirical observations. Figure 4 compares neighborhood class distributions at exact 1-hop and 2-hop distances and their fusion on the same five datasets. To combine the two scales, we retain hop-specific prototypes and average their matching distances:
Both hops show positive geometry excess and above-chance LOO balanced accuracy on most datasets, indicating useful category information at both scales. Their relative usefulness varies, 1-hop gives higher LOO accuracy on Flickr and BlogCatalog, whereas 2-hop performs better on Chameleon. Separate analyses of the two hops are provided in Appendix C.3. Fusion exceeds both individual hops on four datasets, and its heatmaps show higher average similarity within categories than between categories. These observations support using both hops to capture complementary neighborhood category information.
In GCD, category assignments for unlabeled nodes must be estimated and may be inaccurate. Such errors alter the estimated neighborhood composition. We therefore examine whether these statistics retain category separability under corrupted assignments.
Random assignment noise. Across the evaluated noise levels, fused distributions retain positive geometry excess and above-chance LOO balanced accuracy on four of the five datasets (Figure 5), indicating that category information persists despite inaccurate neighbor assignments.
Novel-to-known assignment bias. We next concentrate erroneous novel-class assignments on known categories, using the same corrupted nodes and the same rule for known-class errors. The same four datasets retain category separability across the evaluated noise
Flickr BlogCatalog Roman Empire
Chameleon
Actor

(a) Class separation above the shuffled baseline.
(b) Nearest-prototype accuracy gain over chance (pp).
Figure 5: Fused 1+2-hop distributions retain category information on four of five datasets across the tested noise levels. A fraction of unlabeled nodes per class receives random incorrect labels. (a) Class separation. (b) LOO balanced-accuracy gain over chance (percentage points).
Flickr BlogCatalog Roman Empire
Chameleon
Actor

(a) Class separation above the shuffled baseline.
(b) Nearest-prototype accuracy gain over chance (pp).
Figure 6: Four of five datasets retain category information under novel-to-known assignment bias. Corrupted novel-class nodes receive known-class labels. Other settings and measurements follow Figure 5.
levels (Figure 6). Although separation generally weakens as corruption increases, relational category information remains available under this novel-to-known bias.
These results suggest that neighborhood class distribution statistics can retain useful category information despite assignment noise and thus help guide category assignment in GCD.
4.4 Design Implications
These observations suggest using the signals according to the meaning of their coordinates. X and X – AX share attribute coordinates, describing a node’s own properties and its deviations from the neighborhood mean. Their category information lies in patterns of attribute values, which motivates learning an embedding space that organizes these complementary cues for category separation.
Neighborhood class distributions already have category semantics, each coordinate records the relative frequency of a particular category in the neighborhood. Existing neighborhood distribution
HeteGCD: Statistics-Aware Dual-Prototype Learning for Generalized Category Discovery on Heterophilous Graphs
WWW '27, May 10–14, 2027, Dublin, Ireland
methods primarily use these signals to guide propagation or construct node representations. We instead retain them in probability space and match them to distribution prototypes to guide category assignment for both known and novel classes.
Together, these insights motivate a statistics-aware design: combine node attributes and local attribute-difference statistics in embedding space, and match neighborhood class distributions to distribution prototypes in probability space.
5 Method
HeteGCD combines a gated dual-stream encoder and a dual-prototype classifier to integrate evidence from embedding and probability spaces (Figure 7). Appendix A provides training and inference pseudocode.
5.1 Gated Dual-Stream Encoder
The encoder combines each node's own attributes with its mean signed attribute differences from neighbors. At each epoch, we generate two graph views by independent feature masking and edge dropping. For view v, let denote the masked attributes and the row-normalized adjacency without self-loops. We compute local attribute-difference statistics and encode the two signals with separate residual MLPs, and . A node-wise gate combines their embeddings:
(5)
Here, and are the node's attributes and local attribute-difference statistics in the current view, and denotes normalization. The scalar gate controls how much the difference statistics supplement the attribute representation.
A separate projector produces for contrastive learning, while classification operates directly on .
5.2 Dual-Prototype Classifier
Our classifier combines feature-based similarity with distribution-based consistency for each candidate category. A trainable feature prototype represents the category in embedding space, while hop-specific distribution prototypes summarize its typical neighborhood class composition in probability space. Feature prototypes are optimized by gradient descent, distribution prototypes are periodically estimated from soft assignments.
5.2.1 Feature Prototype Matching. Let be a unit-norm feature prototype, as in the cosine classifier of SimGCD [31]. We place its matching score on [0, 1]:
Before optimization, prototypes are initialized by constrained k-means on the initial clean embeddings. Labeled nodes remain in their known slots, and unlabeled nodes can use all K slots. The resulting prototypes are then optimized jointly with the encoder.
5.2.2 Distribution Prototype Construction and Matching. We estimate category-specific neighborhood composition statistics from soft assignments and match each node's distribution to them.
Assignment memory. We maintain an assignment memory , whose row stores a smoothed estimate of node 's own class assignment over all categories. At epoch , for , the current detached soft assignment updates the memory through an exponential moving average (EMA) with momentum :
The first update initializes the memory with the current soft assignments, while rows for remain fixed to their known-label one-hot vectors.
Neighborhood class distributions. On the original graph, let contain nodes at shortest-path distance exactly from node . At each refresh, we estimate the neighborhood class proportions by averaging the stored soft assignments:
Distribution prototype construction. Let index nodes whose -hop neighborhoods are nonempty. For each category , we construct a distribution prototype by averaging these distributions, weighted by the center nodes' soft memberships:
Thus summarizes the typical neighborhood class composition of nodes assigned to . Both the neighborhood distributions and the center-node weights come from , allowing this construction to cover known and novel categories without requiring novel-class labels.
Distribution-based consistency. We measure consistency between a node's neighborhood composition and that of a candidate category by averaging total-variation (TV) similarities to its distribution prototypes across available hops:
where indexes the available hops for this comparison.
5.2.3 Score Fusion. Both and lie in . We combine each view's feature scores with the shared, detached distribution scores using weight :
The fusion weight is adjusted during training, and the resulting scores S are converted into class probabilities via softmax.
5.3 Joint Training and Inference
We jointly optimize representation and category assignment, using the contrastive objectives of GCD [29] and the supervised cross-entropy (CE), self-distillation, and mean-entropy maximization (MeMax) objectives of SimGCD [31]. The classification terms use the fused scores from both prototype branches.
Xuanzhi Xi et al.

Figure 7: Overview of HeteGCD. A gated dual-stream encoder integrates node attributes X and local attribute-difference statistics X – AX into embeddings . Matching to trainable feature prototypes yields scores F in embedding space. Current soft assignments update memories by exponential moving average. Averaging these memories over exact r-hop neighbors estimates neighborhood class distributions . In probability space, distribution prototype is their weighted mean (illustrated for ), with weight denoting node i's probability of belonging to class k. Total-variation similarities to these prototypes, averaged across hops, yield consistency scores D. Fused scores S support classification loss , while projected embeddings support contrastive loss .
Representation learning. InfoNCE pairs each node with its other view, and supervised contrastive learning uses labeled nodes of the same category as positives. Both objectives act on projected features z:
Category assignment. From the fused scores, we compute student probabilities and sharpened soft targets as
where sg stops gradients and . For , supervised CE is averaged within each known class and then across classes:
For unlabeled nodes, self-distillation uses each view’s soft targets to supervise the other view. With , the symmetric loss is
The MeMax regularizer encourages broad category usage by maximizing the entropy of the mean prediction:
(16)
Using the same supervised weight in both representation learning and category assignment, the complete objective is
(17)
Training schedule. During warm-up, and predictions use feature prototypes alone, after which increases linearly to . Each epoch predicts and optimizes with the active , then updates from the soft targets saved during that forward pass. Distribution scores are first constructed at the end of warm-up and refreshed every five epochs thereafter. For the next epoch, is set to the refreshed scores when available and to otherwise. At inference, we encode the unaugmented graph and predict .
6 Experiments
6.1 Experimental Setup
Datasets and protocol. We evaluate on five heterophilous graphs, namely Roman Empire [25], Chameleon (filtered) [25, 26], Actor [24], BlogCatalog [14], and Flickr [14]. All methods share five frozen class partitions and node splits, with known classes in each setting. Dataset statistics and split construction are given in Appendix B.
Comparisons and evaluation. We compare against 24 combinations of eight encoders and three discovery frameworks: GCD [29], SimGCD [31], and GGCD [7]. The encoders are MLP [10], GCN [15], GCNII [5], H2GCN [34], LINKX [17], FSGNN [23], ACM-GCN [20], and GAMMA [9]. Old, New, and All accuracy share a single Hungarian matching over all test nodes.
HeteGCD: Statistics-Aware Dual-Prototype Learning for Generalized Category Discovery on Heterophilous Graphs
WWW '27, May 10–14, 2027, Dublin, Ireland
Table 1: Mean test accuracy (%) of 25 methods over five settings. Rk. ranks methods by All accuracy within each dataset. Avg. Rank averages these ranks and determines Overall Rank (lower is better). Light orange, light blue, and light cyan indicate the three best distinct values per column, respectively. HeteGCD achieves the best overall rank.
| Method | Roman Empire | Chameleon | Actor | BlogCatalog | Flickr | Summary | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Encoder | Old | New | All | Rk. | Old | New | All | Rk. | Old | New | All | Rk. | Old | New | All | Rk. | Old | New | All | Rk. | Avg. Rank | Overall Rank | |
| GCD | MLP | 60.89 | 30.92 | 45.58 | 14 | 46.14 | 33.68 | 38.53 | 8 | 35.21 | 29.01 | 31.78 | 2 | 95.16 | 48.97 | 72.03 | 4 | 92.37 | 13.55 | 48.73 | 11 | 7.80 | 2.5 |
| GCN | 34.50 | 17.98 | 24.52 | 23 | 49.32 | 30.37 | 38.50 | 9 | 20.44 | 30.48 | 27.61 | 22 | 73.03 | 45.07 | 59.12 | 11 | 69.33 | 34.86 | 50.29 | 8 | 14.60 | 16 | |
| GCNII | 71.55 | 27.01 | 48.68 | 6 | 45.80 | 26.66 | 35.91 | 21 | 23.43 | 24.07 | 25.93 | 25 | 97.02 | 67.66 | 82.32 | 2 | 90.91 | 28.54 | 56.36 | 4 | 11.60 | 12 | |
| H2GCN | 52.87 | 28.81 | 40.61 | 19 | 46.38 | 27.28 | 34.99 | 25 | 33.64 | 23.76 | 28.43 | 20 | 83.32 | 22.08 | 52.66 | 12 | 88.26 | 26.08 | 53.83 | 6 | 16.40 | 18.5 | |
| LINKX | 58.29 | 32.90 | 45.03 | 15 | 44.54 | 33.41 | 40.06 | 2 | 33.84 | 26.64 | 29.88 | 16 | 97.09 | 25.45 | 61.15 | 9 | 92.41 | 27.58 | 56.51 | 3 | 9.00 | 5 | |
| FSGNN | 76.20 | 34.40 | 54.23 | 1 | 42.18 | 31.53 | 37.55 | 13 | 13.20 | 41.94 | 31.37 | 3 | 74.65 | 26.30 | 50.65 | 15 | 86.38 | 10.79 | 44.58 | 12 | 8.80 | 4 | |
| ACM-GCN | 76.74 | 33.13 | 54.22 | 2 | 47.35 | 30.50 | 37.27 | 14 | 28.45 | 28.64 | 27.97 | 21 | 96.53 | 80.91 | 88.62 | 1 | 92.83 | 30.55 | 58.33 | 1 | 7.80 | 2.5 | |
| GAMMA | 33.00 | 17.87 | 26.57 | 22 | 36.16 | 34.31 | 36.64 | 18 | 38.69 | 21.14 | 29.11 | 18 | 78.29 | 47.79 | 63.28 | 6 | 89.33 | 32.88 | 58.08 | 2 | 13.20 | 15 | |
| SimGCD | MLP | 58.66 | 31.57 | 47.00 | 11 | 45.00 | 33.35 | 38.86 | 6 | 17.53 | 37.51 | 30.68 | 9 | 95.82 | 30.36 | 62.91 | 8 | 94.71 | 3.02 | 43.92 | 14 | 9.60 | 7 |
| GCN | 52.57 | 9.30 | 31.02 | 21 | 35.08 | 32.42 | 35.73 | 22 | 13.72 | 33.48 | 26.95 | 24 | 65.91 | 27.77 | 46.93 | 25 | 77.81 | 3.76 | 36.78 | 25 | 23.40 | 25 | |
| GCNII | 70.01 | 21.94 | 48.53 | 7 | 51.08 | 31.26 | 39.92 | 3 | 10.84 | 42.67 | 30.39 | 13 | 79.74 | 20.14 | 50.13 | 18 | 90.47 | 3.64 | 42.35 | 22 | 12.60 | 13 | |
| H2GCN | 56.06 | 26.50 | 44.13 | 16 | 41.11 | 29.75 | 36.66 | 17 | 17.49 | 36.11 | 29.53 | 17 | 92.05 | 6.84 | 49.31 | 20 | 96.09 | 0.00 | 42.86 | 17 | 17.40 | 22 | |
| LINKX | 63.10 | 31.27 | 47.76 | 9 | 42.27 | 31.78 | 38.32 | 10 | 13.08 | 41.86 | 30.63 | 10 | 97.84 | 7.31 | 52.34 | 13 | 95.51 | 11.09 | 48.74 | 10 | 10.40 | 8 | |
| FSGNN | 70.02 | 21.29 | 46.82 | 13 | 44.19 | 31.80 | 39.29 | 4 | 13.75 | 44.30 | 32.26 | 1 | 84.73 | 13.23 | 49.02 | 21 | 96.30 | 0.00 | 42.95 | 15.5 | 10.90 | 9.5 | |
| ACM-GCN | 65.67 | 28.72 | 50.60 | 3 | 52.46 | 28.20 | 38.85 | 7 | 14.21 | 41.91 | 31.05 | 7 | 98.21 | 0.19 | 48.87 | 22 | 91.51 | 3.74 | 42.95 | 15.5 | 10.90 | 9.5 | |
| GAMMA | 27.24 | 4.28 | 17.78 | 25 | 40.13 | 30.51 | 36.75 | 15 | 8.88 | 43.42 | 29.91 | 15 | 80.05 | 20.17 | 50.31 | 17 | 91.45 | 6.28 | 44.25 | 13 | 17.00 | 20 | |
| GCD | MLP | 66.12 | 29.37 | 48.15 | 8 | 58.95 | 20.01 | 36.68 | 16 | 14.46 | 41.97 | 31.17 | 5 | 90.28 | 28.80 | 59.44 | 10 | 94.91 | 18.96 | 52.85 | 7 | 9.20 | 6 |
| GCN | 56.91 | 7.27 | 32.29 | 20 | 42.37 | 30.98 | 37.86 | 12 | 12.02 | 36.37 | 27.24 | 23 | 70.34 | 30.13 | 50.44 | 16 | 81.73 | 11.14 | 42.66 | 18 | 17.80 | 23 | |
| GCNII | 66.50 | 23.73 | 47.17 | 10 | 45.30 | 26.84 | 35.49 | 24 | 10.05 | 44.13 | 31.17 | 4 | 89.98 | 6.45 | 47.78 | 24 | 93.93 | 0.00 | 41.89 | 24 | 17.20 | 21 | |
| H2GCN | 56.14 | 25.79 | 42.97 | 17 | 30.27 | 36.92 | 36.51 | 19 | 17.73 | 38.04 | 30.49 | 12 | 97.26 | 29.43 | 63.18 | 7 | 90.97 | 3.64 | 42.57 | 19 | 14.80 | 17 | |
| LINKX | 58.46 | 24.12 | 42.10 | 18 | 34.56 | 36.49 | 38.03 | 11 | 26.88 | 33.16 | 30.17 | 14 | 95.11 | 36.38 | 65.54 | 5 | 93.12 | 13.74 | 49.17 | 9 | 11.40 | 11 | |
| FSGNN | 72.29 | 19.84 | 46.95 | 12 | 36.78 | 33.31 | 35.57 | 23 | 29.97 | 32.97 | 30.93 | 8 | 82.82 | 15.87 | 49.43 | 19 | 85.74 | 7.64 | 42.52 | 20 | 16.40 | 18.5 | |
| ACM-GCN | 71.15 | 24.05 | 49.64 | 5 | 54.38 | 27.64 | 38.94 | 5 | 14.91 | 40.67 | 30.57 | 11 | 98.01 | 0.00 | 48.68 | 23 | 90.45 | 3.60 | 42.40 | 21 | 13.00 | 14 | |
| GAMMA | 24.56 | 9.27 | 18.13 | 24 | 43.50 | 27.29 | 36.16 | 20 | 22.54 | 28.92 | 28.58 | 19 | 72.35 | 29.37 | 50.90 | 14 | 94.82 | 0.00 | 42.30 | 23 | 20.00 | 24 | |
| HeteGCD | 63.28 | 31.54 | 50.03 | 4 | 47.12 | 35.94 | 40.43 | 1 | 14.44 | 41.86 | 31.11 | 6 | 97.29 | 47.85 | 72.49 | 3 | 95.32 | 20.50 | 53.90 | 5 | 3.80 | 1 | |
Implementation. All methods use a 100-trial Optuna [1] budget and train for 200 epochs. Each trial uses one configuration across the five settings. Hyperparameter and checkpoint selection rely only on known-class validation labels. Appendices D and E detail baseline adaptation, search spaces, and the selection rule.
6.2 Main Results
HeteGCD achieves the best average All and New ranks (Table 1). Its average All rank is 3.80, compared with 7.80 for both runners-up. It remains in the top six on every dataset, while each baseline ranks 13th or lower on at least one. These results demonstrate strong and consistent overall classification performance across datasets.
New accuracy more directly evaluates novel-class discovery, GCD's central challenge. Here, HeteGCD's average rank is 5.40 versus 8.60 for the runner-up. It ranks in the top eight on every dataset, while each baseline ranks 14th or lower on at least one. These results further demonstrate HeteGCD's ability to discover novel classes across datasets.
This consistency is particularly valuable on heterophilous graphs. For example, ACM-GCN+GCD ranks first on BlogCatalog and Flickr but 21st on Actor in All. Strong performance on a few datasets therefore does not necessarily reflect a method's overall effectiveness. Within the SimGCD family, HeteGCD improves All accuracy over

Figure 8: t-SNE visualization of node embeddings before and after training on BlogCatalog. Cool colors denote known-class nodes, and warm colors denote novel-class nodes.
MLP+SimGCD on all five datasets, supporting neighborhood statistics as useful complements to node attributes.
6.3 Embedding Space Visualization
Figure 8 shows tighter within-category groups and clearer separation between categories in the t-SNE projection [28]. This organization is visible for both known and novel categories, illustrating the discriminative embedding space learned by the encoder.
Xuanzhi Xi et al.

New class 2, 1-hop (TV 0.125)

New class 2, 2-hop (TV 0.165)
Ground truth
Distribution prototype
Figure 9: Neighborhood class distributions for a known and a novel class on BlogCatalog at 1-hop and 2-hop. Orange shows the displayed class's ground-truth distribution, while blue shows its estimated distribution prototype.
Table 2: Component ablation results with mean test accuracy (%) over five settings. Avg. Imp. averages Full-minus-ablation differences (pp). Bold marks column maxima.
| Variant | Flickr | BlogCatalog | Roman Empire | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Old | New | All | Old | New | All | Old | New | All | |
| w/o X | 83.50 | 14.30 | 45.17 | 80.87 | 32.18 | 56.40 | 62.57 | 30.45 | 48.06 |
| w/o X - AX | 95.18 | 23.91 | 55.71 | 97.60 | 49.40 | 73.41 | 56.45 | 30.07 | 44.79 |
| w/o distribution | 95.00 | 21.10 | 54.09 | 95.56 | 51.03 | 73.26 | 70.82 | 31.90 | 52.47 |
| Ours (Full) | 95.41 | 22.89 | 55.28 | 97.56 | 49.13 | 73.28 | 63.52 | 31.14 | 49.99 |
| Avg. Imp. | +4.19 | +3.12 | +3.62 | +6.22 | +4.93 | +5.59 | +0.24 | +0.34 | +1.55 |
6.4 Quality of Distribution Prototypes
Figure 9 shows that the estimated distribution prototypes closely follow the main peaks of the ground-truth distributions at 1-hop and capture their broader shapes at 2-hop. This agreement for both known and novel categories indicates that the prototypes encode meaningful category-level neighborhood composition, providing distribution-based evidence for category assignment.
6.5 Component Ablation
Table 2 compares Full reruns with variants removing each component under fixed configurations.
Preserving X improves mean All accuracy on all three datasets by up to 16.88 points. X - AX raises Roman Empire's All by 5.19 points, while distribution prototypes raise Flickr's New and BlogCatalog's Old by 1.79 and 2.00 points, respectively. The varying gains are consistent with heterophilous graphs' diverse attribute and connection patterns. Combining attribute information in embedding space with neighborhood compositions in probability space provides complementary evidence for category discovery without novel-class labels. These gains and the best average All and New ranks support HeteGCD's unified design across datasets.

(a) Flickr
(b) BlogCatalog
(c) Roman Empire
Figure 10: Sensitivity to the supervised weight . Lines show mean test accuracy over five settings, and shaded bands indicate standard deviation. Dashed vertical lines mark the selected values.

(a) Flickr
(b) BlogCatalog
(c) Roman Empire
Figure 11: Sensitivity to the MeMax weight . The plotting conventions follow Figure 10.
6.6 Sensitivity to Loss Weights
We vary the supervised weight and the MeMax weight in Eq. (17) separately on Flickr, BlogCatalog, and Roman Empire.
Supervised weight. Figure 10 shows that increasing from a low to a moderate value improves Old and All accuracy. At larger values, Old accuracy changes little on Flickr and BlogCatalog, while New accuracy declines. New accuracy on Roman Empire varies less across the tested range.
MeMax weight. Figure 11 shows that increasing from 0 to 2 improves All accuracy on all three datasets, with especially pronounced gains in novel-class discovery on Flickr. Further increases continue to improve New and All accuracy on Flickr, while the gains level off or slightly decline on BlogCatalog and Roman Empire.
Hyperparameters are selected using only known-class validation labels. Consequently, the selected values marked in Figures 10 and 11 do not necessarily maximize New or All accuracy.
7 Conclusion
In this work, we extend heterophilous graph learning beyond closed-set classification to generalized category discovery. We analyze unreliable homophily priors and missing novel-class supervision, asking how to exploit heterogeneous neighborhood information for discovery. Through empirical observations and analyses from a statistical perspective, we propose HeteGCD, combining a gated dual-stream encoder with a dual-prototype classifier. Experiments on five heterophilous graphs demonstrate its effectiveness. We offer HeteGCD as a pioneering and effective baseline for heterophilous graph GCD and hope to encourage further exploration of heterophilous graph learning in open-world settings.
HeteGCD: Statistics-Aware Dual-Prototype Learning for Generalized Category Discovery on Heterophilous Graphs
WWW '27, May 10–14, 2027, Dublin, Ireland
References
[1] Takuya Akiba, Shotaro Sano, Toshihiko Yanase, Takeru Ohta, and Masanori Koyama. 2019. Optuna: A Next-generation Hyperparameter Optimization Framework. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. ACM, 2623–2631. doi:10.1145/3292500.3330701
[2] Deyu Bo, Xiao Wang, Chuan Shi, and Huawei Shen. 2021. Beyond Low-frequency Information in Graph Convolutional Networks. Proceedings of the AAAI Conference on Artificial Intelligence 35, 5 (2021), 3950–3957. doi:10.1609/aaai.v35i5.16514
[3] Xinzi Cao, Ke Chen, Feidiao Yang, Xiawu Zheng, Yonghong Tian, and Yutong Lu. 2025. AllGCD: Leveraging All Unlabeled Data for Generalized Category Discovery. In Proceedings of the IEEE/CVF International Conference on Computer Vision. IEEE, 3293–3303. doi:10.1109/ICCV51701.2025.00315
[4] Xinzi Cao, Xiawu Zheng, Guanhong Wang, Weijiang Yu, Yunhang Shen, Ke Li, Yutong Lu, and Yonghong Tian. 2024. Solving the Catastrophic Forgetting Problem in Generalized Category Discovery. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. IEEE, 16880–16889. doi:10.1109/CVPR52733.2024.01597
[5] Ming Chen, Zhewei Wei, Zengfeng Huang, Bolin Ding, and Yaliang Li. 2020. Simple and Deep Graph Convolutional Networks. In Proceedings of the 37th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 119). PMLR, 1725–1735. https://proceedings.mlr.press/v119/chen20v.html
[6] Eli Chien, Jianhao Peng, Pan Li, and Olgica Milenkovic. 2021. Adaptive Universal Generalized PageRank Graph Neural Network. In International Conference on Learning Representations. https://openreview.net/forum?id=n6jl7flxrP
[7] Bowen Deng, Lele Fu, Jialong Chen, Sheng Huang, Tianchi Liao, Tao Zhang, and Chuan Chen. 2025. Towards Understanding Parametric Generalized Category Discovery on Graphs. In Proceedings of the 42nd International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 267). PMLR, 13069–13109. https://proceedings.mlr.press/v267/deng25b.html
[8] Lun Du, Xiaozhou Shi, Qiang Fu, Xiaojun Ma, Hengyu Liu, Shi Han, and Dongmei Zhang. 2022. GBK-GNN: Gated Bi-Kernel Graph Neural Networks for Modeling Both Homophily and Heterophily. In Proceedings of the ACM Web Conference 2022. ACM, 1550–1558. doi:10.1145/3485447.3512201
[9] Amir Ghazizadeh, Rickard Ewetz, and Hao Zheng. 2025. GAMMA: Gated Multi-hop Message Passing for Homophily-Agnostic Node Representation in GNNs. In Advances in Neural Information Processing Systems, Vol. 38. Curran Associates, Inc., 11726–11777. doi:10.52202/085713-0393
[10] Ian Goodfellow, Yoshua Bengio, and Aaron Courville. 2016. Deep Learning. MIT Press, Cambridge, MA, USA. https://www.deeplearningbook.org/
[11] Ming Gu, Zhuonan Zheng, Sheng Zhou, Meihan Liu, Jiawei Chen, Qiaoyu Tan, Liangcheng Li, and Jiajun Bu. 2025. Making Classic GNNs Strong Baselines Across Varying Homophily: A Smoothness–Generalization Perspective. In Advances in Neural Information Processing Systems, Vol. 38. Curran Associates, Inc., 51025–51060. doi:10.52202/085713-1701
[12] Mingguo He, Zhewei Wei, Zengfeng Huang, and Hongteng Xu. 2021. BernNet: Learning Arbitrary Graph Spectral Filters via Bernstein Approximation. In Advances in Neural Information Processing Systems, Vol. 34. Curran Associates, Inc., 14239–14251. https://proceedings.neurips.cc/paper/2021/hash/76f1cfd7754a6e4fc3281bccb3d0902-Abstract.html
[13] Marcel Hoffmann, Lukas Galke, and Ansgar Scherp. 2025. POWN: Prototypical Open-World Node Classification. In Proceedings of the 3rd Conference on Lifelong Learning Agents (Proceedings of Machine Learning Research, Vol. 274). PMLR, 672–691. https://proceedings.mlr.press/v274/hoffmann25a.html
[14] Xiao Huang, Jundong Li, and Xia Hu. 2017. Label Informed Attributed Network Embedding. In Proceedings of the Tenth ACM International Conference on Web Search and Data Mining. ACM, 731–739. doi:10.1145/3018661.3018667
[15] Thomas N. Kipf and Max Welling. 2017. Semi-Supervised Classification with Graph Convolutional Networks. In International Conference on Learning Representations. https://openreview.net/forum?id=SJU4ayYgl
[16] Xiang Li, Renyu Zhu, Yao Cheng, Caihua Shan, Siqiang Luo, Dongsheng Li, and Weining Qian. 2022. Finding Global Homophily in Graph Neural Networks When Meeting Heterophily. In Proceedings of the 39th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 162). PMLR, 13242–13256. https://proceedings.mlr.press/v162/li22ad.html
[17] Derek Lim, Felix Hohne, Xiuyu Li, Sijia Linda Huang, Vaishnavi Gupta, Omkar Bhalerao, and Ser-Nam Lim. 2021. Large Scale Learning on Non-Homophilous Graphs: New Benchmarks and Strong Simple Methods. In Advances in Neural Information Processing Systems, Vol. 34. Curran Associates, Inc., Red Hook, NY, USA, 20887–20902. https://proceedings.neurips.cc/paper/2021/hash/ae816a80e4c1c56caa2eb4e1819cbb2f-Abstract.html
[18] Siqi Liu, Dongxiao He, Zhizhi Yu, Di Jin, and Zhiyong Feng. 2025. Beyond Homophily: Neighborhood Distribution-guided Graph Convolutional Networks. Expert Systems with Applications 259 (2025), 125274. doi:10.1016/j.eswa.2024.125274
[19] Yixin Liu, Yizhen Zheng, Daokun Zhang, Vincent C. S. Lee, and Shirui Pan. 2023. Beyond Smoothing: Unsupervised Graph Representation Learning with Edge Heterophily Discriminating. Proceedings of the AAAI Conference on Artificial
Intelligence 37, 4 (2023), 4516–4524. doi:10.1609/aaai.v37i4.25573
[20] Sitao Luan, Chengqing Hua, Qincheng Lu, Jiaqi Zhu, Mingde Zhao, Shuyuan Zhang, Xiao-Wen Chang, and Doina Precup. 2022. Revisiting Heterophily for Graph Neural Networks. In Advances in Neural Information Processing Systems, Vol. 35. Curran Associates, Inc., Red Hook, NY, USA, 1362–1375. doi:10.52202/068431-0100
[21] Shijie Ma, Fei Zhu, Xu-Yao Zhang, and Cheng-Lin Liu. 2025. ProtoGCD: Unified and Unbiased Prototype Learning for Generalized Category Discovery. IEEE Transactions on Pattern Analysis and Machine Intelligence 47, 7 (2025), 6022–6038. doi:10.1109/TPAMI.2025.3557502
[22] Yao Ma, Xiaorui Liu, Neil Shah, and Jiliang Tang. 2022. Is Homophily a Necessity for Graph Neural Networks?. In International Conference on Learning Representations. https://openreview.net/forum?id=ucASPPD9GKN
[23] Sunil Kumar Maurya, Xin Liu, and Tsuyoshi Murata. 2022. Simplifying Approach to Node Classification in Graph Neural Networks. Journal of Computational Science 62 (2022), 101695. doi:10.1016/j.jocs.2022.101695
[24] Hongbin Pei, Bingzhe Wei, Kevin Chen-Chuan Chang, Yu Lei, and Bo Yang. 2020. Geom-GCN: Geometric Graph Convolutional Networks. In International Conference on Learning Representations. https://openreview.net/forum?id=S1e2agrFvS
[25] Oleg Platonov, Denis Kuznedelev, Michael Diskin, Artem Babenko, and Liudmila Prokhorenkova. 2023. A Critical Look at the Evaluation of GNNs under Heterophily: Are We Really Making Progress?. In International Conference on Learning Representations. https://openreview.net/forum?id=tjbbQfw-5wv
[26] Benedek Rozemberczki, Carl Allen, and Rik Sarkar. 2021. Multi-Scale Attributed Node Embedding. Journal of Complex Networks 9, 2 (2021), cnab014. doi:10.1093/comnet/cnab014
[27] Md Joshem Uddin, Astrit Tola, Varin Singh Sikand, Cuneyt Gurcan Akcora, and Baris Coskunuzer. 2025. SCNode: Spatial and Contextual Coordinates for Graph Representation Learning. Transactions on Machine Learning Research (2025). https://openreview.net/forum?id=wdcdKeFbfQ
[28] Laurens van der Maaten and Geoffrey Hinton. 2008. Visualizing Data using t-SNE. Journal of Machine Learning Research 9, 86 (2008), 2579–2605. https://jmlr.org/papers/v9/vandermaaten08a.html
[29] Sagar Vaze, Kai Han, Andrea Vedaldi, and Andrew Zisserman. 2022. Generalized Category Discovery. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. IEEE, 7482–7491. doi:10.1109/CVPR52688.2022.00734
[30] Hongjun Wang, Sagar Vaze, and Kai Han. 2024. SPTNet: An Efficient Alternative Framework for Generalized Category Discovery with Spatial Prompt Tuning. In International Conference on Learning Representations. https://openreview.net/forum?id=3QLkwU40EE
[31] Xin Wen, Bingchen Zhao, and Xiaojuan Qi. 2023. Parametric Classification for Generalized Category Discovery: A Baseline Study. In Proceedings of the IEEE/CVF International Conference on Computer Vision. IEEE, 16544–16554. doi:10.1109/ICCV51070.2023.01521
[32] Xuanzhi Xi, Zhong Zhang, Hongliang Wang, Tongze Zhang, Hongchao Hu, Qinli Yang, and Junming Shao. 2026. Topology-Aware Neural Collapse for Generalized Category Discovery on Graphs. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2. ACM, 5579–5590. doi:10.1145/3770855.3817835
[33] Zhili Zhao, Li Wan, Xupeng Liu, Ruiyi Yan, and Shaomeng Wang. 2026. Node Classification in GNNs: Impact of Neighborhood Label Distribution on Homophily and Heterophily. IEEE Transactions on Neural Networks and Learning Systems 37, 10 (2026), 5742–5756. doi:10.1109/TNNLS.2026.3680732
[34] Jiong Zhu, Yujun Yan, Lingxiao Zhao, Mark Heimann, Leman Akoglu, and Danai Koutra. 2020. Beyond Homophily in Graph Neural Networks: Current Limitations and Effective Designs. In Advances in Neural Information Processing Systems, Vol. 33. Curran Associates, Inc., Red Hook, NY, USA, 7793–7804. https://proceedings.neurips.cc/paper/2020/hash/58ae23d878a47004366189884c2f8440-Abstract.html
A Training and Inference
Algorithm 1 summarizes HeteGCD. On the original graph, is node 's exact -hop neighborhood and contains nodes with nonempty neighborhoods. indexes available hops for node and category slot . Refreshed distribution scores take effect in the next epoch.
B Datasets and Settings
B.1 Datasets and Node Splits
Table 3 summarizes the graphs. The split ratios reported below follow the training/validation/test order.
Xuanzhi Xi et al.
Algorithm 1 HeteGCD: training and inference
Require: Graph , labeled nodes , category count , and training epochs .
Ensure: Predictions for unlabeled nodes .
1: Initialize encoder and projector ; initialize feature prototypes by constrained clustering.
2: Set assignment memory and distribution scores ; use during warm-up.
3: for do Representation and assignment learning
4: Generate two views by feature masking and edge dropping.
5: For each view , compute .
6: Encode and project both views: .
7: Compute feature scores and fuse active distribution scores: , . Use feature scores alone where distribution scores are unavailable.
8: Save detached targets .
9: Take one AdamW step on the joint loss (Section 5.3). Distribution update
10: Initialize or update by EMA of ; fix labeled rows to their known-label one-hot vectors.
11: Keep the current distribution scores: .
12: if warm-up ends or a five-epoch distribution refresh is due then
13: Estimate neighborhood class distributions for : , .
14: Construct distribution prototypes for : .
15: Compute node-slot TV distances: .
16: Update distribution scores for the next epoch: .
17: end if
18: end for
19: Select an epoch using Appendix E.1.
20: return for , using the selected network on the clean graph and its active distribution scores.
Roman Empire [25] is a Wikipedia word graph with sequential and syntactic edges, word-embedding features, and syntactic-role labels. We use the first five official 50/25/25 splits.
Chameleon [26] is a Wikipedia hyperlink graph with page-content features and five traffic-based categories from Geom-GCN [24]. We use Platonov et al.'s filtered release [25] and its first five official splits.
Actor [24] is an actor co-occurrence graph from Wikipedia, with keyword features. We use the first five supplied 48/32/20 splits.
BlogCatalog and Flickr [14] are user graphs from blogging and photo-sharing platforms, respectively, with user attributes. We use five fixed, class-stratified 60/20/20 splits per graph.
B.2 Difficulty-Based Settings
We rank candidate known/novel class partitions by cross-group connectivity and feature-centroid proximity between novel and known classes. Stronger connections and closer centroids indicate greater novel-to-known confusability. We select partitions spanning easy, intermediate, and hard regimes and pair them with fixed node splits.
C Observation Methodology
C.1 Attribute Signals
We examine node attributes and local attribute-difference statistics , where averages neighbor attributes without self-loops. For either signal, let be node 's vector and the nodes of class , with . The class prototype is . Comparisons use cosine distance .
C.1.1 Class Separation. averages distances between distinct class prototypes. averages node-to-own-prototype distances within each class, then equally across classes:
A larger ratio indicates clearer separation.
For 100 label shuffles preserving class sizes, we recompute prototypes and obtain . The geometry excess is
Positive values indicate stronger category structure than random grouping.
C.1.2 Leave-One-Out Balanced Accuracy. For leave-one-out (LOO) evaluation, we exclude node when computing class prototypes:
Let indicate whether the nearest prototype under cosine distance is correct. Balanced accuracy averages within classes, then equally across classes:
Plots show this balanced accuracy as a percentage, chance is .
C.2 Neighborhood Class Distributions
Neighborhood class distributions record the category composition of a node's neighbors. We use exact 1-hop and 2-hop neighborhoods. The 2-hop set excludes the node itself and its immediate neighbors. Write for node 's -hop distribution and for the distribution prototype obtained by averaging distributions within true class .
C.2.1 Class Separation. Class separation follows Equation (18), replacing and with and , and using total variation distance:
HeteGCD: Statistics-Aware Dual-Prototype Learning for Generalized Category Discovery on Heterophilous Graphs
WWW '27, May 10–14, 2027, Dublin, Ireland
Table 3: Dataset statistics. Labeled ratio gives the minimum–maximum percentage of nodes with training labels across five settings. Edge homophily is the fraction of edges connecting nodes of the same class.
| Dataset | Nodes | Edges | Features | Classes | Old Classes | New Classes | labeled ratio (%) | Edge Homophily |
|---|---|---|---|---|---|---|---|---|
| Roman Empire | 22,662 | 32,927 | 300 | 18 | 9 | 9 | 10.05–29.51 | 0.047 |
| Chameleon | 890 | 8,854 | 2,325 | 5 | 2 | 3 | 16.40–19.55 | 0.236 |
| Actor | 7,600 | 26,659 | 932 | 5 | 2 | 3 | 14.21–23.76 | 0.217 |
| BlogCatalog | 5,196 | 171,743 | 8,189 | 6 | 3 | 3 | 29.08–30.81 | 0.401 |
| Flickr | 7,575 | 239,738 | 12,047 | 9 | 4 | 5 | 26.27–27.29 | 0.239 |

(a) Class separation above the shuffled baseline.

(b) Nearest-prototype classification accuracy (%).

(c) Flickr.

(d) BlogCatalog.

(e) Roman Empire.
Figure 12: Exact 1-hop neighborhood class distributions.
This gives the between- and within-class distances and . For fused distributions, every comparison averages the 1-hop and 2-hop distances, so the geometry ratio is
We subtract each signal's shuffled-label reference as in Equation (19).
For class-pair heatmaps, let . The mean similarities are
C.2.2 Leave-One-Out Balanced Accuracy. Following Equation (20), we exclude each node from its class prototype at each hop to obtain . The distances are
Balanced accuracy follows Equation (21).
Clean-observation plots show balanced accuracy as a percentage. Noise plots show the gain over chance in percentage points:
Zero therefore means chance-level assignment.

(a) Class separation above the shuffled baseline.

(b) Nearest-prototype classification accuracy (%).

(c) Flickr.

(d) BlogCatalog.

(e) Roman Empire.
Figure 13: Exact 2-hop neighborhood class distributions.
C.2.3 Random Assignment Noise. Random noise tests whether neighborhood class distributions retain category information under incorrect neighbor assignments. For each setting and rate , we randomly select a fraction of the unlabeled nodes within each true class. Each selected node receives a uniformly sampled incorrect category.
We rebuild neighborhood distributions from the corrupted assignments, then average them within each true class to obtain class prototypes. LOO accuracy is still evaluated against the nodes' true categories. Each curve averages scores over five settings and 20 repetitions. For the class-separation baseline, we randomly regroup nodes five times per repetition and average the resulting 100 geometry ratios for each setting and noise level.
C.2.4 Novel-to-Known Assignment Bias. This bias models novel-class nodes being mistaken for known categories. We corrupt the same nodes as under random noise, assigning selected novel-class nodes uniformly to known categories. Selected known-class nodes receive exactly the same wrong categories as under random noise. We recompute distributions, prototypes, and metrics as above.
C.3 Separate 1-Hop and 2-Hop Observations
Figures 12 and 13 provide separate 1-hop and 2-hop results and class-pair heatmaps, complementing the fusion analysis in Figure 4. Neither hop range consistently dominates across datasets, motivating the joint use of neighborhood statistics at different ranges.
Xuanzhi Xi et al.
D Baseline Methods
The 24 baselines combine eight encoders with three category discovery frameworks. Encoders extract node representations, while frameworks learn from them and produce category assignments.
D.1 Graph Encoders
MLP [10] transforms each node's attributes independently through feed-forward layers, providing a feature-only reference for assessing the contribution of graph structure.
GCN [15] is a canonical message-passing network that provides a reference for conventional neighborhood aggregation. Each layer combines a node's features with normalized neighbor features, smoothing local feature differences.
GCNII [5] represents deep graph convolution designed to mitigate oversmoothing. Initial-feature residuals and identity mappings preserve the original node signal during propagation.
H2GCN [34] is a representative heterophily-oriented encoder that separates ego, 1-hop, and 2-hop information during aggregation. Concatenating representations from different stages retains these sources without immediately mixing neighbors with the node's own features.
LINKX [17] encodes node attributes and adjacency rows with separate MLPs before combining their outputs, providing a strong non-homophilous graph baseline based on separate attribute and structural encodings.
FSGNN [23] represents multi-scale feature selection, using pre-computed channels from propagation at several depths, with and without self-loops. Separate transformations, learned global weights, and concatenation combine these propagation scales.
ACM-GCN [20] provides a competitive heterophilous graph baseline through adaptive channel mixing. A node-wise mixer combines neighborhood averages, differences from those averages, and ego features, adapting their contributions to each node.
GAMMA [9] is a recent homophily-agnostic graph encoder with adaptive multi-hop aggregation. A shared feature projection propagates over multiple hops, with learned scaling per hop and feature channel. Iterative routing assigns node-specific hop weights based on agreement with the combined representation. We use 0-, 1-, and 2-hop signals with two routing iterations.
D.2 Category Discovery Frameworks
GCD [29] introduced the generalized category discovery setting and provides a foundational clustering-based baseline. Contrastive learning matches two views of the same sample and pulls labeled samples of the same class together. Prediction uses semi-supervised -means on the learned embeddings, keeping labeled assignments fixed to known classes.
SimGCD [31] is a widely adopted parametric baseline that jointly learns representations and a prototype classifier through contrastive learning, supervised classification, and cross-view self-distillation, where one view's detached predictions supervise the other. Entropy maximization encourages use of all category slots. Predictions come directly from the prototype classifier.
GGCD [7] introduced graph GCD with a focus on homophilous graphs and theoretically analyzed parametric category discovery. Auxiliary semi-supervised clustering and Semantic-aWare dilation contRastive Learning (SWIRL) regulate category separation using graph structure, alongside contrastive learning, supervised classification, and entropy regularization. The final predictions come from an MLP classifier, while auxiliary clustering supports training.
D.3 Graph Adaptation and Encoder Integration
Graph adaptation. We replace image augmentations with feature masking and undirected edge dropping to construct two graph views [7, 32]. The same node across views forms a positive pair, supervised contrastive pairs share a known-class label. Edge dropping is disabled for MLP and fixed-support H2GCN.
Encoder integration. Each encoder is randomly initialized and trained to produce node embeddings , replacing the pretrained image backbone. A projection head maps to contrastive features. Discovery objectives and prediction remain framework-specific.
E Experimental Protocol
E.1 Epoch Selection
In the GCD setting, novel-class validation labels are unavailable for model selection or hyperparameter tuning. We therefore use accuracy on known-class validation nodes, comparing predictions directly with known labels without Hungarian matching (Val Old RACC) [7]. Known-class validation accuracy may peak while novel-category structure is still developing, motivating later epochs with near-optimal accuracy. Every run trains for 200 epochs. Among observed epochs from epoch 20 onward, we select the latest one whose Val Old RACC is at least of the maximum over these candidates. The same rule is applied to all methods and datasets.
E.2 Hyperparameter Search
Each method–dataset pair has an independent Optuna study [1] with 100 trials, including the default configuration. The objective averages validation scores at selected epochs over the five settings. We rerun the best completed trial's configuration on all five settings for final evaluation. Table 4 lists HeteGCD's 14 parameters.
Table 4: Hyperparameter search space for HeteGCD. U and LogU denote uniform and log-uniform sampling.
| Parameter | Search space |
|---|---|
| Learning rate | |
| Weight decay | , |
| Contrastive batch size | |
| Supervised weight | U[0.1, 0.9] |
| MeMax weight | |
| InfoNCE temperature | |
| SupCon temperature | |
| Student temperature | |
| Embedding width | |
| Branch dropout | |
| Feature masking rate | |
| Edge dropping rate | |
| Distribution warm-up fraction | |
| Maximum distribution weight |