Adaptive Node Feature Selection for Graph Neural Networks

Madeline Navarro, Ali Azizpour, Santiago Segarra

Introduction

Graph Neural Networks (GNNs) are powerful tools for modeling complex, interconnected data. However, real-world graph datasets—such as social networks or citation databases—often come with high-dimensional node features. While some of these attributes are highly informative, many are redundant or simply noise. Identifying and removing these unhelpful variables is crucial for reducing dimensionality, improving computational efficiency, and interpreting model decisions.

This paper introduces an adaptive, data-agnostic method to prune useless node features while a GNN is training. By periodically shuffling feature values and measuring the resulting impact on validation accuracy, the authors provide a dynamic importance score that helps build leaner, more interpretable models without requiring prior assumptions about the graph's underlying structure.

The Challenge of Graph-Blind Feature Selection

Standard feature selection techniques, such as Mutual Information, are typically "graph-blind"—they evaluate node features in isolation and fail to account for how information flows across edges. Conversely, existing graph-specific feature selection methods often fall into two traps:

  1. Structural Assumptions: Many assume the graph is "homophilic" (where connected nodes share similar labels or features). Consequently, they fail on "heterophilic" graphs (where neighbors are often dissimilar).
  2. Computational Overhead & Opacity: Several methods act as black boxes that obscure why a feature was chosen, or they require expensive pre-processing and the training of multiple models, which scales poorly to large graphs.

To overcome these limitations, the authors sought a dynamic approach capable of identifying relevant features during a single training run.

Methodology: Node Feature Permutation Testing (NPT)

The core contribution of the paper is Node Feature Permutation Testing (NPT). The underlying logic is elegantly simple: if a specific feature is truly important to the model's predictive power, randomly shuffling its values across the nodes in the graph should cause a significant drop in performance.

The authors implement this via an adaptive training loop:

  1. Train: Begin training the GNN normally.
  2. Permute: At specific training checkpoints (e.g., every 50 epochs), isolate each feature and randomly shuffle its values across the validation set.
  3. Score: Measure the resulting drop in validation accuracy. This performance drop serves as the feature's "importance score" ($\delta_m$).
  4. Prune: Discard the bottom $r$-th percentile of features (those with the lowest importance scores) and continue training the model with the remaining features.

Crucially, this empirical approach is backed by theoretical error bounds for various GNN architectures (including GCN, GIN, and TAGCN). The authors mathematically demonstrate how the interplay between graph edges, node labels, and feature variance dictates whether a specific feature helps or hinders the model.

Key Insights

  • Graph Structure Modulates Importance: A feature that appears to be "noise" in a standard statistical test might become highly informative once a GNN aggregates it with neighbor data. Conversely, a seemingly "good" feature can become harmful if the graph contains too many cross-class edges.
  • Early Detection: NPT scores stabilize remarkably early in the training process. The model does not need to reach perfect convergence to identify useless features; the relative ranking of feature importance remains consistent from the earliest checkpoints.
  • Shuffling vs. Masking: The authors compared NPT (shuffling feature values) against an alternative approach of masking (setting feature values to zero). They found that shuffling is superior because it preserves the overall statistical distribution of the data, whereas masking can cause the model to underestimate feature importance, particularly in heterophilic settings.

Experimental Validation

The researchers evaluated NPT across a diverse suite of benchmarks, including standard homophilic citation networks (Cora, CiteSeer, PubMed), co-purchase graphs (Amazon Photo, Computers), heterophilic webpage graphs (Cornell, Texas, Wisconsin), and the large-scale ogbn-arxiv dataset (over 160,000 nodes and 1.1 million edges).

Key Results: * Competitive Accuracy: NPT-based feature selection consistently rivaled or outperformed specialized baselines like Topological Feature Informativeness (TFI) and Mutual Information (MI). * Extreme Pruning Efficiency: On the Cora dataset, the model successfully dropped 50% of its features every 50 epochs. Even when pruned down to approximately 1% of the original features, the NPT-pruned model maintained significantly higher accuracy than models pruned using competing metrics. * Robustness Across Topologies: Unlike previous methods, NPT proved effective on both homophilic and heterophilic datasets. On the heterophilic Wisconsin dataset, NPT scores successfully identified features that helped distinguish classes within a complex topology.

Limitations and Future Directions

While highly effective, the authors note a few limitations to the NPT approach:

  • Correlated Features: Like all permutation tests, NPT can struggle with highly correlated features. Shuffling one feature might not degrade performance if the model can simply rely on its correlated twin, potentially leading to underestimated importance scores for both.
  • Architecture Dependence: Because scores are derived from the model's validation performance, they are tied to the specific GNN architecture being trained. A feature deemed vital for a GIN might be less useful for a GCN.
  • Fixed Pruning Rates: Currently, the pruning rate ($r$) is a fixed hyperparameter. Future iterations of the method aim to automate this, allowing the model to stop pruning dynamically when $\delta_m$ hits a specific threshold.

Ultimately, this work presents a highly generalizable, efficient, and interpretable method for feature selection in GNNs. By extending this adaptive pruning to link prediction and graph-level classification in the future, NPT could become a standard tool for optimizing graph-based machine learning pipelines.

Summary updated

BibTeX
@inproceedings{navarro2026adaptive,
  author = {Madeline Navarro and Ali Azizpour and Santiago Segarra},
  title = {{Adaptive Node Feature Selection for Graph Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=TOAT4Va5VH},
}
Figure