Training-free Graph Neural Networks and the Power of Labels as Features

Ryoma Sato

Abstract

We propose training-free graph neural networks (TFGNNs), which can be used without training and can also be improved with optional training, for transductive node classification. We first advocate labels as features (LaF), which is an admissible but not explored technique. We show that LaF provably enhances the expressive power of graph neural networks. We design TFGNNs based on this analysis. In the experiments, we confirm that TFGNNs outperform existing GNNs in the training-free setting and converge with much fewer training iterations than traditional GNNs.

Introduction

Graph Neural Networks (GNNs) have become the standard for analyzing networked data. However, their deployment is often hindered by significant computational costs associated with training on massive graphs. In scenarios requiring rapid deployment or operating under hardware constraints, the traditional training cycle is a bottleneck. This paper introduces Training-free Graph Neural Networks (TFGNNs), which achieve high accuracy for transductive node classification immediately upon initialization.

Methodology

The effectiveness of TFGNNs rests on two core innovations: Labels as Features (LaF) and Strategic Initialization.

Labels as Features (LaF)

In transductive learning, the labels of training nodes are available during the inference phase for test nodes. TFGNNs treat these known labels as part of the input feature vector. This allows the model to directly leverage the class distribution of a node's neighborhood. To prevent data leakage (where a node simply copies its own label), a masking technique is employed during any optional training phases.

Strategic Initialization

The defining characteristic of a TFGNN is its weight initialization. The authors prove that a GNN utilizing LaF can approximate Label Propagation (LP), a classic non-neural algorithm. By initializing weight matrices with specific patterns of zeros, ones, and identity blocks, the GNN effectively embeds the logic of label propagation into its architecture from "Epoch 0."

Initialization of weight matrices $S^{(l)}$ and $V^{(l)}$

The block structures shown in the figures allow the network to preserve label information while processing node features.

Initialization of weight matrices $T^{(l)}$ and $W^{(l)}$

Experimental Setup

TFGNNs were evaluated across seven benchmark datasets representing homophilious graphs:

  • Citation Networks: Cora, CiteSeer, PubMed.
  • Collaboration Networks: Coauthor CS, Coauthor Physics.
  • Co-purchase Networks: Amazon Computers, Amazon Photo.

Results and Discussion

Performance at Initialization

Standard GNN architectures like GCN and GAT typically perform at the level of random guessing before training. In contrast, TFGNNs achieved immediate accuracies of 60% on Cora and 73% on Amazon Computers without any gradient updates.

Convergence and Robustness

When optional training is applied, TFGNNs converge significantly faster, reaching peak validation accuracy in approximately 20% of the iterations required by standard GCNs. This suggests that the strategic initialization places the model in a highly favorable region of the loss landscape. Furthermore, TFGNNs demonstrate superior resilience to feature noise compared to feature-only models.

Depth and Oversmoothing

Unlike traditional GNNs that suffer from oversmoothing as depth increases, training-free TFGNNs actually show improved performance with more layers (up to ~10), as deeper architectures facilitate broader label propagation across the graph.

Conclusion

TFGNNs provide a powerful "plug-and-play" solution for graph learning. While currently optimized for transductive settings on homophilious graphs, they demonstrate that intelligent initialization and the inclusion of labels as features can drastically reduce the computational burden of GNN deployment. Future work includes extending these principles to inductive tasks and heterophilious graph structures.

Summary updated

BibTeX
@article{sato2024training,
  author = {Ryoma Sato},
  title = {{Training-free Graph Neural Networks and the Power of Labels as Features}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=7DzU88VrNU},
}
Figure