Manuscript Offprint

arXiv:2609.08685

HOPE: Heterophily-Aware Open-Set Node Classification with Pseudo-Extrapolation

Yumeng Dai, Yue Tan, Yixin Liu, Chenxu Wang, Pinghui Wang, Tao Qin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yumeng Dai1^{1}, Yue Tan2^{2}, Yixin Liu2^{2}, Chenxu Wang1,∗^{1,*}, Pinghui Wang1^{1}, Tao Qin1^{1}

1^{1}Xi'an Jiaotong University, Xi'an, China

2^{2}Griffith University, Brisbane, Australia

ymdai@stu.xjtu.edu.cn, yue.tan@griffith.edu.au, yixin.liu@griffith.edu.au, cxwang@mail.xjtu.edu.cn, phwang@mail.xjtu.edu.cn, qin.tao@mail.xjtu.edu.cn

∗^{*}Corresponding author: Chenxu Wang

Abstract—Standard open-set node classification methods heavily rely on the homophily assumption, where connected nodes share identical labels. However, real-world graphs are often heterophilic, revealing the sub-optimal performance of current methods and posing new challenges to open-set node classification. On the one hand, the cross-class connectivity nature of heterophilic graphs causes node representations from different known or unknown classes to be intertwined after aggregation, undermining the discriminative capacity of learned representations. On the other hand, the structural mixture invalidates traditional threshold-based open-set classification methods and breaks conventional cross-class feature interpolation paradigms, leading to unreliable unknown-class rejection. To address these critical challenges, we propose a novel framework named HOPE Heterophily-aware Open-set node classification method with Pseudo-Extrapolation, abbreviated as HOPE. To adapt open-set graph neural networks (GNNs) to heterophilic scenarios, HOPE utilizes a structure-augmented feature initialization layer to capture multi-hop structural patterns for feature augmentation. Meanwhile, we design a trustworthy neighborhood aggregation mechanism adaptable to standard GNNs to dynamically filter out noisy cross-class neighbors. To enhance the unknown-class rejection capability of HOPE, we introduce a heterophily-guided pseudo-extrapolation strategy. It dynamically maintains the representations of known-class centers and extrapolates from these centers along cross-class neighborhood displacement directions, thereby synthesizing pseudo-unknown proxies near structurally ambiguous regions. Finally, we optimize the network via a joint classification framework with logit margin regularization, routing synthetic proxies into a dedicated rejection slot without imposing geometric margin constraints in the representation space. Extensive experiments on multiple datasets demonstrate that HOPE consistently outperforms state-of-the-art models, validating its effectiveness, robustness, and efficiency.

Index Terms—Graph Neural Networks, Open-Set Node Classification, Graph Heterophily, Pseudo-Unknown Proxies.

I. INTRODUCTION

Graph Neural Networks (GNNs) have achieved remarkable success in various graph-structured tasks, particularly in semi-supervised node classification [1]. Standard node classification methods operate under a closed-set assumption, where the training and testing environments share an identical label space. However, real-world graph database applications often encounter open-set scenarios [2]–[4], where test graphs contain nodes from previously unseen or unknown categories. When conventional closed-set methods face these unknown nodes,

Figure

(a) Unknown classes in homophilic graphs

Figure

(b) Unknown categories in heterophilic graphs

Fig. 1: The distinct topological behaviors of unknown class nodes in homophilic versus heterophilic graphs.

they often mistakenly force them into one of the known classes with high confidence, neglecting the presence of novel categories beyond the predefined label space. To address this limitation, open-set node classification has emerged as a crucial research problem, aiming to classify nodes from known categories while identifying nodes from previously unseen categories [2], [5]. By jointly modeling known-class discrimination and unknown-class rejection, open-set node classification methods can support both accurate known-class identification and robust unknown-class detection.

Despite the progress of open-set node classification in recent years, existing methods often assume that graphs are homophilic, meaning that connected nodes tend to share the same class label [6]. This assumption may not always hold in practical scenarios, since heterophilic graphs, which break the above homophily assumption, are ubiquitous in practical domains, such as e-commerce networks, social networks, and molecular structures [6]–[11]. Due to their distinct neighborhood-label correlations, the structural distribution of unknown classes exhibits fundamental differences between homophilic and heterophilic settings. As shown in Fig. 1a, unseen categories in homophilic graphs are characterized by dense localized clustering with limited cross-boundary expansion. Conversely, as depicted in Fig. 1b, unknown nodes in heterophilic graphs manifest as highly intertwined topological neighbors, gener-ating extensive and complex mixtures that deeply blur the classification boundaries of adjacent known class manifolds. As a result, existing open-set node classification methods often struggle on heterophilic graphs, as their homophily-oriented mechanisms, such as label propagation [12], [13] and consistency regularization [14], [15], may over-smooth naturally dissimilar neighbors and misinterpret normal inter-class edges as label noise. Moreover, the boundary-based proxy generation strategies (e.g., Mixup) used in some open-set classification approaches [16], [17] may scatter pseudo-unknown nodes across the feature space in heterophilic graphs, thereby blurring the distinction between known and unknown classes. These limitations motivate a fundamental question:

Can we develop an open-set graph learning approach that can identify unknown nodes in heterophilic graphs?

Answering the above question is non-trivial, as the structural discrepancies between homophilic and heterophilic graphs introduce two key challenges for open-set node classification. Challenge 1: Representation boundary confusion under heterophilic aggregation. In a heterophilic graph, a known-class node is surrounded by neighbors from different known classes and potential unknown classes [18], [19]. In this case, standard neighborhood aggregation, which acts as a low-pass filter, may smooth out essential high-frequency distinctive features. When open-set nodes are mixed into these neighborhoods, uniform aggregation can cause catastrophic representation overlap, making known-class discrimination and unknown-class rejection mutually entangled. As a result, the model struggles to separate different known classes in the representation space, since the neighbor label distributions are highly noisy and complex, leading to ambiguous decision boundaries among the known classes.

While the above challenge focuses on maintaining separable known-class representations, open-set learning further requires reliable rejection of nodes beyond the known label space, leading to Challenge 2: Unreliable unknown-class rejection under structural entanglement. In heterophilic graphs, unknown nodes are structurally intertwined with the clusters from known classes through cross-class connections, rendering existing rejection criteria for open-set node classification ineffective. Specifically, threshold-based rejection methods [2], [20], [21] may misinterpret heterophilic connections as unknown evidence, leading to both false positives and false negatives. Meanwhile, interpolation-based proxy generation methods [16], [17] may also become unreliable, as simple feature interpolation between known classes cannot faithfully capture the complex cross-class distributions and topological boundaries induced by heterophily. Consequently, the generated proxies may be scattered across the feature space, further misleading the model in separating unknown nodes from known ones. In this case, a dedicated open-set node classification framework is needed to detect unknown nodes under such structurally entangled heterophilic settings.

To address these challenges, we propose a novel Heterophily-aware Open-set node classification method with Pseudo-Extrapolation (HOPE for short). HOPE consists of four components designed to support known-class node classification and unknown-class node rejection simultaneously. Specifically, to address Challenge 1, we develop a structure-augmented feature initialization layer that computes multi-hop geometric descriptors to enrich raw node attributes, ensuring the model recognizes latent open-set boundaries before message passing. Meanwhile, we implement a trustworthy neighborhood aggregation scheme that uses an edge discriminator to evaluate homophily compatibility scores and dynamically prunes untrustworthy cross-class neighbors. Instead of relying on a specific GNN backbone, the proposed aggregation scheme can be applied to various standard GNN models in a plug-and-play manner, enhancing their ability to preserve discriminative known-class representations under heterophily. To handle Challenge 2, we introduce a pseudo-unknown proxy generation strategy based on structural extrapolation. This strategy extrapolates from known-class anchors along heterophilic neighborhood directions to synthesize representative pseudo-unknown boundary instances, providing informative supervision for learning reliable known-unknown rejection boundaries. Moreover, we optimize the network via a unified classification framework integrated with a logit margin regularization loss. By routing the synthetic proxies to a dedicated (K+1)(K+1)-th classification slot, HOPE establishes a robust classification-driven shield around known categories without relying on explicit geometric margin constraints in the representation space. The primary contributions of this paper are summarized as follows:

  • Problem: We formalize the problem of open-set node classification under heterophily and investigate the topological distribution differences of unknown classes between homophilic and heterophilic graphs.

• Methodology: We propose HOPE, which incorporates a structure-augmented initialization layer, a trustworthy neighbor filtering mechanism adaptable to standard GNNs, a heterophily-guided pseudo-extrapolation strategy, and a unified (K+1)(K+1)-way classification framework with logit regularization.

• Experiments: Extensive evaluations on multiple heterophilic graph benchmarks demonstrate that HOPE significantly outperforms state-of-the-art closed-set and open-set models, showcasing superior generalizability and robustness.

References (36)