In mathematics, the graph Fourier transform is a mathematical transform which eigendecomposes the Laplacian matrix of a graph into eigenvalues and eigenvectors. Analogously to the classical Fourier transform, the eigenvalues represent frequencies and eigenvectors form what is known as a graph Fourier basis.
The Graph Fourier transform is important in spectral graph theory. It is widely applied in the recent study of graph structured learning algorithms, such as the widely employed convolutional networks.
Given an undirected weighted graph G = ( V , E ) {\displaystyle G=(V,E)} , where V {\displaystyle V} is the set of nodes with | V | = N {\displaystyle |V|=N} ( N {\displaystyle N} being the number of nodes) and E {\displaystyle E} is the set of edges, a graph signal f : V → R {\displaystyle f:V\rightarrow \mathbb {R} } is a function defined on the vertices of the graph G {\displaystyle G} . The signal f {\displaystyle f} maps every vertex { v i } i = 1 , … , N {\displaystyle \{v_{i}\}_{i=1,\ldots ,N}} to a real number f ( i ) {\displaystyle f(i)} . Any graph signal can be projected on the eigenvectors of the Laplacian matrix L {\displaystyle L} .[1] Let λ l {\displaystyle \lambda _{l}} and μ l {\displaystyle \mu _{l}} be the l th {\displaystyle l_{\text{th}}} eigenvalue and eigenvector of the Laplacian matrix L {\displaystyle L} (the eigenvalues are sorted in an increasing order, i.e., 0 = λ 0 ≤ λ 1 ≤ ⋯ ≤ λ N − 1 {\displaystyle 0=\lambda _{0}\leq \lambda _{1}\leq \cdots \leq \lambda _{N-1}} [2]), the graph Fourier transform (GFT) f ^ {\displaystyle {\hat {f}}} of a graph signal f {\displaystyle f} on the vertices of G {\displaystyle G} is the expansion of f {\displaystyle f} in terms of the eigenfunctions of L {\displaystyle L} .[3] It is defined as:[1][4]
where μ l ∗ = μ l T {\displaystyle \mu _{l}^{*}=\mu _{l}^{\text{T}}} .
Since L {\displaystyle L} is a real symmetric matrix, its eigenvectors { μ l } l = 0 , ⋯ , N − 1 {\displaystyle \{\mu _{l}\}_{l=0,\cdots ,N-1}} form an orthogonal basis. Hence an inverse graph Fourier transform (IGFT) exists, and it is written as:[4]
Analogously to the classical Fourier transform, graph Fourier transform provides a way to represent a signal in two different domains: the vertex domain and the graph spectral domain. Note that the definition of the graph Fourier transform and its inverse depend on the choice of Laplacian eigenvectors, which are not necessarily unique.[3] The eigenvectors of the normalized Laplacian matrix are also a possible base to define the forward and inverse graph Fourier transform.
The Parseval relation holds for the graph Fourier transform,[5] that is, for any f , h ∈ R N {\displaystyle f,h\in \mathbb {R} ^{N}}
This gives us Parseval's identity:[3]
The definition of convolution between two functions f {\displaystyle f} and g {\displaystyle g} cannot be directly applied to graph signals, because the signal translation is not defined in the context of graphs.[4] However, by replacing the complex exponential shift in classical Fourier transform with the graph Laplacian eigenvectors, convolution of two graph signals can be defined as:[3]
The generalized convolution operator satisfies the following properties:[3]
As previously stated, the classical translation operator T v {\displaystyle T_{v}} cannot be generalized to the graph setting. One way to define a generalized translation operator is through generalized convolution with a delta function centered at vertex n {\displaystyle n} :[2] ( T n f ) ( i ) = N ( f ∗ δ n ) ( i ) = N ∑ l = 0 N − 1 f ^ ( λ l ) u l ∗ ( n ) u l ( i ) , {\displaystyle \left(T_{n}f\right)(i)={\sqrt {N}}\left(f*\delta _{n}\right)(i){=}{\sqrt {N}}\sum _{l=0}^{N-1}{\hat {f}}\left(\lambda _{l}\right)u_{l}^{*}(n)u_{l}(i),}
where δ i ( n ) = { 1 , if i = n , 0 , otherwise. {\displaystyle \delta _{i}(n)={\begin{cases}1,&{\text{if }}i=n,\\0,&{\text{otherwise.}}\end{cases}}}
The normalization constant N {\displaystyle {\sqrt {N}}} ensures that the translation operator preserves the signal mean,[4] i.e.,
For any f , g ∈ R N {\displaystyle f,g\in \mathbb {R} ^{N}} , and j , k ∈ { 1 , 2 , … , N } {\displaystyle j,k\in \{1,2,\dots ,N\}} ,
Representing signals in frequency domain is a common approach to data compression. As graph signals can be sparse in their graph spectral domain, the graph Fourier transform can also be used for image compression.[6][7]
Similar to classical noise reduction of signals based on Fourier transform, graph filters based on the graph Fourier transform can be designed for graph signal denoising.[8]
As the graph Fourier transform enables the definition of convolution on graphs, it makes possible to adapt the conventional convolutional neural networks (CNN) to work on graphs. Graph structured semi-supervised learning algorithms such as graph convolutional network (GCN), are able to propagate the labels of a graph signal throughout the graph with a small subset of labeled nodes, theoretically operating as a first order approximation of spectral graph convolutions without computing the graph Laplacian and its eigendecomposition.[9]
GSPBOX[10][11] is a toolbox for signal processing of graphs, including the graph Fourier transform. It supports both Python and MATLAB languages.