Abstract
While Graph Neural Networks (GNNs) are powerful, their high training costs and reliance on learned weights limit their utility in resource-constrained or real-time environments. This paper introduces Training-free Graph Neural Networks (TFGNNs), which leverage "Labels as Features" (LaF) and a specialized weight initialization strategy to achieve high performance without any training. By mathematically embedding the Label Propagation (LP) algorithm into a neural architecture, TFGNNs provide instant deployment capabilities and significantly faster convergence during optional fine-tuning.
Introduction
Graph Neural Networks (GNNs) have revolutionized the analysis of networked data. However, the computational overhead of training these models on massive graphs—often containing billions of nodes—remains a significant barrier. Standard architectures like Graph Convolutional Networks (GCNs) or Graph Attention Networks (GATs) are essentially non-functional until they undergo extensive training, as their initial random weights produce predictions no better than random chance.
This research addresses the need for GNNs that are functional upon initialization. The proposed Training-free Graph Neural Networks (TFGNNs) bridge the gap between traditional non-parametric algorithms and modern deep learning, offering a model that works "out of the box" while retaining the capacity for further optimization.
Methodology
The TFGNN framework rests on two primary innovations: Labels as Features (LaF) and a specific initialization scheme.
Labels as Features (LaF)
In typical transductive node classification, labels of training nodes are reserved solely for loss calculation. TFGNNs instead treat these labels as input features. By concatenating one-hot encoded labels to the node features—and using zero vectors for nodes with unknown labels—the network can directly incorporate the class distribution of a node's neighborhood into its computations.
TFGNN Initialization
The core of the TFGNN is its weight initialization. Rather than using random distributions (like Xavier or Kaiming initialization), TFGNNs use a deterministic pattern of 0s and 1s. This specific configuration is mathematically designed to ensure that the first forward pass of the network performs a recursive aggregation equivalent to the classic Label Propagation (LP) algorithm. This allows the model to achieve high accuracy immediately, without a single gradient update.
Theoretical and Practical Insights
The inclusion of LaF does more than just enable training-free operation; it fundamentally increases the expressive power of the GNN. Standard GNNs often fail to distinguish nodes in isomorphic structures. By using labels as features, the model breaks this symmetry, allowing it to differentiate nodes based on their proximity to specific labeled neighbors.
Furthermore, TFGNNs exhibit unique behavior regarding depth. While deep GNNs typically suffer from "oversmoothing"—where node embeddings become indistinguishable—untrained TFGNNs actually improve as layers are added (up to approximately 10 layers). In this mode, increasing depth allows the network to more closely approximate the mathematical limit of the Label Propagation algorithm.
Experimental Results
The researchers evaluated TFGNNs across seven benchmark datasets, including citation networks (Cora, CiteSeer, PubMed), collaboration networks (Coauthor CS/Physics), and co-purchase networks (Amazon Computers/Photo).
Instant Accuracy and Convergence
On the Cora dataset, TFGNNs achieved 60% accuracy with zero training, whereas standard GCNs and GATs remained at 16-18% (near random). When training was enabled, TFGNNs reached peak performance significantly faster than baselines, converging in roughly 500 iterations compared to the 3,000+ iterations required by standard GCNs.
Robustness to Noise
TFGNNs demonstrated superior robustness to feature noise. By leveraging the structural label information from neighbors, the model's performance remained stable even when Gaussian noise was introduced to the input features, a scenario where standard GCN performance degraded rapidly.
Limitations and Conclusion
While TFGNNs offer significant advantages, they are currently limited to transductive settings where a portion of the graph's labels are known during the forward pass. Additionally, because the model is rooted in Label Propagation logic, it assumes a degree of homophily (where neighbors share labels). Its performance on heterophilious graphs remains an area for future investigation.
In conclusion, TFGNNs represent a significant step toward more efficient and deployable graph machine learning. By treating initialization as an algorithmic design choice, this work provides a blueprint for models that are both immediately useful and capable of long-term learning.
Summary updated