Back to paper library
Paper notesarXiv 2016NeurIPS 2016

ChebNet

A Polynomial Will Do

Original paper

Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering

Paper authors

Michaël Defferrard · Xavier Bresson · Pierre Vandergheynst

Publication
NeurIPS 2016Conference
First submitted to arXiv
arXiv:1606.09375
Cite this paper · BibTeX

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

@misc{graphlearningchebnet2016,
  title = {{Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering}},
  author = {Michaël Defferrard and Xavier Bresson and Pierre Vandergheynst},
  year = {2016},
  eprint = {1606.09375},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1606.09375}
}
On this page

CNNs work well on images for three reasons: a kernel sees only a small region, the same weights are reused across the image, and stacking layers builds ever larger patterns.

All three rely on a grid. Pixels have up, down, left and right, and “shift one position to the right” has a clear meaning. Social networks, brain-connectivity graphs and word-vector similarities live on graphs instead. Neighborhood sizes vary, neighbors have no order, and translation cannot even be defined in the same way.

Michaël Defferrard, Xavier Bresson and Pierre Vandergheynst at EPFL come from graph signal processing. Vandergheynst had previously used Chebyshev polynomials for graph wavelets with Hammond and colleagues; this paper brings the same tool into CNNs.

Defining the Problem

Translation Has No Spatial Definition

The first idea for graph convolution is to work directly in space: align a fixed-size kernel with each node's neighbors, as on an image. The authors point out that this first requires a rule for aligning neighbors. From a spatial perspective, a graph has no unique mathematical definition of translation.

The other path goes through the spectral domain. The convolution theorem says convolution is a linear operation diagonalized in the Fourier basis. A graph also has a Fourier basis: the eigenvectors of its Laplacian.

Spectral Computation Is Too Expensive

Both the combinatorial Laplacian L=D−WL=D-W and the normalized Laplacian L=In−D−1/2WD−1/2L=I_n-D^{-1/2}WD^{-1/2} are real, symmetric, positive semidefinite matrices, admitting L=UΛU⊤L=U\Lambda U^\top. Each column of UU is a Fourier mode, with eigenvalue λl\lambda_l as its frequency. The graph Fourier transform of a signal x∈Rnx\in\mathbb{R}^n is x^=U⊤x\hat x=U^\top x.

Filtering can therefore be written as:

y=gθ(L)x=U gθ(Λ) U⊤xy=g_\theta(L)x=U\,g_\theta(\Lambda)\,U^\top x

The most direct approach learns one free coefficient per frequency, gθ(Λ)=diag(θ)g_\theta(\Lambda)=\mathrm{diag}(\theta). This has two problems: the filter is spatially nonlocal and can affect the whole graph at once, and it has O(n)O(n) parameters, as many as there are nodes.

Even reducing the parameter count leaves computation expensive. Bruna et al.'s 2014 spectral networks parameterize frequency coefficients with smooth splines to obtain spatial locality. But every forward or backward pass still needs two multiplications by UU, each costing O(n2)O(n^2); obtaining UU also requires eigendecomposing LL and storing a dense n×nn\times n matrix.

This paper seeks a graph filter that is both strictly local and fast to compute.

Solving the Problem

Polynomials Buy Locality

The authors restrict the filter to a polynomial in Λ\Lambda:

gθ(Λ)=∑k=0K−1θkΛkg_\theta(\Lambda)=\sum_{k=0}^{K-1}\theta_k\Lambda^k

Since (UΛU⊤)k=UΛkU⊤(U\Lambda U^\top)^k=U\Lambda^kU^\top, this is a polynomial directly in the Laplacian, ∑kθkLk\sum_k\theta_kL^k. LL has nonzero entries only between adjacent nodes, so LkL^k reaches only nodes within kk hops; if two nodes have shortest-path distance greater than kk, then (Lk)ij=0(L^k)_{ij}=0.

Take a seven-node path and put a 1 at the middle node. L0L^0 touches only that node, L1L^1 reaches one step to each side, L2L^2 two steps, and L3L^3 covers the whole path. Each additional power extends the reach by one hop. A polynomial of degree K−1K-1 reaches exactly K−1K-1 hops, with only KK parameters, independent of the number of nodes. This is the same as a 5×5 image kernel seeing only a 5×5 region.

Chebyshev Recursion Buys Speed

Locality is solved, but eigendecomposing first and multiplying in the spectral domain would still cost O(n2)O(n^2).

The authors instead use Chebyshev polynomials TkT_k as the basis. They satisfy a stable recurrence:

Tk(x)=2xTk−1(x)−Tk−2(x),T0=1,T1=xT_k(x)=2xT_{k-1}(x)-T_{k-2}(x),\qquad T_0=1,\quad T_1=x

Chebyshev polynomials are defined on [−1,1][-1,1], so the Laplacian is first rescaled to L~=2L/λmax⁡−In\tilde L=2L/\lambda_{\max}-I_n, giving the filter:

y=∑k=0K−1θkTk(L~) xy=\sum_{k=0}^{K-1}\theta_kT_k(\tilde L)\,x

Set xˉk=Tk(L~)x\bar x_k=T_k(\tilde L)x, and xˉk=2L~xˉk−1−xˉk−2\bar x_k=2\tilde L\bar x_{k-1}-\bar x_{k-2}. Filtering needs only KK sparse matrix–vector multiplications, at O(K∣E∣)O(K|E|) cost. No eigendecomposition and no stored UU.

The recursion's λmax⁡\lambda_{\max} does not require an eigendecomposition either; an upper bound is enough, and the eigenvalues of the normalized Laplacian never exceed 2.

With multiple input and output channels, output feature map jj is yj=∑igθij(L)xiy_j=\sum_i g_{\theta_{ij}}(L)x_i, with a separate set of KK coefficients per input–output channel pair. Backpropagation likewise needs only KK sparse matrix multiplications.

Pooling on Graphs

A CNN also needs pooling. The authors coarsen the graph using Graclus multilevel clustering, merging neighboring nodes in pairs at each level to roughly halve the node count; pairing selects the neighbor that maximizes the normalized-cut criterion.

After coarsening, node order has no meaning. Pooling would need lookup tables to identify pairs, making it slow and hard to parallelize. The authors add disconnected “fake nodes” so every node has exactly two children in a balanced binary tree, then reorder nodes according to that tree. Graph pooling becomes pooling a one-dimensional signal, merging adjacent pairs of values.

Figure 1 of the paper: an input graph signal passes through graph-convolution layers (convolution and nonlinearity) and graph coarsening (sampling and pooling) to extract features, then fully connected layers classify it and produce labels. The figure also shows spectral-filter responses at different frequencies.
Figure 1 from Defferrard et al., taken from PDF page 2. The original caption is omitted.

The whole network combines graph convolution, nonlinearity, coarsening and pooling, followed by fully connected layers—the same skeleton as LeNet.

Discussion

First Validate on a Grid

The first experiment uses MNIST. The 28×28 pixel grid becomes an 8-nearest-neighbor graph, with 976 nodes and 3,198 edges after adding fake nodes. The network follows the LeNet-5 architecture in the TensorFlow tutorial: the image version uses 5×5 convolutions, while the graph version uses K=25K=25 filters, covering comparable regions.

ModelArchitectureAccuracy
Ordinary CNNC32-P4-C64-P4-FC51299.33%
Graph CNNGC32-P4-GC64-P4-FC51299.14%

The gap is small. The authors suggest isotropy of spectral filters as a possible cause: graph edges carry no up, down, left or right. Whether this is a weakness or a strength depends on the task, just as rotation invariance can sometimes be desirable.

Comparing Three Filters

Three spectral filters are compared on MNIST with K=25K=25:

ArchitectureFree coefficientsSplines (Bruna et al.)Chebyshev
GC1095.75%97.26%97.48%
GC32-P4-GC64-P4-FC51296.28%97.15%99.14%

Free-coefficient filters are nonlocal, have many parameters and perform worst. Chebyshev is best with both architectures.

Bruna et al.'s runtime grows as O(n2)O(n^2) with the number of nodes, versus O(n)O(n) here. On 20NEWS, increasing the vocabulary from 2,000 to 12,000 takes the old method's batch time from tens of milliseconds to around 1.2 seconds; Chebyshev rises only to roughly 150 milliseconds.

Graph CNNs remain considerably slower than ordinary CNNs, however. On a GPU, a batch of 100 MNIST images takes 31 milliseconds for the CNN and 200 milliseconds for the graph CNN. Their GPU speedups are similar: 6.77× and 8×, respectively.

How Good Is the Graph?

20NEWS is a text-classification task. Its nodes are 10,000 common words, with a 16-nearest-neighbor graph built from word2vec vectors. The graph CNN reaches 68.26% accuracy, beating the fully connected network but falling short of multinomial Naive Bayes at 68.51%.

The authors devote a section to graph quality. Replacing the MNIST grid graph with a random graph drops the same five-layer architecture from 99.14% to 95.39%. Convolution assumes locality, stationarity and compositionality; the data graph must support these assumptions for convolution to be meaningful.

What Came Next

Three months later, Kipf and Welling build GCN on this paper, cutting the polynomial to first order and tying two coefficients into one. For semi-supervised classification on citation networks, GCN is more accurate than Chebyshev filters with K=2K=2 or K=3K=3, by around 5 percentage points on Pubmed.

Four days after GCN appears, Ferenc Huszár writes in a blog review that excessive simplification leaves the model with a fixed kernel on an image grid. By comparison, ChebNet's higher-order polynomials look more promising, despite their greater computational cost. inFERENCe, 2016-09-13

Conclusion

ChebNet turns spectral graph convolution from theory into a trainable network. Polynomials restrict a filter to neighbors within K−1K-1 hops; Chebyshev recursion reduces computation to sparse matrix multiplication without eigendecomposition. On MNIST, it finishes only 0.19 percentage points behind a CNN with the same architecture.

KK is the method's most important hyperparameter, determining both each layer's reach and the number of coefficients learned. On graphs such as citation networks, the GCN experiments show smaller KK can be more accurate, so it is worth sweeping a few values first.

Much of the spectral path later moves toward first-order approximations like GCN. Laplacian eigenvectors stay in the picture, though: a few years later, Graph Transformers pick them up again as node positional encodings.