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

Node4All: Learning Node Representation Beyond Datasets

Dooho Lee, Jaemin YooarXiv 2026

TL;DR

Node4All is a novel pretrained graph model that generates high-quality node representations for any unseen graph dataset without requiring dataset-specific training or hyperparameter tuning. By processing features channel-wise and training exclusively on diverse synthetic graphs, it achieves performance competitive with heavily optimized, dataset-specific baselines and state-of-the-art graph foundation models.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) and self-supervised graph models have advanced rapidly, but they remain inherently "dataset-bound." They fail to generalize across different datasets due to three main constraints: fixed input feature dimensions, overfitting to specific dataset topologies, and specialization to a single target task.

Consequently, practitioners must retrain and tune models from scratch for every new graph dataset—a process that is computationally expensive, time-consuming, and requires significant domain expertise. Node4All aims to break this boundary by providing a single, fixed-parameter model capable of zero-shot inference on arbitrary graph datasets, regardless of their feature dimensions or structural patterns.

Methods

The authors introduce two core innovations to achieve dataset-agnostic generalization:

  1. Channel Graph Transformer (CGT): Standard GNNs rely on parametric feature transformations that mix feature channels, locking the model to a specific input dimension. CGT bypasses this by treating each feature channel independently as a 1D "channel graph" and applying the exact same model parameters across all channels. It uses multi-hop tokenization to build structurally informative tokens for each node across neighborhood scales, which are then aggregated into a final scalar embedding using a standard Transformer readout.
  2. Pretraining on Synthetic Graphs: To avoid overfitting to real-world dataset biases, Node4All is trained entirely on a stream of diverse synthetic graphs. The structure is generated using a modified Chung-Lu random graph model to control degree heterogeneity, while features are generated using a low-rank semantic matrix combined with stochastic propagation to mimic real-world feature smoothness.

The model is trained using a DropNode Masked Autoencoder objective, where random nodes are completely removed (rather than replaced with a generic [MASK] token) to prevent cross-graph semantic inconsistencies during feature reconstruction.

Figure 1: Overview. Node4All is a pretrained node representa- tion learner that generalizes across arbitrary graph datasets.

Datasets

  • Training: Node4All is trained 100% from scratch on 500 synthetically generated graphs spanning a wide range of structural densities, degree distributions, and feature smoothness levels. No real-world data is seen during training.
  • Evaluation: The model is evaluated on 25 diverse real-world node classification benchmarks representing various domains, homophily ratios (0.06 to 0.84), and scales. These include classic citation networks (Cora, Citeseer, Pubmed), Amazon co-purchase graphs (Photo, Computers), and large-scale Open Graph Benchmark datasets (OGBN-Arxiv, OGBN-Products).

Key Insights and Ideas

  • Channel-wise Independence as a Regularizer: By forcing the network to process each feature channel independently, Node4All avoids learning dataset-specific cross-feature interactions during pretraining. This leaves the task of mixing features to a lightweight downstream predictor, drastically improving cross-dataset transferability.
  • Structure Injection via Geometry, Not Semantics: Visualizations demonstrate that CGT maps initially identical binary or categorical features into distinct representations that correlate strongly with structural properties like node degree. It injects generic structural cues while preserving the underlying feature topology.
  • Synthetic Data Beats Real-World Pretraining: Surprisingly, pretraining on a diverse stream of simple synthetic graphs yielded better generalization than pretraining on massive real-world datasets like OGBN-Products. Diversity in structure and feature smoothness matters more than raw dataset size.

Key Results

  • Competitive Zero-Shot Performance: Applied out-of-the-box without any tuning, a single Node4All model ranked 5th out of 21 baselines across 25 benchmarks, despite all baselines being fully trained and optimized for each individual dataset. When baselines were restricted to a single fixed hyperparameter configuration across all datasets, Node4All ranked 1st.
  • Superior One-Shot Learning: In one-shot classification tasks (only one labeled example per class), Node4All outperformed specialized feature-aligned Graph Foundation Models (GFMs) like GCOPE and SAMGPT on 4 out of 5 standard datasets.
  • State-of-the-Art In-Context Learning: When paired with TabPFN (a tabular foundation model) as a downstream predictor, Node4All achieved the best average rank (2.0) across 11 datasets, outperforming state-of-the-art fully inductive graph foundation models like GraphAny and NodePFN.
Performance comparison across hyperparameter configurations

Limitations and Future Work

  • Simple Graph Generation: The current synthetic graph generation relies on a relatively simple Chung-Lu model. Incorporating richer generation strategies, such as stochastic block models or motif-aware generation, could yield even more robust representations.
  • Task Scope: Node4All is currently evaluated exclusively on node classification. Future work is required to adapt its channel-wise architecture and pretraining objectives to edge-level (e.g., link prediction) and graph-level (e.g., molecule classification) tasks.
  • Inference Overhead: Because CGT processes each feature channel separately, its computational cost scales linearly with the number of input features. This leads to longer inference times on datasets with exceptionally high-dimensional features (e.g., thousands of dimensions) compared to standard GNNs that compress features early on.

Summary updated

BibTeX
@misc{lee2026node,
  author = {Dooho Lee and Jaemin Yoo},
  title = {{Node4All: Learning Node Representation Beyond Datasets}},
  year = {2026},
  eprint = {2607.17272},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.17272},
}
Figure