Search

Search papers and lessons

Simplifying Graph Convolutional Networks

Felix Wu, Tianyi Zhang, Amauri Holanda de Souza et al. · 2019

SGC removes the nonlinearities and weight matrices from a graph convolution network, leaving one fixed smoothing step followed by logistic regression, and matches GCN on many benchmarks.

On this page

  • Colour = topic mix
  • Linear algebra
  • Discrete math
  • Probability
  • Calculus
  • Neural network basics
  • Architectures
  • ReadReady to readNot yet

TL;DR

Graph convolutional networks (GCNs) are the standard tool for learning from graphs such as citation networks and social networks. The paper asks whether their deep-learning machinery is needed for the job. It removes the nonlinearity between layers and collapses all the weight matrices into one, which leaves a model that smooths node features over the graph once and then fits a plain logistic regression. The authors call it Simple Graph Convolution (SGC). It matches GCN on citation benchmarks, is much faster to train, and has only one weight matrix to learn.

Builds on: Graph Convolutional Network, Graph Laplacian, Logistic Regression · Leads to: later graph neural networks, which often use SGC as a baseline

Why it mattered

By 2019 GCNs had become the default for node classification, and many variants followed. SGC made a practical point: the nonlinear layers were inherited from neural networks in general, and on the benchmarks the paper uses they were not the source of accuracy. The paper's own explanation is that the expressive power of GCNs comes mainly from repeated graph propagation, which SGC keeps, and not from the nonlinear feature extraction, which it drops.

The model is now used as a baseline for graph learning and as a fast first model to try on node classification. Its code is public on GitHub. The paper has been cited about 4,500 times according to OpenAlex.

The problem

Node classification asks a simple question. Some nodes of a graph have labels, and the task is to predict the labels of the rest. A paper in a citation network has a bag-of-words feature vector and is linked to the papers it cites. Labels are scarce, so a model that uses the graph structure to share information between neighbours helps.

A GCN does this by stacking layers. Each layer averages every node's features with its neighbours' (neighbourhood aggregation), applies a learned weight matrix, and then applies a nonlinearity such as ReLU. The authors argue that the averaging is the part that matters. The weight matrices and nonlinearities came from the deep-learning lineage, where they are needed to build feature hierarchies from raw inputs, and nobody had tested whether a simpler linear model, the one that could have come before GCNs, would work just as well. The paper builds that model and tests it.

How it works

Take a tiny graph with three nodes in a line: a is linked to b, and b is linked to c. Each node has one feature, with value 1 for a and 0 for b and c. Node a is labelled, and we want a prediction for c, which is two hops away. We run K = 2 steps of smoothing.

  1. Input: the graph and the features. Build the adjacency matrix A, with a 1 for each link, and add a self-loop to every node to get A-tilde. The degrees including self-loops are 2 for a, 3 for b and 2 for c. Check: each node counts itself once, so a has its own loop plus the link to b.
  2. Build the smoothing matrix. Each entry is 1 over the square root of the product of the two degrees, when the two nodes are linked or equal. So the diagonal entries for a and c are 1 over 2, which is 0.50; the entry between a and b, and between b and c, is 1 over the square root of 6, about 0.41; and the diagonal entry for b is 1 over 3, about 0.33. Check: the matrix is symmetric, and the two ends of the line get the same numbers.
  3. First smoothing step. Multiply the matrix by the features (1, 0, 0). The result is (0.50, 0.41, 0). Node a keeps half its value, and its neighbour b picks up 0.41 of it. Node c is still 0 because it is not yet adjacent to a. Check: after one step, a node sees only its one-hop neighbours.
  4. Second smoothing step. Multiply again. For a the result is 0.50 times 0.50 plus 0.41 times 0.41, about 0.42. For b it is 0.41 times 0.50 plus 0.33 times 0.41, about 0.34. For c it is 0.41 times 0.41, about 0.17. Check: c now has a nonzero value, so the signal from a has reached it in two hops.
  5. Classify. The smoothed features (0.42, 0.34, 0.17) are the only inputs to a logistic regression with one weight vector per class. Training fits those weights on the labelled nodes, and the smoothing is never trained. Check: the number of weights to learn is the same as in a linear classifier on the raw features.
flowchart LR
  A["Raw features X"] --> B["Smooth K times with S: S to the K, times X"]
  B --> C["Fixed, parameter-free features"]
  C --> D["Logistic regression: softmax of the features times one weight matrix"]
  D --> E["Predicted labels for every node"]

The math

The notation follows the paper. The graph has n nodes with adjacency matrix A, and D is the diagonal degree matrix. Each node has a feature vector, and the matrix X stacks them row by row. There are C classes.

Stage 1 in symbols: the smoothing matrix

Add self-loops, A-tilde = A + I, and let D-tilde be the degree matrix of A-tilde. The smoothing matrix is

S=D~−1/2A~D~−1/2.\mathbf{S} = \tilde{\mathbf{D}}^{-1/2} \tilde{\mathbf{A}} \tilde{\mathbf{D}}^{-1/2}.

Multiplying a feature matrix H by S replaces each node's features with a degree-weighted sum of its own and its neighbours' features. This is the "feature propagation" step of a GCN layer. In the walkthrough, the entries for a and c were 1 over 2 because each has degree 2 once the self-loop is counted.

Stage 2 in symbols: removing the nonlinearity and collapsing the weights

A GCN layer computes H-next = ReLU(S H Theta), where Theta is a learned weight matrix. SGC drops the ReLU between layers and multiplies the weight matrices together, Theta = Theta-1 Theta-2 ... Theta-K, which is still a single matrix. The model then becomes

Y^SGC=softmax(SKXΘ).\hat{\mathbf{Y}}_{\text{SGC}} = \mathrm{softmax}\left(\mathbf{S}^{K} \mathbf{X} \boldsymbol{\Theta}\right).

The S to the K term is the same as the K smoothing steps in the walkthrough. It reaches nodes K hops away, which is the receptive field of a K-layer GCN.

Stage 3 in symbols: fixed features and a linear classifier

Write X-bar = S to the K times X. This matrix needs no weights, so it can be computed once before training. The model is then

Y^=softmax(XˉΘ),\hat{\mathbf{Y}} = \mathrm{softmax}\left(\bar{\mathbf{X}} \boldsymbol{\Theta}\right),

which is multi-class logistic regression on the pre-processed features. The usual training loss for this is cross-entropy over the labelled nodes. Because the only learned parameter is Theta, the optimisation is convex, and the paper notes that any efficient method for logistic regression applies.

Stage 4 in symbols: the spectral view

The graph Laplacian is Delta = D - A, or its normalised form Delta-sym = I - S-adj, where S-adj = D to the minus one half times A times D to the minus one half. Its eigenvalues measure how much a signal changes across the graph: small eigenvalues mean smooth signals. Propagating with S-adj multiplies each frequency component by (1 - lambda), so K steps multiply it by (1 - lambda) ^ K. The eigenvalues lie in the range [0, 2]. For lambda above 1 the factor is negative, and odd powers flip the sign of those frequency components, which distorts the signal there.

Adding self-loops changes the spectrum. The paper's Theorem 1 shows that the eigenvalues of the augmented normalised Laplacian satisfy 0 = lambda-1 = lambda-tilde-1 < lambda-tilde-n < lambda-n, so the largest eigenvalue shrinks. On Cora it drops from 2 to about 1.5, which the paper says removes the effect of the negative coefficients. The filter (1 - lambda-tilde) ^ K then behaves as a low-pass filter for K above 1. A low-pass filter keeps smooth, slowly changing signals and damps rapid changes, which is what makes neighbouring nodes end up with similar features.

Results

The paper evaluates on three citation datasets (Cora, Citeseer and Pubmed), on the larger Reddit social network, and on several downstream tasks.

Reading the citation numbers takes one subtraction. On Citeseer, GCN reaches 70.9 percent and SGC reaches 71.9, a gap of 1.0 point. That gap is more than twice GCN's standard deviation of 0.5 over 10 runs. On Pubmed the order reverses slightly: SGC reaches 78.9 against GCN's 79.0, a difference of minus 0.1 point, which is within the spread of the runs.

  • Citation networks (Table 2). SGC reaches 81.0 on Cora, 71.9 on Citeseer and 78.9 on Pubmed. The authors' GCN runs reach 81.4, 70.9 and 79.0. The GAT baseline reaches 83.3 on Cora, which is higher than SGC on that dataset. The paper's GCN numbers are reported over 10 runs.
  • Reddit (Table 3). SGC reaches a micro F1 of 94.9. The supervised GraphSAGE mean aggregator reaches 95.0, and the supervised GaAN reaches 96.4. SGC is ahead of the sampling-based FastGCN at 93.7 and DGI at 94.0. The full GCN is out of memory on this dataset.
  • Speed. On Reddit, SGC trains with L-BFGS and converges in 2 steps in the reported setting. The paper reports training up to two orders of magnitude faster than FastGCN. On text classification, SGC is up to 83.6 times faster than GCN across the five datasets, and on the 20-Newsgroups set it runs in 19.06 seconds against 1205.1 seconds for GCN.
  • Downstream tasks. On TACRED relation extraction, a version with SGC in place of a GCN reaches 67.0 against 66.4. On user geolocation, SGC beats the GCN-with-highway model on GEOTEXT, TWITTER-US and TWITTER-WORLD. On zero-shot image classification, an MLP followed by SGC has 4.3 million parameters against 9.5 million for the GCN version, and it is slightly more accurate.

The limits are stated in the paper and in its results. SGC is weaker on graph classification. On the NCI1 and COLLAB graph datasets it reaches 71.0 and 76.2, which is on par with a GCN counterpart but well behind the GIN model. On the QM8 chemistry regression dataset its error is 0.03 against 0.01 for AdaLNet and LNet. Several baseline numbers in Table 2 and Table 3 are taken from the original papers rather than rerun. The citation experiments are transductive, meaning the unlabelled test nodes are present during training, while the Reddit experiments are inductive. The authors tuned weight decay (L2 regularisation) with hyperopt for each dataset, so the comparison depends on how well each baseline was tuned.

Reading guide

  • Section 1, Introduction. The argument that deep-learning complexity was inherited rather than needed, and the goal of the simplest linear model that could have come first. Needs Graph Convolutional Network.
  • Section 2, Simple Graph Convolution. The GCN equations, the linearisation, and the collapse of the weights into S to the K. Needs Logistic Regression, Cross-Entropy Loss and Linear Classifier.
  • Section 3, Spectral Analysis. The Laplacian, the filter view, and Theorem 1 on self-loops. Needs Graph Laplacian and Symmetric Matrix. The eigenvalue ideas are used in plain form: small eigenvalue means smooth signal.
  • Section 4, Related Works. Other graph neural networks, linear baselines and label propagation. Needs Graph Neural Network and Semi-Supervised Learning.
  • Section 5, Experiments. The citation tables, Reddit, efficiency and downstream tasks. Needs Transductive Learning for the citation setting and Adam Optimizer for the training details. The paper also uses L2 Regularization through its weight decay.
  • Section 6, Conclusion. The claim that propagation, not nonlinear feature extraction, drives the accuracy.

Check yourself

QuestionRecall: what does SGC keep from a GCN, and what does it drop?Show answer

It keeps the repeated smoothing by the normalised adjacency matrix with self-loops, which is the propagation step that gives each node information from its neighbourhood. It drops the nonlinearities between layers and collapses the weight matrices into one, so the only learned part is a logistic regression on the smoothed features.

QuestionCompute: a node's new value is 0.6 times its own value 0.5, plus 0.4 times a neighbour's value 0.2. What is the new value?Show answer

The result is 0.6 times 0.5 plus 0.4 times 0.2, which is 0.30 plus 0.08, or 0.38.

QuestionWhy does the paper add self-loops before normalising the adjacency matrix?Show answer

Adding self-loops shrinks the largest eigenvalue of the normalised Laplacian, from 2 to about 1.5 on Cora. Without the shrinkage, odd powers of the propagation matrix give negative filter coefficients for the high-frequency components, which distorts the signal. The paper says the shrinkage removes the effect of those negative coefficients, and with self-loops the filter behaves as a low-pass filter, so smoothing does not blow up the signal.

QuestionScenario: a team has a large graph with many labelled nodes and a deep nonlinear GCN that runs out of memory. Would SGC be a reasonable first model to try, and what would you check?Show answer

Yes, it is a reasonable first model for node classification, because it precomputes the smoothed features once and trains only a linear classifier, so memory and time are small. The team should check whether the task depends on nonlinear feature learning, since the paper's graph-classification and QM8 results show cases where SGC falls behind. They should also tune the number of propagation steps and the weight decay on validation data, as the paper does.

QuestionRecall: which paper results show SGC is weakest, and what is the gap?Show answer

On the QM8 quantum chemistry regression, SGC has a mean absolute error of 0.03, against 0.01 for AdaLNet and LNet. On graph classification SGC is also far behind the GIN model, which the paper describes as more expressive. These are the places where the paper's simplification does not match the more complex models.

Sources

Read the full paper

Felix Wu, Tianyi Zhang, Amauri Holanda de Souza et al., 2019. arXiv:1902.07153