Skip to content
ImagineWorld

Geometric Domains: the 5 Gs

node_idnode-book_geometric-deep-learning-grids-groups-geodesics-and-gauges_chapter-04-geometric-domains-the-5-gs
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num4
chapter_titleGeometric Domains: the 5 Gs
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Re-transcribed on 2026-10-09 from the authors’ LaTeX source (arXiv 2104.13478v2). Margin notes are shown as quotations after the paragraph they annotate; figures are the scan crops already in the corpus where one exists.

The main focus of our text will be on graphs, grids, groups, geodesics, and gauges. In this context, by ‘groups’ we mean global symmetry transformations in homogeneous space, by ‘geodesics’ metric structures on manifolds, and by ‘gauges’ local reference frames defined on tangent bundles (and vector bundles in general). These notions will be explained in more detail later. In the next sections, we will discuss in detail the main elements in common and the key distinguishing features between these structures and describe the symmetry groups associated with them. Our exposition is not in the order of generality – in fact, grids are particular cases of graphs – but a way to highlight important concepts underlying our Geometric Deep Learning blueprint.

gdl-fig-09-five-gs-icons.png

Figure 9: The 5G of Geometric Deep Learning: grids, groups & homogeneous spaces with global symmetry, graphs, geodesics & metrics on manifolds, and gauges (frames for tangent or feature spaces).

In multiple branches of science, from sociology to particle physics, graphs are used as models of systems of relations and interactions. From our perspective, graphs give rise to a very basic type of invariance modelled by the group of permutations. Furthermore, other objects of interest to us, such as grids and sets, can be obtained as a particular case of graphs.

A graph G=(V,E){\mathcal{G}} = ({\mathcal{V}}, {\mathcal{E}}) is a collection of nodes V{\mathcal{V}} and edges E⊆V×V{\mathcal{E}} \subseteq {\mathcal{V}}\times {\mathcal{V}} between pairs of nodes. For the purpose of the following discussion, we will further assume the nodes to be endowed with ss-dimensional node features, denoted by xu\mathbf{x}_u for all u∈Vu \in {\mathcal{V}}. Social networks are perhaps among the most commonly studied examples of graphs, where nodes represent users, edges correspond to friendship relations between them, and node features model user properties such as age, profile picture, etc. It is also often possible to endow the edges, or entire graphs, with features; but as this does not alter the main findings of this section, we will defer discussing it to future work.

(Figure not in the corpus: mn_isomorphic.png.) Isomorphism is an edge-preserving bijection between two graphs. Two isomorphic graphs shown here are identical up to reordering of their nodes.

Depending on the application field, nodes may also be called vertices, and edges are often referred to as links or relations. We will use these terms interchangeably.

The key structural property of graphs is that the nodes in V{\mathcal{V}} are usually not assumed to be provided in any particular order, and thus any operations performed on graphs should not depend on the ordering of nodes. The desirable property that functions acting on graphs should satisfy is thus permutation invariance, and it implies that for any two isomorphic graphs, the outcomes of these functions are identical. We can see this as a particular setting of our blueprint, where the domain Ω=G\Omega = \mathcal{G} and the space X(G,Rd)\mathcal{X}(\mathcal{G},\mathbb{R}^d) is that of dd-dimensional node-wise signals. The symmetry we consider is given by the permutation group G=Σn\mathfrak{G} = \Sigma_n, whose elements are all the possible orderings of the set of node indices {1,⋯ ,n}\{1,\cdots, n\}.

Let us first illustrate the concept of permutation invariance on sets, a special case of graphs without edges (i.e., E=∅{\mathcal{E}}=\emptyset). By stacking the node features as rows of the n×dn\times d matrix X=(x1,⋯ ,xn)⊤\mathbf{X} = (\mathbf{x}_1, \cdots, \mathbf{x}_n)^\top, we do effectively specify an ordering of the nodes. The action of the permutation g∈Σn\mathfrak{g}\in\Sigma_n on the set of nodes amounts to the reordering of the rows of X\mathbf{X}, which can be represented as an n×nn\times n permutation matrix ρ(g)=P\rho(\mathfrak{g}) = \mathbf{P}, where each row and column contains exactly one 11 and all the other entries are zeros.

There are exactly n!n! such permutations, so Σn\Sigma_n is, even for modest nn, a very large group.

A function ff operating on this set is then said to be permutation invariant if, for any such permutation matrix P{\bf P}, it holds that f(PX)=f(X)f({\bf P}{\bf X}) = f({\bf X}). One simple such function is

f(X)=ϕ(∑u∈Vψ(xu)) ,(6)f({\bf X}) = \phi\left(\sum_{u\in {\mathcal{V}}} \psi\left(\mathbf{ x}_u\right)\right)~, \tag{6}

where the function ψ\psi is independently applied to every node’s features, and ϕ\phi is applied on its sum-aggregated outputs: as sum is independent of the order in which its inputs are provided, such a function is invariant with respect to the permutation of the node set, and is hence guaranteed to always return the same output, no matter how the nodes are permuted.

Functions like the above provide a ‘global’ graph-wise output, but very often, we will be interested in functions that act ‘locally’, in a node-wise manner. For example, we may want to apply some function to update the features in every node, obtaining the set of latent node features. If we stack these latent features into a matrix H=F(X)\mathbf{H} = \mathbf{F}({\bf X}) is no longer permutation invariant: the order of the rows of H{\bf H} should be tied to the order of the rows of X{\bf X}, so that we know which output node feature corresponds to which input node. We need instead a more fine-grained notion of permutation equivariance, stating that, once we “commit” to a permutation of inputs, it consistently permutes the resulting objects. Formally, F(X)\mathbf{F}(\mathbf{X}) is a permutation equivariant function if, for any permutation matrix P{\bf P}, it holds that F(PX)=PF(X)\mathbf{F}({\bf P}{\bf X}) = {\bf P}\mathbf{F}({\bf X}). A shared node-wise linear transform

We use the bold notation for our function F(X)\mathbf{F}(\mathbf{X}) to emphasise it outputs node-wise vector features and is hence a matrix-valued function.

FΘ(X)=XΘ(7)\mathbf{F}_{\mathbf\Theta}({\bf X}) = {\bf X}{\mathbf \Theta} \tag{7}

specified by a weight matrix Θ∈Rd×d′\mathbf\Theta\in\mathbb{R}^{d\times d'}, is one possible construction of such a permutation equivariant function, producing in our example latent features of the form hu=Θ⊤xu\mathbf{h}_u = \boldsymbol{\Theta}^\top\mathbf{x}_u.

This construction arises naturally from our Geometric Deep Learning blueprint. We can first attempt to characterise linear equivariants (functions of the form FPX=PFX\mathbf{F} {\bf P X} = \bf{P} \mathbf{FX}), for which it is easy to verify that any such map can be written as a linear combination of two generators, the identity F1X=X\mathbf{F}_1 \mathbf{X} = {\bf X} and the average F2X=1n11⊤X=1n∑u=1nxu{\mathbf{F}_2 \mathbf{X}}= \frac{1}{n}\boldsymbol{1}\boldsymbol{1}^\top \mathbf{X} = \frac{1}{n} \sum_{u=1}^n {\bf x}_u. As will be described in Section 5.4, the popular Deep Sets (Zaheer et al., 2017) architecture follows precisely this blueprint.

We can now generalise the notions of permutation invariance and equivariance from sets to graphs. In the generic setting E≠∅{\mathcal{E}}\neq\emptyset, the graph connectivity can be represented by the n×nn\times n adjacency matrix A\mathbf{A}, defined as

When the graph is undirected, i.e. (u,v)∈E(u,v) \in {\mathcal{E}} iff (v,u)∈E(v,u) \in {\mathcal{E}}, the adjacency matrix is symmetric, A=A⊤\mathbf{A}= \mathbf{A}^\top.

auv={1(u,v)∈E0otherwise.(8)a_{uv} = \begin{cases} 1 & (u, v)\in {\mathcal{E}}\\ 0 & \text{otherwise}. \end{cases} \tag{8}

Note that now the adjacency and feature matrices A\mathbf{A} and X\mathbf{X} are “synchronised”, in the sense that auva_{uv} specifies the adjacency information between the nodes described by the uuth and vvth rows of X\mathbf{X}. Therefore, applying a permutation matrix P\mathbf{P} to the node features X\mathbf{X} automatically implies applying it to A\mathbf{A}‘s rows and columns, PAP⊤\mathbf{P}\mathbf{A}\mathbf{P}^\top. We say that (a graph-wise function) ff is permutation invariant if

PAP⊤\mathbf{P}\mathbf{A}\mathbf{P}^\top is the representation of Σn\Sigma_n acting on matrices.

f(PX,PAP⊤)=f(X,A)(9)f({\bf PX}, {\bf PAP}^\top) = f({\bf X}, {\bf A}) \tag{9}

and (a node-wise function) F\mathbf{F} is permutation equivariant if

As a way to emphasise the fact that our functions operating over graphs now need to take into account the adjacency information, we use the notation f(X,A)f({\bf X}, {\bf A}).

F(PX,PAP⊤)=PF(X,A)(10)\mathbf{F}({\bf PX}, {\bf PAP}^\top) = {\bf P}\mathbf{F}({\bf X}, {\bf A}) \tag{10}

for any permutation matrix P{\bf P}.

Here again, we can first characterise linear equivariant functions. As observed by Maron et al. (2018), any linear F\mathbf{F} satisfying equation (11) can be expressed as a linear combination of fifteen linear generators; remarkably, this family of generators is independent of nn. Amongst these generators, our blueprint specifically advocates for those that are also local, i.e., whereby the output on node uu directly depends on its neighbouring nodes in the graph. We can formalise this constraint explicitly in our model construction, by defining what it means for a node to be neighbouring another.

This corresponds to the Bell number B4B_4, which counts the number of ways to partition a set of 44 elements, in this case given by the 4-indices (u,v),(u′,v′)(u,v), (u',v') indexing a linear map acting on the adjacency matrix.

A (undirected) neighbourhood of node uu, sometimes also called 1-hop, is defined as

Often, the node uu itself is included in its own neighbourhood.

Nu={v:(u,v)∈E or (v,u)∈E}(11)\mathcal{N}_u = \{ v : (u,v) \in {\mathcal{E}} \,\mathrm{or}\, (v,u) \in {\mathcal{E}} \} \tag{11}

and the neighbourhood features as the multiset

XNu={ ⁣{xv:v∈Nu} ⁣}.(12)\mathbf{X}_{\mathcal{N}_u} = \{\mskip-5mu\{ \mathbf{x}_v : v\in\mathcal{N}_u \}\mskip-5mu\}. \tag{12}

Operating on 1-hop neighbourhoods aligns well with the locality aspect of our blueprint: namely, defining our metric over graphs as the shortest path distance between nodes using edges in E\mathcal{E}.

A multiset, denoted { ⁣{ … } ⁣}\{\mskip-5mu\{ \, \dots \, \}\mskip-5mu\}, is a set where the same element can appear more than once. This is the case here because the features of different nodes can be equal.

The GDL blueprint thus yields a general recipe for constructing permutation equivariant functions on graphs, by specifying a local function ϕ\phi that operates over the features of a node and its neighbourhood, ϕ(xu,XNu)\phi(\mathbf{x}_u, \mathbf{X}_{\mathcal{N}_u}). Then, a permutation equivariant function F\mathbf{F} can be constructed by applying ϕ\phi to every node’s neighbourhood in isolation (see Figure 10):

F(X,A)=[ϕ(x1,XN1)ϕ(x2,XN2)⋮ϕ(xn,XNn)](13)\mathbf{F}({\bf X}, {\bf A}) = \left[ \begin{array}{ccc} \rule[.5ex]{2.5ex}{0.5pt} & \phi(\mathbf{x}_1, \mathbf{X}_{\mathcal{N}_1}) & \rule[.5ex]{2.5ex}{0.5pt} \\ \rule[.5ex]{2.5ex}{0.5pt} & \phi(\mathbf{x}_2, \mathbf{X}_{\mathcal{N}_2}) & \rule[.5ex]{2.5ex}{0.5pt} \\ & \vdots & \\ \rule[.5ex]{2.5ex}{0.5pt} & \phi(\mathbf{x}_n, \mathbf{X}_{\mathcal{N}_n}) & \rule[.5ex]{2.5ex}{0.5pt} \end{array} \right] \tag{13}

As F\mathbf{F} is constructed by applying a shared function ϕ\phi to each node locally, its permutation equivariance rests on ϕ\phi‘s output being independent on the ordering of the nodes in Nu\mathcal{N}_u. Thus, if ϕ\phi is built to be permutation invariant, then this property is satisfied. As we will see in future work, the choice of ϕ\phi plays a crucial role in the expressive power of such a scheme. When ϕ\phi is injective, it is equivalent to one step of the Weisfeiler-Lehman graph isomorphism test, a classical algorithm in graph theory providing a necessary condition for two graphs to be isomorphic by an iterative color refinement procedure.

Figure 10: An illustration of constructing permutation-equivariant functions over graphs, by applying a permutation-invariant function ϕ\phi to every neighbourhood. In this case, ϕ\phi is applied to the features xb\mathbf{x}_b of node bb as well as the multiset of its neighbourhood features, XNb={ ⁣{xa,xb,xc,xd,xe} ⁣}\mathbf{X}_{\mathcal{N}_b} = \{\mskip-5mu\{\mathbf{x}_a, \mathbf{x}_b, \mathbf{x}_c, \mathbf{x}_d, \mathbf{x}_e\}\mskip-5mu\}. Applying ϕ\phi in this manner to every node’s neighbourhood recovers the rows of the resulting matrix of latents features H=F(X,A)\mathbf{H}=\mathbf{F}(\mathbf{X}, \mathbf{A}). (Figure not in the corpus: GC_GDL.pdf.)

It is also worth noticing that the difference between functions defined on sets and more general graphs in this example is that in the latter case we need to explicitly account for the structure of the domain. As a consequence, graphs stand apart in the sense that the domain becomes part of the input in machine learning problems, whereas when dealing with sets and grids (both particular cases of graphs) we can specify only the features and assume the domain to be fixed. This distinction will be a recurring motif in our discussion. As a result, the notion of geometric stability (invariance to domain deformation) is crucial in most problems of learning on graphs. It straightforwardly follows from our construction that permutation invariant and equivariant functions produce identical outputs on isomorphic (topologically-equivalent) graphs. These results can be generalised to approximately isomorphic graphs, and several results on stability under graph perturbations exist (Levie et al., 2018). We will return to this important point in our discussion on manifolds, which we will use as an vehicle to study such invariance in further detail.

Second, due to their additional structure, graphs and grids, unlike sets, can be coarsened in a non-trivial way, giving rise to a variety of pooling operations.

More precisely, we cannot define a non-trivial coarsening assuming set structure alone. There exist established approaches that infer topological structure from unordered sets, and those can admit non-trivial coarsening.

The second type of objects we consider are grids. It is fair to say that the impact of deep learning was particularly dramatic in computer vision, natural language processing, and speech recognition. These applications all share a geometric common denominator: an underlying grid structure. As already mentioned, grids are a particular case of graphs with special adjacency. However, since the order of nodes in a grid is fixed, machine learning models for signals defined on grids are no longer required to account for permutation invariance, and have a stronger geometric prior: translation invariance.

Circulant matrices and Convolutions. Let us dwell on this point in more detail. Assuming for simplicity periodic boundary conditions, we can think of a one-dimensional grid as a ring graph with nodes indexed by 0,1,⋯ ,n−10, 1,\cdots, n-1 modulo nn (which we will omit for notation brevity) and the adjacency matrix with elements au,u+1 mod n=1a_{u,u+1 \, \mathrm{mod} \, n} = 1 and zero otherwise. There are two main differences from the general graph case we have discussed before. First, each node uu has identical connectivity, to its neighbours u−1u-1 and u+1u+1, and thus structure-wise indistinguishable from the others.

Second and more importantly, since the nodes of the grid have a fixed ordering, we also have a fixed ordering of the neighbours: we can call u−1u-1 the ‘left neighbour’ and u+1u+1 the ‘right neighbour’. If we use our previous recipe for designing a equivariant function F\mathbf{F} using a local aggregation function ϕ\phi, we now have f(xu)=ϕ(xu−1,xu,xu+1)\mathbf{f}(\mathbf{x}_u) = \phi(\mathbf{x}_{u-1}, \mathbf{x}_{u}, \mathbf{x}_{u+1}) at every node of the grid: ϕ\phi does not need to be permutation invariant anymore. For a particular choice of a linear transformation ϕ(xu−1,xu,xu+1)=θ−1xu−1+θ0xu+θ1xu+1\phi(\mathbf{x}_{u-1}, \mathbf{x}_{u}, \mathbf{x}_{u+1}) = \theta_{-1}\mathbf{x}_{u-1} + \theta_0 \mathbf{x}_{u} + \theta_1 \mathbf{x}_{u+1}, we can write F(X)\mathbf{F}(\mathbf{X}) as a matrix product,

F(X)=[θ0θ1θ−1θ−1θ0θ1⋱⋱⋱θ−1θ0θ1θ1θ−1θ0][x0x1⋮xn−2xn−1]\mathbf{F}(\mathbf{X}) = \left[ \begin{array}{ccccc} \theta_0 & \theta_1 & & & \theta_{-1}\\ \theta_{-1} & \theta_0 & \theta_1 & & \\ & \ddots & \ddots & \ddots & \\ & & \theta_{-1} & \theta_0 & \theta_1\\ \theta_1 & & & \theta_{-1} & \theta_0 \end{array} \right] \left[ \begin{array}{ccc} \rule[.5ex]{2.5ex}{0.5pt} & \mathbf{x}_0 & \rule[.5ex]{2.5ex}{0.5pt} \\ \rule[.5ex]{2.5ex}{0.5pt} & \mathbf{x}_1 & \rule[.5ex]{2.5ex}{0.5pt} \\ & \vdots & \\ \rule[.5ex]{2.5ex}{0.5pt} & \mathbf{x}_{n-2} & \rule[.5ex]{2.5ex}{0.5pt} \\ \rule[.5ex]{2.5ex}{0.5pt} & \mathbf{x}_{n-1} & \rule[.5ex]{2.5ex}{0.5pt} \end{array} \right]

Note this very special multi-diagonal structure with one element repeated along each diagonal, sometimes referred to as “weight sharing” in the machine learning literature.

As we will see later, this makes the grid a homogeneous space.

(Figure not in the corpus: grid.png.)

More generally, given a vector θ=(θ0,⋯ ,θn−1)\boldsymbol{\theta} = (\theta_0, \cdots, \theta_{n-1}), a circulant matrix C(θ)=(θu−v mod n)\mathbf{C}(\boldsymbol{\theta}) = (\theta_{u-v \, \mathrm{mod} \, n}) is obtained by appending circularly shifted versions of the vector θ\boldsymbol{\theta}. Circulant matrices are synonymous with discrete convolutions,

(x⋆θ)u=∑v=0n−1xv mod n  θu−v mod n(\mathbf{x} \star \boldsymbol{\theta})_u = \sum_{v=0}^{n-1} x_{v \, \mathrm{mod}\, n} \,\, \theta_{u-v \, \mathrm{mod}\, n}

as one has C(θ)x=x⋆θ\mathbf{C}(\boldsymbol{\theta})\mathbf{x} = \mathbf{x} \star \boldsymbol{\theta}. A particular choice of θ=(0,1,0,⋯ ,0)⊤\boldsymbol{\theta}=(0,1,0,\cdots, 0)^\top yields a special circulant matrix that shifts vectors to the right by one position. This matrix is called the (right) shift or translation operator and denoted by S\mathbf{S}.

The left shift operator is given by S⊤\mathbf{S}^\top. Obviously, shifting left and then right (or vice versa) does not do anything, which means S\mathbf{S} is orthogonal: S⊤S=SS⊤=I\mathbf{S}^\top \mathbf{S} = \mathbf{S} \mathbf{S}^\top = \mathbf{I}.

Because of the periodic boundary conditions, it is a circular or cyclic convolution. In signal processing, θ\boldsymbol{\theta} is often referred to as the “filter,” and in CNNs, its coefficients are learnable.

Circulant matrices can be characterised by their commutativity property: the product of circulant matrices is commutative, i.e. C(θ)C(η)=C(η)C(θ)\mathbf{C}(\boldsymbol{\theta}) \mathbf{C}(\boldsymbol{\eta}) = \mathbf{C}(\boldsymbol{\eta}) \mathbf{C}(\boldsymbol{\theta}) for any θ\boldsymbol{\theta} and η\boldsymbol{\eta}. Since the shift is a circulant matrix, we get the familiar translation or shift equivariance of the convolution operator,

SC(θ)x=C(θ)Sx.\mathbf{S} \mathbf{C}(\boldsymbol{\theta}) \mathbf{x} = \mathbf{C}(\boldsymbol{\theta}) \mathbf{S} \mathbf{x}.

Such commutativity property should not be surprising, since the underlying symmetry group (the translation group) is Abelian. Moreover, the opposite direction appears to be true as well, i.e. a matrix is circulant iff it commutes with shift. This, in turn, allows us to define convolution as a translation equivariant linear operation, and is a nice illustration of the power of geometric priors and the overall philosophy of Geometric ML: convolution emerges from the first principle of translational symmetry.

Note that unlike the situation on sets and graphs, the number of linearly independent shift-equivariant functions (convolutions) grows with the size of the domain (since we have one degree of freedom in each diagonal of a circulant matrix). However, the scale separation prior guarantees filters can be local, resulting in the same Θ(1)\Theta(1)-parameter complexity per layer, as we will verify in Section 5.1 when discussing the use of these principles in the implementation of Convolutional Neural Network architectures.

Derivation of the discrete Fourier transform. We have already mentioned the Fourier transform and its connection to convolution: the fact that the Fourier transform diagonalises the convolution operation is an important property used in signal processing to perform convolution in the frequency domain as an element-wise product of the Fourier transforms. However, textbooks usually only state this fact, rarely explaining where the Fourier transform comes from and what is so special about the Fourier basis. Here we can show it, demonstrating once more how foundational are the basic principles of symmetry.

For this purpose, recall a fact from linear algebra that (diagonalisable) matrices are joinly diagonalisable iff they mutually commute. In other words, there exists a common eigenbasis for all the circulant matrices, in which they differ only by their eigenvalues. We can therefore pick one circulant matrix and compute its eigenvectors—we are assured that these will be the eigenvectors of all other circulant matrices as well. It is convenient to pick the shift operator, for which the eigenvectors happen to be the discrete Fourier basis

φk=1n(1,e2πikn,e4πikn,⋯ ,e2πi(n−1)kn)⊤,k=0,1,⋯ ,n−1,\boldsymbol{\varphi}_k = \frac{1}{\sqrt{n}}\left (1, e^{ \frac{2\pi \mathrm{i} k}{n}}, e^{ \frac{4\pi \mathrm{i} k}{n} }, \cdots , e^{ \frac{2\pi \mathrm{i} (n-1)k}{n} } \right)^\top, k = 0, 1, \cdots, n-1,

which we can arrange into an n×nn\times n Fourier matrix Φ=(φ0,⋯ ,φn−1)\boldsymbol{\Phi} = (\boldsymbol{\varphi}_0, \cdots, \boldsymbol{\varphi}_{n-1}). Multiplication by Φ∗\boldsymbol{\Phi}^* gives the Discrete Fourier Transform (DFT), and by Φ\boldsymbol{\Phi} the inverse DFT,

x^k=1n∑u=0n−1xue−2πikunxu=1n∑k=0n−1x^ke+2πikun.\hat{x}_k = \frac{1}{\sqrt{n}}\sum_{u = 0}^{n-1}x_u e^{-\frac{2\pi \mathrm{i} k u}{n} } {x}_u = \frac{1}{\sqrt{n}} \sum_{k = 0}^{n-1}\hat{x}_k e^{+\frac{2\pi \mathrm{i} k u}{n} }.

Note that the eigenvectors are complex, so we need to take complex conjugation when transposing Φ\boldsymbol{\Phi}.

S\mathbf{S} is orthogonal but non-symmetric, hence, its eigenvectors are orthogonal but the eigenvalues are complex (roots of unity).

We must additionally assume distinct eigenvalues, otherwise there might be multiple possible diagonalisations. This assumption is satisfied with our choice of S\mathbf{S}.

Since all circulant matrices are jointly diagonalisable, they are also diagonalised by the Fourier transform and differ only in their eigenvalues. Since the eigenvalues of the circulant matrix C(θ)\mathbf{C}(\boldsymbol{\theta}) are the Fourier transform of the filter (see e.g. Bamieh (2018)), θ^=Φ∗θ\hat{\boldsymbol{\theta}} = \boldsymbol{\Phi}^* \boldsymbol{\theta}, we obtain the Convolution Theorem:

C(θ)x=Φ[θ^0⋱θ^n−1]Φ∗x=Φ(θ^⊙x^)\mathbf{C}(\boldsymbol{\theta}) \mathbf{x} = \boldsymbol{\Phi} \left[ \begin{array}{ccc} \hat{\theta}_0 & & \\ & \ddots & \\ & & \hat{\theta}_{n-1} \end{array} \right]\boldsymbol{\Phi}^*\mathbf{x} = \boldsymbol{\Phi} (\hat{\boldsymbol{\theta}} \odot \hat{\mathbf{x}} )

Since the Fourier transform is an orthogonal matrix (Φ∗Φ=I\boldsymbol{\Phi}^* \boldsymbol{\Phi} = \mathbf{I}), geometrically it acts as a change of the system of coordinates that amounts to an nn-dimensional rotation. In this system of coordinates (“Fourier domain”), the action of a circulant C\mathbf{C} matrix becomes element-wise product.

Because the Fourier matrix Φ\boldsymbol{\Phi} has a special algebraic structure, the products Φ⋆x\boldsymbol{\Phi}^\star \mathbf{x} and Φx\boldsymbol{\Phi} \mathbf{x} can be computed with O(nlog⁡n)\mathcal{O}(n \log n) complexity using a Fast Fourier Transform (FFT) algorithm. This is one of the reasons why frequency-domain filtering is so popular in signal processing; furthermore, the filter is typically designed directly in the frequency domain, so the Fourier transform θ^\hat{\boldsymbol{\theta}} is never explicitly computed.

Besides the didactic value of the derivation of the Fourier transform and convolution we have done here, it provides a scheme to generalise these concepts to graphs. Realising that the adjacency matrix of the ring graph is exactly the shift operator, one can can develop the graph Fourier transform and an analogy of the convolution operator by computing the eigenvectors of the adjacency matrix (see e.g. Sandryhaila and Moura (2013)). Early attempts to develop graph neural networks by analogy to CNNs, sometimes termed ‘spectral GNNs’, exploited this exact blueprint. We will see in Sections 4.4–4.6 that this analogy has some important limitations. The first limitation comes from the fact that a grid is fixed, and hence all signals on it can be represented in the same Fourier basis. In contrast, on general graphs, the Fourier basis depends on the structure of the graph. Hence, we cannot directly compare Fourier transforms on two different graphs — a problem that translated into a lack of generalisation in machine learning problems. Secondly, multi-dimensional grids, which are constructed as tensor products of one-dimensional grids, retain the underlying structure: the Fourier basis elements and the corresponding frequencies (eigenvalues) can be organised in multiple dimensions. In images, for example, we can naturally talk about horizontal and vertical frequency and filters have a notion of direction. On graphs, the structure of the Fourier domain is one-dimensional, as we can only organise the Fourier basis functions by the magnitude of the corresponding frequencies. As a result, graph filters are oblivious of direction or isotropic.

In graph signal processing, the eigenvectors of the graph Laplacian are often used as an alternative of the adjacency matrix to construct the graph Fourier transform, see Shuman et al. (2013). On grids, both matrices have joint eigenvectors, but on graphs they results in somewhat different though related constructions.

Derivation of the continuous Fourier transform. For the sake of completeness, and as a segway for the next discussion, we repeat our analysis in the continuous setting. Like in Section 3.4, consider functions defined on Ω=R\Omega = \mathbb{R} and the translation operator (Svf)(u)=f(u−v)(S_v f)(u) = f(u-v) shifting ff by some position vv. Applying SvS_v to the Fourier basis functions φξ(u)=eiξu\varphi_\xi(u) = e^{\mathrm{i} \xi u} yields, by associativity of the exponent,

Sveiξu=eiξ(u−v)=e−iξveiξu,S_v e^{\mathrm{i}\xi u} = e^{\mathrm{i}\xi (u-v)} = e^{-\mathrm{i}\xi v} e^{\mathrm{i}\xi u},

i.e., φuξ(u)\varphi{u}_\xi(u) is the complex eigenvector of SvS_v with the complex eigenvalue e−iξve^{-\mathrm{i}\xi v} – exactly mirroring the situation we had in the discrete setting. Since SvS_v is a unitary operator (i.e., ∥Svx∥p=∥x∥p\| S_v x \|_p = \| x \|_p for any pp and x∈Lp(R)x \in L_p(\mathbb{R})), any eigenvalue λ\lambda must satisfy ∣λ∣=1|\lambda|=1, which corresponds precisely to the eigenvalues e−iξve^{-i\xi v} found above. Moreover, the spectrum of the translation operator is simple, meaning that two functions sharing the same eigenvalue must necessarily be collinear. Indeed, suppose that Svf=e−iξ0vfS_v f = e^{-\mathrm{i} \xi_0 v} f for some ξ0\xi_0. Taking the Fourier transform in both sides, we obtain

∀ ξ , e−iξvf^(ξ)=e−iξ0vf^(ξ) ,\forall ~\xi~,~e^{-\mathrm{i} \xi v} \hat{f}(\xi) = e^{-\mathrm{i} \xi_0 v} \hat{f}(\xi)~,

which implies that f^(ξ)=0\hat{f}(\xi)=0 for ξ≠ξ0\xi \neq \xi_0, thus f=αφξ0f = \alpha \varphi_{\xi_0}.

For a general linear operator CC that is translation equivariant (SvC=CSvS_v C = C S_v), we have

SvCeiξu=CSveiξu=e−iξvCeiξu,S_v C e^{\mathrm{i}\xi u} = C S_v e^{\mathrm{i}\xi u} = e^{-\mathrm{i}\xi v} C e^{\mathrm{i}\xi u},

implying that CeiξuC e^{\mathrm{i}\xi u} is also an eigenfunction of SvS_v with eigenvalue e−iξve^{-\mathrm{i}\xi v}, from where it follows from the simplicity of spectrum that Ceiξu=βφξ(u)C e^{\mathrm{i}\xi u} = \beta \varphi_{\xi}(u); in other words, the Fourier basis is the eigenbasis of all translation equivariant operators. As a result, CC is diagonal in the Fourier domain and can be expressed as Ceiξu=p^C(ξ)eiξuC e^{\mathrm{i}\xi u} = \hat{p}_{C}(\xi) e^{\mathrm{i}\xi u}, where p^C(ξ)\hat{p}_{C}(\xi) is a transfer function acting on different frequencies ξ\xi. Finally, for an arbitrary function x(u)x(u), by linearity,

Eigenfunction is synonymous with ‘eigenvector’ and is used when referring to eigenvectors of continuous operators.

(Cx)(u)=C∫−∞+∞x^(ξ)eiξudξ=∫−∞+∞x^(ξ)p^C(ξ)eiξudξ=∫−∞+∞pC(v)x(u−v)dv =(x⋆pC)(u),\begin{aligned}(C x) (u) &=& C \int_{-\infty}^{+\infty} \hat{x}(\xi) e^{\mathrm{i} \xi u} \mathrm{d}\xi = \int_{-\infty}^{+\infty} \hat{x}(\xi) \hat{p}_C(\xi) e^{\mathrm{i} \xi u} \mathrm{d}\xi\\ &=& \int_{-\infty}^{+\infty} p_C(v) x(u-v) \mathrm{d}v~ = (x \star p_C)(u),\end{aligned}

where pC(u)p_C(u) is the inverse Fourier transform of p^C(ξ)\hat{p}_C(\xi). It thus follows that every linear translation equivariant operator is a convolution.

The spectral characterisation of the translation group is a particular case of a more general result in Functional Analysis, the Stone’s Theorem, which derives an equivalent characterisation for any one-parameter unitary group.

Our discussion of grids highlighted how shifts and convolutions are intimately connected: convolutions are linear shift-equivariant operations, and vice versa, any shift-equivariant linear operator is a convolution. Furthermore, shift operators can be jointly diagonalised by the Fourier transform. As it turns out, this is part of a far larger story: both convolution and the Fourier transform can be defined for any group of symmetries that we can sum or integrate over.

Technically, we need the group to be locally compact, so that there exists a left-invariant Haar measure. Integrating with respect to this measure, we can “shift” the integrand by any group element and obtain the same result, just as how we have

∫−∞+∞x(u)du=∫−∞+∞x(u−v)du\int_{-\infty}^{+\infty} x(u) \mathrm{d}u = \int_{-\infty}^{+\infty} x(u - v) \mathrm{d}u

for functions x:R→Rx : \mathbb{R} \rightarrow \mathbb{R}.

Consider the Euclidean domain Ω=R\Omega = \mathbb{R}. We can understand the convolution as a pattern matching operation: we match shifted copies of a filter θ(u)\theta(u) with an input signal x(u)x(u). The value of the convolution (x⋆θ)(u)(x \star \theta)(u) at a point uu is the inner product of the signal xx with the filter shifted by uu,

(x⋆θ)(u)=⟨x,Suθ⟩=∫Rx(v)θ(u+v)dv.(x \star \theta)(u) = \langle x, S_u \theta \rangle = \int_\mathbb{R} x(v)\theta(u + v) \mathrm{d}v.

Note that in this case uu is both a point on the domain Ω=R\Omega = \mathbb{R} and also an element of the translation group, which we can identify with the domain itself, G=R{\mathfrak{G}} = \mathbb{R}. We will now show how to generalise this construction, by simply replacing the translation group by another group G{\mathfrak{G}} acting on Ω\Omega.

Note that what we define here is not convolution but cross-correlation, which is tacitly used in deep learning under the name ‘convolution’. We do it for consistency with the following discussion, since in our notation (ρ(g)x)(u)=x(u−v)(\rho({\mathfrak{g}})x)(u) = x(u-v) and (ρ(g−1)x)(u)=x(u+v)(\rho({\mathfrak{g}}^{-1})x)(u) = x(u+v).

Group convolution. As discussed in Section 3, the action of the group G{\mathfrak{G}} on the domain Ω\Omega induces a representation ρ\rho of G{\mathfrak{G}} on the space of signals X(Ω)\mathcal{X}(\Omega) via ρ(g)x(u)=x(g−1u)\rho({\mathfrak{g}}) x(u) = x({\mathfrak{g}}^{-1} u). In the above example, G{\mathfrak{G}} is the translation group whose elements act by shifting the coordinates, u+vu+v, whereas ρ(g)\rho({\mathfrak{g}}) is the shift operator acting on signals as (Svx)(u)=x(u−v)(S_v x)(u) = x(u-v). Finally, in order to apply a filter to the signal, we invoke our assumption of X(Ω)\mathcal{X}(\Omega) being a Hilbert space, with an inner product

⟨x,θ⟩=∫Ωx(u)θ(u)du,\langle x, \theta \rangle = \int_{\Omega} x(u) \theta(u) \mathrm{d}u,

where we assumed, for the sake of simplicity, scalar-valued signals, X(Ω,R)\mathcal{X}(\Omega,\mathbb{R}); in general the inner product has the form of equation (2).

The integration is done w.r.t. an invariant measure μ\mu on Ω\Omega. In case μ\mu is discrete, this means summing over Ω\Omega.

Having thus defined how to transform signals and match them with filters, we can define the group convolution for signals on Ω\Omega,

(x⋆θ)(g)=⟨x,ρ(g)θ⟩=∫Ωx(u)θ(g−1u)du.(14)(x \star \theta)({\mathfrak{g}}) = \langle x, \rho({\mathfrak{g}}) \theta \rangle = \int_\Omega x(u) \theta({\mathfrak{g}}^{-1} u) \mathrm{d}u. \tag{14}

Note that x⋆θx \star \theta takes values on the elements g{\mathfrak{g}} of our group G{\mathfrak{G}} rather than points on the domain Ω\Omega. Hence, the next layer, which takes x⋆θx \star \theta as input, should act on signals defined on to the group G{\mathfrak{G}}, a point we will return to shortly.

Just like how the traditional Euclidean convolution is shift-equivariant, the more general group convolution is G{\mathfrak{G}}-equivariant. The key observation is that matching the signal xx with a g{\mathfrak{g}}-transformed filter ρ(g)θ\rho({\mathfrak{g}}) \theta is the same as matching the inverse transformed signal ρ(g−1)x\rho({\mathfrak{g}}^{-1}) x with the untransformed filter θ\theta. Mathematically, this can be expressed as ⟨x,ρ(g)θ⟩=⟨ρ(g−1)x,θ⟩\langle x, \rho({\mathfrak{g}}) \theta \rangle = \langle \rho({\mathfrak{g}}^{-1}) x, \theta \rangle. With this insight, G{\mathfrak{G}}-equivariance of the group convolution (18) follows immediately from its definition and the defining property ρ(h−1)ρ(g)=ρ(h−1g)\rho({\mathfrak{h}}^{-1}) \rho({\mathfrak{g}}) = \rho({\mathfrak{h}}^{-1} {\mathfrak{g}}) of group representations,

(ρ(h)x⋆θ)(g)=⟨ρ(h)x,ρ(g)θ⟩=⟨x,ρ(h−1g)θ⟩=ρ(h)(x⋆θ)(g).(\rho({\mathfrak{h}}) x \star \theta)({\mathfrak{g}}) = \langle \rho({\mathfrak{h}}) x, \rho({\mathfrak{g}}) \theta \rangle = \langle x, \rho({\mathfrak{h}}^{-1} {\mathfrak{g}}) \theta \rangle = \rho({\mathfrak{h}}) (x \star \theta)({\mathfrak{g}}).

Let us look at some examples. The case of one-dimensional grid we have studied above is obtained with the choice Ω=Zn={0,…,n−1}\Omega = \mathbb{Z}_n = \{0, \ldots, n-1\} and the cyclic shift group G=Zn{\mathfrak{G}} = \mathbb{Z}_n. The group elements in this case are cyclic shifts of indices, i.e., an element g∈G{\mathfrak{g}} \in {\mathfrak{G}} can be identified with some u=0,⋯ ,n−1u = 0,\cdots, n-1 such that g.v=v−u mod n{\mathfrak{g}}. v = v - u \, \mathrm{mod} \, n, whereas the inverse element is g−1.v=v+u mod n{\mathfrak{g}}^{-1}. v = v + u \, \mathrm{mod} \, n. Importantly, in this example the elements of the group (shifts) are also elements of the domain (indices). We thus can, with some abuse of notation, identify the two structures (i.e., Ω=G\Omega = {\mathfrak{G}}); our expression for the group convolution in this case

(x⋆θ)(g)=∑v=0n−1xv θg−1v,(x \star \theta)({\mathfrak{g}}) = \sum_{v=0}^{n-1} x_v \, \theta_{{\mathfrak{g}}^{-1} v},

leads to the familiar convolution (x⋆θ)u=∑v=0n−1xv θv+u  mod n\displaystyle (x\star \theta)_u = \sum_{v=0}^{n-1} x_v \, \theta_{v + u\,\, \mathrm{mod} \, n}.

Actually here again, this is cross-correlation.

Spherical convolution. Now consider

the two-dimensional sphere Ω=S2\Omega = \mathbb{S}^2 with the group of rotations, the special orthogonal group G=SO(3){\mathfrak{G}} = \mathrm{SO}(3). While chosen for pedagogical reason, this example is actually very practical and arises in numerous applications. In astrophysics, for example, observational data often naturally has spherical geometry. Furthermore, spherical symmetries are very important in applications in chemistry when modeling molecules and trying to predict their properties, e.g. for the purpose of virtual drug screening.

gdl-fig-planck-cmb-sphere.png

Cosmic microwave background radiation, captured by the Planck space observatory, is a signal on S2\mathbb{S}^2.

Representing a point on the sphere as a three-dimensional unit vector u:∥u∥=1\mathbf{u} : \|\mathbf{u}\|=1, the action of the group can be represented as a 3×33\times 3 orthogonal matrix R\mathbf{R} with det(R)=1\mathrm{det}(\mathbf{R}) = 1. The spherical convolution can thus be written as the inner product between the signal and the rotated filter,

(x⋆θ)(R)=∫S2x(u)θ(R−1u)du.(x\star \theta)(\mathbf{R}) = \int_{\mathbb{S}^2} x(\textbf{u}) \theta(\mathbf{R}^{-1}\mathbf{u}) \mathrm{d}\mathbf{u}.

gdl-fig-so3-action-sphere.png

The action of SO(3)\mathrm{SO}(3) group on S2\mathbb{S}^2. Note that three types of rotation are possible; the SO(3)\mathrm{SO}(3) is a three-dimensional manifold.

The first thing to note is than now the group is not identical to the domain: the group SO(3)\mathrm{SO}(3) is a Lie group that is in fact a three-dimensional manifold, whereas S2\mathbb{S}^2 is a two-dimensional one. Consequently, in this case, unlike the previous example, the convolution is a function on SO⁡(3)\operatorname{SO}(3) rather than on Ω\Omega.

This has important practical consequences: in our Geometric Deep Learning blueprint, we concatenate multiple equivariant maps (“layers” in deep learning jargon) by applying a subsequent operator to the output of the previous one. In the case of translations, we can apply multiple convolutions in sequence, since their outputs are all defined on the same domain Ω\Omega. In the general setting, since x⋆θx \star \theta is a function on G{\mathfrak{G}} rather than on Ω\Omega, we cannot use exactly the same operation subsequently—it means that the next operation has to deal with signals on G{\mathfrak{G}}, i.e. x∈X(G)x \in \mathcal{X}({\mathfrak{G}}). Our definition of group convolution allows this case: we take as domain Ω=G\Omega = {\mathfrak{G}} acted on by G{\mathfrak{G}} itself via the group action (g,h)↦gh({\mathfrak{g}}, {\mathfrak{h}}) \mapsto {\mathfrak{g}} {\mathfrak{h}} defined by the composition operation of G{\mathfrak{G}}. This yields the representation ρ(g)\rho({\mathfrak{g}}) acting on x∈X(G)x \in \mathcal{X}({\mathfrak{G}}) by (ρ(g)x)(h)=x(g−1h)(\rho({\mathfrak{g}}) x)({\mathfrak{h}}) = x({\mathfrak{g}}^{-1}{\mathfrak{h}}). Just like before, the inner product is defined by integrating the point-wise product of the signal and the filter over the domain, which now equals Ω=G\Omega = {\mathfrak{G}}. In our example of spherical convolution, a second layer of convolution would thus have the form

((x⋆θ)⋆ϕ)(R)=∫SO(3)(x⋆θ)(Q)ϕ(R−1Q)dQ.((x\star \theta)\star \phi)(\mathbf{R}) = \int_{\mathrm{SO}(3)} (x\star \theta)(\textbf{Q}) \phi(\mathbf{R}^{-1}\mathbf{Q}) \mathrm{d}\mathbf{Q}.

The representation of G{\mathfrak{G}} acting on functions defined on G{\mathfrak{G}} itself is called the regular representation of G{\mathfrak{G}}.

Since convolution involves inner product that in turn requires integrating over the domain Ω\Omega, we can only use it on domains Ω\Omega that are small (in the discrete case) or low-dimensional (in the continuous case). For instance, we can use convolutions on the plane R2\mathbb{R}^2 (two dimensional) or special orthogonal group SE⁡(3)\operatorname{SE}(3) (three dimensional), or on the finite set of nodes of a graph (nn-dimensional), but we cannot in practice perform convolution on the group of permutations Σn\Sigma_n, which has n!n! elements. Likewise, integrating over higher-dimensional groups like the affine group (containing translations, rotations, shearing and scaling, for a total of 66 dimensions) is not feasible in practice. Nevertheless, as we have seen in Section 5.3, we can still build equivariant convolutions for large groups G{\mathfrak{G}} by working with signals defined on low-dimensional spaces Ω\Omega on which G{\mathfrak{G}} acts. Indeed, it is possible to show that any equivariant linear map f:X(Ω)→X(Ω′)f : \mathcal{X}(\Omega) \rightarrow \mathcal{X}(\Omega') between two domains Ω,Ω′\Omega, \Omega' can be written as a generalised convolution similar to the group convolution discussed here.

Second, we note that the Fourier transform we derived in the previous section from the shift-equivariance property of the convolution can also be extended to a more general case by projecting the signal onto the matrix elements of irreducible representations of the symmetry group. We will discuss this in future work. In the case of SO⁡(3)\operatorname{SO}(3) studied here, this gives rise to the spherical harmonics and Wigner D-functions, which find wide applications in quantum mechanics and chemistry.

Finally, we point to the assumption that has so far underpinned our discussion in this section: whether Ω\Omega was a grid, plane, or the sphere, we could transform every point into any other point, intuitively meaning that all the points on the domain “look the same.” A domain Ω\Omega with such property is called a homogeneous space, where for any u,v∈Ωu, v\in \Omega there exists g∈G\mathfrak{g}\in{\mathfrak{G}} such that g.u=v\mathfrak{g}.u = v. In the next section we will try to relax this assumption.

The additional properties, e.u=u\mathfrak{e}.u = u and g(h.u)=(gh).u\mathfrak{g} (\mathfrak{h}. u) = (\mathfrak{gh}). u are tacitly assumed here.

In our last example, the sphere S2\mathbb{S}^2 was a manifold, albeit a special one with a global symmetry group due to its homogeneous structure. Unfortunately, this is not the case for the majority of manifolds, which typically do not have global symmetries. In this case, we cannot straightforwardly define an action of G{\mathfrak{G}} on the space of signals on Ω\Omega and use it to ‘slide’ filters around in order to define a convolution as a direct generalisation of the classical construction. Nevertheless, manifolds do have two types of invariance that we will explore in this section: transformations preserving metric structure and local reference frame change.

As well as the group of rotations SO(3)\mathrm{SO}(3), by virtue of it being a Lie group.

While for many machine learning readers manifolds might appear as somewhat exotic objects, they are in fact very common in various scientific domains. In physics, manifolds play a central role as the model of our Universe — according to Einstein’s General Relativity Theory, gravity arises from the curvature of the space-time, modeled as a pseudo-Riemannian manifold. In more ‘prosaic’ fields such as computer graphics and vision, manifolds are a common mathematical model of 3D shapes. The broad spectrum of applications of such models ranges from virtual and augmented reality and special effects obtained by means of ‘motion capture’ to structural biology dealing with protein interactions that stick together (‘bind’ in chemical jargon) like pieces of 3D puzzle. The common denominator of these applications is the use of a manifold to represent the boundary surface of some 3D object.

The term ‘3D’ is somewhat misleading and refers to the embedding space. The shapes themselves are 2D manifolds (surfaces).

There are several reasons why such models are convenient. First, they offer a compact description of the 3D object, eliminating the need to allocate memory to ‘empty space’ as is required in grid-based representations. Second, they allow to ignore the internal structure of the object. This is a handy property for example in structural biology where the internal folding of a protein molecule is often irrelevant for interactions that happen on the molecular surface. Third and most importantly, one often needs to deal with deformable objects that undergo non-rigid deformations. Our own body is one such example, and many applications in computer graphics and vision, such as the aforementioned motion capture and virtual avatars, require deformation invariance. Such deformations can be modelled very well as transformations that preserve the intrinsic structure of a (Riemannian) manifold, namely the distances between points measured along the manifold, without regard to the way the manifold is embedded in the ambient space.

gdl-fig-human-nearly-isometric.png

The human body is an example of a non-rigid object deforming in a nearly-isometric way.

We should emphasise that manifolds fall under the setting of varying domains in our Geometric Deep Learning blueprint, and in this sense are similar to graphs. We will highlight the importance of the notion of invariance to domain deformations – what we called ‘geometric stability’ in Section 3.3. Since differential geometry is perhaps less familiar to the machine learning audience, we will introduce the basic concepts required for our discussion and refer the reader to Penrose (2005) for their detailed exposition.

Riemannian manifolds.

Since the formal definition of a manifold is somewhat involved, we prefer to provide an intuitive picture at the expense of some precision. In this context, we can think of a (differentiable or smooth) manifold as a smooth multidimensional curved surface that is locally Euclidean, in the sense that any small neighbourhood around any point it can be deformed to a neighbourhood of Rs\mathbb{R}^s; in this case the manifold is said to be ss-dimensional. This allows us to locally approximate the manifold around point uu through the tangent space TuΩT_u\Omega. The latter can be visualised by thinking of a prototypical two-dimensional manifold, the sphere, and attaching a plane to it at a point: with sufficient zoom, the spherical surface will seem planar (Figure 11). The collection of all tangent spaces is called the tangent bundle, denoted TΩT\Omega; we will dwell on the concept of bundles in more detail in Section 4.5.

Formally, the tangent bundle is the disjoint union TΩ=⨆u∈ΩTuΩ\displaystyle T\Omega = \bigsqcup_{u\in \Omega} T_u\Omega.

By ‘smooth’ we mean differentiable suffient number of times, which is tacitly assumed for convenience. ‘Deformed’ here means diffeomorphic, i.e., we can map between the two neighbourhoods using a smooth and invertible map with smooth inverse.

A tangent vector, which we denote by X∈TuΩX\in T_u\Omega, can be thought of as a local displacement from point uu. In order to measure the lengths of tangent vectors and angles between them,

we need to equip the tangent space with additional structure, expressed as a positive-definite bilinear function gu:TuΩ×TuΩ→Rg_u: T_u\Omega \times T_u\Omega \rightarrow \mathbb{R} depending smoothly on uu. Such a function is called a Riemannian metric, in honour of Bernhardt Riemann who introduced the concept in 1856, and can be thought of as an inner product on the tangent space, ⟨X,Y⟩u=gu(X,Y)\langle X, Y \rangle_u = g_u(X,Y), which is an expression of the angle between any two tangent vectors X,Y∈TuΩX, Y \in T_u\Omega. The metric also induces a norm ∥X∥u=gu1/2(X,X)\| X \|_u = g_u^{1/2}(X,X) allowing to locally measure lengths of vectors.

A bilinear function gg is said to be positive-definite if g(X,X)>0g(X,X)>0 for any non-zero vector X≠0X\neq 0. If gg is expressed as a matrix G\mathbf{G}, it means G≻0\mathbf{G} \succ 0. The determinant ∣G∣1/2|\mathbf{G}|^{1/2} provides a local volume element, which does not depend on the choice of the basis.

We must stress that tangent vectors are abstract geometric entities that exists in their own right and are coordinate-free. If we are to express a tangent vector XX numerically as an array of numbers, we can only represent it as a list of coordinates x=(x1,⋯ ,xs)\mathbf{x}=(x_1, \cdots, x_s) relative to some local basis {X1,⋯Xs}⊆TuΩ\{ X_1, \cdots X_s \} \subseteq T_u\Omega. Similarly, the metric can be expressed as an s×ss\times s matrix G\mathbf{G} with elements gij=gu(Xi,Xj)g_{ij} = g_u(X_i,X_j) in that basis. We will return to this point in Section 4.5.

Unfortunately, too often vectors are identified with their coordinates. To emphasise this important difference, we use XX to denote a tangent vector and x\mathbf{x} to denote its coordinates.

gdl-fig-11-riemannian-sphere.png

Figure 11: Basic notions of Riemannian geometry illustrated on the example of the two-dimensional sphere S2={u∈R3:∥u∥=1}\mathbb{S}^2 = \{\mathbf{u}\in \mathbb{R}^3 : \|\mathbf{u}\|=1 \}, realised a subset (sub-manifold) of R3\mathbb{R}^3. The tangent space to the sphere is given as TuS2={x∈R3:x⊤u=0}T_\mathbf{u}\mathbb{S}^2 = \{ \mathbf{x}\in \mathbb{R}^3 : \mathbf{x}^\top \mathbf{u} = 0\} and is a 2D plane – hence this is a 2-dimensional manifold. The Riemannian metric is simply the Euclidean inner product restricted to the tangent plane, ⟨x,y⟩u=x⊤y\langle \mathbf{x}, \mathbf{y}\rangle_\mathbf{u} = \mathbf{x}^\top \mathbf{y} for any x,x∈TuS2\mathbf{x},\mathbf{x}\in T_\mathbf{u}\mathbb{S}^2. The exponential map is given by exp⁡u(x)=cos⁡(∥x∥)u+sin⁡(∥x∥)∥x∥x\exp_\mathbf{u}(\mathbf{x}) = \cos(\| \mathbf{x}\|)\mathbf{u} + \frac{\sin(\| \mathbf{x}\|)}{\|\mathbf{x}\|} \mathbf{x}, for x∈TuS2\mathbf{x} \in T_\mathbf{u}\mathbb{S}^2. Geodesics are great arcs of length d(u,v)=cos⁡−1(u⊤v)d(\mathbf{u},\mathbf{v}) = \cos^{-1}(\mathbf{u}^\top \mathbf{v}).

A manifold equipped with a metric is called a Riemannian manifold and properties that can be expressed entirely in terms of the metric are said to be intrinsic. This is a crucial notion for our discussion, as according to our template, we will be seeking to construct functions acting on signals defined on Ω\Omega that are invariant to metric-preserving transformations called isometries that deform the manifold without affecting its local structure. If such functions can be expressed in terms of intrinsic quantities, they are automatically guaranteed to be isometry-invariant and thus unaffected by isometric deformations. These results can be further extended to dealing with approximate isometries; this is thus an instance of the geometric stability (domain deformation) discussed in our blueprint.

gdl-fig-origami-isometric-embeddings.png

This result is known as the Embedding Theorem, due to Nash (1956). The art of origami is a manifestation of different isometric embeddings of the planar surface in R3\mathbb{R}^3 (Figure: Shutterstock/300 librarians).

While, as we noted, the definition of a Riemannian manifold does not require a geometric realisation in any space, it turns out that any smooth Riemannian manifold can be realised as a subset of a Euclidean space of sufficiently high dimension (in which case it is said to be ‘embedded’ in that space) by using the structure of the Euclidean space to induce a Riemannian metric. Such an embedding is however not necessarily unique – as we will see, two different isometric realisations of a Riemannian metric are possible.

Scalar and Vector fields. Since we are interested in signals defined on Ω\Omega, we need to provide the proper notion of scalar- and vector-valued functions on manifolds. A (smooth) scalar field is a function of the form x:Ω→Rx: \Omega\rightarrow \mathbb{R}. Scalar fields form a vector space X(Ω,R)\mathcal{X}(\Omega, \mathbb{R}) that can be equipped with the inner product

gdl-fig-scalar-field.png

Example of a scalar field.

⟨x,y⟩=∫Ωx(u)y(u)du,(15)\langle x, y \rangle = \int_\Omega x(u) y(u) \mathrm{d}u, \tag{15}

where du\mathrm{d}u is the volume element induced by the Riemannian metric. A (smooth) tangent vector field is a function of the form X:Ω→TΩX: \Omega \rightarrow T\Omega assigning to each point a tangent vector in the respective tangent space, u↦X(u)∈TuΩu\mapsto X(u)\in T_u\Omega. Vector fields also form a vector space X(Ω,TΩ)\mathcal{X}(\Omega, T\Omega) with the inner product defined through the Riemannian metric,

gdl-fig-vector-field.png

Example of a vector field. The fields are typically assumed to be of the same regularity class (smoothness) as the manifold itself.

⟨X,Y⟩=∫Ωgu(X(u),Y(u))du.(16)\langle X, Y \rangle = \int_\Omega g_u(X(u), Y(u)) \mathrm{d}u. \tag{16}

Intrinsic gradient. Another way to think of (and actually define) vector fields is as a generalised notion of derivative. In classical calculus, one can locally linearise a (smooth) function through the differential dx(u)=x(u+du)−x(u)\mathrm{d}x(u) = x(u+\mathrm{d}u) - x(u), which provides the change of the value of the function xx at point uu as a result of an inifinitesimal displacement du\mathrm{d}u. However, in our case the naïve use of this definition is impossible, since expressions of the form “u+duu+\mathrm{d}u” are meaningless on manifolds due to the lack of a global vector space structure.

The solution is to use tangent vectors as a model of local infinitesimal displacement. Given a smooth scalar field x∈X(Ω,R)x\in \mathcal{X}(\Omega,\mathbb{R}), we can think of a (smooth) vector field as a linear map Y:X(Ω,R)→X(Ω,R)Y:\mathcal{X}(\Omega,\mathbb{R}) \rightarrow \mathcal{X}(\Omega,\mathbb{R}) satisfying the properties of a derivation: Y(c)=0Y(c) = 0 for any constant cc (corresponding to the intuition that constant functions have vanishing derivatives), Y(x+z)=Y(x)+Y(z)Y(x+z) = Y(x) + Y(z) (linearity), and Y(xz)=Y(x)z+xY(z)Y(xz) = Y(x)z + xY(z) (product or Leibniz rule), for any smooth scalar fields x,z∈X(Ω,R)x,z \in \mathcal{X}(\Omega,\mathbb{R}). It can be shown that one can use these properties to define vector fields axiomatically. The differential dx(Y)=Y(x)\mathrm{d}x(Y) = Y(x) can be viewed as an operator (u,Y)↦Y(x)(u,Y) \mapsto Y(x) and interpreted as follows: the change of xx as the result of displacement Y∈TuΩY \in T_u\Omega at point uu is given by dux(Y)\mathrm{d}_ux(Y). It is thus an extension of the classical notion of directional derivative.

Importantly, this construction does not use the Riemannian metric whatsoever and can thus can be extended to a more general construction of bundles discussed in the Section 4.5.

Alternatively, at each point uu the differential can be regarded as a linear functional dxu:TuΩ→R\mathrm{d}x_u : T_u\Omega \rightarrow \mathbb{R} acting on tangent vectors X∈TuΩX \in T_u\Omega. Linear functionals on a vector space are called dual vectors or covectors; if in addition we are given an inner product (Riemannian metric), a dual vector can always be represented as

dxu(X)=gu(∇x(u),X).\mathrm{d}x_u (X) = g_u(\nabla x(u), X).

The representation of the differential at point uu is a tangent vector ∇x(u)∈TuΩ\nabla x(u) \in T_u \Omega called the (intrinsic) gradient of xx; similarly to the gradient in classical calculus, it can be thought of as the direction of the steepest increase of xx. The gradient considered as an operator ∇:X(Ω,R)→X(Ω,TΩ)\nabla : \mathcal{X}(\Omega,\mathbb{R}) \rightarrow \mathcal{X}(\Omega,T\Omega) assigns at each point x(u)↦∇x(u)∈TuΩx(u) \mapsto \nabla x(u) \in T_u \Omega; thus, the gradient of a scalar field xx is a vector field ∇x\nabla x.

This is a consequence of the Riesz-Fréchet Representation Theorem, by which every dual vector can be expressed as an inner product with a vector.

Geodesics.

Now consider a smooth curve γ:[0,T]→Ω\gamma : [0,T] \rightarrow \Omega on the manifold with endpoints u=γ(0)u = \gamma(0) and v=γ(T)v = \gamma(T). The derivative of the curve at point tt is a tangent vector γ′(t)∈Tγ(t)Ω\gamma'(t) \in T_{\gamma(t)}\Omega called the velocity vector. Among all the curves connecting points uu and vv, we are interested in those of minimum length, i.e., we are seeking γ\gamma minimising the length functional

ℓ(γ)=∫0T∥γ′(t)∥γ(t)dt=∫0Tgγ(t)1/2(γ′(t),γ′(t))dt.\ell(\gamma) = \int_{0}^T \| \gamma'(t) \|_{\gamma(t)} \mathrm{d}t = \int_{0}^T g_{\gamma(t)}^{1/2} (\gamma'(t), \gamma'(t)) \mathrm{d}t.

Such curves are called geodesics (from the Greek γεοδαισία, literally ‘division of Earth’) and they play important role in differential geometry. Crucially to our discussion, the way we defined geodesics is intrinsic, as they depend solely on the Riemannian metric (through the length functional).

It is tacitly assumed that curves are given in arclength parametrisation, such that ∥γ′∥=1\| \gamma' \| = 1 (constant velocity).

Readers familiar with differential geometry might recall that geodesics are a more general concept and their definition in fact does not necessarily require a Riemannian metric but a connection (also called a covariant derivative, as it generalises the notion of derivative to vector and tensor fields), which is defined axiomatically, similarly to our construction of the differential. Given a Riemannian metric, there exists a unique special connection called the Levi-Civita connection which is often tacitly assumed in Riemannian geometry. Geodesics arising from this connection are the length-minimising curves we have defined above.

The Levi-Civita connection is torsion-free and compatible with the metric. The Fundamental Theorem of Riemannian geometry guarantees its existence and uniqueness.

We will show next how to use geodesics to define a way to transport tangent vectors on the manifold (parallel transport), create local intrinsic maps from the manifold to the tangent space (exponential map), and define distances (geodesic metric). This will allow us to construct convolution-like operations by applying a filter locally in the tangent space.

Parallel transport. One issue we have already encountered when dealing with manifolds is that we cannot directly add or subtract two points u,v∈Ωu,v \in \Omega. The same problem arises when trying to compare tangent vectors at different points: though they have the same dimension, they belong to different spaces, e.g. X∈TuΩX\in T_u\Omega and Y∈TvΩY\in T_v\Omega, and thus not directly comparable. Geodesics provide a mechanism to move vectors from one point to another, in the following way: let γ\gamma be a geodesic connecting points u=γ(0)u=\gamma(0) and v=γ(T)v=\gamma(T) and let X∈TuΩX \in T_u\Omega. We can define a new set of tangent vectors along the geodesic, X(t)∈Tγ(t)ΩX(t) \in T_{\gamma(t)}\Omega such that the length of X(t)X(t) and the angle (expressed through the Riemannian metric) between it and the velocity vector of the curve is constant,

gγ(t)(X(t),γ′(t))=gu(X,γ′(0))=const,∥X(t)∥γ(t)=∥X∥u=const.g_{\gamma(t)}(X(t),\gamma'(t) ) = g_{u}(X,\gamma'(0)) = \mathrm{const}, \quad\quad \|X(t)\|_{\gamma(t)} = \|X\|_u = \mathrm{const}.

As a result, we get a unique vector X(T)∈TvΩX(T) \in T_{v}\Omega at the end point vv.

gdl-fig-parallel-transport-sphere.png

Euclidean transport of a vector from A to C makes no sense on the sphere, as the resulting vectors (red) are not in the tangent plane. Parallel transport from A to C (blue) rotates the vector along the path. It is path dependent: going along the path BC and ABC produces different results.

The map Γu→v(X):TuΩ→TuΩ\Gamma_{u\rightarrow v}(X) : T_u\Omega \rightarrow T_u\Omega and TvΩT_v\Omega defined as Γu→v(X)=X(T)\Gamma_{u\rightarrow v}(X) = X(T) using the above notation is called parallel transport or connection; the latter term implying it is a mechanism to ‘connect’ between the tangent spaces TuΩT_u\Omega and TvΩT_v\Omega. Due to the angle and length preservation conditions, parallel transport amounts to only rotation of the vector, so it can be associated with an element of the special orthogonal group SO(s)\mathrm{SO}(s) (called the structure group of the tangent bundle), which we will denote by gu→v{\mathfrak{g}}_{u\rightarrow v} and discuss in further detail in Section 4.5.

Assuming that the manifold is orientable, otherwise O(s)\mathrm{O}(s).

As we mentioned before, a connection can be defined axiomatically independently of the Riemannian metric, providing thus an abstract notion of parallel transport along any smooth curve. The result of such transport, however, depends on the path taken.

Exponential map. Locally around a point uu, it is always possible to define a unique geodesic in a given direction X∈TuΩX \in T_u\Omega, i.e. such that γ(0)=u\gamma(0) = u and γ′(0)=X\gamma'(0) = X. When γX(t)\gamma_X(t) is defined for all t≥0t\geq 0 (that is, we can shoot the geodesic from a point uu for as long as we like), the manifold is said to be geodesically complete and the exponential map is defined on the whole tangent space. Since compact manifolds are geodesically complete, we can tacitly assume this convenient property.

This definition of geodesic provided a point and a direction gives a natural mapping from (a subset of) the tangent space TuΩT_u \Omega to Ω\Omega called the exponential map exp⁡:Br(0)⊂TuΩ→Ω\exp : B_r(0) \subset T_u\Omega \rightarrow \Omega, which is defined by taking a unit step along the geodesic in the direction XX, i.e., exp⁡u(X)=γX(1)\exp_u(X) = \gamma_X(1). The exponential map exp⁡u\exp_u is a local diffeomorphism, as it deforms the neighbourhood Br(0)B_r(0) (a ball or radius rr) of the origin on TuΩT_u\Omega into a neighbourhood of uu. Conversely, one can also regard the exponential map as an intrinsic local deformation (‘flattening’) of the manifold into the tangent space.

Note that geodesic completeness does not necessarily guarantee that exp⁡\exp is a global diffeomorphism – the largest radius rr about uu for which exp⁡u(Br(0)⊆TuΩ)\exp_u(B_r(0) \subseteq T_u\Omega) is mapped diffeomorphically is called the injectivity radius.

Geodesic distances. A result known as the Hopf-Rinow Theorem guarantees that geodesically complete manifolds are also complete metric spaces, in which one can realise a distance (called the geodesic distance or metric) between any pair of points u,vu,v as the length of the shortest path between them

dg(u,v)=min⁡γℓ(γ)s.t.γ(0)=u,  γ(T)=v,d_g(u,v) = \min_{\gamma} \ell(\gamma) \quad\quad \text{s.t.} \quad\quad \gamma(0) = u, \,\, \gamma(T) = v,

which exists (i.e., the minimum is attained).

Note that the term ‘metric’ is used in two senses: Riemannian metric gg and distance dd. To avoid confusion, we will use the term ‘distance’ referring to the latter. Our notation dgd_g makes the distance depend on the Riemannian metric gg, though the definition of geodesic length LL.

Hopf-Rinow Theorem thus estabilishes the equivalence between geodesic and metric completeness, the latter meaning every Cauchy sequence converges in the geodesic distance metric.

Isometries. Consider now a deformation of our manifold Ω\Omega into another manifold Ω~\tilde{\Omega} with a Riemannian metric hh, which we assume to be a diffeomorphism η:(Ω,g)→(Ω~,h)\eta: (\Omega, g) \rightarrow (\tilde{\Omega}, h) between the manifolds. Its differential dη:TΩ→TΩ~\mathrm{d}\eta : T\Omega \rightarrow T\tilde{\Omega} defines a map between the respective tangent bundles (referred to as pushforward), such that at a point uu, we have dηu:TuΩ→Tη(u)Ω~\mathrm{d}\eta_u : T_u \Omega \rightarrow T_{\eta(u)}\tilde{\Omega}, interpreted as before: if we make a small displacement from point uu by tangent vector X∈TuΩX \in T_u \Omega, the map η\eta will be displaced from point η(u)\eta(u) by tangent vector dηu(X)∈Tη(u)Ω~\mathrm{d}\eta_u(X) \in T_{\eta(u)}\tilde{\Omega}.

Since the pushforward provides a mechanism to associate tangent vectors on the two manifolds, it allows to pullback the metric hh from Ω~\tilde{\Omega} to Ω\Omega,

(η∗h)u(X,Y)=hη(u)(dηu(X),dηu(Y))(\eta^*h)_u(X,Y) = h_{\eta(u)}(\mathrm{d}\eta_u(X), \mathrm{d}\eta_u(Y))

If the pullback metric coincides at every point with that of Ω\Omega, i.e., g=η∗hg = \eta^*h, the map η\eta is called (a Riemannian) isometry. For two-dimensional manifolds (surfaces), isometries can be intuitively understood as inelastic deformations that deform the manifold without ‘stretching’ or ‘tearing’ it.

Pushforward and pullback are adjoint operators ⟨η∗α,X⟩=⟨α,η∗X⟩\langle \eta^* \alpha, X \rangle = \langle \alpha, \eta_*X \rangle where α∈T∗Ω\alpha \in T^*\Omega is a dual vector field, defined at each point as a linear functional acting on TuΩT_u\Omega and the inner products are defined respectively on vector and dual vector fields.

By virtue of their definition, isometries preserve intrinsic structures such as geodesic distances, which are expressed entirely in terms of the Riemannian metric. Therefore, we can also understand isometries from the position of metric geometry, as distance-preserving maps (‘metric isometries’) between metric spaces η:(Ω,dg)→(Ω~,dh)\eta : (\Omega, d_g) \rightarrow (\tilde{\Omega}, d_h), in the sense that

dg(u,v)=dh(η(u),η(v))d_g (u,v) = d_h(\eta(u),\eta(v))

for all u,v∈Ωu,v \in \Omega, or more compactly, dg=dh∘(η×η)d_g = d_h \circ (\eta \times \eta). In other words, Riemannian isometries are also metric isometries. On connected manifolds, the converse is also true: every metric isometry is also a Riemannian isometry.

This result is known as the Myers–Steenrod Theorem. We tacitly assume our manifolds to be connected.

In our Geometric Deep Learning blueprint, η\eta is a model of domain deformations. When η\eta is an isometry, any intrinsic quantities are unaffected by such deformations. One can generalise exact (metric) isometries through the notions of metric dilation

dil(η)=sup⁡u≠v∈Ωdh(η(u),η(v))dg(u,v)\mathrm{dil}(\eta) = \sup_{u\neq v \in \Omega}\frac{d_h(\eta(u),\eta(v))}{d_g (u,v)}

or metric distortion

dis(η)=sup⁡u,v∈Ω∣dh(η(u),η(v))−dg(u,v)∣,\mathrm{dis}(\eta) = \sup_{u, v \in \Omega}|d_h(\eta(u),\eta(v)) - d_g (u,v)|,

which capture the relative and absolute change of the geodesic distances under η\eta, respectively. The condition (5) for the stability of a function f∈F(X(Ω))f \in \mathcal{F}(\mathcal{X}(\Omega)) under domain deformation can be rewritten in this case as

∥f(x,Ω)−f(x∘η−1,Ω~)∥≤C∥x∥dis(η).\| f(x,\Omega) - f(x\circ \eta^{-1},\tilde{\Omega})\| \leq C \|x\| \mathrm{dis}(\eta).

The Gromov-Hausdorff distance between metric spaces, which we mentioned in Section 3.2, can be expressed as the smallest possible metric distortion.

Intrinsic symmetries. A particular case of the above is a diffeomorphism of the domain itself (what we termed automorphism in Section 3.2), which we will denote by τ∈Diff(Ω)\tau \in \mathrm{Diff}(\Omega). We will call it a Riemannian (self-)isometry if the pullback metric satisfies τ∗g=g\tau^* g = g, or a metric (self-)isometry if dg=dg∘(τ×τ)d_g = d_g\circ (\tau \times \tau). Not surprisingly, isometries form a group with the composition operator denoted by Iso(Ω)\mathrm{Iso}(\Omega) and called the isometry group; the identity element is the map τ(u)=u\tau(u) = u and the inverse always exists (by definition of τ\tau as a diffeomorphism). Self-isometries are thus intrinsic symmetries of manifolds.

Continuous symmetries on manifolds are infinitesimally generated by special tangent vector fields called Killing fields, named after Wilhelm Killing.

Fourier analysis on Manifolds. We will now show how to construct intrinsic convolution-like operations on manifolds, which, by construction, will be invariant to isometric deformations. For this purpose, we have two options: One is to use an analogy of the Fourier transform, and define the convolution as a product in the Fourier domain. The other is to define the convolution spatially, by correlating a filter locally with the signal. Let us discuss the spectral approach first.

We remind that in the Euclidean domain the Fourier transform is obtained as the eigenvectors of circulant matrices, which are jointly diagonalisable due to their commutativity. Thus, any circulant matrix and in particular, differential operator, can be used to define an analogy of the Fourier transform on general domains. In Riemannian geometry, it is common to use the orthogonal eigenbasis of the Laplacian operator, which we will define here.

For this purpose, recall our definition of the intrinsic gradient operator ∇:X(Ω,R)→X(Ω,TΩ)\nabla : \mathcal{X}(\Omega,\mathbb{R}) \rightarrow \mathcal{X}(\Omega,T\Omega), producing a tangent vector field that indicates the local direction of steepest increase of a scalar field on the manifold. In a similar manner, we can define the divergence operator ∇∗:X(Ω,TΩ)→X(Ω,R)\nabla^* : \mathcal{X}(\Omega,T\Omega) \rightarrow \mathcal{X}(\Omega,\mathbb{R}). If we think of a tangent vector field as a flow on the manifold, the divergence measures the net flow of a field at a point, allowing to distinguish between field ‘sources’ and ‘sinks’. We use the notation ∇∗\nabla^* (as opposed to the common div\mathrm{div}) to emphasise that the two operators are adjoint,

⟨X,∇x⟩=⟨∇∗X,x⟩,\langle X, \nabla x\rangle = \langle \nabla^* X, x\rangle,

where we use the inner products (19) and (20) between scalar and vector fields.

The Laplacian (also known as the Laplace-Beltrami operator in differential geometry) is an operator on X(Ω)\mathcal{X}(\Omega) defined as Δ=∇∗∇\Delta = \nabla^* \nabla, which can be interpreted as the difference between the average of a function on an infinitesimal sphere around a point and the value of the function at the point itself. It is one of the most important operators in mathematical physics, used to describe phenomena as diverse as heat diffusion, quantum oscillations, and wave propagation. Importantly in our context, the Laplacian is intrinsic, and thus invariant under isometries of Ω\Omega.

From this interpretation it is also clear that the Laplacian is isotropic. We will see in Section 4.6 that it is possible to define anisotropic Laplacians (see (Andreux et al., 2014; Boscaini et al., 2016b)) of the form ∇∗(A(u)∇)\nabla^*(A(u)\nabla), where A(u)A(u) is a position-dependent tensor determining local direction.

It is easy to see that the Laplacian is self-adjoint (‘symmetric’),

⟨∇x,∇x⟩=⟨x,Δx⟩=⟨Δx,x⟩.\langle \nabla x, \nabla x \rangle = \langle x , \Delta x\rangle = \langle \Delta x , x\rangle.

The quadratic form on the left in the above expression is actually the already familiar Dirichlet energy,

c2(x)=∥∇x∥2=⟨∇x,∇x⟩=∫Ω∥∇x(u)∥u2du=∫Ωgu(∇x(u),∇x(u))duc^2(x) = \| \nabla x \|^2 = \langle \nabla x, \nabla x \rangle = \int_\Omega \| \nabla x(u) \|_u^2 \mathrm{d}u = \int_\Omega g_u( \nabla x(u), \nabla x(u)) \mathrm{d}u

measuring the smoothness of xx.

The Laplacian operator admits an eigedecomposition

Δφk=λkφk,k=0,1,⋯\Delta \varphi_k = \lambda_k \varphi_k, \quad\quad k=0, 1, \cdots

with countable spectrum if the manifold is compact (which we tacitly assume), and orthogonal eigenfunctions, ⟨φk,φl⟩=δkl\langle \varphi_k, \varphi_l \rangle = \delta_{kl}, due to the self-adjointness of Δ\Delta. The Laplacian eigenbasis can also be constructed as a set of orthogonal minimisers of the Dirichlet energy,

φk+1=arg⁡min⁡φ∥∇φ∥2s.t.∥φ∥=1   and   ⟨φ,φj⟩=0\varphi_{k+1} = \arg\min_{\varphi} \| \nabla \varphi \|^2 \quad\quad \text{s.t.}\quad\quad \|\varphi \|=1 \,\,\, \text{and} \,\,\, \langle \varphi, \varphi_{j} \rangle = 0

for j=0,⋯ ,kj=0,\cdots, k, allowing to interpret it as the smoothest orthogonal basis on Ω\Omega. The eigenfunctions φ0,φ1,⋯\varphi_0, \varphi_1, \cdots and the corresponding eigenvalues 0=λ0≤λ1≤⋯0 = \lambda_0 \leq \lambda_1 \leq \cdots can be interpreted as the analogy of the atoms and frequencies in the classical Fourier transform.

In fact eiξue^{\mathrm{i} \xi u} are the eigenfunctions of the Euclidean Laplacian d2du2\tfrac{\mathrm{d}^2}{\mathrm{d} u^2}.

This orthogonal basis allows to expand square-integrable functions on Ω\Omega into Fourier series

x(u)=∑k≥0⟨x,φk⟩φk(u)x (u) = \sum_{k \geq 0} \langle x, \varphi_k \rangle \varphi_k (u)

where x^k=⟨x,φk⟩\hat{x}_k = \langle x, \varphi_k \rangle are referred to as the Fourier coefficient or the (generalised) Fourier transform of xx. Truncating the Fourier series results in an approximation error that can be bounded (Aflalo and Kimmel, 2013) by

∥x−∑k=0N⟨x,φk⟩φk∥2≤∥∇x∥2λN+1.\left\| x - \sum_{k = 0}^N \langle x, \varphi_k \rangle \varphi_k \right\|^2 \leq \frac{\| \nabla x\|^2}{\lambda_{N+1}}.

Aflalo et al. (2015) further showed that no other basis attains a better error, making the Laplacian eigenbasis optimal for representing smooth signals on manifolds.

Note that this Fourier transform has a discrete index, since the spectrum is discrete due to the compactness of Ω\Omega.

Spectral Convolution on Manifolds.

Spectral convolution can be defined as the product of Fourier transforms of the signal xx and the filter θ\theta,

(x⋆θ)(u)=∑k≥0(x^k⋅θ^k)φk(u).(17)(x \star \theta)(u) = \sum_{k \geq 0} (\hat{x}_k \cdot \hat{\theta}_k ) \varphi_k (u). \tag{17}

Note that here we use what is a property of the classical Fourier transform (the Convolution Theorem) as a way to define a non-Euclidean convolution. By virtue of its construction, the spectral convolution is intrinsic and thus isometry-invariant. Furthermore, since the Laplacian operator is isotropic, it has no sense of direction; in this sense, the situation is similar to that we had on graphs in Section 4.1 due to permutation invariance of neighbour aggregation.

gdl-fig-12-spectral-filter-instability-horses.png

Figure 12: Instability of spectral filters under domain perturbation. Left: a signal x\mathbf{x} on the mesh Ω\Omega. Middle: result of spectral filtering in the eigenbasis of the Laplacian Δ\Delta on Ω\Omega. Right: the same spectral filter applied to the eigenvectors of the Laplacian Δ~\tilde{\Delta} of a nearly-isometrically perturbed domain Ω~\tilde{\Omega} produces a very different result.

In practice, a direct computation of (21) appears to be prohibitively expensive due to the need to diagonalise the Laplacian. Even worse, it turns out geometrically unstable: the higher-frequency eigenfunctions of the Laplacian can change dramatically as a result of even small near-isometric perturbations of the domain Ω\Omega (see Figure 12). A more stable solution is provided by realising the filter as a spectral transfer function of the form p^(Δ)\hat{p}(\Delta),

(p^(Δ)x)(u)=∑k≥0p^(λk)⟨x,φk⟩φk(u)(18)(\hat{p}(\Delta) x)(u) = \sum_{k\geq 0} \hat{p}(\lambda_k) \langle x, \varphi_k\rangle \varphi_k (u) \tag{18} =∫Ωx(v) ∑k≥0p^(λk)φk(v)φk(u) dv(19)= \int_\Omega x(v) \, \sum_{k\geq 0} \hat{p}(\lambda_k) \varphi_k(v) \varphi_k (u) \, \mathrm{d}v \tag{19}

which can be interpreted in two manners: either as a spectral filter (4.4), where we identify θ^k=p^(λk)\hat{\theta}_k = \hat{p}(\lambda_k), or as a spatial filter (4.4) with a position-dependent kernel θ(u,v)=∑k≥0p^(λk)φk(v)φk(u)\theta(u,v) = \sum_{k\geq 0} \hat{p}(\lambda_k) \varphi_k(v) \varphi_k (u). The advantage of this formulation is that p^(λ)\hat{p}(\lambda) can be parametrised by a small number of coefficients, and choosing parametric functions such as polynomials p^(λ)=∑l=0rαlλl\hat{p}(\lambda) = \sum_{l=0}^r \alpha_l \lambda^l allows for efficiently computing the filter as

(p^(Δ)x)(u)=∑k≥0∑l=0rαlλkl ⟨x,φk⟩φk(u)=∑l=0rαl(Δlx)(u),(\hat{p}(\Delta) x)(u) = \sum_{k\geq 0} \sum_{l= 0}^r \alpha_l \lambda_k^l \, \langle x, \varphi_k\rangle \varphi_k (u) = \sum_{l= 0}^r \alpha_l (\Delta^l x)(u),

avoiding the spectral decomposition altogether. We will discuss this construction in further detail in Section 4.6.

Geometric Deep Learning methods based on spectral convolution expressed through the Fourier transform are often referred to as ‘spectral’ and opposed to ‘spatial’ methods we have seen before in the context of graphs. We see here that these two views may be equivalent, so this dichotomy is somewhat artificial and not completely appropriate.

Spatial Convolution on Manifolds.

A second alternative is to attempt defining convolution on manifolds is by matching a filter at different points, like we did in formula (18),

(x⋆θ)(u)=∫TuΩx(exp⁡uY)θu(Y)dY,(20)(x \star \theta)(u) = \int_{T_u \Omega} x(\exp_u Y) \theta_u(Y) \mathrm{d}Y, \tag{20}

where we now have to use the exponential map to access the values of the scalar field xx from the tangent space, and the filter θu\theta_u is defined in the tangent space at each point and hence position-dependent. If one defines the filter intrinsically, such a convolution would be isometry-invariant, a property we mentioned as crucial in many computer vision and graphics applications.

We need, however, to note several substantial differences from our previous construction in Sections 4.2–4.3. First, because a manifold is generally not a homogeneous space, we do not have anymore a global group structure allowing us have a shared filter (i.e., the same θ\theta at every uu rather than θu\theta_u in expression (22)) defined at one point and then move it around. An analogy of this operation on the manifold would require parallel transport, allowing to apply a shared θ\theta, defined as a function on TuΩT_u\Omega, at some other TvΩT_v\Omega. However, as we have seen, this in general will depend on the path between uu and vv, so the way we move the filter around matters. Third, since we can use the exponential map only locally, the filter must be local, with support bounded by the injectivity radius. Fourth and most crucially, we cannot work with θ(X)\theta(X), as XX is an abstract geometric object: in order for it to be used for computations, we must represent it relative to some local basis ωu:Rs→TuΩ\omega_u : \mathbb{R}^s \rightarrow T_u\Omega, as an ss-dimensional array of coordinates x=ωu−1(X)\mathbf{x} = \omega^{-1}_u(X). This allows us to rewrite the convolution (22) as

(x⋆θ)(u)=∫[0,1]sx(exp⁡u(ωuy))θ(y)dy,(21)(x \star \theta)(u) = \int_{[0,1]^s} x(\exp_u (\omega_u \mathbf{y})) \theta(\mathbf{y}) \mathrm{d}\mathbf{y}, \tag{21}

with the filter defined on the unit cube. Since the exponential map is intrinsic (through the definition of geodesic), the resulting convolution is isometry-invariant.

Yet, this tacitly assumed we can carry the frame ωu\omega_u along to another manifold, i.e. ωu′=dηu∘ωu\omega_u' = \mathrm{d}\eta_u \circ \omega_u. Obtaining such a frame (or gauge, in physics terminology) given only a the manifold Ω\Omega in a consistent manner is however fraught with difficulty. First, a smooth global gauge may not exist: this is the situation on manifolds that are not parallelisable, in which case one cannot define a smooth non-vanishing tangent vector field. Second, we do not have a canonical gauge on manifolds, so this choice is arbitrary; since our convolution depends on ω\omega, if one chose a different one, we would obtain different results.

The sphere S2\mathbb{S}^2 is an example of a non-parallelisable manifold, a result of the Poincaré-Hopf Theorem, which is colloquially stated as ‘one cannot comb a hairy ball without creating a cowlick.’

We should note that this is a case where practice diverges from theory: in practice, it is possible to build frames that are mostly smooth, with a limited number of singularities, e.g. by taking the intrinsic gradient of some intrinsic scalar field on the manifold. Moreover, such constructions are stable, i.e., the frames constructed this way will be identical on isometric manifolds and similar on approximately isometric ones. Such approaches were in fact employed in the early works on deep learning on manifolds (Masci et al., 2015; Monti et al., 2017).

gdl-fig-gframes-hands.png

Example of stable gauges constructed on nearly-isometric manifolds (only one axis is shown) using the GFrames algorithm of Melzi et al. (2019).

Nevertheless, this solution is not entirely satisfactory because near singularities, the filter orientation (being defined in a fixed manner relative to the gauge) will vary wildly, leading to a non-smooth feature map even if the input signal and filter are smooth. Moreover, there is no clear reason why a given direction at some point uu should be considered equivalent to another direction at an altogether different point vv. Thus, despite practical alternatives, we will look next for a more theoretically well-founded approach that would be altogether independent on the choice of gauge.

The notion of gauge, which we have defined as a frame for the tangent space, is quite a bit more general in physics: it can refer to a frame for any vector bundle, not just the tangent bundle. Informally, a vector bundle describes a family of vector spaces parametrised by another space and consists of a base space Ω\Omega with an identical vector space V\mathbb{V} (called the fibre) attached to each position u∈Ωu \in \Omega (for the tangent bundle these are the tangent spaces TuΩT_u\Omega). Roughly speaking, a bundle looks as a product Ω×V\Omega \times \mathbb{V} locally around uu, but globally might be ‘twisted’ and have an overall different structure. In Geometric Deep Learning, fibres can be used to model the feature spaces at each point in the manifold Ω\Omega, with the dimension of the fibre being equal to the number of feature channels. In this context, a new and fascinating kind of symmetry, called gauge symmetry may present itself.

Historically, fibre bundles arose first in modern differential geometry of Élie Cartan (who however did not define them explicitly), and were then further developed as a standalone object in the field of topology in the 1930s.

Let us consider again an ss-dimensional manifold Ω\Omega with its tangent bundle TΩT\Omega, and a vector field X:Ω→TΩX : \Omega \rightarrow T \Omega (which in this terminology is referred to as a section on the tangent bundle). Relative to a gauge ω\omega for the tangent bundle, XX is represented as a function x:Ω→Rs\mathbf{x} : \Omega \rightarrow \mathbb{R}^s. However it is important to realise that what we are really interested in is the underlying geometrical object (vector field), whose representation as a function x∈X(Ω,Rs)\mathbf{x} \in \mathcal{X}(\Omega,\mathbb{R}^s) depends on the choice of gauge ω\omega. If we change the gauge, we also need to change x\mathbf{x} so as to preserve the underlying vector field being represented.

Tangent bundles and the Structure group. When we change the gauge, we need to apply at each point an invertible matrix that maps the old gauge to the new one. This matrix is unique for every pair of gauges at each point, but possibly different at different points. In other words, a gauge transformation is a mapping g:Ω→GL⁡(s){\mathfrak{g}} : \Omega \rightarrow \operatorname{GL}(s), where GL⁡(s)\operatorname{GL}(s) is the general linear group of invertible s×ss \times s matrices. It acts on the gauge ωu:Rs→TuΩ\omega_u : \mathbb{R}^s \rightarrow T_u \Omega to produce a new gauge ωu′=ωu∘gu:Rs→TuΩ\omega'_u = \omega_u \circ {\mathfrak{g}}_u : \mathbb{R}^s \rightarrow T_u \Omega. The gauge transformation acts on a coordinate vector field at each point via x′(u)=gu−1x(u)\mathbf{x}'(u) = {\mathfrak{g}}^{-1}_u \mathbf{x}(u) to produce the coordinate representation x′\mathbf{x}' of XX relative to the new gauge. The underlying vector field remains unchanged:

X(u)=ωu′(x′(u))=ωu(gugu−1x(u))=ωu(x(u))=X(u),X(u) = \omega'_u(\mathbf{x'}(u)) = \omega_u( {\mathfrak{g}}_u {\mathfrak{g}}^{-1}_u \mathbf{x}(u)) = \omega_u(\mathbf{x}(u)) = X(u),

which is exactly the property we desired. More generally, we may have a field of geometric quantities that transform according to a representation ρ\rho of GL⁡(s)\operatorname{GL}(s), e.g. a field of 2-tensors (matrices) A(u)∈Rs×s\mathbf{A}(u) \in \mathbb{R}^{s \times s} that transform like A′(u)=ρ2(gu−1)A(u)=ρ1(gu)A(u)ρ1(gu−1)\mathbf{A'}(u) = \rho_2({\mathfrak{g}}^{-1}_u) \mathbf{A}(u) = \rho_1({\mathfrak{g}}_u) \mathbf{A}(u) \rho_1({\mathfrak{g}}^{-1}_u). In this case, the gauge transformation gu{\mathfrak{g}}_u acts via ρ(gu)\rho({\mathfrak{g}}_u).

Sometimes we may wish to restrict attention to frames with a certain property, such as orthogonal frames, right-handed frames, etc. Unsurprisingly, we are interested in a set of some property-preserving transformations that form a group. For instance, the group that preserves orthogonality is the orthogonal group O⁡(s)\operatorname{O}(s) (rotations and reflections), and the group that additionally preserves orientation or ‘handedness’ is SO⁡(s)\operatorname{SO}(s) (pure rotations). Thus, in general we have a group G{\mathfrak{G}} called the structure group of the bundle, and a gauge transformation is a map g:Ω→G{\mathfrak{g}} : \Omega \rightarrow {\mathfrak{G}}. A key observation is that in all cases with the given property, for any two frames at a given point there exists exactly one gauge transformation relating them.

As mentioned before, gauge theory extends beyond tangent bundles, and in general, we can consider a bundle of vector spaces whose structure and dimensions are not necessarily related to those of the base space Ω\Omega. For instance, a color image pixel has a position u∈Ω=Z2u \in \Omega = \mathbb{Z}^2 on a 2D grid and a value x(u)∈R3\mathbf{x}(u) \in \mathbb{R}^3 in the RGB space, so the space of pixels can be viewed as a vector bundle with base space Z2\mathbb{Z}^2 and a fibre R3\mathbb{R}^3 attached at each point. It is customary to express an RGB image relative to a gauge that has basis vectors for R, G, and B (in that order), so that the coordinate representation of the image looks like x(u)=(r(u),g(u),b(u))⊤\mathbf{x}(u) = (r(u), g(u), b(u))^\top. But we may equally well permute the basis vectors (color channels) independently at each position, as long as we remember the frame (order of channels) in use at each point. As a computational operation this is rather pointless, but as we will see shortly it is conceptually useful to think about gauge transformations for the space of RGB colors, because it allows us to express a gauge symmetry – in this case, an equivalence between colors – and make functions defined on images respect this symmetry (treating each color equivalently).

In this example we have chosen G=Σ3{\mathfrak{G}} = \Sigma_3 the permutations of the 3 color channels as the structure group of the bundle. Other choices, such as a Hue rotation G=SO⁡(2){\mathfrak{G}} = \operatorname{SO}(2) are also possible.

We use ss to denote the dimension of the base space Ω\Omega and dd referring to the dimension of the fibre. For tangent bundles, d=sd=s is the dimension of the underlying manifold. For RGB image, s=2s=2 and d=3d=3.

As in the case of a vector field on a manifold, an RGB gauge transformation changes the numerical representation of an image (permuting the RGB values independently at each pixel) but not the underlying image. In machine learning applications, we are interested in constructing functions f∈F(X(Ω))f \in \mathcal{F}(\mathcal{X}(\Omega)) on such images (e.g. to perform image classification or segmentation), implemented as layers of a neural network. It follows that if, for whatever reason, we were to apply a gauge transformation to our image, we would need to also change the function ff (network layers) so as to preserve their meaning. Consider for simplicity a 1×11 \times 1 convolution, i.e. a map that takes an RGB pixel x(u)∈R3\mathbf{x}(u) \in \mathbb{R}^3 to a feature vector y(u)∈RC\mathbf{y}(u) \in \mathbb{R}^C. According to our Geometric Deep Learning blueprint, the output is associated with a group representation ρout\rho_{\textup{out}}, in this case a CC-dimensional representation of the structure group G=Σ3{\mathfrak{G}} = \Sigma_3 (RGB channel permutations), and similarly the input is associated with a representation ρin(g)=g\rho_{\textup{in}}({\mathfrak{g}}) = {\mathfrak{g}}. Then, if we apply a gauge transformation to the input, we would need to change the linear map (1×11 \times 1 convolution) f:R3→RCf : \mathbb{R}^3 \rightarrow \mathbb{R}^C to f′=ρout−1(g)∘f∘ρin(g)f' = \rho^{-1}_{\textup{out}}({\mathfrak{g}}) \circ f \circ \rho_{\textup{in}}({\mathfrak{g}}) so that the output feature vector y(u)=f(x(u))\mathbf{y}(u) = f(\mathbf{x}(u)) transforms like y′(u)=ρout(gu)y(u)\mathbf{y}'(u) = \rho_{\textup{out}}({\mathfrak{g}}_u) \mathbf{y}(u) at every point. Indeed we verify:

y′=f′(x′)=ρout−1(g)f(ρin(g)ρin−1(g)x)=ρout−1(g)f(x).\mathbf{y}' = f'(\mathbf{x}') = \rho^{-1}_{\textup{out}}({\mathfrak{g}}) f(\rho_{\textup{in}}({\mathfrak{g}}) \rho^{-1}_{\textup{in}}({\mathfrak{g}}) \mathbf{x}) = \rho^{-1}_{\textup{out}}({\mathfrak{g}}) f(\mathbf{x}).

Here the notation ρ−1(g)\rho^{-1}({\mathfrak{g}}) should be understood as the inverse of the group representation (matrix) ρ(g)\rho({\mathfrak{g}}).

Gauge Symmetries. To say that we consider gauge transformations to be symmetries is to say that any two gauges related by a gauge transformation are to be considered equivalent. For instance, if we take G=SO⁡(d){\mathfrak{G}} = \operatorname{SO}(d), any two right-handed orthogonal frames are considered equivalent, because we can map any such frame to any other such frame by a rotation. In other words, there are no distinguished local directions such as “up” or “right”. Similarly, if G=O⁡(d){\mathfrak{G}} = \operatorname{O}(d) (the orthogonal group), then any left and right handed orthogonal frame are considered equivalent. In this case, there is no preferred orientation either. In general, we can consider a group G{\mathfrak{G}} and a collection of frames at every point uu such that for any two of them there is a unique g(u)∈G{\mathfrak{g}}(u) \in {\mathfrak{G}} that maps one frame onto the other.

Regarding gauge transformations as symmetries in our Geometric Deep Learning blueprint, we are interested in making the functions ff acting on signals defined on Ω\Omega and expressed with respect to the gauge should equivariant to such transformation. Concretely, this means that if we apply a gauge transformation to the input, the output should undergo the same transformation (perhaps acting via a different representation of G{\mathfrak{G}}). We noted before that when we change the gauge, the function ff should be changed as well, but for a gauge equivariant map this is not the case: changing the gauge leaves the mapping invariant. To see this, consider again the RGB color space example. The map f:R3→RCf : \mathbb{R}^3 \rightarrow \mathbb{R}^C is equivariant if f∘ρin(g)=ρout(g)∘ff \circ \rho_{\textup{in}}({\mathfrak{g}}) = \rho_{\textup{out}}({\mathfrak{g}}) \circ f, but in this case the gauge transformation applied to ff has no effect: ρout−1(g)∘f∘ρin(g)=f\rho_{\textup{out}}^{-1}({\mathfrak{g}}) \circ f \circ \rho_{\textup{in}}({\mathfrak{g}}) = f. In other words, the coordinate expression of a gauge equivariant map is independent of the gauge, in the same way that in the case of graph, we applied the same function regardless of how the input nodes were permuted. However, unlike the case of graphs and other examples covered so far, gauge transformations act not on Ω\Omega but separately on each of the feature vectors x(u)\mathbf{x}(u) by a transformation g(u)∈G{\mathfrak{g}}(u) \in {\mathfrak{G}} for each u∈Ωu \in \Omega.

Further considerations enter the picture when we look at filters on manifolds with a larger spatial support. Let us first consider an easy example of a mapping f:X(Ω,R)→X(Ω,R)f : \mathcal{X}(\Omega, \mathbb{R}) \rightarrow \mathcal{X}(\Omega, \mathbb{R}) from scalar fields to scalar fields on an ss-dimensional manifold Ω\Omega. Unlike vectors and other geometric quantities, scalars do not have an orientation, so a scalar field x∈X(Ω,R)x \in \mathcal{X}(\Omega, \mathbb{R}) is invariant to gauge transformations (it transforms according to the trivial representation ρ(g)=1\rho({\mathfrak{g}}) = 1). Hence, any linear map from scalar fields to scalar fields is gauge equivariant (or invariant, which is the same in this case). For example, we could write ff similarly to (4.4), as a convolution-like operation with a position-dependent filter θ:Ω×Ω→R\theta : \Omega \times \Omega \rightarrow \mathbb{R},

(x⋆θ)(u)=∫Ωθ(u,v)x(v)dv.(22)(x \star \theta)(u) = \int_{\Omega} \theta(u, v) x(v) \mathrm{d}v. \tag{22}

This implies that we have a potentially different filter θu=θ(u,⋅)\theta_u = \theta(u, \cdot) at each point, i.e., no spatial weight sharing — which gauge symmetry alone does not provide.

Consider now a more interesting case of a mapping f:X(Ω,TΩ)→X(Ω,TΩ)f : \mathcal{X}(\Omega, T\Omega) \rightarrow \mathcal{X}(\Omega, T\Omega) from vector fields to vector fields. Relative to a gauge, the input and output vector fields X,Y∈X(Ω,TΩ)X, Y \in \mathcal{X}(\Omega, T\Omega) are vector-valued functions x,y∈X(Ω,Rs)\mathbf{x}, \mathbf{y} \in \mathcal{X}(\Omega, \mathbb{R}^s). A general linear map between such functions can be written using the same equation we used for scalars (24), only replacing the scalar kernel by a matrix-valued one Θ:Ω×Ω→Rs×s\boldsymbol{\Theta} : \Omega \times \Omega \rightarrow \mathbb{R}^{s \times s}. The matrix Θ(u,v)\boldsymbol{\Theta} (u, v) should map tangent vectors in TvΩT_v\Omega to tangent vectors in TuΩT_u\Omega, but these points have different gauges that we may change arbitrarily and independently. That is, the filter would have to satisfy Θ(u,v)=ρ−1(g(u))Θ(u,v)ρ(g(v))\boldsymbol{\Theta} (u, v) = \rho^{-1}({\mathfrak{g}}(u)) \boldsymbol{\Theta}(u, v) \rho({\mathfrak{g}}(v)) for all u,v∈Ωu, v \in \Omega, where ρ\rho denotes the action of G{\mathfrak{G}} on vectors, given by an s×ss\times s rotation matrix. Since g(u){\mathfrak{g}}(u) and g(v){\mathfrak{g}}(v) can be chosen freely, this is an overly strong constraint on the filter.

Indeed Θ\boldsymbol{\Theta} would have to be zero in this case

A better approach is to first transport the vectors to a common tangent space by means of the connection, and then impose gauge equivariance w.r.t. a single gauge transformation at one point only. Instead of (24), we can then define the following map between vector fields,

(x⋆Θ)(u)=∫ΩΘ(u,v)ρ(gv→u)x(v)dv,(23)(\mathbf{x} \star \boldsymbol{\Theta})(u) = \int_\Omega \boldsymbol{\Theta}(u, v) \rho({\mathfrak{g}}_{v \rightarrow u}) \mathbf{x}(v) \mathrm{d}v, \tag{23}

where gv→u∈G{\mathfrak{g}}_{v \rightarrow u} \in {\mathfrak{G}} denotes the parallel transport from vv to uu along the geodesic connecting these two points; its representation ρ(gv→u)\rho({\mathfrak{g}}_{v \rightarrow u}) is an s×ss \times s rotation matrix rotating the vector as it moves between the points. Note that this geodesic is assumed to be unique, which is true only locally and thus the filter must have a local support. Under a gauge transformation gu{\mathfrak{g}}_u, this element transforms as gu→v↦gu−1gu→vgv{\mathfrak{g}}_{u \rightarrow v} \mapsto {\mathfrak{g}}_u^{-1} {\mathfrak{g}}_{u \rightarrow v} {\mathfrak{g}}_v, and the field itself transforms as x(v)↦ρ(gv)x(v)\mathbf{x}(v) \mapsto \rho({\mathfrak{g}}_v) \mathbf{x}(v). If the filter commutes with the structure group representation Θ(u,v)ρ(gu)=ρ(gu)Θ(u,v)\boldsymbol{\Theta}(u, v) \rho({\mathfrak{g}}_u) = \rho({\mathfrak{g}}_u) \boldsymbol{\Theta}(u, v), equation (25) defines a gauge-equivariant convolution, which transforms as

(x′⋆Θ)(u)=ρ−1(gu)(x⋆Θ)(u).(\mathbf{x}' \star \boldsymbol{\Theta})(u) = \rho^{-1}({\mathfrak{g}}_u) (\mathbf{x} \star \boldsymbol{\Theta})(u).

under the aforementioned transformation.

We will conclude our discussion of different geometric domains with geometric graphs (i.e., graphs that can be realised in some geometric space) and meshes. In our ‘5G’ of geometric domains, meshes fall somewhere between graphs and manifolds: in many regards, they are similar to graphs, but their additional structure allows to also treat them similarly to continuous objects. For this reason, we do not consider meshes as a standalone object in our scheme, and in fact, will emphasise that many of the constructions we derive in this section for meshes are directly applicable to general graphs as well.

As we already mentioned in Section 4.4, two-dimensional manifolds (surfaces) are a common way of modelling 3D objects (or, better said, the boundary surfaces of such objects). In computer graphics and vision applications, such surfaces are often discretised as triangular meshes, which can be roughly thought of as a piece-wise planar approximation of a surface obtained by gluing triangles together along their edges. Meshes are thus (undirected) graphs with additional structure: in addition to nodes and edges, a mesh T=(V,E,F)\mathcal{T} = (\mathcal{V},\mathcal{E}, \mathcal{F}) also have ordered triplets of nodes forming triangular faces F={(u,v,q):u,v,q∈V   and   (u,v),(u,q),(q,v)∈E}\mathcal{F} = \{ (u,v,q) : u,v,q \in \mathcal{V} \,\,\, \text{and} \,\,\, (u,v), (u,q), (q,v) \in \mathcal{E}\}; the order of the nodes defines the face orientation.

gdl-fig-manifold-nonmanifold-edges.png

Triangular meshes are examples of topological structures known as simplicial complexes.

Examples of manifold (top) and non-manifold (bottom) edges and nodes. For manifolds with boundary, one further defines boundary edges that belong to exactly one triangle.

It is further assumed that that each edge is shared by exactly two triangles, and the boundary of all triangles incident on each node forms a single loop of edges. This condition guarantees that 1-hop neighbourhoods around each node are disk-like and the mesh thus constitutes a discrete manifold – such meshes are referred to as manifold meshes. Similarly to Riemannian manifolds, we can define a metric on the mesh. In the simplest instance, it can be induced from the embedding of the mesh nodes x1,⋯ ,xn\mathbf{x}_1, \cdots, \mathbf{x}_n and expressed through the Euclidean length of the edges, ℓuv=∥xu−xv∥\ell_{uv} = \| \mathbf{x}_u - \mathbf{x}_v \|. A metric defined in this way automatically satisfies properties such as the triangle inequality, i.e., expressions of the form ℓuv≤ℓuq+ℓvq\ell_{uv} \leq \ell_{uq} + \ell_{vq} for any (u,v,q)∈F(u,v,q) \in \mathcal{F} and any combination of edges. Any property that can be expressed solely in terms of ℓ\ell is intrinsic, and any deformation of the mesh preserving ℓ\ell is an isometry – these notions are already familiar to the reader from our discussion in Section 4.4.

Laplacian matrices. By analogy to our treatment of graphs, let us assume a (manifold) mesh with nn nodes, each associated with a dd-dimensional feature vector, which we can arrange (assuming some arbitrary ordering) into an n×dn\times d matrix X\mathbf{X}. The features can represent the geometric coordinates of the nodes as well as additional properties such as colors, normals, etc, or in specific applications such as chemistry where geometric graphs model molecules, properties such as the atomic number.

Let us first look at the spectral convolution (21) on meshes, which we remind the readers, arises from the Laplacian operator. Considering the mesh as a discretisation of an underlying continuous surface, we can discretise the Laplacian as

(ΔX)u=∑v∈Nuwuv(xu−xv),(24)(\boldsymbol{\Delta}\mathbf{X})_u = \sum_{v \in \mathcal{N}_u} w_{uv} (\mathbf{x}_u - \mathbf{x}_v), \tag{24}

or in matrix-vector notation, as an n×nn\times n symmetric matrix Δ=D−W\boldsymbol{\Delta} = \mathbf{D} - \mathbf{W}, where D=diag(d1,⋯ ,dn)\mathbf{D} = \mathrm{diag}(d_1, \cdots, d_n) is called the degree matrix and du=∑vwuvd_u = \sum_{v}w_{uv} the degree of node uu. It is easy to see that equation (26) performs local permutation-invariant aggregation of neighbour features ϕ(xu,XNu)=duxu−∑v∈Nuwuvxv\phi(\mathbf{x}_u,\mathbf{X}_{\mathcal{N}_u}) = d_u \mathbf{x}_u - \sum_{v \in \mathcal{N}_u} w_{uv} \mathbf{x}_v, and F(X)=ΔX\mathbf{F}(\mathbf{X}) = \boldsymbol{\Delta}\mathbf{X} is in fact an instance of our general blueprint (17) for constructing permutation-equivariant functions on graphs.

Note that insofar there is nothing specific to meshes in our definition of Laplacian in (26); in fact, this construction is valid for arbitrary graphs as well, with edge weights identified with the adjacency matrix, W=A\mathbf{W} = \mathbf{A}, i.e., wuv=1w_{uv} = 1 if (u,v)∈E(u,v) \in \mathcal{E} and zero otherwise. Laplacians constructed in this way are often called combinatorial, to reflect the fact that they merely capture the connectivity structure of the graph. For geometric graphs (which do not necessarily have the additional structure of meshes, but whose nodes do have spatial coordinates that induces a metric in the form of edge lengths), it is common to use weights inversely related to the metric, e.g. wuv∝e−ℓuvw_{uv} \propto e^{-\ell_{uv}}.

If the graph is directed, the corresponding Laplacian is non-symmetric.

The degree in this case equals the number of neighbours.

On meshes, we can exploit the additional structure afforded by the faces, and define the edge weights in equation (26) using the cotangent formula (Pinkall and Polthier, 1993; Meyer et al., 2003)

gdl-fig-cotangent-weights-mesh.png

The earliest use of this formula dates back to the PhD thesis of MacNeal (1949), who developed it to solve PDEs on the Caltech Electric Analog Computer.

wuv=cot⁡∠uqv+cot⁡∠upv2au(25)w_{uv} = \frac{\cot \angle_{uqv} + \cot \angle_{upv}}{2 a_u} \tag{25}

where ∠uqv\angle_{uqv} and ∠upv\angle_{upv} are the two angles in the triangles (u,q,v)(u,q,v) and (u,p,v)(u,p,v) opposite the shared edge (u,v)(u,v), and aua_u is the local area element, typically computed as the area of the polygon constructed upon the barycenters of the triangles (u,p,q)(u,p,q) sharing the node uu and given by au=13∑v,q:(u,v,q)∈Fauvqa_u = \frac{1}{3}\sum_{v,q : (u,v,q) \in \mathcal{F}} a_{uvq}.

The cotangent Laplacian can be shown to have multiple convenient properties (see e.g. Wardetzky et al. (2007)): it is a positive-semidefinite matrix, Δ≽0\boldsymbol{\Delta} \succcurlyeq 0 and thus has non-negative eigenvalues λ1≤⋯≤λn\lambda_1 \leq \cdots \leq \lambda_n that can be regarded as an analogy of frequency, it is symmetric and thus has orthogonal eigenvectors, and it is local (i.e., the value of (ΔX)u(\boldsymbol{\Delta}\mathbf{X})_u depends only on 1-hop neighbours, Nu\mathcal{N}_u). Perhaps the most important property is the convergence of the cotangent mesh Laplacian matrix Δ\boldsymbol{\Delta} to the continuous operator Δ\Delta when the mesh is infinitely refined (Wardetzky, 2008). Equation (27) constitutes thus an appropriate discretisation of the Laplacian operator defined on Riemannian manifolds in Section 4.4.

Some technical conditions must be imposed on the refinement, to avoid e.g. triangles becoming pathological. One such example is a bizarre triangulation of the cylinder known in German as the Schwarzscher Stiefel (Schwarz’s boot) or in English literature as the ‘Schwarz lantern’, proposed in 1880 by Hermann Schwarz, a German mathematician known from the Cauchy-Schwarz inequality fame.

While one expects the Laplacian to be intrinsic, this is not very obvious from equation (27), and it takes some effort to express the cotangent weights entirely in terms of the discrete metric ℓ\ell as

wuv=−ℓuv2+ℓvq2+ℓuq28auvq+−ℓuv2+ℓvp2+ℓup28auvpw_{uv} = \frac{-\ell^2_{uv} + \ell^2_{vq} + \ell^2_{uq} }{8 a_{uvq}} + \frac{-\ell^2_{uv} + \ell^2_{vp} + \ell^2_{up} }{8 a_{uvp}}

where the area of the triangles aijka_{ijk} is given as

auvq=suvq(suvq−ℓuv)(suvq−ℓvq)(suvq−ℓuq)a_{uvq} = \sqrt{s_{uvq} (s_{uvq} - \ell_{uv}) (s_{uvq} - \ell_{vq}) (s_{uvq} - \ell_{uq}) }

using Heron’s semiperimeter formula with suvq=12(ℓuv+ℓuq+ℓvq)s_{uvq} = \frac{1}{2}(\ell_{uv} + \ell_{uq} + \ell_{vq}). This endows the Laplacian (and any quantities associated with it, such as its eigenvectors and eigenvalues) with isometry invariance, a property for which it is so loved in geometry processing and computer graphics (see an excellent review by Wang and Solomon (2019)): any deformation of the mesh that does not affect the metric ℓ\ell (does not ‘stretch’ or ‘squeeze’ the edges of the mesh) does not change the Laplacian.

Finally, as we already noticed, the definition of the Laplacian (27) is invariant to the permutation of nodes in Nu\mathcal{N}_u, as it involves aggregation in the form of summation. While on general graphs this is a necessary evil due to the lack of canonical ordering of neighbours, on meshes we can order the 1-hop neighbours according to some orientation (e.g., clock-wise), and the only ambiguity is the selection of the first node. Thus, instead of any possible permutation we need to account for cyclic shifts (rotations), which intuitively corresponds to the ambiguity arising from SO(2)\mathrm{SO}(2) gauge transformations discussed in Section 4.5. For a fixed gauge, it is possible to define an anisotropic Laplacian that is sensitive to local directions and amounts to changing the metric or the weights wuvw_{uv}. Constructions of this kind were used to design shape descriptors by Andreux et al. (2014); Boscaini et al. (2016b) and in early Geometric Deep Learning architectures on meshes by Boscaini et al. (2016a).

gdl-fig-isotropic-filter-radial.png

Laplacian-based filters are isotropic. In the plane, such filters have radial symmetry.

Spectral analysis on meshes. The orthogonal eigenvectors Φ=(φ1,⋯ ,φn)\boldsymbol{\Phi} = (\boldsymbol{\varphi}_1, \cdots, \boldsymbol{\varphi}_n) diagonalising the Laplacian matrix (Δ=ΦΛΦ⊤\boldsymbol{\Delta} = \boldsymbol{\Phi} \boldsymbol{\Lambda} \boldsymbol{\Phi}^\top, where Λ=diag(λ1,⋯ ,λn)\boldsymbol{\Lambda} = \mathrm{diag}(\lambda_1, \cdots, \lambda_n) is the diagonal matrix of Laplacian eigenvalues), are used as the non-Euclidean analogy of the Fourier basis, allowing to perform spectral convolution on the mesh as the product of the respective Fourier transforms,

X⋆θ=Φ diag(Φ⊤θ)(Φ⊤X)=Φ diag(θ^)X^,\mathbf{X} \star \boldsymbol{\theta} = \boldsymbol{\Phi} \, \mathrm{diag}(\boldsymbol{\Phi}^\top \boldsymbol{\theta}) (\boldsymbol{\Phi}^\top \mathbf{X}) = \boldsymbol{\Phi}\, \mathrm{diag}(\hat{\boldsymbol{\theta}}) \hat{\mathbf{X}},

where the filter θ^\hat{\boldsymbol{\theta}} is designed directly in the Fourier domain. Again, nothing in this formula is specific to meshes, and one can use the Laplacian matrix of a generic (undirected) graph. It is tempting to exploit this spectral definition of convolution to generalise CNNs to graphs, which in fact was done by one of the authors of this text, Bruna et al. (2013). However, it appears that the non-Euclidean Fourier transform is extremely sensitive to even minor perturbations of the underlying mesh or graph (see Figure 12 in Section 4.4) and thus can only be used when one has to deal with different signals on a fixed domain, but not when one wishes to generalise across different domains. Unluckily, many computer graphics and vision problems fall into the latter category, where one trains a neural network on one set of 3D shapes (meshes) and test on a different set, making the Fourier transform-based approach inappropriate.

The fact that the graph is assumed to be undirected is important: in this case the Laplacian is symmetric and has orthogonal eigenvectors.

As noted in Section 4.4, it is preferable to use spectral filters of the form (4.4) applying some transfer function p^(λ)\hat{p}(\lambda) to the Laplacian matrix,

p^(Δ)X=Φp^(Λ)Φ⊤X=Φ diag(p^(λ1),⋯ ,p^(λn))X^.\hat{p}(\boldsymbol{\Delta})\mathbf{X} = \boldsymbol{\Phi} \hat{p}(\boldsymbol{\Lambda})\boldsymbol{\Phi}^\top\mathbf{X} = \boldsymbol{\Phi}\, \mathrm{diag}(\hat{p}(\lambda_1), \cdots, \hat{p}(\lambda_n)) \hat{\mathbf{X}}.

When p^\hat{p} can be expressed in terms of matrix-vector products, the eigendecomposition of the n×nn\times n matrix Δ\boldsymbol{\Delta} can be avoided altogether. For example, Defferrard et al. (2016) used polynomials of degree rr as filter functions,

p^(Δ)X=∑k=0rαkΔkX=α0X+α1ΔX+⋯+αrΔrX,\hat{p}(\boldsymbol{\Delta})\mathbf{X} = \sum_{k=0}^r \alpha_k \boldsymbol{\Delta}^k \mathbf{X} = \alpha_0 \mathbf{X} + \alpha_1 \boldsymbol{\Delta} \mathbf{X} + \cdots + \alpha_r \boldsymbol{\Delta}^r \mathbf{X},

amounting to the multiplication of the n×dn\times d feature matrix X\mathbf{X} by the n×nn\times n Laplacian matrix rr times. Since the Laplacian is typically sparse (with O(∣E∣)\mathcal{O}(|\mathcal{E}|) non-zero elements) this operation has low complexity of O(∣E∣dr)∼O(∣E∣)\mathcal{O}(|\mathcal{E}|dr)\sim \mathcal{O}(|\mathcal{E}|). Furthermore, since the Laplacian is local, a polynomial filter of degree rr is localised in rr-hop neighbourhood.

Meshes are nearly-regular graphs, with each node having O(1)\mathcal{O}(1) neighbours, resulting in O(n)\mathcal{O}(n) non-zeros in Δ\boldsymbol{\Delta}.

In the general case, the complexity of eigendecomposition is O(n3)\mathcal{O}(n^3).

However, this exact property comes at a disadvantage when dealing with meshes, since the actual support of the filter (i.e., the radius it covers) depends on the resolution of the mesh. One has to bear in mind that meshes arise from the discretisation of some underlying continuous surface, and one may have two different meshes T\mathcal{T} and T′\mathcal{T}' representing the same object. In a finer mesh, one might have to use larger neighbourhoods (thus, larger degree rr of the filter) than in a coarser one.

gdl-fig-two-hop-neighbourhoods-bunnies.png

Two-hop neighbourhoods on meshes of different resolution.

For this reason, in computer graphics applications it is more common to use rational filters, since they are resolution-independent. There are many ways to define such filters (see, e.g. Patanè (2020)), the most common being as a polynomial of some rational function, e.g., λ−1λ+1\frac{\lambda-1}{\lambda+1}. More generally, one can use a complex function, such as the Cayley transform λ−iλ+i\frac{\lambda - \mathrm{i}}{ \lambda + \mathrm{i}} that maps the real line into the unit circle in the complex plane. Levie et al. (2018) used spectral filters expressed as Cayley polynomials, real rational functions with complex coefficients αl∈C\alpha_l \in \mathbb{C},

p^(λ)=Re(∑l=0rαl(λ−iλ+i)l).\hat{p}(\lambda) = \mathrm{Re} \left( \sum_{l=0}^r \alpha_l \left( \frac{\lambda - \mathrm{i}}{ \lambda + \mathrm{i}} \right)^{l} \right).

When applied to matrices, the computation of the Cayley polynomial requires matrix inversion,

p^(Δ)=Re(∑l=0rαl(Δ−iI)l(Δ+iI)−l),\hat{p}(\boldsymbol{\Delta}) = \mathrm{Re} \left( \sum_{l=0}^r \alpha_l (\boldsymbol{\Delta} - \mathrm{i}\mathbf{I})^{l} (\boldsymbol{\Delta} + \mathrm{i}\mathbf{I})^{-l} \right),

which can be carried out approximately with linear complexity. Unlike polynomial filters, rational filters do not have a local support, but have exponential decay (Levie et al., 2018). A crucial difference compared to the direct computation of the Fourier transform is that polynomial and rational filters are stable under approximate isometric deformations of the underlying graph or mesh – various results of this kind were shown e.g. by Levie et al. (2018); Levie et al. (2019); Gama et al. (2020); Kenlay et al. (2021).

In signal processing, polynomial filters are termed finite impulse response (FIR), whereas rational filters are infinite impulse response (IIR).

Cayley transform is a particular case of a Möbius transformation. When applied to the Laplacian (a positive-semindefinite matrix), it maps its non-negative eigenvalues to the complex half-circle.

Meshes as operators and Functional maps.

The paradigm of functional maps suggests thinking of meshes as operators. As we will show, this allows obtaining more interesting types of invariance exploiting the additional structure of meshes. For the purpose of our discussion, assume the mesh T\mathcal{T} is constructed upon embedded nodes with coordinates X\mathbf{X}. If we construct an intrinsic operator like the Laplacian, it can be shown that it encodes completely the structure of the mesh, and one can recover the mesh (up to its isometric embedding, as shown by Zeng et al. (2012)). This is also true for some other operators (see e.g. Boscaini et al. (2015); Corman et al. (2017); Chern et al. (2018)), so we will assume a general operator, or n×nn\times n matrix Q(T,X)\mathbf{Q}(\mathcal{T}, \mathbf{X}), as a representation of our mesh.

In this view, the discussion of Section 4.1 of learning functions of the form f(X,T)f(\mathbf{X},\mathcal{T}) can be rephrased as learning functions of the form f(Q)f(\mathbf{Q}). Similar to graphs and sets, the nodes of meshes also have no canonical ordering, i.e., functions on meshes must satisfy the permutation invariance or equivariance conditions,

f(Q)=f(PQP⊤)PF(Q)=F(PQP⊤)\begin{aligned}f(\mathbf{Q}) &=& f(\mathbf{P}\mathbf{Q}\mathbf{P}^\top)\\ \mathbf{P}\mathbf{F}(\mathbf{Q}) &=& \mathbf{F}(\mathbf{P}\mathbf{Q}\mathbf{P}^\top)\end{aligned}

for any permutation matrix P\mathbf{P}. However, compared to general graphs we now have more structure: we can assume that our mesh arises from the discretisation of some underlying continuous surface Ω\Omega. It is thus possible to have a different mesh T′=(V′,E′,F′)\mathcal{T}'=(\mathcal{V}',\mathcal{E}',\mathcal{F}') with n′n' nodes and coordinates X′\mathbf{X}' representing the same object Ω\Omega as T\mathcal{T}. Importantly, the meshes T\mathcal{T} and T′\mathcal{T}' can have a different connectivity structure and even different number of nodes (n′≠nn'\neq n). Therefore, we cannot think of these meshes as isomorphic graphs with mere reordering of nodes and consider the permutation matrix P\mathbf{P} as correspondence between them.

Functional maps were introduced by Ovsjanikov et al. (2012) as a generalisation of the notion of correspondence to such settings, replacing the correspondence between points on two domains (a map η:Ω→Ω′\eta : \Omega \rightarrow \Omega') with correspondence between functions (a map C:X(Ω)→X(Ω′)\mathbf{C}:\mathcal{X}(\Omega) \rightarrow \mathcal{X}(\Omega'), see Figure 13). A functional map is a linear operator C\mathbf{C}, represented as a matrix n′×nn'\times n, establishing correspondence between signals x′\mathbf{x}' and x\mathbf{x} on the respective domains as

x′=Cx.\mathbf{x}' = \mathbf{C}\mathbf{x}.

Rustamov et al. (2013) showed that in order to guarantee area-preserving mapping, the functional map must be orthogonal, C⊤C=I\mathbf{C}^\top \mathbf{C} = \mathbf{I}, i.e., be an element of the orthogonal group C∈O(n)\mathbf{C} \in \mathrm{O}(n). In this case, we can invert the map using C−1=C⊤\mathbf{C}^{-1} = \mathbf{C}^\top.

In most cases the functional map is implemented in the spectral domain, as a k×kk\times k map C^\hat{\mathbf{C}} between the Fourier coefficients, x′=Φ′C^Φ⊤x,\mathbf{x}' = \boldsymbol{\Phi}'\hat{\mathbf{C}}\boldsymbol{\Phi}^\top\mathbf{x}, where Φ\boldsymbol{\Phi} and Φ′\boldsymbol{\Phi}' are the respective n×kn\times k and n′×kn'\times k matrices of the (truncated) Laplacian eigenbases, with k≪n,n′k\ll n,n'.

gdl-fig-13-pointwise-vs-functional-map.png

Figure 13: Pointwise map (left) vs functional map (right).

The functional map also establishes a relation between the operator representation of meshes,

Q′=CQC⊤,Q=C⊤Q′C,\mathbf{Q}' = \mathbf{C} \mathbf{Q} \mathbf{C}^\top, \quad \quad \mathbf{Q} = \mathbf{C}^\top \mathbf{Q}' \mathbf{C},

which we can interpret as follows: given an operator representation Q\mathbf{Q} of T\mathcal{T} and a functional map C\mathbf{C}, we can construct its representation Q′\mathbf{Q}' of T′\mathcal{T}' by first mapping the signal from T′\mathcal{T}' to T\mathcal{T} (using C⊤\mathbf{C}^\top), applying the operator Q\mathbf{Q}, and then mapping back to T′\mathcal{T}' (using C\mathbf{C}) This leads us to a more general class of remeshing invariant (or equivariant) functions on meshes, satisfying

Note that we read these operations right-to-left.

f(Q)=f(CQC⊤)=f(Q′)CF(Q)=F(CQC⊤)=F(Q′)\begin{aligned}f(\mathbf{Q}) &=& f(\mathbf{C}\mathbf{Q}\mathbf{C}^\top) = f(\mathbf{Q}')\\ \mathbf{C}\mathbf{F}(\mathbf{Q}) &=& \mathbf{F}(\mathbf{C}\mathbf{Q}\mathbf{C}^\top) = \mathbf{F}(\mathbf{Q}')\end{aligned}

for any C∈O(n)\mathbf{C} \in \mathrm{O}(n). It is easy to see that the previous setting of permutation invariance and equivariance is a particular case, which can be thought of as a trivial remeshing in which only the order of nodes is changed.

This follows from the orthogonality of permutation matrices, P⊤P=I\mathbf{P}^\top \mathbf{P} = \mathbf{I}.

Wang et al. (2019a) showed that given an eigendecomposition of the operator Q=VΛV⊤\mathbf{Q} = \mathbf{V}\boldsymbol{\Lambda}\mathbf{V}^\top, any remeshing invariant (or equivariant) function can be expressed as f(Q)=f(Λ)f(\mathbf{Q}) = f(\boldsymbol{\Lambda}) and F(Q)=VF(Λ)\mathbf{F}(\mathbf{Q}) = \mathbf{V} \mathbf{F}(\boldsymbol{\Lambda}), or in other words, remeshing-invariant functions involve only the spectrum of Q\mathbf{Q}. Indeed, functions of Laplacian eigenvalues have been proven in practice to be robust to surface discretisation and perturbation, explaining the popularity of spectral constructions based on Laplacians in computer graphics, as well as in deep learning on graph (Defferrard et al., 2016; Levie et al., 2018). Since this result refers to a generic operator Q\mathbf{Q}, multiple choices are available besides the ubiquitous Laplacian – notable examples include the Dirac (Liu et al., 2017; Kostrikov et al., 2018) or Steklov (Wang et al., 2018) operators, as well as learnable parametric operators (Wang et al., 2019a).