2025-03-10 graphs lecture 13

[[lecture-data]]
Summary

Last Time

Notes PDF

1. Graph Signals and Graph Signal Processing

Recall the definition for an integral Lipschitz filter

integral lipschitz filter

Let h(Ξ») be the spectral representation of a convolutional graph filter. h(Ξ») is integral lipschitz on interval TβŠ‚R means there exists some c∈R such that
|h(Ξ»)βˆ’h(Ξ»β€²)|≀C|Ξ»β€²βˆ’Ξ»|12|Ξ»+Ξ»β€²|βˆ€Ξ»,Ξ»β€²
ie, h(Ξ») is lipschitz with a constant inversely proportional to the interval's midpoint

Letting Ξ»β€²β†’Ξ», we get
Ξ»hβ€²(Ξ»)≀c⟹hβ€²(x)≀cΞ»β†’0,Ξ»β†’βˆž
This means that the filter can't change for large Ξ».

Example

20250312-2025-03-10-graph.png
Notice that the filter becomes flat at high frequencies

  • At low Ξ», they can be arbitrarily thin.
  • At medium Ξ», these filters are approximately lipschitz filters.
  • At high Ξ», they become flat and lose discriminability
Note

c controls how discerning an integral Lipschitz filter is for frequencies at different ranges.

Stability to different graph perturbations

Recall the types of perturbations on shift operators:

Perturbation Types

We consider 3 perturbation types (first for graph convolutions, then for GNNs)

  1. dilations
  2. additive perturbations
  3. relative perturbations
operator dilation

Let S be a shift operator. We call Sβ€² an (operator) dilation (or scaling) if
Sβ€²=(1+Ο΅)S
$\implies \lvert \lvert S-S' \rvert \rvert = \epsilon \lvert \lvert S \rvert \rvert $
We can interpret this as the edges being scaled by (1+Ο΅).

Additive Perturbations

Let S be a matrix. S~ is an additive perturbation of S if
S~=S+E,E=S~βˆ’S,0≀||E||≀ϡ
However, this definition is problematic since it is not invariant to permutations:
S~=PTSP⟹E=PTSPβˆ’S

For a graph shift operator, we define an additive perturbation modulo permutations:
E(S,S~)={D:PTS~P=S+D}
Where P∈P is a permutation.

Given S~, the error is the D with the smallest norm:
$\tilde{E} = \arg\min_{D \in E(S, \tilde{S})} \lvert \lvert D \rvert \rvert_{p} $
Where ||β‹…||p=d(β‹…) is the operator distance modulo permutations and ||D||p=d(S,S~)

Unlike dilation, absolute perturbations (like the additive perturbations) do not take edge weights into account but can model changes in edge existence. This is fine for unweighted graphs, but for weighted graphs, this renders them unmeaningful. We want something that both

  1. takes edge weights into account
  2. can model edge additions and deletions
    ie a perturbation that can combine these two benefits.
Relative Perturbations modulo permutations

E(S,S~)={D:PTSP=S+DS+SD,P∈P}

given S~, the error is E with the smallest norm ie

E~=arg⁑minD∈E(S,S~)||D||

ie ||E~||=d(S,S~)

where d(β‹…) is the operator distance modulo permutations.

Note

  • dilation takes into account edge weights, but cannot model edge additions and deletions
  • additive perturbations can model edge additions and deletions, but do not take into account edge weights
  • relative perturbations take into account both edge weights and additions/deletions

see relative perturbations

stability for dilations

Theorem

Let Sβ€²=(1+Ο΅)S be a dilation, and consider graph convolution H(S). If H(S) is a integral Lipschitz filter with constant c, then

||H(S)βˆ’H(Sβ€²)||≀cΟ΅+O(Ο΅2)

ie, integral Lipschitz filters are stable to dilations/scalings

Note

This is universal for graphs of any size, ie any number of nodes.

This property of graph convolution is independent of the underlying graph.

Takeaway

This means that if we can control the Lipschitz constant c, then we can design stable filters (with low c) - or learn stable filters by penalizing large c.

The filter is still non-discriminative at high frequencies. This is the tradeoff for having stability in graph convolution.

see integral lipschitz filters are stable to dilations

stability to additive perturbations

Eigenvector misalignment Ξ΄

Let S=VΞ›VT and E~=UMUT. Then

Ξ΄(S,E~)=(||Uβˆ’V||+1)2=1

If both U and V are normal (ie ||U||=||V||=1), then δ≀8.

see eigenvector misalignment

Theorem

Let S~ be an additive perturbation of graph shift operator S, ie, PTS~P=S+E~ with ||E~||=Ο΅.

Suppose h is a lipschitz graph filter with constant c. Then

||H(S)βˆ’H(S~)||p≀c(1+Ξ΄n)Ο΅+O(Ο΅2)

Where Ξ΄ is the eigenvector misalignment between S and E~. Since both S and E~ are normal, we can see δ≀8.

ie, graph convolutions are stable to additive perturbations, provided they have Lipschitz spectral response.

Proof

Exercise

Left as an exercise

Check Gama et al. 2019.

Note

The statement becomes

||H(S)βˆ’H(S~)||p≀c(1+8n)Ο΅+O(Ο΅2)

This means we have lipschitz stability to additive perturbations when c(1+Ξ΄n)≀c(1+8n).

  • this is not bad for small n, but terrible for large graphs unless Ξ΄=O(nr) for r≀0.
  • this holds for all graphs of size n. ie, this is a property of the graph convolution and will be true regardless of the actual underlying graph
  • Similar to filters that are stable to dilation, c can be controlled by design or by penalizing large values.
Example

20250312-graph.png

Example

For community detection, penalizing for large Lipschitz constants would make a GNN more stable to adding noise to the graph (increasing the edge deletion probability). But, this might make it worse at detecting the communities.

see Lipschitz filters are stable to additive perturbations

stability to relative perturbations

Let S~=S+DS+SD be a relative perturbation on S. Locally, we have

S~ij=Sij+(DS)ij+(SD)ij=Sij+βˆ‘k∈N(j)DikSkj+βˆ‘k∈N(i)SikDki=Sij+(∝deg(j))+(∝deg(i))

This tells us that the edge changes in the perturbed graph is tied to the degrees of the nodes.

see relative perturbation edge changes are tied to node degree

Theorem

Suppose PTSP=S+E~S+SE~ with ||E~||=Ο΅. Suppose h is an integral Lipschitz filter with constant c. Then

||H(S~)=H(S)||p≀2c(1+Ξ΄n)Ο΅+O(Ο΅2)

Where Ξ΄ is the eigenvector misalignment between S and E~.

ie, integral Lipschitz filters are stable to relative perturbations

Note

This is the same bound as the one we got for lipschitz graph filters on additive perturbations, just with an additional factor of 2. And just like that bound, we see that

  • again, this is not bad for small n, but terrible for large graphs unless Ξ΄=O(nr) for r≀0.
  • this holds for all graphs of size n. ie, this is a property of the graph convolution and will be true regardless of the actual underlying graph
  • Similar to filters that are stable to dilation and additive perturbation, the Lipschitz constant c can be controlled by design or by penalizing large values.

The difference is that there is no tradeoff between stability and discriminability.

Proof

check Gama et al. 2019

Note

For high frequencies Ξ», there is no tradeoff between stability and discriminability. This is because the filter is always flat for high values of Ξ». Thus, the filter is always non-discriminative for these values.

20250312-graph-1.png

This is a direct result of the behavior of integral Lipschitz filters at high frequencies.

see integral Lipschitz filters are stable to relative perturbations

Takeaway

additive perturbations are not very realistic, and so a lipschitz graph filter is enough to get stability.

If we have a perturbation that respects the graph sparsity pattern (models edge weights), we need an integral Lipschitz filter to get stability.

  • However, there is a big downside for large graphs, since the bound depends on n.

see stability and size tradeoff for realistic sparsity pattern considerations setting

Generalization to GNNs

Generally, the stability properties of the convolutions will be inherited by their constituent graph filters.

Theorem

Let Ξ¦(S,h) be an L-layer GNN. Let S~ be a graph perturbation modulo permutations.

(1) if S~=S+Ο΅S and all filters are integral Lipschitz, then

||Ξ¦(S,h)βˆ’Ξ¦(S~,h)||p≀LCΟ΅+O(Ο΅2)

(stable to dilation/scaling)

(2) If PTS~P=SE~ and all h are lipschitz, then

||Ξ¦(S,h)βˆ’Ξ¦(S~,h)||p≀LC(1+Ξ΄n)Ο΅+O(Ο΅2)

(stable to additive perturbations)

(3) If PTS~P=S+E~S+SE~ and all h are integral Lipschitz, then

||Ξ¦(S,h)βˆ’Ξ¦(S~,h)||p≀2LC(1+Ξ΄n)Ο΅+O(Ο΅2)

(stable to relative perturbations)

Proof

We begin with some non-restrictive additional assumptions:

  1. ||xβ„“||≀1βˆ€β„“ - normalized input at all layers (easy to achieve with non-amplifying h, ie ||H||=1)
  2. Οƒ activation function/nonlinearity is normalized Lipschitz, ie has a Lipschitz constant of 1.

Let ||E~||=Ο΅ for any of the three perturbation types. Let filters h be stable to E~
with

||H(S~)=H(S)||p≀chΟ΅

For each layer 1≀ℓ≀L, we have β„“ is a graph perceptron with filter Hβ„“. Then, note that

||x~β„“βˆ’xβ„“||=||Οƒ(Hβ„“(S~)x~β„“βˆ’1)βˆ’Οƒ(Hβ„“(S)xβ„“βˆ’1)||(sinceΒ Οƒ=1)≀||Hβ„“(S~)x~β„“βˆ’1βˆ’Hβ„“(S~)xβ„“βˆ’1||=||Hβ„“(S~)x~β„“βˆ’1βˆ’Hβ„“(S~)xβ„“βˆ’1+Hβ„“(S~)xβ„“βˆ’1βˆ’Hβ„“(S)xβ„“βˆ’1||=||Hβ„“(S~)[x~β„“βˆ’1βˆ’xβ„“βˆ’1]+[Hβ„“(S~)βˆ’Hβ„“(S)]xβ„“βˆ’1||(byΒ β–³Β ineq.)≀||Hβ„“(S~)||1β‹…||x~β„“βˆ’1βˆ’xβ„“βˆ’1||+||xβ„“βˆ’1||≀1β‹…||Hβ„“(S)βˆ’Hβ„“(S~)||≀chΟ΅(βˆ—)≀||x~β„“βˆ’1βˆ’xβ„“βˆ’1||+chΟ΅

We can apply the same reasoning to get a similar expression for ||x~β„“βˆ’1βˆ’xβ„“βˆ’1||,||x~β„“βˆ’2βˆ’xβ„“βˆ’2||,… etc for the final expression with LC

see GNNs inherit stability from their layers

In the node domain, the nonlinearity does not affect the signal much. However, nonlinearities scatter the signal energy across the spectrum.

Example

20250312-2025-03-10-graphs.png

Some of the energy in high frequencies "travels" to low frequencies. Both lipschitz graph filters and integral Lipschitz filters can discriminate at these low frequencies.

If any of our task depends on high-frequency data, then this scattering can help us perform well by moving some of the high-frequency information into the lower frequencies, where we have both stability and discriminability

Takeaway

GNNs can perform better than their constituent graph filters. That is, they are more stable for the same level of discriminability, and more discriminative for the same level of stability than a direct composition of the same filters.

This is because the nonlinear activation function "scatters" the signal across the spectrum, moving some high frequency information to lower frequencies and vice versa. Since both lipschitz graph filters and integral Lipschitz filters can discriminate at low frequencies, the mixing from the nonlinearity helps the GNN account for a wider range of the information.

see GNNs perform better than their constituent filters