TL;DR
Modern Graph Representation Learning (GRL) methods are often slow to train and burdened by sensitive hyperparameters. This paper shows that by linearizing GRL architectures and switching their loss functions to Frobenius norm minimization, training can be solved in closed-form via Singular Value Decomposition (SVD). By implementing an open-source functional randomized SVD in TensorFlow that computes matrix-vector products implicitly without storing dense matrices, the authors achieve competitive accuracy with orders-of-magnitude speedups (training in under 0.3 seconds on standard citation graphs).
What Problem Does This Paper Address?
Graph Neural Networks (such as GCNs and GATs) and random-walk node embedding algorithms (like DeepWalk and Node2Vec) dominate graph learning. However, both families come with significant practical friction:
- Slow and hyperparameter-heavy training: They require careful tuning of learning rates, dropout, layer width/depth, and regularization over hundreds of gradient-descent epochs.
- Memory explosion in matrix factorization equivalents: Prior theoretical work showed that skip-gram embeddings approximate the factorization of high-order proximity matrices. However, explicitly computing these dense matrices requires $\mathcal{O}(n^2)$ memory (roughly 40 GB for an average 100,000-node graph), while entry-wise sampling introduces estimation noise.
The authors ask: Can we reformulate core GRL tasks into convex optimization problems with unique, closed-form solutions that can be computed in linear time without ever instantiating large, dense matrices?
Methods
The authors target two main domains:
-
Linearized Message Passing (Node Classification): They remove non-linear activations ($\sigma(x) = x$) across $L$ graph-convolution layers and concatenate intermediate layer representations (following Jumping Knowledge Networks). Replacing the categorical cross-entropy loss with squared Frobenius error casts the objective into a linear least-squares problem: $$\min_{\widehat{\mathbf{W}}} \|\widehat{\mathbf{M}}\widehat{\mathbf{W}} - \mathbf{Y}\|_F^2$$ The global minimizer is given analytically by the Moore-Penrose pseudoinverse $\widehat{\mathbf{W}}^* = \widehat{\mathbf{M}}^\dagger \mathbf{Y}$, which is computed using truncated rank-$k$ SVD.
-
Closed-Form Network Embeddings (Link Prediction): Building on the "Watch Your Step" (WYS) objective, the authors define an implicit target matrix combining positive walk co-visits and negative non-edges: $\widehat{\mathbf{M}} = \sum_i \mathbf{T}^i c_i - \lambda(\mathbf{1}\mathbf{1}^\top - \mathbf{A})$. The embedding vectors are directly extracted from the top-$k$ left and right singular vectors.
-
Functional Randomized SVD: Standard SVD routines require explicit matrix inputs. The authors implement a functional version of the randomized SVD algorithm (Halko et al., 2009) in TensorFlow. It only requires a function handle $f(\mathbf{v}) = \widehat{\mathbf{M}}\mathbf{v}$ and its transpose operator. By exploiting the sparsity of graph adjacency matrix $\mathbf{A}$ and algebraic broadcasting for dense terms (e.g., $(\mathbf{1}\mathbf{1}^\top)\mathbf{v} = \mathbf{1}(\mathbf{1}^\top \mathbf{v})$ in $\mathcal{O}(n)$ time), memory scales linearly $\mathcal{O}(m + n)$ rather than $\mathcal{O}(n^2)$.
Datasets
The authors evaluated their approach on seven standard graph benchmarks:
- Semi-supervised Node Classification (with node features): Cora, Citeseer, and Pubmed citation networks.
- Link Prediction (graph topology only): Protein-Protein Interactions (PPI), ego-Facebook, ca-AstroPh, and ca-HepTh collaboration graphs.
No new datasets were introduced; standard Planetoid and SNAP splits were utilized.
Key Insights and Ideas
- Implicit Matrix-Vector Products Eliminate Memory Bottlenecks: A dense $n \times n$ random-walk matrix never needs to be materialized in RAM or GPU memory. Matrix-vector multiplications involving multi-hop transitions and fully dense all-ones negative matrices can be computed in time linear in the number of edges $\mathcal{O}(m)$.
-
Implicit Minimum-Norm Regularization: The authors prove that for wide models (e.g., concatenated multi-hop features where the number of parameters exceeds the number of labeled nodes), the pseudoinverse solution $\widehat{\mathbf{W}}^*$ uniquely recovers the minimum Frobenius norm solution: $$\widehat{\mathbf{W}}^* = \arg\min_{\widehat{\mathbf{W}} \in \mathcal{W}^*} \|\widehat{\mathbf{W}}\|_F^2$$ This acts as an automatic Gaussian prior / $\ell_2$ regularizer, protecting the linear model against overfitting without requiring weight-decay tuning.
-
Negligible Accuracy Trade-off for Linearization: In line with recent observations in GRL (e.g., SGC), non-linear activations between message-passing steps are often superfluous; topology aggregation accounts for most performance gains.
Key Results
- Dramatic Training Speedups: On citation graphs, the linearized functional SVD approach trains in fractions of a second on an Nvidia Tesla K80:
- Cora: 0.28s (vs. 4s for GCN, 83s for GAT, 149s for GCNII).
- Citeseer: 0.13s (vs. 7s for GCN, 207s for GAT, 175s for GCNII).
- Pubmed: 0.14s (vs. 83s for GCN, 333s for GAT, 102s for GCNII).
- Competitive Node Classification Accuracy:
- Cora: 82.4% (GCN: 81.5%, GAT: 83.2%, GCNII: 85.5%).
- Citeseer: 72.2% (GCN: 70.3%, GAT: 72.4%, GCNII: 73.4%).
- Pubmed: 79.7% (GCN: 79.0%, GAT: 77.7%, GCNII: 80.3%).
- Link Prediction Performance: Truncated functional SVD ($k=100$) scored 98.7% ROC-AUC on Facebook, 96.0% on AstroPh, and 90.5% on HepTh, matching or closely trailing full iterative methods (like WYS and Node2Vec) while completely outperforming sampled matrix factorization baselines (NetMF).
Limitations and Future Work
- Featureless Link Prediction: The current formulation for link prediction ignores node attribute features, focusing solely on adjacency and transition matrices.
- Expressivity Ceiling: Deep non-linear baselines (e.g., GCNII) still outperform the closed-form solution in raw accuracy on certain benchmarks (e.g., 85.5% vs. 82.4% on Cora).
- Rank Selection: Although free from gradient hyperparameters, users still must select the truncation rank $k$ and hop depth $L$, though sensitivity curves indicate performance stabilizes past small thresholds ($L \ge 6$, $k \ge 32$).
Summary updated