Spectral Networks and Locally Connected Networks on Graphs
- Publication
- ICLR 2014Conference
- First submitted to arXiv
- arXiv:1312.6203
Cite this paper · BibTeX
The citation identifies the linked source version. It cites the original paper and its authors.
@misc{graphlearningspectralnetworks2013,
title = {{Spectral Networks and Locally Connected Networks on Graphs}},
author = {Joan Bruna and Wojciech Zaremba and Arthur Szlam and Yann LeCun},
year = {2013},
eprint = {1312.6203},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1312.6203}
}
By late 2013, just over a year had passed since AlexNet's sweeping victory in image recognition. Joan Bruna, Wojciech Zaremba and Yann LeCun at New York University, together with Arthur Szlam at the City College of New York, wanted to know whether convolution could work on data that did not live on a grid.
Weather-station networks, temperatures on 3D meshes, social networks and recommender systems all have some structure describing which things are close, but no regular up, down, left and right.
The paper proposes two ways to build CNNs on graphs. Three years later, ChebNet and GCN would simplify its spectral construction; the GCN paper explicitly builds on the spectral graph convolutions introduced here.
Defining the Problem
The authors first unpack why CNNs use so few parameters. On a grid, a CNN uses three structures at once:
- Translation: the same filter is reused at every position, giving weight sharing.
- Distance: a filter sees only a small neighborhood, with support much smaller than the full input.
- Multiscale dyadic clustering: grid locations can be merged in pairs, level by level, enabling strided convolution and pooling.
For an input with coordinates, a fully connected layer with outputs needs parameters, usually . Translation or local connectivity alone reduces this to per feature map; together, they give , where is the number of feature maps and the filter size, independent of .
A graph has no translation and may have no useful coordinates. Given only a weighted graph , the authors ask how much of these three structures can be recovered.
Solving the Problem
Spatial Construction: Local Connections and Clustering
The first approach works directly in space. Graph weights already define a neighborhood: for example, choose a threshold and treat nodes with as neighbors. Connecting filters only to neighbors reduces the parameters from to , where is the average neighborhood size.
Next comes multiscale hierarchical clustering, dividing the nodes into groups at level . Each layer first applies sparse filters connected only to neighbors, then pools within each group:
is a sparse matrix with values only at neighboring positions, is a nonlinearity, and pools each group.

Moving one layer to the right reduces spatial resolution and increases feature dimensions, much like a CNN pyramid.
This approach asks little of the graph, but has a fundamental limitation: filters at different locations learn separately, with no weight sharing. The parameter count is rather than .
Spectral Construction: Laplacian Eigenvectors
The second approach takes a detour through the spectral domain. The authors use the combinatorial Laplacian to measure how smooth a signal is on the graph:
The smoothest vector is constant. Find the smoothest vector orthogonal to it, then the smoothest vector orthogonal to both, and continue: these are the eigenvectors of . Smaller eigenvalues correspond to smoother vectors. This is the same idea as the Fourier basis on a grid, where Laplacian eigenvectors are sinusoids.
Convolution can then be defined as a diagonal operation in this basis:
is the eigenvector matrix, and is diagonal, multiplying each frequency by a coefficient. In practice, only the first low-frequency eigenvectors are retained, carrying the graph's smooth geometry. Each layer then has parameters, still .
The authors also spell out the difficulties. For most graphs, only the lowest-frequency eigenvectors are meaningful; both forward and backward passes require expensive multiplication by dense and ; and nonlinearities must be applied on the spatial side, so computation cannot stay in the spectral domain.
Rediscovering CNNs
The paper makes a lovely observation. Suppose the data covariance matrix supplies the graph weights. For natural images, translation invariance makes covariance depend only on the displacement between two pixels. Its eigenvectors are the Fourier basis, roughly ordered by frequency. The spectral operators are then diagonal in the Fourier basis, hence translation invariant: ordinary convolutions.
In other words, the method can recover a standard CNN by constructing a graph from data, without knowing in advance that images form a grid.
Smooth Coefficients, Local Filters
To reduce the parameters to , the authors borrow a duality from grids: a signal that decays rapidly in space is smooth in frequency. Conversely, a filter with a smooth frequency response tends to be concentrated in space.
Rather than learn a free coefficient for every frequency, they order eigenvectors along a line by eigenvalue, learn only a few control points, and interpolate between them with cubic splines:
is a fixed cubic-spline kernel, and contains the learned coefficients. The number of control points need not grow with , giving parameters.
Place an impulse at the middle of a 64-node path. Filtered with 64 free coefficients, the response spreads over almost the whole path; with smooth coefficients interpolated from 6 control points, it stays concentrated near the impulse. Smoothness in the spectral domain makes the filter more local in space.
Smoothness, however, only makes the filter more local; it gives no guarantee of support within a fixed number of hops. ChebNet would later close this gap with polynomials.
Discussion
Subsampled MNIST
The first experiment randomly samples 400 coordinates from 28×28 MNIST images. The points still lie in a plane, but no longer form a grid, so ordinary convolution cannot be used.
| Method | Parameters | Error rate |
|---|---|---|
| Nearest neighbor | — | 4.11% |
| Fully connected 400-FC800-FC50-10 | 1.8% | |
| Spatial construction, one layer | 1.8% | |
| Spatial construction, two layers | 1.3% | |
| Spectral construction, free coefficients | 2.6% | |
| Spectral construction, smooth coefficients () | 2.3% | |
| Spectral construction, smooth coefficients (, wider) | 1.8% |
The two-layer spatial network is best, with 1.3% error. The spectral construction does somewhat worse but uses roughly one hundredth as many parameters as the fully connected model; smoothing reduces error from 2.6% to 2.3%, and widening reaches 1.8%.
The authors explain that MNIST digits consist of local, oriented strokes, requiring spatially concentrated measurements. Local connections provide locality directly; the spectral construction offers approximate locality through smoothing.

The figure puts the three filters side by side. In (a)(b), two different clusters learn similar-looking features independently because their weights are not shared. In (c)(d), free spectral coefficients spread the response across the graph, which the authors call a fundamental limitation of Fourier analysis in describing local phenomena. Smoothing in (e)(f) concentrates the response again, while the same filter can detect similar features at different locations. That starts to look like convolution.
MNIST on a Sphere
The second experiment projects MNIST onto 4,096 random points on the unit sphere, then randomly rotates each image.
With small rotations, nearest-neighbor error rises to 19%, while the neural networks stay between 5.6% and 7%. Convolutional constructions match the fully connected model with far fewer parameters: roughly parameters and 5.6% error for the latter, versus about parameters and 6% for the smooth spectral construction.
With completely random rotations, nearest neighbor has 80% error, the fully connected model 52%, and the smooth spectral model 50%, the best in the table, though every method performs poorly. The authors suggest that full rotation and translation invariance is needed; the noncommutative 3D rotation group may call for a deeper architecture.
Conclusion
The paper opens two paths. Spatial construction uses local connections and clustered pooling directly on the graph, reducing parameters to without weight sharing. Spectral construction uses Laplacian eigenvectors as a Fourier basis and trades smooth frequency coefficients for spatial locality, reducing parameters to .
The spectral path also leaves its costs behind: eigendecomposition, multiplication by a dense matrix at every transform, and only approximate locality. Three years later, ChebNet replaces smooth splines with Laplacian polynomials, guaranteeing locality and avoiding eigendecomposition; three months after that, GCN cuts the polynomial to first order.
The paper's example recovering CNNs from a covariance matrix is still fascinating to read. Convolution can be viewed as a diagonal operation in a particular basis; the grid happens to supply that basis. On a graph, we have to find it ourselves.