SCNode: Spatial and Contextual Coordinates for Graph Representation Learning
Md Joshem Uddin, Astrit Tola, Varin Sikand, Cuneyt Gurcan Akcora, Baris Coskunuzer
TL;DR
SCNode tackles the limitations of traditional message-passing GNNs by introducing spatial and contextual coordinates that encode local neighborhood structure and global class-relational signals. It defines class landmarks in feature space and computes distances to these landmarks, pairing them with k-hop label distributions to form a concatenated embedding gamma(u) that expands the model's receptive capabilities. The approach is backbone-agnostic and demonstrated to achieve state-of-the-art results on node classification and competitive or leading performance on link prediction across both homophilic and heterophilic graphs, with efficient runtime characteristics. Overall, SCNode provides a practical, plug-and-play augmentation that mitigates underreaching and enhances expressivity by blending local structural cues with global semantic context, with promising directions for future temporal extensions.
Abstract
Effective node representation lies at the heart of Graph Neural Networks (GNNs), as it directly impacts their ability to perform downstream tasks such as node classification and link prediction. Most existing GNNs, particularly message passing graph neural networks, rely on neighborhood aggregation to iteratively compute node embeddings. While powerful, this paradigm suffers from well-known limitations of oversquashing, oversmoothing, and underreaching that degrade representation quality. More critically, MPGNNs often assume homophily, where connected nodes share similar features or labels, leading to poor generalization in heterophilic graphs where this assumption breaks down. To address these challenges, we propose \textit{SCNode}, a \textit{Spatial-Contextual Node Embedding} framework designed to perform consistently well in both homophilic and heterophilic settings. SCNode integrates spatial and contextual information, yielding node embeddings that are not only more discriminative but also structurally aware. Our approach introduces new homophily matrices for understanding class interactions and tendencies. Extensive experiments on benchmark datasets show that SCNode achieves superior performance over conventional GNN models, demonstrating its robustness and adaptability in diverse graph structures.
