Graph Signal Processing
Signals living on nodes get a Fourier transform from the graph itself: the Laplacian eigenvectors are the frequencies, and filtering is reweighting them.
Why Does This Exist?
Sensor readings on a road network, labels on a citation graph, features on a molecule: values attached to nodes, where neighbours should usually (but not always) agree. Classical Fourier analysis gives frequencies, filtering, and sampling for line and grid signals. Graph signal processing rebuilds that toolkit when the domain is a graph: the Laplacian eigenvectors become the Fourier basis, eigenvalues become frequencies, and a graph convolution becomes pointwise reweighting in that basis. Message-passing networks are low-pass filters in exactly this sense, which is why they smooth and why they fail on disassortative graphs. The matrix underneath is the Laplacian, and the classical analogue is the Fourier-convolution pair.
The one idea you need first
For symmetric , the graph Fourier transform of is : coefficients on eigenvector-modes ordered by variation . Filtering multiplies each coefficient by a gain and transforms back: .
Think of It Like This
Choir risers, from hum to hiss
A choir stands on risers: the lowest mode is everyone singing one note (zero variation across neighbours), the middle mode is left side versus right side, the top mode is every singer alternating with their neighbour (maximum variation). Any song the choir sings decomposes into how much hum, how much sectional contrast, and how much hiss it contains.
A low-pass filter turns down the hiss (denoise by neighbour agreement). A high-pass filter removes the hum (keep only local contrast). The catch: the risers are the graph, so a different seating gives different modes. There is no universal equalizer setting across graphs.
Where the analogy stops: real filters are polynomials in or the adjacency, applied without ever computing eigenvectors, because full decompositions do not scale.
How It Actually Works
Order Laplacian eigenpairs with modes . Mode varies across edges in proportion to : is constant, the top mode alternates as fast as the graph allows.
Filtering. Choose gains : low-pass keeps small (smooth, denoise), high-pass keeps large (anomalies, boundaries). A one-hop neighbour average is : gain , a gentle low-pass. Stacking such layers without nonlinearity is a polynomial filter of degree , reaching hops.
Sampling and smoothness. Smooth signals (energy concentrated at small ) are recoverable from few labels, which is the assumption behind label propagation. The smoothness price is .
Worked example
Path with Laplacian eigenvalues and modes , , .
Signal . Coefficients:
- : no constant part, since the entries sum to zero.
- : everything lives here.
- : no alternating part.
Energy check: and . A low-pass keeping preserves the whole signal; a filter killing deletes it entirely. Smoothness: , all at mid-frequency.
Watch Out For
Assuming low-frequency means signal and high means noise
On homophilic graphs (friends agree, citations share topics) smoothing helps. On heterophilic ones (fraudsters link honest users, proteins bind unlike partners) the label lives at high frequency, and a low-pass filter deletes the answer while reporting high confidence.
Symptom: GNN accuracy below an MLP on the same features, worst on graphs where neighbours differ. Fix: use high-pass or band-pass filters, signed propagation, or models that separate ego from neighbour embeddings instead of averaging them.
Carrying a filter across graphs
Fourier modes belong to one graph: eigenvectors of are not eigenvectors of . A filter learned as per-mode gains does not transfer, and even polynomial coefficients assume similar spectra.
Symptom: a spectral model trained on one network collapses on another with different density. Fix: learn polynomial or spatial filters (shared local rules) rather than per-mode gains, and check spectral similarity before transferring anything spectral.
The Quick Version
- Graph Fourier modes are Laplacian eigenvectors ordered by eigenvalue-as-frequency.
- Filtering reweights mode coefficients: low-pass smooths, high-pass keeps contrast.
- The path signal is pure mode with coefficient 4.24.
- Neighbour averaging is a gentle low-pass; stacking builds polynomial filters.
- Smoothness concentrates recoverable signals at low frequencies.
- Heterophily breaks the smooth assumption, and modes do not transfer across graphs.