Back to paper library
Paper notesarXiv 2019ICML 2019

SGC

Is Linear Enough?

Original paper

Simplifying Graph Convolutional Networks

Paper authors

Felix Wu · Tianyi Zhang · Amauri Holanda de Souza · Christopher Fifty · Tao Yu · Kilian Q. Weinberger

Publication
ICML 2019Conference
First submitted to arXiv
arXiv:1902.07153
Cite this paper · BibTeX

The citation identifies the linked source version. It cites the original paper and its authors.

@misc{graphlearningsgc2019,
  title = {{Simplifying Graph Convolutional Networks}},
  author = {Felix Wu and Tianyi Zhang and Amauri Holanda de Souza and Christopher Fifty and Tao Yu and Kilian Q. Weinberger},
  year = {2019},
  eprint = {1902.07153},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.07153}
}
On this page

GCN borrows a whole package from deep learning: layer after layer, each with a weight matrix, ReLUs in between and softmax at the end.

Felix Wu, Tianyi Zhang, Kilian Weinberger and colleagues at Cornell suspect some of this may be unnecessary. Their introduction recalls that machine learning usually starts simple and adds complexity when needed: linear perceptrons' limitations led to multilayer perceptrons; fixed filters such as Sobel later evolved into learnable CNNs. GCN is a rare exception, appearing after the neural-network revival and starting directly with multilayer networks, without a simpler linear version.

They add a practical observation: most classifiers in real applications are still linear, usually logistic regression, easy to optimize and interpret.

So they strip GCN down to its simplest form and see what remains.

Defining the Problem

Recall one GCN layer. Let S=D~−1/2A~D~−1/2S=\tilde D^{-1/2}\tilde A\tilde D^{-1/2} be the normalized adjacency with self-loops. Layer kk does three things:

  1. Feature propagation: Hˉ(k)←SH(k−1)\bar H^{(k)}\leftarrow SH^{(k-1)}, a weighted average with neighbors.
  2. Linear transformation: Hˉ(k)←Hˉ(k)Θ(k)\bar H^{(k)}\leftarrow\bar H^{(k)}\Theta^{(k)}.
  3. Nonlinearity: H(k)←ReLU(Hˉ(k))H^{(k)}\leftarrow\mathrm{ReLU}(\bar H^{(k)}).

After KK layers, softmax classifies:

Y^GCN=softmax(SH(K−1)Θ(K))\hat Y_{\text{GCN}}=\mathrm{softmax}\left(SH^{(K-1)}\Theta^{(K)}\right)

Which of these three really makes GCN work on citation networks? The authors hypothesize the first. Adjacent nodes in these graphs usually share a class; averaging neighboring features makes same-class nodes more alike and simplifies classification.

Solving the Problem

Remove the Nonlinearities

If nonlinearities are not essential, remove them all, keeping only the final softmax:

Y^=softmax(S⋯SSXΘ(1)Θ(2)⋯Θ(K))\hat Y=\mathrm{softmax}\left(S\cdots SSX\Theta^{(1)}\Theta^{(2)}\cdots\Theta^{(K)}\right)

Repeated SS becomes SKS^K, and the product of weight matrices collapses into one Θ\Theta:

Y^SGC=softmax(SKXΘ)\hat Y_{\text{SGC}}=\mathrm{softmax}\left(S^KX\Theta\right)

This is SGC, Simple Graph Convolution. Xˉ=SKX\bar X=S^KX has no parameters and can be precomputed once. Training then becomes multiclass logistic regression on Xˉ\bar X, with a convex loss, suitable for second-order methods or stochastic gradient descent.

Figure 1 of the paper: the upper GCN repeatedly applies feature propagation, linear transformation and nonlinearity K times, then softmax. The lower SGC applies K-step propagation once at the front, followed by logistic regression. Both rows show the same input and predictions.
Figure 1 from Wu et al., taken from PDF page 2. The original caption is omitted.

GCN returns to the graph at every layer. SGC completes propagation at the start; the classifier afterward need not know what the graph looks like.

Try a six-node path, 0-1-2-3-4-5, with the first three nodes in one class and the last three in another:

Python
import numpy as np
np.set_printoptions(precision=2, suppress=True)

n = 6
A = np.zeros((n, n))
for i in range(n - 1):                      # A six-node path
    A[i, i + 1] = A[i + 1, i] = 1

def sym_norm(M):
    d = M.sum(1)
    return M / np.sqrt(np.outer(d, d))

rng = np.random.default_rng(0)
X = rng.random((n, 4))                      # 6 nodes, 4 features each
S = sym_norm(A + np.eye(n))
X_bar = np.linalg.matrix_power(S, 2) @ X    # K = 2: precompute; no graph access needed afterward
print("X̄:", X_bar.shape)

# The rest is ordinary multiclass logistic regression: softmax(X̄ Θ)
Theta = np.zeros((4, 2))
y = np.array([0, 0, 0, 1, 1, 1])
for _ in range(500):
    logits = X_bar @ Theta
    P = np.exp(logits - logits.max(1, keepdims=True))
    P /= P.sum(1, keepdims=True)
    Theta -= 0.5 * X_bar.T @ (P - np.eye(2)[y]) / n      # Cross-entropy gradient
print("Predictions:", P.argmax(1), " Labels:", y)
Text
X̄: (6, 4)
Predictions: [0 0 0 1 1 1]  Labels: [0 0 0 1 1 1]

This only demonstrates the procedure; six training points tell us little about accuracy. The point is that SS has vanished from the training loop. The graph is used only at the beginning.

A Spectral View: A Low-Pass Filter

Why should smoothing suffice? The authors offer a spectral explanation.

GCN's derivation starts with the graph Laplacian Δsym=I−D−1/2AD−1/2\Delta_{\text{sym}}=I-D^{-1/2}AD^{-1/2}, whose eigenvalues λ\lambda are graph frequencies in [0,2][0, 2]. Without self-loops, propagation is Sadj=D−1/2AD−1/2=I−ΔsymS_{\text{adj}}=D^{-1/2}AD^{-1/2}=I-\Delta_{\text{sym}}. Applying it KK times gives the frequency filter:

g(λ)=(1−λ)Kg(\lambda)=(1-\lambda)^K

High frequencies near λ=2\lambda=2 are troublesome: 1−λ1-\lambda is near −1-1, making coefficients negative for odd KK and positive for even KK, without suppressing their magnitude.

Theorem 1 proves that adding self-loops reduces the largest Laplacian eigenvalue while leaving the minimum at 0. On Cora, the maximum falls from roughly 2 to 1.5. (1−λ)K(1-\lambda)^K stays in a smaller range across the spectrum, turning SKS^K into a low-pass-type filter. This also explains GCN's renormalization trick.

Return to the path from before. A path is bipartite, so without self-loops its highest frequency is exactly 2 and the coefficient 1−λ1-\lambda is −1: the highest-frequency component keeps an amplitude of 1 however many times it is multiplied, and only its sign flips. With self-loops, the highest frequency shrinks to 1.28, the coefficient becomes −0.28, and two multiplications leave only 0.08.

Figure 2 of the paper: three panels show a first-order Chebyshev filter, normalized adjacency without self-loops, and normalized adjacency with self-loops. The horizontal axis is eigenvalue 0 to 2; blue curves are filter coefficients for K=1 to 6, and red is the spectrum of Cora's third feature. First-order Chebyshev coefficients grow above 8 at low frequencies; without self-loops, high-frequency coefficients near 2 are ±1; with self-loops, the spectrum ends around 1.5 and coefficients decrease with frequency.
Figure 2 from Wu et al., taken from PDF page 5. The original caption is omitted.

Each panel represents a propagation matrix. On the left, the first-order Chebyshev filter from GCN's derivation, I+D−1/2AD−1/2I+D^{-1/2}AD^{-1/2}, has coefficients (2−λ)K(2-\lambda)^K, exploding at low frequencies as KK rises—the instability noted in GCN. In the middle, without self-loops, high-frequency coefficients jump between +1+1 and −1-1. On the right, self-loops compress the spectrum to around 1.5, with a downward curve giving clean low-pass filtering.

Appendix experiments echo this picture. On validation data, propagation with self-loops is more accurate and stable across KK values; without them, odd KK causes a clear accuracy drop.

Discussion

Citation Networks and Reddit

MethodCoraCiteseerPubmed
GCN81.4 ± 0.470.9 ± 0.579.0 ± 0.4
GAT83.3 ± 0.772.6 ± 0.678.5 ± 0.3
FastGCN79.8 ± 0.368.8 ± 0.677.4 ± 0.3
GIN77.6 ± 1.166.1 ± 0.977.0 ± 1.2
SGC81.0 ± 0.071.9 ± 0.178.9 ± 0.0

These are the authors' reruns, averaging accuracy (%) over 10 trials; SGC uses K=2K=2. It almost ties GCN and gains roughly 1 percentage point on Citeseer, perhaps because fewer parameters reduce overfitting. GAT remains best on Cora and Citeseer. GIN, implemented from its paper and separately tuned, performs worse here through overfitting.

SGC's standard deviation is almost zero. Its convex objective makes different initializations converge to nearly identical solutions.

Reddit has 230,000 nodes, exhausting memory for full GCN. SGC reaches micro-F1 94.9, ahead of sampling-based SAGE-GCN (93.0) and FastGCN (93.7), but below SAGE-mean (95.0), SAGE-LSTM (95.4) and GaAN (96.4). With unregularized L-BFGS, it converges in two steps.

How Much Faster?

The authors measure training time on a GTX 1080 Ti relative to SGC, including SGC's precomputation of SKXS^KX. On Pubmed, GCN takes 28 times as long and FastGCN 6 times. On Reddit, SAGE-GCN takes 32 times, SAGE-LSTM 180 times and FastGCN 100 times.

Downstream Tasks

The authors substitute SGC for GCN in five downstream tasks:

  1. Text classification: TextGCN treats documents and words as nodes. SGC with K=2K=2 performs comparably on 5 datasets, with up to 83.6× speedup.
  2. User geolocation: it beats GCN with highway connections on GEOTEXT, TWITTER-US and TWITTER-WORLD, saving over 30 hours on TWITTER-WORLD.
  3. Relation extraction: replacing C-GCN's GCN gives 67.0% accuracy on TACRED, versus 66.4% for C-GCN.
  4. Zero-shot image classification: MLP plus SGC replaces GCNZ with 55% fewer parameters and slightly higher accuracy.
  5. Graph classification: here it fails. Substituting into DCGCN gives 71.0% on NCI1 and 76.2% on COLLAB, close to GCN but far behind GIN. On the QM8 quantum-chemistry dataset, SGC has MAE 0.03 versus 0.01 for more advanced methods.

In the first four tasks, adjacent graph elements tend to be similar, so smoothing works. Graph classification distinguishes structure itself, where smoothing alone is insufficient.

Conclusion

SGC reduces GCN to two steps: smooth over the graph KK times, then run logistic regression. On citation networks and many downstream tasks, it matches GCN while training one or two orders of magnitude faster. Spectrally, self-loops compress the spectrum and make SKS^K a low-pass filter, supplying another explanation for GCN's renormalization trick.

These results also mark GCN's boundaries. On citation networks, its useful part is largely smoothing. When the task needs structure itself, as in graph classification, SGC and GCN fall behind together.

When someone compares a new GCN variant, include SGC as a baseline. It trains in seconds; if the new model cannot beat it, the nonlinearities need a better case.