On Node Features for Graph Neural Networks

Chi Thang Duong, Thanh Dat Hoang, Ha The Hien Dang, Quoc Viet Hung Nguyen, Karl AbererarXiv 2019

Abstract

Graph Neural Networks (GNNs) typically rely on a combination of graph structure and node features to perform learning tasks. However, in many real-world scenarios, node features are missing or restricted. This paper investigates the necessity of these features and proposes methods to substitute them with structural information. By employing feature shuffling to test dependency and evaluating various artificial initialization strategies, we demonstrate that structural embeddings—particularly learning-based ones like DeepWalk—can effectively replace or even outperform raw node attributes in several benchmark datasets.

Introduction

Graph Neural Networks have emerged as a powerful framework for learning on non-Euclidean data by integrating connectivity patterns with node-specific attributes. Despite their success, a significant "feature-dependency" problem exists: many datasets lack explicit node features due to privacy concerns or high collection costs. This research addresses whether GNNs can function effectively without these features and identifies the most effective ways to generate "artificial" features from the graph structure itself.

Methodology

The study employs two primary experimental frameworks to evaluate the role of node features:

Feature Shuffling (The Importance Test)

To quantify a model's reliance on specific node attributes versus the underlying graph topology, the authors performed a shuffle test. In this setup, feature vectors are randomly reassigned to different nodes while keeping the graph structure and labels constant. A significant drop in performance indicates a high dependency on node-specific attributes.

Performance impact of feature shuffling on standard GNN architectures across various datasets.

Feature Initialization Strategies

For featureless graphs, two types of artificial initializations were tested:

  1. Centrality-based: Simple scalar metrics such as Node Degree, PageRank, or k-core numbers.
  2. Learning-based: High-dimensional vectors generated via unsupervised techniques like DeepWalk or HOPE, which capture global structural properties.

The experiments primarily utilized the Simplifying Graph Convolutional Network (SGC) to isolate the effects of these initializations.

Results and Discussion

The empirical results reveal several key insights into the relationship between features and structure:

The Correlation Gap and Structural Strength

GNN performance is heavily influenced by the correlation between features and labels. In datasets like Cora, where features (text) are highly predictive, shuffling leads to a massive performance decline. Conversely, in datasets like NELL, the graph structure provides a stronger signal than the features themselves.

Comparison of node classification performance using centrality-based features, real features, and learning-based artificial features.

Artificial vs. Real Features

As shown in the experimental data, learning-based artificial features often rival or surpass real features. For instance, on the NELL dataset, DeepWalk embeddings achieved a Micro-F1 score of 0.844, exceeding the 0.833 score of real features. In contrast, simple centrality measures proved insufficient for complex node classification tasks; the best centrality method on Cora reached only 0.203 compared to 0.728 for DeepWalk, which nearly matched the real features at 0.736.

GNNs as Structural Refiners

A critical finding is that GNNs act as "feature boosters." Applying a GNN layer on top of structural embeddings generally yields better results than using the embeddings in isolation, suggesting that GNN architectures are adept at aggregating and refining structural signals.

Conclusion

This study demonstrates that while node features are valuable, they are not always indispensable. Structural information, when properly encoded into high-dimensional embeddings, serves as a potent substitute. Future work may explore the integration of modern self-supervised learning techniques to further enhance the quality of artificial features for non-attributed graphs.

Summary updated

BibTeX
@misc{duong2019node,
  author = {Chi Thang Duong and Thanh Dat Hoang and Ha The Hien Dang and Quoc Viet Hung Nguyen and Karl Aberer},
  title = {{On Node Features for Graph Neural Networks}},
  year = {2019},
  eprint = {1911.08795},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.08795},
}
Figure