This project aims to reproduce the experimental results reported in the IEEE TPAMI paper “Are Graph Convolutional Networks with Random Weights Feasible?” We follow the original experimental protocol, hyperparameter settings, and data splits provided by the authors.
Traditional Graph Convolutional Networks (GCNs) require training multiple weight layers using full-batch gradient descent across the entire graph structure at each iteration. This poses a major computational bottleneck for large-scale graph structures.
To overcome this, the paper introduces Graph Convolutional Networks with Random Weights (GCN-RW). The foundational thesis is that projecting graph-smoothed feature spaces into a randomized hidden layer allows the learning objective to be reformulated as a regularized least squares problem (Tikhonov regularization) rather than a non-linear optimization problem. This transformation allows parameters to be solved analytically in a single closed-form step, bypassing backpropagation completely.
Formally, given an undirected graph
where:
-
$W \in \mathbb{R}^{m \times L}$ is a fixed hidden layer filter matrix whose entries are drawn randomly and independently from a uniform distribution space$\mathcal{U}(-\theta, \theta)$ . -
$\text{sigmoid}(\cdot)$ serves as the non-linear activation function. -
$\beta \in \mathbb{R}^{L \times C}$ represents the learnable output weight matrix.
The learning objective minimizes the regularized least squares loss over the set of labeled training vertices
where
The paper proves Theorem 1 (Universal Approximation Upper Bound), establishing that for any bounded and continuous target function
This proves that GCN-RW behaves as a universal approximator in a probability sense when
Although the original paper published in IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI) established rigorous theoretical guarantees for GCNs with random weights, an official, publicly accessible repository was not open-sourced by the authors.
Historically, randomized architectures like Random Vector Functional-Link (RVFL) networks and Extreme Learning Machines (ELM) have experienced a gap between academic theory and reusable public software libraries. Furthermore, standard graph deep learning libraries (such as PyTorch Geometric and DGL) are inherently designed around backpropagation and automatic differentiation rather than analytical, closed-form matrix solvers. This repository fills that gap by providing an independent implementation that accurately matches the paper's original experimental protocol, parameter selections, and mathematical routines.
The GCN-RW architectural pipeline executes through five distinct, decoupled stages:
-
Second-Order Graph Smoothing: Unlike vanilla GCNs that perform first-order neighborhood propagation per layer, GCN-RW aggregates structural graph properties across a two-hop neighborhood up front:
$$\bar{X} = \hat{A}(\hat{A}X) \in \mathbb{R}^{N \times m}$$ Because this step contains no learnable parameters, it can be entirely pre-computed during data preprocessing to eliminate redundant feature aggregation during training. -
Random Projections: The graph-smoothed node feature matrix
$\bar{X}$ is projected into a higher-dimensional space using the fixed, randomly generated weights$W$ :$$H_{\text{raw}} = \bar{X}W \in \mathbb{R}^{N \times L}$$ -
Non-linear Activation: The randomized hidden states are transformed using the element-wise sigmoid function to generate non-linear embeddings:
$$H_{\text{full}} = \text{sigmoid}(H_{\text{raw}}) \in \mathbb{R}^{N \times L}$$ -
Training Node Selection: The row components matching unlabeled nodes are masked out to form the specialized training sub-matrix:
$$H = H_{\text{full}}[\mathcal{Y}, :]$$ -
Analytical Solver Optimization: To compute the optimal parameter configuration
$\beta^*$ , the model bypasses gradient descent and automatically toggles between a Primal or Dual solution based on the ratio of hidden nodes$L$ to labeled items$|\mathcal{Y}|$ to maximize efficiency:-
Primal Solution (when
$|\mathcal{Y}| \ge L$ ):$$\beta^* = (H^T H + \lambda I_L)^{-1}H^T Y$$ -
Dual Solution (when
$|\mathcal{Y}| < L$ ):$$\beta^* = H^T (H H^T + \lambda I_{|\mathcal{Y}|})^{-1}Y$$
-
Primal Solution (when
-
Random Hidden Layer: Uses a fixed weight matrix initialized with a uniform distribution
$\mathcal{U}(-\theta, \theta)$ . - Second-Order Smoothing: Employs the squared adjacency matrix to aggregate features from two-hop neighborhoods.
- Analytical Solver: Computes output weights using Tikhonov regularization to solve the linear system.
- Efficiency: Automatically selects between primal and dual solutions based on the ratio of hidden units to training samples.
Evaluated on the Planetoid datasets with the following results:
| Dataset | Hidden Units | Lambda ( |
Train Acc | Test Acc |
|---|---|---|---|---|
| Cora | 8,000 | 15 | 98.15% | 79.33% |
| Citeseer | 10,000 | 100 | 98.40% | 71.25% |
| PubMed | 7,000 | 10 | 89.65% | 80.24% |
This repository is an independent implementation of the following paper (I am not the author). If you use this code in your research, please cite the original paper:
@article{huang2023graph,
title={Are Graph Convolutional Networks With Random Weights Feasible?},
author={Huang, Changqin and Li, Ming and Cao, Feilong and Fujita, Hamido and Li, Zhao and Wu, Xindong},
journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
volume={45},
number={3},
pages={2751--2768},
year={2023},
month={Mar},
doi={10.1109/TPAMI.2022.3183143},
pmid={35704541}
}