Back to paper library
Paper notesarXiv 2018AAAI 2018

Deeper Insights

Smoothed Too Flat

Original paper

Deeper Insights into Graph Convolutional Networks for Semi-Supervised Learning

Paper authors

Qimai Li · Zhichao Han · Xiao-Ming Wu

Publication
AAAI 2018Conference
First submitted to arXiv
arXiv:1801.07606
Cite this paper · BibTeX

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

@misc{graphlearningdeeperinsights2018,
  title = {{Deeper Insights into Graph Convolutional Networks for Semi-Supervised Learning}},
  author = {Qimai Li and Zhichao Han and Xiao-Ming Wu},
  year = {2018},
  eprint = {1801.07606},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.07606}
}
On this page

When GCN appears in late 2016, it takes a substantial lead in semi-supervised classification on three citation networks. Yet the paper leaves its effectiveness somewhat unexplained: starting from spectral graph convolution, a succession of approximations ends in one short propagation rule.

Qimai Li, Zhichao Han and Xiao-Ming Wu at Hong Kong Polytechnic University want to unpack that line. What is it doing? When does it fail?

Their answer is that GCN's graph convolution is Laplacian smoothing. A little smoothing helps; too much makes all nodes alike. This is over-smoothing, and later papers such as APPNP and over-squashing cite this work when discussing why GNNs cannot go deep.

Defining the Problem

The authors identify two practical problems with GCN.

First, it is shallow: the original paper uses two layers. A two-layer GCN sees only two-hop neighbors. With very few labels, most nodes have no labeled node nearby, so label information cannot reach the whole graph.

Second, GCN depends on a validation set. The original paper trains with 20 labels per class—140 on Cora—yet uses another 500 labeled nodes for validation and early stopping. A validation set larger than the training set conflicts with the purpose of semi-supervised learning and makes comparisons with methods requiring no validation set less fair.

The authors first seek to understand why GCN works, then propose improvements for both problems.

Solving the Problem

Compare with a Fully Connected Network First

The only difference between GCN and a fully connected network (FCN) is the extra left multiplication by A^=D~−1/2A~D~−1/2\hat A=\tilde D^{-1/2}\tilde A\tilde D^{-1/2}. On Cora with 20 labels per class:

One-layer FCNTwo-layer FCNOne-layer GCNTwo-layer GCN
53.1%55.9%70.8%79.8%

Even one GCN layer gains nearly 18 percentage points over FCN. The entire difference is A^\hat A.

Laplacian Smoothing

Split one GCN layer into two steps: graph convolution Y=A^XY=\hat AX, followed by a fully connected layer. The key is clearly the first step.

Laplacian smoothing is an old mesh-smoothing method in graphics. For each feature channel, every node mixes its value with those of its neighbors:

y^i=(1−γ)xi+γ∑ja~ijdixj,0<γ≤1\hat y_i=(1-\gamma)x_i+\gamma\sum_j\frac{\tilde a_{ij}}{d_i}x_j,\qquad 0<\gamma\le1

In matrix form, Y^=(I−γD~−1L~)X\hat Y=(I-\gamma\tilde D^{-1}\tilde L)X, where L~=D~−A~\tilde L=\tilde D-\tilde A. Setting γ=1\gamma=1 gives the neighbor average, including self, D~−1A~X\tilde D^{-1}\tilde AX. Replacing D~−1L~\tilde D^{-1}\tilde L with symmetrically normalized D~−1/2L~D~−1/2\tilde D^{-1/2}\tilde L\tilde D^{-1/2} gives exactly GCN's D~−1/2A~D~−1/2X\tilde D^{-1/2}\tilde A\tilde D^{-1/2}X.

GCN's graph convolution is therefore symmetric Laplacian smoothing. Each node's features become a weighted average of its own and its neighbors'. On citation networks, connected nodes tend to share a class; averaging makes same-class nodes more alike, easing the classifier's job. The authors see this as the key to GCN's effectiveness.

Too Much Smoothing

If smoothing helps, why not stack more layers?

The authors use Zachary's karate club: 34 members and 78 edges, eventually splitting into two factions. GCN weights are randomly initialized without training, node features are one-hot, the hidden dimension is 16 and the output dimension 2. They plot outputs for 1 to 5 layers:

Figure 2 of the paper: five scatterplots show two-dimensional embeddings from untrained GCNs with 1 to 5 layers. Yellow and black dots represent the factions. At 1 layer the colors mix; at 2 they mostly separate; from 3 to 5 they mix again, with the 5-layer points squeezed into a thin line.
Figure 2 from Li et al., taken from PDF page 4. The main caption is omitted.

One layer separates poorly; two largely separate the factions; more layers mix them again. The authors explain that the dataset is small and has many cross-faction edges, so mixing happens especially quickly.

We can drop the random weights and look at smoothing alone. Smooth each node's one-hot feature kk times, then compare the cosine similarity between members. After a few rounds of smoothing, members of the same faction really are more alike than members of different factions, which is what makes GCN useful. But the similarity across factions keeps rising too; after 64 rounds both reach 1, everyone's features point in the same direction, and the two factions can no longer be told apart.

The authors formalize this as a theorem. If the graph has no bipartite connected component, repeated Laplacian smoothing makes features within each connected component converge to the same value; the symmetric version converges to values proportional to the square root of degree. A graph with self-loops is necessarily non-bipartite, so enough GCN layers inevitably reach this point.

Too Shallow Is a Problem Too

If depth fails, the network must stay shallow. But shallowness has its own cost.

Figure 1 of the paper: the horizontal axis is the Cora training-set fraction from 0.01 to 0.05; the vertical axis is test accuracy. Label propagation in blue rises slowly from 0.62 to 0.70. GCN with validation in orange rises from around 0.62 to 0.79; without validation, the green GCN curve starts near 0.54 at 0.01. The authors' red curve is highest throughout, from around 0.70 to 0.82.
Figure 1 from Li et al., taken from PDF page 2. The original caption is omitted.

As labels decrease, GCN falls faster than label propagation, which uses only graph structure. The authors explain that two GCN layers pass labels only two hops and miss global structure, whereas label propagation spreads over the whole graph. Removing validation hurts GCN further.

A Remedy: Give GCN More Labels to See

The authors change the training data rather than the model, expanding GCN's label set.

  • Co-training: a random-walk model that sees the whole graph—partially absorbing random walks—finds the nodes closest to known labels in each class and adds them to training.
  • Self-training: train a GCN, add its most confident predictions to training, then continue. This is especially useful when many small isolated components prevent random walks from carrying information across.
  • Union and Intersection: take the union or intersection of the labels found by both methods. Union gives more diverse labels; intersection keeps only those both trust and is more accurate.

All four train directly on the expanded labels without an additional validation set.

Discussion

The authors reduce label rates on Cora, CiteSeer and PubMed far below the original GCN settings. For Cora:

Label rate0.5%1%2%3%4%5%
Label propagation56.462.365.467.569.070.2
ChebNet38.052.062.470.874.177.6
GCN, without validation42.656.967.874.977.679.3
GCN, with validation50.962.372.276.578.479.7
Union58.569.975.978.580.481.7

Values are accuracies (%). At 0.5% labels, GCN without validation reaches only 42.6%, below label propagation's 56.4%; Union reaches 58.5%. At 1% labels on Cora and CiteSeer, the authors report gains of 23% and 28% over GCN without validation; at 0.05% labels on PubMed, the gain is 37%.

With enough labels, the gap disappears: the supplied labels already suffice to train a good GCN. ChebNet performs poorly in most settings, which the authors attribute to possible overfitting.

Union, using only 2% of Cora's labels (54 nodes), beats every baseline in the original GCN table trained on 140 labels.

Conclusion

This paper explains GCN's graph convolution as symmetric Laplacian smoothing. Smoothing makes same-class nodes more alike, which helps GCN; too much makes all nodes converge to a common pattern determined only by degree, causing over-smoothing. They are two sides of the same operation.

GCN must therefore remain shallow, yet a shallow GCN cannot pass sparse labels far enough. Random walks and self-training expand the labels and open a clear gap in extremely low-label settings.

More than two years later, Alon and Yahav write in their over-squashing paper that over-smoothing is the accepted explanation for GNNs' limited depth. APPNP later in the same year as this paper, and SGC the following year, take two paths: one tries to propagate without blurring away information; the other keeps only the smoothing.

Next time your GCN worsens with depth, do not rush to blame the optimizer. Extract the intermediate features and compute pairwise similarities; they may already have been smoothed flat.