NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fully-inductive Node Classification on Arbitrary Graphs

Jianan Zhao, Zhaocheng Zhu, Mikhail Galkin, Hesham Mostafa, Michael M. Bronstein, Jian Tang

Introduction: The Fully-Inductive Challenge

In graph machine learning, "generalization" usually comes with strings attached. Most "inductive" models can handle new nodes or edges, but they fall apart if the input feature dimension changes (e.g., moving from 100 features to 500) or if the number of target classes shifts (e.g., moving from 5 categories to 50). This forces researchers to retrain models for every new domain.

This paper introduces the fully-inductive setup. Imagine training a model on a small citation network and then asking it to classify products in a massive e-commerce graph without any additional training or fine-tuning. The challenge is creating a "universal translator" for graphs that doesn't rely on fixed input/output dimensions or specific feature semantics.

The fully-inductive setup requires generalizing to new graphs with entirely different structures, feature dimensions, and label spaces.

To solve this, the authors propose GraphAny, a new framework that allows a model trained on a single graph to perform inference on entirely different graphs. By combining analytical solutions of LinearGNNs with a dimension-invariant attention mechanism, it achieves state-of-the-art performance across diverse datasets.

Methodology: The GraphAny Architecture

GraphAny acts as a universal graph model using two clever components:

1. LinearGNNs (The Analytical Engine) Instead of using standard GNNs that require iterative gradient descent, GraphAny uses LinearGNNs. These models simplify the process into a graph convolution followed by a linear layer. Crucially, the weights for this linear layer are calculated using an analytical solution (a pseudo-inverse) based on the few labeled nodes available in the new test graph. By treating node classification as a least-squares problem, the model can "solve" a new graph's mapping in one step. This bypasses the need for the fixed-weight matrices that usually tie a model to a specific feature size, allowing it to adapt to any feature or label dimension instantly.

2. Inductive Attention (The Decision Maker) Since no single graph filter (like low-pass or high-pass) works perfectly for every graph, GraphAny uses multiple LinearGNNs. To fuse their predictions, it employs a learnable attention module. To make this module "fully-inductive," the authors represent the input to the attention module as entropy-normalized distance features between predictions.

  • Distances as a Universal Language: Whether a graph has 3 classes or 300, the relative agreement or disagreement between a low-pass and a high-pass filter tells the model something fundamental about the graph's local structure.
  • Entropy Normalization: Distances naturally shrink as the number of classes increases (the "curse of dimensionality"). By normalizing these distances to a fixed entropy, the authors ensure the attention module sees a consistent distribution regardless of the dataset's scale.

Experimental Setup and Datasets

The researchers evaluated GraphAny on a massive suite of 31 node classification datasets sourced from PyG, DGL, and OGB. These include diverse domains (social networks, citation networks, e-commerce, knowledge graphs), varying scales (hundreds to millions of nodes), and both homophilic and heterophilic graph types.

The core experiment involved training GraphAny on just one dataset (like Wisconsin or Arxiv) and testing its "zero-shot" performance on the remaining 30.

Key Results

GraphAny trained on a single graph outperforms standard transductive models trained on all 31 graphs.
  • Superior Generalization: GraphAny trained on the tiny Wisconsin dataset (only 120 labeled nodes) achieved an average accuracy of 67.26% across 30 unseen graphs.
  • Beating the "Cheaters": Remarkably, GraphAny outperformed strong transductive baselines like GCN and GAT, even though those baselines were allowed to train directly on the test datasets.
  • Efficiency: GraphAny is 2.95x faster than a standard GCN implementation because it eliminates the need for backpropagation during inference on new graphs.
  • Robustness: The model showed consistent performance whether trained on a small, heterophilic graph or a large, homophilic one, suggesting that local structural patterns are highly transferable.

Limitations and Future Work

While GraphAny represents a significant leap forward, it has a few limitations:

  • Linearity Constraints: Because the core engine is a LinearGNN, the model might struggle with extremely complex, non-linear feature relationships that a deep, non-linear GNN could capture.
  • Feature Semantics: GraphAny treats features as numerical distributions. It doesn't currently incorporate the semantic meaning of features (e.g., text descriptions), which is a burgeoning area in Graph Foundation Models using LLMs.
  • Scaling the Pseudo-Inverse: While fast, calculating the pseudo-inverse for the labeled set could become a bottleneck if the number of labeled nodes grows extremely large, though the authors note it is currently very efficient.

Ultimately, GraphAny provides a solid, highly efficient foundation for future "Graph Foundation Models" that can truly work on any graph, anywhere.

Summary updated

BibTeX
@inproceedings{zhao2025fully,
  author = {Jianan Zhao and Zhaocheng Zhu and Mikhail Galkin and Hesham Mostafa and Michael M. Bronstein and Jian Tang},
  title = {{Fully-inductive Node Classification on Arbitrary Graphs}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=1Qpt43cqhg},
}
Figure